1 Reply Latest reply on Dec 4, 2005 3:17 PM by pedro costa

    jboss AS in linux error

    pedro costa Apprentice

      When i try to run jboss AS in linux, i get this problem:

      i29685:~/jboss-4.0.3SP1/bin$ ./run.sh
      run.sh: Missing file: /lib/tools.jar
      run.sh: Unexpected results may occur. Make sure JAVA_HOME points to a JDK and not a JRE.
      =========================================================================
      
       JBoss Bootstrap Environment
      
       JBOSS_HOME: /home/i29685/jboss-4.0.3SP1
      
       JAVA: java
      
       JAVA_OPTS: -server -Xms128m -Xmx128m -Dprogram.name=run.sh
      
       CLASSPATH: /home/i29685/jboss-4.0.3SP1/bin/run.jar:/lib/tools.jar
      
      =========================================================================
      
      19:47:09,635 INFO [Server] Starting JBoss (MX MicroKernel)...
      19:47:09,635 INFO [Server] Release ID: JBoss [Zion] JBoss.org
      19:47:09,636 INFO [Server] Home Dir: /home/i29685/jboss-4.0.3SP1
      19:47:09,636 INFO [Server] Home URL: file:/home/i29685/jboss-4.0.3SP1/
      19:47:09,637 INFO [Server] Patch URL: null
      19:47:09,637 INFO [Server] Server Name: default
      19:47:09,637 INFO [Server] Server Home Dir: /home/i29685/jboss-4.0.3SP1/server/default
      19:47:09,637 INFO [Server] Server Home URL: file:/home/i29685/jboss-4.0.3SP1/server/default/
      19:47:09,637 INFO [Server] Server Temp Dir: /home/i29685/jboss-4.0.3SP1/server/default/tmp
      19:47:09,638 INFO [Server] Root Deployment Filename: jboss-service.xml
      Failed to boot JBoss:
      java.lang.NullPointerException
       at org.jboss.mx.loading.RepositoryClassLoader.addURL(java.net.URL) (Unknown Source)
       at java.net.URLClassLoader.addURLs(java.net.URL[]) (/usr/lib/libgcj.so.6.0.0)
       at java.net.URLClassLoader.URLClassLoader(java.net.URL[], java.lang.ClassLoader) (/usr/lib/libgcj.so.6.0.0)
       at org.jboss.mx.loading.RepositoryClassLoader.RepositoryClassLoader(java.net.URL[], java.lang.ClassLoader) (Unknown Source)
       at org.jboss.mx.loading.UnifiedClassLoader.UnifiedClassLoader(java.net.URL, java.net.URL, java.lang.ClassLoader) (Unknown Source)
       at org.jboss.mx.loading.UnifiedClassLoader.UnifiedClassLoader(java.net.URL, java.net.URL) (Unknown Source)
       at org.jboss.mx.loading.UnifiedClassLoader3.UnifiedClassLoader3(java.net.URL, java.net.URL) (Unknown Source)
       at org.jboss.mx.loading.UnifiedClassLoader3.UnifiedClassLoader3(java.net.URL, java.net.URL, org.jboss.mx.loading.LoaderRepository) (Unknown Source)
       at org.jboss.mx.loading.UnifiedLoaderRepository3.newClassLoader(java.net.URL, boolean) (Unknown Source)
       at java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (/usr/lib/libgcj.so.6.0.0)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(org.jboss.mx.server.Invocation) (Unknown Source)
       at org.jboss.mx.server.Invocation.dispatch() (Unknown Source)
       at org.jboss.mx.server.Invocation.invoke() (Unknown Source)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(java.lang.String, java.lang.Object[], java.lang.String[]) (Unknown Source)
       at org.jboss.mx.server.MBeanServerImpl.invoke(javax.management.ObjectName, java.lang.String, java.lang.Object[], java.lang.String[]) (Unknown Source)
       at org.jboss.system.server.ServerImpl.initBootLibraries() (Unknown Source)
       at org.jboss.system.server.ServerImpl.doStart() (Unknown Source)
       at org.jboss.system.server.ServerImpl.start() (Unknown Source)
       at org.jboss.Main.boot(java.lang.String[]) (Unknown Source)
       at org.jboss.Main$1.run() (Unknown Source)
       at java.lang.Thread.run() (/usr/lib/libgcj.so.6.0.0)
      
      


      What should i do?

      Thanks
      Pedro