Page 1 of 1

Jboss Service Will Not Start

PostPosted:Sun Jul 24, 2011 12:18 am
by dsteph801
Hello,

I've exhausted all of my options and always post on open source support forums as a last result so here I am. I've installed OpenKM successfully and it has been running without issue for the past month or so. I recently decided to configure jboss to run as a service per the jboss native environment. I setup the service to run by folliwng the instructions provided to me. I started up the service without incident the first time and all was well.

I then configured OpenOffice to run as a service as well....again no problems there. The service starts up and runs fine.

Now here's where the fun begins - I tried to restart the jboss service and it would start and then immediatly stop. I examined the run.log and this is what I found:
Code: Select all
Starting JBoss Application Server 5.0 [2011-07-23 17:56:17]
===============================================================================

  JBoss Bootstrap Environment

  JBOSS_HOME: F:\repository\jboss-4.2.3.GA

  JAVA: C:\Program Files\Java\jdk1.6.0_18\bin\java

  JAVA_OPTS: -Xrs -Djava.library.path="F:\repository\jboss-4.2.3.GA\bin\native;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Resource Kits\Tools\" -Dprogram.name=run.bat -Dfile.encoding=utf-8 -server -Xms256m -Xmx1024m -XX:PermSize=64m -XX:MaxPermSize=128m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

  CLASSPATH: C:\Program Files\Java\jdk1.6.0_18\lib\tools.jar;F:\repository\jboss-4.2.3.GA\bin\run.jar

===============================================================================

java.lang.NoClassDefFoundError: Files\Java\jdk1/6/0_18\lib\tools/jar;F:\repository\jboss-4/2/3/GA\bin\run/jar    org/jboss/Main 
Caused by: java.lang.ClassNotFoundException: Files\Java\jdk1.6.0_18\lib\tools.jar;F:\repository\jboss-4.2.3.GA\bin\run.jar    org.jboss.Main 
	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: Files\Java\jdk1.6.0_18\lib\tools.jar;F:\repository\jboss-4.2.3.GA\bin\run.jar    org.jboss.Main .  Program will exit.
Exception in thread "main" Shutdown JBoss Application Server 5.0 service [2011-07-23 17:56:17]
For some reason it isn't recognizing the C:\Program Files\ path....it appears to be cutting off the C:\Program portion when setting the JAVA_HOME variable. I am completely stumped. I've tried enclosing the C:\Program Files\Java\jdk1.6.0_18\bin\java path in double quotes and also single quotes but neither one works. I'm sure this is something really stupid, but the solution continues to evade me.

Any help would be greatly appreciated. We really like OpenKM so far, but it is unusable for us given the current problem. We are considering purchasing the premium version due to the necessity of us having a DWG preview option, but we really need this issue fixed in order to move forward with our testing.

Again thanks in advance for any assistance on this matter

- Dustin

Re: Jboss Service Will Not Start

PostPosted:Mon Jul 25, 2011 7:06 am
by jllort
You've not installed really the jdk you've installed jre ( the problem on windows is that on jre some files are missing and might be installed jre ).

Download from here http://www.oracle.com/technetwork/java/ ... 00750.html