MyEclipse: Error starting WAS 8.5 with Java 7
tdevos - Jun 22, 2012 - 09:02 AM
Post subject: Error starting WAS 8.5 with Java 7
I installed upgraded to MyEclipse Blue 10.5 and upgraded our WAS environment to version 8.5 (full profile). On the WAS server I installed the Java 7 add-on and made this the default via the IBM WAS console. The server is working fine with Java 7.
However, if I start the server from MyEclipse Blue 10.5 I got the follwing error:
From what I can see from the XML files it seems that MyEclipse is trying to start the server via Java 6. However, I double checked that WebSphere JDK Name points to the Java 7 reference called "Websphere 8.5 JDK". If I take a look at this via Preferences->Installed JREs adn choose edit the JRE home points to D:\Programs\IBM\WebSphere_85\AppServer\java_1.7_64.
If I start websphere via the windows Service, the eclipse console gives me the output of the server so it seems that the launching process from my Eclipse uses a wrong JRE.
Does anybody have an idea about what i'm doing wrong.
The XLM files contains the following usefull information:
<?xml version="1.0" encoding="UTF-16"?>
<Build>7601 Service Pack 1</Build>
<Product>(0x30): Windows 7 Professional</Product>
<ParentProcessCmdLine>cmd /c D:\Programs\IBM\WebSphere_85\AppServer\profiles\AppSrv01\bin\runConfigActions.bat -startServer</ParentProcessCmdLine>
tdevos - Jun 25, 2012 - 11:41 AM
I found a workaround. By changing the following line in the file setupCmdLine.bat:
REM SET JAVA_HOME=%WAS_HOME%\java
it solved the issue. It seems that MyEclipse is passing the wrong JAVA_HOME to this script although it is correctly in the settings.[/code]
Support-Brian - Jun 26, 2012 - 12:11 AM
Thanks for reporting your workaround. To make sure we get the right fixes in for this, I have a few questions:
Did you configure the WAS server in MyEclipse Blue before or after you upgraded it to Java 7?
|On the WAS server I installed the Java 7 add-on and made this the default via the IBM WAS console. The server is working fine with Java 7.|
If you go to the profile configuration wizard in Blue, on page 3 of the instance wizard, we do allow you to specify a JDK. It appears that you configured and selected the default JRE for the workspace but may have not updated the JDK on this preference page. Can you confirm? If you undo your changes to the batch file but make a change here instead, does it work as expected?
My team is attempting to replicate your scenario internally. Thanks again for writing in.
tdevos - Jul 06, 2012 - 02:26 PM
Sorry for the late reply, apparently I didn't receive the notification e-mail.
I first installed WAS 8.5 with Java 7 and after that configured MyEclipse Blue.
In the profile config wizard on page 3 we have selected the WAS 8.5 7 JDK which points to my JRE home: D:\Programs\IBM\WebSphere_85\AppServer\java_1.7_64
If I undo the changes to the cmd file the problem re-appears.
Thank you for your follow up.
Tim De Vos
support-tony - Jul 10, 2012 - 08:58 AM
Thanks for the information and sorry about the lack of notification; I'm not aware of problems with that facility and hopefully, you'll get notification of this post.
If we need more information, we'll be in touch.
All times are GMT - 6 Hours
Powered by PNphpBB2
© 2003-2004 The PNphpBB GroupCredits