You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Jacek Laskowski (JIRA)" <de...@geronimo.apache.org> on 2005/06/14 15:28:48 UTC

[jira] Created: (GERONIMO-673) java.lang.NoClassDefFoundError: org/apache/geronimo/common/DeploymentException at org/apache/geronimo/J2EEDeployer startup

java.lang.NoClassDefFoundError: org/apache/geronimo/common/DeploymentException at org/apache/geronimo/J2EEDeployer startup
--------------------------------------------------------------------------------------------------------------------------

         Key: GERONIMO-673
         URL: http://issues.apache.org/jira/browse/GERONIMO-673
     Project: Geronimo
        Type: Bug
  Components: deployment  
    Versions: 1.0-M4    
    Reporter: Jacek Laskowski


$ java -jar bin/server.jar org/apache/geronimo/J2EEDeployer
00:56:22,760 INFO  [Daemon] Server startup begun
00:56:22,770 INFO  [Daemon] java.endorsed.dirs=c:\apps\j2sdk15\jre\lib\endorsed;C:\projs\geronimo\modules\assembly\target\geronimo-1.0-SNAPSHOT\lib\endorsed
00:56:22,940 INFO  [BasicKernel] Starting boot
00:56:23,110 INFO  [BasicKernel] Booted
00:56:23,321 INFO  [Configuration] Started configuration org/apache/geronimo/System
00:56:23,431 INFO  [ReadOnlyRepository] Repository root is file:/C:/projs/geronimo/modules/assembly/target/geronimo-1.0-SNAPSHOT/repository/
00:56:23,741 INFO  [RMIRegistryService] Started RMI Registry on port 1099
00:56:23,761 INFO  [LocalConfigStore:config-store] Loaded Configuration geronimo.config:name="org/apache/geronimo/J2EEDeployer"
00:56:23,771 INFO  [LocalConfigStore:config-store] Loaded Configuration geronimo.config:name="org/apache/geronimo/DeployerSystem"
00:56:23,811 INFO  [Configuration] Started configuration org/apache/geronimo/DeployerSystem
00:56:23,821 INFO  [ReadOnlyRepository] Repository root is file:/C:/projs/geronimo/modules/assembly/target/geronimo-1.0-SNAPSHOT/repository/
00:56:24,032 ERROR [GBeanInstance] Problem in doFail of geronimo.config:name="org/apache/geronimo/J2EEDeployer"
java.lang.NullPointerException
        at org.apache.geronimo.kernel.config.Configuration.shutdown(Configuration.java:383)
        at org.apache.geronimo.kernel.config.Configuration.doFail(Configuration.java:403)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:869)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:328)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:111)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:133)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:503)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:207)
        at org.apache.geronimo.system.main.Daemon.main(Daemon.java:206)
00:56:24,222 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: objectName="geronimo.config:name="org/apache/geronimo/J2EEDeployer""
java.lang.NoClassDefFoundError: org/apache/geronimo/common/DeploymentException
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2365)
        at java.lang.Class.getMethod0(Class.java:2611)
        at java.lang.Class.getMethod(Class.java:1579)
        at org.apache.geronimo.gbean.runtime.GBeanOperation.<init>(GBeanOperation.java:90)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.<init>(GBeanInstance.java:252)
        at org.apache.geronimo.kernel.basic.BasicKernel.loadGBean(BasicKernel.java:196)
        at org.apache.geronimo.kernel.config.Configuration.doStart(Configuration.java:283)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:850)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:328)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:111)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:133)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:503)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:207)
        at org.apache.geronimo.system.main.Daemon.main(Daemon.java:206)
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/geronimo/common/DeploymentException
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2365)
        at java.lang.Class.getMethod0(Class.java:2611)
        at java.lang.Class.getMethod(Class.java:1579)
        at org.apache.geronimo.gbean.runtime.GBeanOperation.<init>(GBeanOperation.java:90)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.<init>(GBeanInstance.java:252)
        at org.apache.geronimo.kernel.basic.BasicKernel.loadGBean(BasicKernel.java:196)
        at org.apache.geronimo.kernel.config.Configuration.doStart(Configuration.java:283)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:850)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:328)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:111)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:133)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:503)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:207)
        at org.apache.geronimo.system.main.Daemon.main(Daemon.java:206)
