[jboss-jira] [JBoss JIRA] (JBBOOT-138) NoClassDefFoundError from AbstractServerImpl on Java 7

Andrew Rubinger (JIRA) jira-events at lists.jboss.org
Wed Apr 4 08:45:48 EDT 2012


    [ https://issues.jboss.org/browse/JBBOOT-138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12681633#comment-12681633 ] 

Andrew Rubinger commented on JBBOOT-138:
----------------------------------------

We're closing the ClassLoader in JDK7 prematurely in the ServerLoader, before it's returned and used by the caller:

{code}        /*
          * Close the URLCL, if JDK7+
          * JBBOOT-23
          */
         if (classLoader != null && classLoader instanceof Closeable)
         {
            try
            {
               ((Closeable) classLoader).close();
            }
            catch (IOException ioe)
            {
               // Swallow
            }
         }{code}
                
> NoClassDefFoundError from AbstractServerImpl on Java 7
> ------------------------------------------------------
>
>                 Key: JBBOOT-138
>                 URL: https://issues.jboss.org/browse/JBBOOT-138
>             Project: JBoss Bootstrap
>          Issue Type: Bug
>          Components: legacy
>            Reporter: Jimmy Wilson
>            Assignee: Andrew Rubinger
>
> JBoss fails to boot on Java 7:
> Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/bootstrap/BaseServerConfig
>         at org.jboss.bootstrap.AbstractServerImpl.doInit(AbstractServerImpl.java:190)
>         at org.jboss.bootstrap.AbstractServerImpl.init(AbstractServerImpl.java:173)
>         at org.jboss.bootstrap.AbstractServerImpl.init(AbstractServerImpl.java:143)
>         at org.jboss.Main.boot(Main.java:218)
>         at org.jboss.Main$1.run(Main.java:556)
>         at java.lang.Thread.run(Thread.java:722)
> Caused by: java.lang.ClassNotFoundException: org.jboss.bootstrap.BaseServerConfig
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:356)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list