- This topic has 18 replies, 6 voices, and was last updated 19 years, 1 month ago by Riyad Kalla.
-
AuthorPosts
-
thanh nguyenMemberHi,
I tried to setup myEclipse 2.7 for Websphere 5.1.
In the Eclipse Preferences for myEclispe , I enter the following values:
– websphere home dir: .C:\IBM\Websphere\AppServer (where I installed it)
– host name : dibm0046 (my machine name)
– server: server1 (the usual server for websphere)I also configured the IBM jdk as the JDK to use.
At this point, Webpshere can be started successfully.Now, I add the project deployment for my web app.
MyEclipse seems to be deploying ok.
But there is a problem: the Websphere Admin console
does not show my app. Even restarting Websphere several times
does not fix it.At this point, I checked the AppServer directory, and saw these
potential problems:1. My app is not under <AppServer>/Config/cells/dibm0046/Applications, like
the other apps that show up in the Admin console.
2. My app is deployed in the “wrong” directory. It is in AppServer/installedApps/server1
The other applications that show up in the Admin console are under
AppServer/installedApps/dibm0046.Could you please indicate what I did wrong ??
Is there an official procedure for websphere ??thx
tom nguyen.
Riyad KallaMemberHey Tom,
Websphere support isn’t quite ‘there’ yet. Please see this thread:
https://www.genuitec.com/forums/topic/deployment-on-websphere/&highlight=websphereFeel free to provide any suggestions to us as we are working on it to make sure the functionality fits your needs.
thanh nguyenMemberHi Riyad,
Unfortunately, the work around did not work.
You still have to do manual copy of the files that are changed.Once you do that though, the debugging of web app is possible.
tom nguyen/
Riyad KallaMemberTom I’m sorry to hear that didn’t help. I do appreciate you following up with us, we can kick your comments back to the dev team and let them know what is working and what isn’t. Keep the feedback/suggestions flowing!
thanh nguyenMemberRiyad,
I did post my comment at earlier thread.
As I have said, you have to manually copy files to the deployed directory.
After that you need to stop and restart websphere because it does allow
hot replace.
Scott AndersonParticipantTom,
I entered this as a bug so the dev team can research it and address it in a future release. Thanks for providing the detail we need.
Scott AndersonParticipantThe dev team has found the problem and the deployment location for exploded archives was indeed set incorrectly. It will be fixed in the 2.7/3.7 GA release. Thanks for reporting it.
Riyad KallaMemberFixed in 2.7 GA
chadsearsMemberIf this is truly fixed I am struggling with how it is supposed to be used. I am still suffering from the same symptoms.
Riyad KallaMemberchad,
From your post its hard to help as I don’t know which part of this was the problem… some app servers require that you 1st deploy your app via their console, so from ME you will want to deploy a packaged WAR and then fire up the ws console and deploy it, then in ME you can delete the packaged deployment and change it to exploded, NOW ME will push out your changes real-time ontop of the exploded application already running in Webspehere.I hope that helped.
jgritsonMemberI am running WAS 5.0 and ME 3.8.1 on Windows XP.
I created a simple web project using MyEclipse and deployed it as a packaged archive. I then installed it using Websphere’s admin console and successfully tested it. Based on the info I gathered from the forums, I should then be able to deploy as a packaged archive.
I then check the appserver directory and see the following:
1) the app I installed using websphere’s admin console:
appserver\installedApps\WS_Server\HelloWord.ear\HelloWorld.war\
2) the app deployed using MyEclipse:
appserver\installedApps\WS_Server\HellowWorld.warIn addition I’m not able to start websphere using ME. After about 10 minutes the following is the last line in the output console:
[Loaded com.ibm.ws.webcontainer.httpsession.SessionContext$2]Based on what I’ve been reading in the forums, this issue should be resolved in the version of ME I’m using. Could you please let me know if there’s something I may have done wrong, or if this is still a known issue.
Thanks,
Jim
Scott AndersonParticipantJim,
I then check the appserver directory and see the following:
1) the app I installed using websphere’s admin console:
appserver\installedApps\WS_Server\HelloWord.ear\HelloWorld.war\
2) the app deployed using MyEclipse:
appserver\installedApps\WS_Server\HellowWorld.warThis is because you’re deploying a WAR and when you go through the websphere admin console it automatically wraps the war in an ear. In order to get the two to match, you need to create an EAR to wrap your web project and then deploy that throught the admin console as a packaged archive. Once that’s done, you can then deploy the EAR in exploded format to overwrite the original while you develop it.
In addition I’m not able to start websphere using ME. After about 10 minutes the following is the last line in the output console:
[Loaded com.ibm.ws.webcontainer.httpsession.SessionContext$2]You need to remember that what is shown in the console is not the complete WebSphere log, so the server may have started just fine. Did you test it? The best approach is to set logging to go to the console and you can see how to do that in this brief tutorial:
http://www.myeclipseide.com/Articles/WebSphere5.1LogConfiguration/WAS5.1LogConfiguration.html
jgritsonMemberScott,
Thanks for the help. Your solution worked perfectly!
Jim
Scott AndersonParticipantJim,
Glad to hear it. Now please convert your entire company into MyEclipse users. 😉
Riyad KallaMemberGlad to hear it. Now please convert your entire company into MyEclipse users. 😉
Hahahh the power of subtle suggestion!
-
AuthorPosts