00:56:24,242 INFO  [Daemon] Server shutdown begun
00:56:24,242 INFO  [BasicKernel] Starting kernel shutdown
00:56:24,252 INFO  [Configuration] Stopping configuration org/apache/geronimo/DeployerSystem
00:56:24,332 INFO  [RMIRegistryService] Stopped RMI Registry
00:56:24,342 INFO  [Configuration] Stopping configuration org/apache/geronimo/System
00:56:24,352 ERROR [GBeanInstance] GBeanInstance should already be stopped before die() is called: objectName=geronimo.config:name="org/apache/geronimo/J2EEDeployer" state=stopping
00:56:24,352 INFO  [BasicKernel] Kernel shutdown complete
00:56:24,352 INFO  [Daemon] Server shutdown completed

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Re: [jira] Created: (GERONIMO-673) java.lang.NoClassDefFoundError: org/apache/geronimo/common/DeploymentException at org/apache/geronimo/J2EEDeployer startup

Posted by Jacek Laskowski <jl...@apache.org>.
Jeremy Boynes wrote:

> I started on this as part of the packaging work but ran into a set of 
> regressions in the plugins caused by Dain's kernel changes. Fixing those 
> now.

Hi Jeremy,

Does it mean that you'll take care of it and I shouldn't bother any longer?

The previous issue prevented me from going on with the NetBeans module 
so I could not do anything with it unless it's fixed or worked out. The 
idea of starting two configurations - RuntimeDeployer and a 
user-selected configuration - made for it. Going back to the module. I'd 
be happy to have it before J1.

> Jeremy

Jacek


Re: [jira] Created: (GERONIMO-673) java.lang.NoClassDefFoundError: org/apache/geronimo/common/DeploymentException at org/apache/geronimo/J2EEDeployer startup

Posted by Jeremy Boynes <jb...@apache.org>.
The J2EEDeployer requires the DeployerSystem config to run rather then 
than System config. The classes loaded by the MCP references are not 
listed as dependencies in the configuration and so will not be available.

We need a common "runtime" environment that provides the infrastructure 
needed to manage configurations - basically, a service model including 
implementations of Repository, ConfigurationManager and a 
ConfigurationStore. With that in place other configurations can be 
loaded and run as needed.

I started on this as part of the packaging work but ran into a set of 
regressions in the plugins caused by Dain's kernel changes. Fixing those 
now.

--
Jeremy

Jacek Laskowski (JIRA) wrote:
> java.lang.NoClassDefFoundError: org/apache/geronimo/common/DeploymentException at org/apache/geronimo/J2EEDeployer startup
> --------------------------------------------------------------------------------------------------------------------------
> 
>          Key: GERONIMO-673
>          URL: http://issues.apache.org/jira/browse/GERONIMO-673
>      Project: Geronimo
>         Type: Bug
>   Components: deployment  
>     Versions: 1.0-M4    
>     Reporter: Jacek Laskowski
> 
> 
> $ java -jar bin/server.jar org/apache/geronimo/J2EEDeployer
> 00:56:22,760 INFO  [Daemon] Server startup begun
> 00:56:22,770 INFO  [Daemon] java.endorsed.dirs=c:\apps\j2sdk15\jre\lib\endorsed;C:\projs\geronimo\modules\assembly\target\geronimo-1.0-SNAPSHOT\lib\endorsed
> 00:56:22,940 INFO  [BasicKernel] Starting boot
> 00:56:23,110 INFO  [BasicKernel] Booted
> 00:56:23,321 INFO  [Configuration] Started configuration org/apache/geronimo/System
> 00:56:23,431 INFO  [ReadOnlyRepository] Repository root is file:/C:/projs/geronimo/modules/assembly/target/geronimo-1.0-SNAPSHOT/repository/
> 00:56:23,741 INFO  [RMIRegistryService] Started RMI Registry on port 1099
> 00:56:23,761 INFO  [LocalConfigStore:config-store] Loaded Configuration geronimo.config:name="org/apache/geronimo/J2EEDeployer"
> 00:56:23,771 INFO  [LocalConfigStore:config-store] Loaded Configuration geronimo.config:name="org/apache/geronimo/DeployerSystem"
> 00:56:23,811 INFO  [Configuration] Started configuration org/apache/geronimo/DeployerSystem
> 00:56:23,821 INFO  [ReadOnlyRepository] Repository root is file:/C:/projs/geronimo/modules/assembly/target/geronimo-1.0-SNAPSHOT/repository/
> 00:56:24,032 ERROR [GBeanInstance] Problem in doFail of geronimo.config:name="org/apache/geronimo/J2EEDeployer"
> java.lang.NullPointerException
>         at org.apache.geronimo.kernel.config.Configuration.shutdown(Configuration.java:383)
>         at org.apache.geronimo.kernel.config.Configuration.doFail(Configuration.java:403)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:869)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:328)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:111)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:133)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:503)
>         at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:207)
>         at org.apache.geronimo.system.main.Daemon.main(Daemon.java:206)
> 00:56:24,222 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: objectName="geronimo.config:name="org/apache/geronimo/J2EEDeployer""
> java.lang.NoClassDefFoundError: org/apache/geronimo/common/DeploymentException
>         at java.lang.Class.getDeclaredMethods0(Native Method)
>         at java.lang.Class.privateGetDeclaredMethods(Class.java:2365)
>         at java.lang.Class.getMethod0(Class.java:2611)
>         at java.lang.Class.getMethod(Class.java:1579)
>         at org.apache.geronimo.gbean.runtime.GBeanOperation.<init>(GBeanOperation.java:90)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.<init>(GBeanInstance.java:252)
>         at org.apache.geronimo.kernel.basic.BasicKernel.loadGBean(BasicKernel.java:196)
>         at org.apache.geronimo.kernel.config.Configuration.doStart(Configuration.java:283)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:850)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:328)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:111)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:133)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:503)
>         at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:207)
>         at org.apache.geronimo.system.main.Daemon.main(Daemon.java:206)
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/geronimo/common/DeploymentException
>         at java.lang.Class.getDeclaredMethods0(Native Method)
>         at java.lang.Class.privateGetDeclaredMethods(Class.java:2365)
>         at java.lang.Class.getMethod0(Class.java:2611)
>         at java.lang.Class.getMethod(Class.java:1579)
>         at org.apache.geronimo.gbean.runtime.GBeanOperation.<init>(GBeanOperation.java:90)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.<init>(GBeanInstance.java:252)
>         at org.apache.geronimo.kernel.basic.BasicKernel.loadGBean(BasicKernel.java:196)
>         at org.apache.geronimo.kernel.config.Configuration.doStart(Configuration.java:283)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:850)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:328)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:111)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:133)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:503)
>         at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:207)
>         at org.apache.geronimo.system.main.Daemon.main(Daemon.java:206)
> 00:56:24,242 INFO  [Daemon] Server shutdown begun
> 00:56:24,242 INFO  [BasicKernel] Starting kernel shutdown
> 00:56:24,252 INFO  [Configuration] Stopping configuration org/apache/geronimo/DeployerSystem
> 00:56:24,332 INFO  [RMIRegistryService] Stopped RMI Registry
> 00:56:24,342 INFO  [Configuration] Stopping configuration org/apache/geronimo/System
> 00:56:24,352 ERROR [GBeanInstance] GBeanInstance should already be stopped before die() is called: objectName=geronimo.config:name="org/apache/geronimo/J2EEDeployer" state=stopping
> 00:56:24,352 INFO  [BasicKernel] Kernel shutdown complete
> 00:56:24,352 INFO  [Daemon] Server shutdown completed
> 


[jira] Closed: (GERONIMO-673) java.lang.NoClassDefFoundError: org/apache/geronimo/common/DeploymentException at org/apache/geronimo/J2EEDeployer startup

Posted by "Aaron Mulder (JIRA)" <de...@geronimo.apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMO-673?page=all ]
     
Aaron Mulder closed GERONIMO-673:
---------------------------------

    Fix Version: 1.0-M5
     Resolution: Cannot Reproduce

Does not seem to be a problem any more (tried JDK 1.5 too)

> java.lang.NoClassDefFoundError: org/apache/geronimo/common/DeploymentException at org/apache/geronimo/J2EEDeployer startup
> --------------------------------------------------------------------------------------------------------------------------
>
>          Key: GERONIMO-673
>          URL: http://issues.apache.org/jira/browse/GERONIMO-673
>      Project: Geronimo
>         Type: Bug
>   Components: deployment
>     Versions: 1.0-M4
>     Reporter: Jacek Laskowski
>      Fix For: 1.0-M5

