1 Reply Latest reply on Nov 12, 2003 9:01 AM by Jon Barnett

    JBoss 3.2.2 and JavaService.exe on NT

    Tilo Thiele Newbie

      Running JBoss 3.0.x with JavaService.exe worked fine.

      After switching to JBoss 3.2.2 I only get the Result:

      13:14:14,791 INFO [Server] Starting JBoss (MX MicroKernel)...
      13:14:14,801 INFO [Server] Release ID: JBoss [WonderLand] 3.2.2RC2 (build: CVSTag=JBoss_3_2_2_RC2 date=200307231513)
      13:14:14,801 INFO [Server] Home Dir: C:\Programme\jboss-3.2.2RC2_jetty-4.2.11
      13:14:14,801 INFO [Server] Home URL: file:/C:/Programme/jboss-3.2.2RC2_jetty-4.2.11/
      13:14:14,801 INFO [Server] Library URL: file:/C:/Programme/jboss-3.2.2RC2_jetty-4.2.11/lib/
      13:14:14,801 INFO [Server] Patch URL: null
      13:14:14,801 INFO [Server] Server Name: default
      13:14:14,801 INFO [Server] Server Home Dir: C:\Programme\jboss-3.2.2RC2_jetty-4.2.11\server\default
      13:14:14,801 INFO [Server] Server Home URL: file:/C:/Programme/jboss-3.2.2RC2_jetty-4.2.11/server/default/
      13:14:14,801 INFO [Server] Server Data Dir: C:\Programme\jboss-3.2.2RC2_jetty-4.2.11\server\default\data
      13:14:14,801 INFO [Server] Server Temp Dir: C:\Programme\jboss-3.2.2RC2_jetty-4.2.11\server\default\tmp
      13:14:14,801 INFO [Server] Server Config URL: file:/C:/Programme/jboss-3.2.2RC2_jetty-4.2.11/server/default/conf/
      13:14:14,811 INFO [Server] Server Library URL: file:/C:/Programme/jboss-3.2.2RC2_jetty-4.2.11/server/default/lib/
      13:14:14,811 INFO [Server] Root Deployemnt Filename: jboss-service.xml
      13:14:14,811 INFO [Server] Starting General Purpose Architecture (GPA)...
      13:14:15,152 ERROR [Server] Failed to start
      java.lang.NoClassDefFoundError: EDU/oswego/cs/dl/util/concurrent/ConcurrentReaderHashMap
      at org.jboss.mx.loading.UnifiedClassLoader.(UnifiedClassLoader.java:66)
      at org.jboss.mx.loading.UnifiedClassLoader.(UnifiedClassLoader.java:91)
      at org.jboss.mx.loading.UnifiedClassLoader3.(UnifiedClassLoader3.java:58)
      at org.jboss.mx.loading.UnifiedClassLoader3.(UnifiedClassLoader3.java:70)
      at org.jboss.mx.loading.UnifiedLoaderRepository3.newClassLoader(UnifiedLoaderRepository3.java:121)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:550)
      at org.jboss.system.server.ServerImpl.initBootLibraries(ServerImpl.java:498)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:334)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:290)
      at org.jboss.Main.boot(Main.java:150)
      at org.jboss.Main$1.run(Main.java:388)
      at java.lang.Thread.run(Thread.java:534)

      As I found out, the class EDU/oswego/cs/dl/util/concurrent/ConcurrentReaderHashMap resides in /lib/concurrent.jar.
      The startup procedure doesn't find the JBoss environment, obviously.

      I've set the system variables %JBOSS_HOME% and %JAVA_HOME% and installed the service:

      set JAVA_TYPE=server
      set JBOSS_SERVER=default

      if EXIST %JBOSS_HOME%\logs\. GOTO install

      echo Creating log directory %JBOSS_HOME%\logs
      mkdir %JBOSS_HOME%\logs

      if EXIST %JBOSS_HOME% goto install
      echo Abbruch - JBOSS_HOME nicht gesetzt
      goto eof

      :install
      JavaService.exe -install Forms@Work %JAVA_HOME%\jre\bin\%JAVA_TYPE%\jvm.dll -Djava.class.path=%JBOSS_HOME%\bin\run.jar;%JBOSS_HOME%\bin\shutdown.jar;%JBOSS_HOME%\client\jnet.jar;%JAVA_HOME%\lib\tools.jar -start org.jboss.Main -params -c %JBOSS_SERVER% -stop org.jboss.Shutdown -out %JBOSS_HOME%\logs\stdout.log -err %JBOSS_HOME%\logs\stderr.log -current %JBOSS_HOME%\bin

      goto eof

      :eof

      Can someone help me please?