- This topic has 17 replies, 2 voices, and was last updated 19 years, 6 months ago by
james_render50.
-
AuthorPosts
-
james_render50MemberHas anyone had any success in trying to deploy to the WAS5 that comes with WSAD 5.0 from MyEclipse?
Basically we don’t use a standalone installation of WAS5 locally, the intention is that WSAD is used, but I would like to use MyEclipse instead..
I’ve pointed the application server jdk to the one that comes with WSAD, I’ve pointed the WAS home directory at C:\Program Files\IBM\WebSphere Studio\runtimes\aes_v4 (okay I know thats WAS4.0), its prompting for a configuration file, so I use one from C:\Program Files\IBM\WebSphere Studio\runtimes\aes_v4\config, not sure whether its server-cfg.xml or admin-server-cfg.xml
is this going to work? how would I manage an EJB deployment??
cheers
James
james_render50MemberOk, I managed to get WAS4.0 to startup, not much I know but still.. noticed that if I use admin-server-cfg.xml it threw less errors, the errors from using server-cfg.xml seem to stem from it loading up example applications.
ok so now I need to deploy an application to was4.0… hmmm
james_render50MemberNow, I’m trying to deploy a simple web app, MyEclipse is deploying an exploded archive to C:\Program Files\IBM\WebSphere Studio\runtimes\aes_v4\installedApps\MyWebApp. From the start-up debug from WAS4.0 it looks like the only port open is 9091, but when I try that… get a
Virtual Host or Web Application Not Found
The web group /MyWebApp/MyTestServlet has not been defined
james_render50MemberOk, next I’ve tried using the server-config.xml, now I get a 404 not found. Looking at the logs, it doesn’t appear as though its loaded my application. might try deploying it as a war..
Riyad KallaMemberis this going to work?
Did you try and hit start to see if ti spins up?
how would I manage an EJB deployment??
Please read our EJB quickstart guide here: http://www.myeclipseide.com/images/tutorials/quickstarts/firstejb/
james_render50Membernope, no change, MyWebApp is still not appearing in the log.. maybe I need to add it into some configuration file?
Riyad KallaMemberHere is a quick start guide we just wrote for WebSphere 6. I know it will be slightly different for WS 4, BUT you should atleast be able to follow the configuration steps and deployment steps of your application to get the idea of how you actually install an app into websphere as well as configure the logging so MyEclipse can display it for you:
http://myeclipseide.com/enterpriseworkbench/help/index.jsp?topic=/com.genuitec.myeclipse.doc/html/quickstarts/websphere6/index.html
james_render50MemberI’ve amended server-config.xml to look like this at the end:
<pathMap xmi:id="PathMap_1"> <entries xmi:id="PathMapEntry_1" symbolicName="APP_INSTALL_ROOT" path="${WAS_ROOT}/installedApps" description="The filesystem path to the directory which will contain installed enterprise applications."/> <entries xmi:id="PathMapEntry_2" symbolicName="LOG_ROOT" path="${WAS_ROOT}/logs" description="The filesystem path to the directory which will contain server log files."/> <entries xmi:id="PathMapEntry_3" symbolicName="TRANLOG_ROOT" path="${WAS_ROOT}/tranlog" description="The filesystem path to the directory which will transaction log files."/> <entries xmi:id="PathMapEntry_4" symbolicName="PRODUCT_INSTALL_ROOT" path="${WAS_ROOT}" description="The filesystem path to the product installation directory"/> <!-- <entries xmi:id="PathMapEntry_5" symbolicName="WAS_ROOT" path="c:\WebSphere\AppServer" description="The filesystem path to the product installation directory"/> --> <entries xmi:id="PathMapEntry_5" symbolicName="WAS_ROOT" path="C:\Program Files\IBM\WebSphere Studio\runtimes\aes_v4" description="The filesystem path to the product installation directory"/> <!-- <entries xmi:id="PathMapEntry_6" symbolicName="JAVA_HOME" path="c:\WebSphere\AppServer\java" description="The filesystem path to the product java home directory"/> --> <entries xmi:id="PathMapEntry_6" symbolicName="JAVA_HOME" path="C:\Program Files\IBM\WebSphere Studio\runtimes\aes_v4\java" description="The filesystem path to the product java home directory"/> </pathMap>
still getting a 404 on http://localhost:9080/MyWebApp/MyTestServlet
james_render50Member@support-rkalla wrote:
Here is a quick start guide we just wrote for WebSphere 6. I know it will be slightly different for WS 4, BUT you should atleast be able to follow the configuration steps and deployment steps of your application to get the idea of how you actually install an app into websphere as well as configure the logging so MyEclipse can display it for you:
http://myeclipseide.com/enterpriseworkbench/help/index.jsp?topic=/com.genuitec.myeclipse.doc/html/quickstarts/websphere6/index.htmlthe issue is that I don’t have access to the admin console because I’m trying to use the embedded WAS4.0 that comes with WSAD.
had a quick scan of that link but it doesn’t look like it will help.
james_render50Memberah okay, the deployment stuff is more relevant, I beg ur pardon.
james_render50Memberokay, so now I’ve deployed an ear file containing my war into the WSAD embedded WAS4.0, but according to the guide I now need to deploy it INTO Websphere, any ideas on how to do this without access to the console??
Riyad KallaMemberNo idea. I also don’t know if our connector fully supports the integrated websphere version.
If this is for development, is it psosible to just download JBoss 4 and use that?
james_render50Memberyeah, I’m starting to realise what a pain using Websphere is! I’ve got jboss on the go, but need to try deploying to websphere at some point. I just don’t want to have to use WSAD! At this rate, I’ll need to fire it up so that it can generate the deployment information nonsense that Websphere requires.
was hoping that someone out there had my same scenario, developing for Websphere but only have access to a local installation of Websphere thru WSAD.
james_render50Memberstarted trying to replicate the sampleApp application that comes with was4.0, this mainly involved hacking around with the server-config.xml and creating ibm-application-ext.xmi’s etc etc, but even if I got this working, its not a viable way of doing day-to-day development.
james_render50MemberMuhahahahaaaa
MyEclipse with WSAD’s WAS server is possible! So long as you use WAS 5
First get WAS 5 working from the command line:
Its not very hard, check this thread I wrote:
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=46&t=007333
Set up WAS5 as a server in MyEclipse, pointing it at
C:\Program Files\IBM\WebSphere Studio\runtimes\base_v5
remember to set the jdk to point at
C:\Program Files\IBM\WebSphere Studio\runtimes\base_v5\java
create an ear.
deploy it to
C:\Program Files\IBM\WebSphere Studio\runtimes\base_v5\installableApps
then have to IBM’ify it by using their deployment thingy
run
C:\Program Files\IBM\WebSphere Studio\runtimes\base_v5\bin\assembly.bat
open up the ear file you created in myelipse, and then save it, this seems to ibm’ify it (adding the .xmi files that I was mentioning above for was 5)
now you have to deploy it to the server (sigh, yes what pain)
start the server in myeclipse, use the admin console (http://localhost:9090/admin) and install the application, I had no clue what I was doing here just clicked yes on most things
remember to start the app!
bingo, should work
btw I just did a test web app, no ejbs..
hopefully I can now develop in myeclipse and run against the wsad embedded was5
just got to try hot deployments, debugging and ejbs now 🙂
-
AuthorPosts