4 Replies Latest reply: Jan 20, 2006 4:32 PM by Ching Liang RSS

Failed to boot JBoss

Ching Liang Newbie

I am new to JBoss and received the following message when running JBOSS_DIST/bin/run.sh. Any help is appreciated. I downloaded jboss-4.0.3SP1.tar.gz and gunzip and tar it to a directory. My OS is Fedora Core 4.

21:27:26,196 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)
[

  • 1. Re: Failed to boot JBoss
    Peter Johnson Master

    What JVM are you running? That information would have shown up on the top part of the console output, but can also be obtained by running "java -version".

  • 2. Re: Failed to boot JBoss
    Ching Liang Newbie

    Peter,

    Here is the top of the message and /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/bin is at the beginning of my PATH.

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

    JBoss Bootstrap Environment

    JBOSS_HOME: /app/jboss/jboss-4.0.3SP1

    JAVA: /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/bin/java

    JAVA_OPTS: -server -Xms128m -Xmx128m -Dprogram.name=run.sh

    CLASSPATH: /app/jboss/jboss-4.0.3SP1/bin/run.jar:/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/lib/tools.jar

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

    13:29:57,181 INFO [Server] Starting JBoss (MX MicroKernel)...
    13:29:57,185 INFO [Server] Release ID: JBoss [Zion] JBoss.org

  • 3. Re: Failed to boot JBoss
    Peter Johnson Master

    Actually, the JVM version number is about a dozen lines further down. On my system it looks like:

    12:37:21,131 INFO [ServerInfo] Java version: 1.4.2_10,Sun Microsystems Inc.
    12:37:21,132 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.4.2_10-b03,Sun Microsystems Inc.
    12:37:21,132 INFO [ServerInfo] OS-System: Linux 2.6.11-1.1369_FC4,i386
    


    I suspect that you are using the JVM that comes with Fedora. Don't use it, it won't work with JBoss. Instead, download and install a JVM from the Sun web site (http://java.sun.com)

  • 4. Re: Failed to boot JBoss
    Ching Liang Newbie

    Peter,

    Yes, that's the problem. I use the JVM that comes with Fedora. Now I switch to the one from Sun and it works. Thank you again.