MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
tdevos
Post subject: Error starting WAS 8.5 with Java 7  PostPosted: Jun 22, 2012 - 09:02 AM



Joined: Jun 22, 2012
Posts: 8

Hi all,

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:
[img]
MyEclipse error.png
[/img]


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:




Code:


<?xml version="1.0" encoding="UTF-16"?>
<WERReportMetadata>
   <OSVersionInformation>
      <WindowsNTVersion>6.1</WindowsNTVersion>
      <Build>7601 Service Pack 1</Build>
      <Product>(0x30): Windows 7 Professional</Product>
      <Edition>Professional</Edition>
      <BuildString>7601.17835.amd64fre.win7sp1_gdr.120503-2030</BuildString>
      <Revision>1130</Revision>
      <Flavor>Multiprocessor Free</Flavor>
      <Architecture>X64</Architecture>
      <LCID>1033</LCID>
   </OSVersionInformation>
   <ParentProcessInformation>
      <ParentProcessId>3912</ParentProcessId>
      <ParentProcessPath>C:\Windows\System32\cmd.exe</ParentProcessPath>
      <ParentProcessCmdLine>cmd /c D:\Programs\IBM\WebSphere_85\AppServer\profiles\AppSrv01\bin\runConfigActions.bat -startServer</ParentProcessCmdLine>
   </ParentProcessInformation>
   <ProblemSignatures>
      <EventType>APPCRASH</EventType>
      <Parameter0>java.exe</Parameter0>
      <Parameter1>6.0.0.0</Parameter1>
      <Parameter2>4f63367e</Parameter2>
      <Parameter3>StackHash_ef27</Parameter3>
      <Parameter4>6.1.7601.17725</Parameter4>
      <Parameter5>4ec4aa8e</Parameter5>
      <Parameter6>c0000374</Parameter6>
      <Parameter7>00000000000c40f2</Parameter7>
   </ProblemSignatures>
   <DynamicSignatures>
      <Parameter1>6.1.7601.2.1.0.256.48</Parameter1>
      <Parameter2>2067</Parameter2>
      <Parameter22>ef27</Parameter22>
      <Parameter23>ef27a0eee46820b64d284c3900c821c6</Parameter23>
      <Parameter24>2229</Parameter24>
      <Parameter25>222940393f0c37808b1fc49284299680</Parameter25>
   </DynamicSignatures>
   <SystemInformation>
      ...
   </SystemInformation>
</WERReportMetadata>
[
 
 View user's profile Send private message  
Reply with quote Back to top
tdevos
Post subject:   PostPosted: Jun 25, 2012 - 11:41 AM



Joined: Jun 22, 2012
Posts: 8

Hi,

I found a workaround. By changing the following line in the file setupCmdLine.bat:

Code:

REM SET JAVA_HOME=%WAS_HOME%\java


to

Code:

SET JAVA_HOME=%WAS_HOME%\java_1.7_64


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]
 
 View user's profile Send private message  
Reply with quote Back to top
Support-Brian
Post subject:   PostPosted: Jun 26, 2012 - 12:11 AM
Moderator
Moderator


Joined: Aug 21, 2004
Posts: 2585

tdevos,

Thanks for reporting your workaround. To make sure we get the right fixes in for this, I have a few questions:
Quote:
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.
Did you configure the WAS server in MyEclipse Blue before or after you upgraded it to 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.

_________________
Brian
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
tdevos
Post subject:   PostPosted: Jul 06, 2012 - 02:26 PM



Joined: Jun 22, 2012
Posts: 8

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.

Regards,

Tim De Vos
 
 View user's profile Send private message  
Reply with quote Back to top
support-tony
Post subject:   PostPosted: Jul 10, 2012 - 08:58 AM



Joined: Mar 09, 2011
Posts: 919

Tim,

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.

_________________
Tony
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits