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