2

I installed Eclipse indigo and jboss 7 server and jboss server plugins installed for struts2 application.

I created simple application with jsp page and deployed in to jboss7 server ( i installed server ,run from out side of eclipse and i saw new features of jboss 7 ) after deploying application . I want to start the server but server giving error like " Error:no server JVM at c:\java\jre1.6\bin\server\jvmdll"

help me for this issue.

thanks param

Ondra Žižka
  • 43,948
  • 41
  • 217
  • 277
param
  • 21
  • 1
  • 2

3 Answers3

1

change jvm in jboss's tomcat conf from

C:\Program Files\Java\jre6\bin\server\jvm.dll

to

C:\Program Files\Java\jre6\bin\client\jvm.dll
jmj
  • 237,923
  • 42
  • 401
  • 438
  • In my system java C:\Java\jdk1.6.0\jre\bin\client dir has files jvm.dll Xusage.txt , classes.jsa C:\Java\jdk1.6.0\jre\bin\server has jvm.dll Xusage.txt it is already there but giving error. – param Jul 28 '11 at 12:33
  • your server is pointing to `c:\java\jre1.6\bin\server\jvm.dll` make it point to `C:\Java\jdk1.6.0\jre\bin\server\jvm.dll` – jmj Jul 28 '11 at 12:46
  • This works but I'd rather set the JAVA_HOME / JDK JBoss uses in the launch configuration - does anybody know the option for this? Sadly, JBoss Tools ignores the parameters in jboss.conf so you have to set them separately in Eclipse / Server runtime settings. – Gregor Aug 04 '11 at 16:17
1

I also had this problem and did not find where I could set the JVM for JBoss in Eclipse Indigo. I got JBoss 7 working by removing the JRE6 from installed JREs in Eclipse and only having JDK6 there. I also changed JRE6 to JDK6 by double clicking the JBoss server -> Open launch configuration -> Classpath -> Bootstrap Entries.

After this I readded JRE6 to Eclipse for the projects that used it.

0

I posted the below answer here

I've just been struggling with this same problem in Eclipse and I noted that as suggested by the answer above the JBoss site has a thread on this issue saying the same as the answer above to copy files from the jdk to the jre folder.

I noticed that you can avoid having to do this if you define the runtime to be the jdk when you create the server. I didn't find how to edit an existing server though.

eclipse Screenshot

Community
  • 1
  • 1
Codey McCodeface
  • 2,988
  • 6
  • 30
  • 55