>
> $ java -jar bin/server.jar org/apache/geronimo/J2EEDeployer
> 00:56:22,760 INFO  [Daemon] Server startup begun
> 00:56:22,770 INFO  [Daemon] java.endorsed.dirs=c:\apps\j2sdk15\jre\lib\endorsed;C:\projs\geronimo\modules\assembly\target\geronimo-1.0-SNAPSHOT\lib\endorsed
> 00:56:22,940 INFO  [BasicKernel] Starting boot
> 00:56:23,110 INFO  [BasicKernel] Booted
> 00:56:23,321 INFO  [Configuration] Started configuration org/apache/geronimo/System
> 00:56:23,431 INFO  [ReadOnlyRepository] Repository root is file:/C:/projs/geronimo/modules/assembly/target/geronimo-1.0-SNAPSHOT/repository/
> 00:56:23,741 INFO  [RMIRegistryService] Started RMI Registry on port 1099
> 00:56:23,761 INFO  [LocalConfigStore:config-store] Loaded Configuration geronimo.config:name="org/apache/geronimo/J2EEDeployer"
> 00:56:23,771 INFO  [LocalConfigStore:config-store] Loaded Configuration geronimo.config:name="org/apache/geronimo/DeployerSystem"
> 00:56:23,811 INFO  [Configuration] Started configuration org/apache/geronimo/DeployerSystem
> 00:56:23,821 INFO  [ReadOnlyRepository] Repository root is file:/C:/projs/geronimo/modules/assembly/target/geronimo-1.0-SNAPSHOT/repository/
> 00:56:24,032 ERROR [GBeanInstance] Problem in doFail of geronimo.config:name="org/apache/geronimo/J2EEDeployer"
> java.lang.NullPointerException
>         at org.apache.geronimo.kernel.config.Configuration.shutdown(Configuration.java:383)
>         at org.apache.geronimo.kernel.config.Configuration.doFail(Configuration.java:403)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:869)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:328)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:111)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:133)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:503)
>         at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:207)
>         at org.apache.geronimo.system.main.Daemon.main(Daemon.java:206)
> 00:56:24,222 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: objectName="geronimo.config:name="org/apache/geronimo/J2EEDeployer""
> java.lang.NoClassDefFoundError: org/apache/geronimo/common/DeploymentException
>         at java.lang.Class.getDeclaredMethods0(Native Method)
>         at java.lang.Class.privateGetDeclaredMethods(Class.java:2365)
>         at java.lang.Class.getMethod0(Class.java:2611)
>         at java.lang.Class.getMethod(Class.java:1579)
>         at org.apache.geronimo.gbean.runtime.GBeanOperation.<init>(GBeanOperation.java:90)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.<init>(GBeanInstance.java:252)
>         at org.apache.geronimo.kernel.basic.BasicKernel.loadGBean(BasicKernel.java:196)
>         at org.apache.geronimo.kernel.config.Configuration.doStart(Configuration.java:283)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:850)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:328)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:111)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:133)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:503)
>         at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:207)
>         at org.apache.geronimo.system.main.Daemon.main(Daemon.java:206)
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/geronimo/common/DeploymentException
>         at java.lang.Class.getDeclaredMethods0(Native Method)
>         at java.lang.Class.privateGetDeclaredMethods(Class.java:2365)
>         at java.lang.Class.getMethod0(Class.java:2611)
>         at java.lang.Class.getMethod(Class.java:1579)
>         at org.apache.geronimo.gbean.runtime.GBeanOperation.<init>(GBeanOperation.java:90)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.<init>(GBeanInstance.java:252)
>         at org.apache.geronimo.kernel.basic.BasicKernel.loadGBean(BasicKernel.java:196)
>         at org.apache.geronimo.kernel.config.Configuration.doStart(Configuration.java:283)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:850)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:328)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:111)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:133)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:503)
>         at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:207)
>         at org.apache.geronimo.system.main.Daemon.main(Daemon.java:206)
> 00:56:24,242 INFO  [Daemon] Server shutdown begun
> 00:56:24,242 INFO  [BasicKernel] Starting kernel shutdown
> 00:56:24,252 INFO  [Configuration] Stopping configuration org/apache/geronimo/DeployerSystem
> 00:56:24,332 INFO  [RMIRegistryService] Stopped RMI Registry
> 00:56:24,342 INFO  [Configuration] Stopping configuration org/apache/geronimo/System
> 00:56:24,352 ERROR [GBeanInstance] GBeanInstance should already be stopped before die() is called: objectName=geronimo.config:name="org/apache/geronimo/J2EEDeployer" state=stopping
> 00:56:24,352 INFO  [BasicKernel] Kernel shutdown complete
> 00:56:24,352 INFO  [Daemon] Server shutdown completed

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira