geronimo-dev mailing list archives

[jira] Created: (GERONIMO-3466) car-maven-plugin can not generate server plugin which includes EJB

Date

Tue, 11 Sep 2007 02:43:29 GMT

car-maven-plugin can not generate server plugin which includes EJB
------------------------------------------------------------------
Key: GERONIMO-3466
URL: https://issues.apache.org/jira/browse/GERONIMO-3466
Project: Geronimo
Issue Type: Bug
Security Level: public (Regular issues)
Components: car-maven-plugin
Affects Versions: 2.0.1
Reporter: YunFeng Ma
Fix For: 2.0.x
openejb-deployer configuration depends on openejb configuration, and openejb configuration
depends on j2ee-server configuration. That means car-maven-plugin has to start all the depended
configurations, not only the openejb-deployer configuration. This caused the following error.
{code}
[INFO] Scanning for projects...
[INFO] -------------------------------------------------------------------------
---
[INFO] Building daytrader-derby-tomcat
[INFO] task-segment: [install]
[INFO] -------------------------------------------------------------------------
---
[INFO] [dependency:unpack {execution: unpack-distribution}]
[INFO] Configured Artifact: org.apache.geronimo.daytrader:daytrader-ear:2.0:ear
[INFO] daytrader-ear-2.0.ear already unpacked.
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [car:prepare-plan]
[INFO] Generated: F:\WASCE\samples_v2\plugins\daytrader-derby-tomcat\target\plan
\plan.xml
log4j:WARN No appenders could be found for logger (org.codehaus.mojo.pluginsuppo
rt.logging.Logging).
log4j:WARN Please initialize the log4j system properly.
[INFO] [car:package]
[INFO] Packaging module configuration: F:\WASCE\samples_v2\plugins\daytrader-der
by-tomcat\target\plan\plan.xml
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] start of org.apache.geronimo.configs/openejb-deployer/2.0.1/car failed
Configuration org.apache.geronimo.configs/j2ee-system/2.0.1/car failed to start
due to the following reasons:
The service ServiceModule=org.apache.geronimo.configs/j2ee-system/2.0.1/car,j2
eeType=GBean,name=ServerInfo did not start because Could not determine geronimo
installation directory
The service ServiceModule=org.apache.geronimo.configs/j2ee-system/2.0.1/car,j2
eeType=Repository,name=Repository did not start because org.apache.geronimo.conf
igs/j2ee-system/2.0.1/car?ServiceModule=org.apache.geronimo.configs/j2ee-system/
2.0.1/car,j2eeType=GBean,name=ServerInfo did not start.
The service ServiceModule=org.apache.geronimo.configs/j2ee-system/2.0.1/car,j2
eeType=ConfigurationStore,name=Local did not start because org.apache.geronimo.c
onfigs/j2ee-system/2.0.1/car?ServiceModule=org.apache.geronimo.configs/j2ee-syst
em/2.0.1/car,j2eeType=Repository,name=Repository did not start.
The service ServiceModule=org.apache.geronimo.configs/j2ee-system/2.0.1/car,j2
eeType=AttributeStore,name=AttributeManager did not start because org.apache.ger
onimo.configs/j2ee-system/2.0.1/car?ServiceModule=org.apache.geronimo.configs/j2
ee-system/2.0.1/car,j2eeType=GBean,name=ServerInfo did not start.
The service ServiceModule=org.apache.geronimo.configs/j2ee-system/2.0.1/car,j2
eeType=ArtifactResolver,name=ArtifactResolver did not start because org.apache.g
eronimo.configs/j2ee-system/2.0.1/car?ServiceModule=org.apache.geronimo.configs/
j2ee-system/2.0.1/car,j2eeType=GBean,name=ServerInfo did not start.
The service ServiceModule=org.apache.geronimo.configs/j2ee-system/2.0.1/car,j2
eeType=ConfigurationManager,name=ConfigurationManager did not start because the
following dependent services did not start: [org.apache.geronimo.configs/j2ee-sy
stem/2.0.1/car?ServiceModule=org.apache.geronimo.configs/j2ee-system/2.0.1/car,j
2eeType=ArtifactResolver,name=ArtifactResolver, org.apache.geronimo.configs/j2ee
-system/2.0.1/car?ServiceModule=org.apache.geronimo.configs/j2ee-system/2.0.1/ca
r,j2eeType=AttributeStore,name=AttributeManager]
The service ServiceModule=org.apache.geronimo.configs/j2ee-system/2.0.1/car,j2
eeType=SystemLog,name=Logger did not start because org.apache.geronimo.configs/j
2ee-system/2.0.1/car?ServiceModule=org.apache.geronimo.configs/j2ee-system/2.0.1
/car,j2eeType=GBean,name=ServerInfo did not start.
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: start of org.apache.gero
nimo.configs/openejb-deployer/2.0.1/car failed
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:564)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:480)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:459)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:311)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:278)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: start of org.apache.g
eronimo.configs/openejb-deployer/2.0.1/car failed
at org.codehaus.mojo.pluginsupport.MojoSupport.execute(MojoSupport.java:
137)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:443)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:539)
... 16 more
Caused by: org.apache.geronimo.kernel.config.LifecycleException: start of org.ap
ache.geronimo.configs/openejb-deployer/2.0.1/car failed
at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startCon
figuration(SimpleConfigurationManager.java:547)
at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startCon
figuration(SimpleConfigurationManager.java:511)
at org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastCla
ssByCGLIB$$ce77a924.invoke(<generated>)
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod
Invoker.java:38)
at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio
n.java:124)
at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.
java:830)
at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:5
7)
at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperat
ionInvoker.java:35)
at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(Pro
xyMethodInterceptor.java:96)
at org.apache.geronimo.kernel.config.ConfigurationManager$$EnhancerByCGL
IB$$c499ccca.startConfiguration(<generated>)
at org.apache.geronimo.mavenplugins.car.PackageMojo.buildPackage(Package
Mojo.java:479)
at org.apache.geronimo.mavenplugins.car.PackageMojo.doExecute(PackageMoj
o.java:302)
at org.codehaus.mojo.pluginsupport.MojoSupport.execute(MojoSupport.java:
122)
... 18 more
Caused by: org.apache.geronimo.kernel.config.InvalidConfigException: Unknown sta
rt exception
at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfiguratio
nGBeans(ConfigurationUtil.java:514)
at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(Ke
rnelConfigurationManager.java:187)
at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startCon
figuration(SimpleConfigurationManager.java:530)
... 31 more
Caused by: org.apache.geronimo.gbean.InvalidConfigurationException: Configuratio
n org.apache.geronimo.configs/j2ee-system/2.0.1/car failed to start due to the f
ollowing reasons:
The service ServiceModule=org.apache.geronimo.configs/j2ee-system/2.0.1/car,j2
eeType=GBean,name=ServerInfo did not start because Could not determine geronimo
installation directory
The service ServiceModule=org.apache.geronimo.configs/j2ee-system/2.0.1/car,j2
eeType=Repository,name=Repository did not start because org.apache.geronimo.conf
igs/j2ee-system/2.0.1/car?ServiceModule=org.apache.geronimo.configs/j2ee-system/
2.0.1/car,j2eeType=GBean,name=ServerInfo did not start.
The service ServiceModule=org.apache.geronimo.configs/j2ee-system/2.0.1/car,j2
eeType=ConfigurationStore,name=Local did not start because org.apache.geronimo.c
onfigs/j2ee-system/2.0.1/car?ServiceModule=org.apache.geronimo.configs/j2ee-syst
em/2.0.1/car,j2eeType=Repository,name=Repository did not start.
The service ServiceModule=org.apache.geronimo.configs/j2ee-system/2.0.1/car,j2
eeType=AttributeStore,name=AttributeManager did not start because org.apache.ger
onimo.configs/j2ee-system/2.0.1/car?ServiceModule=org.apache.geronimo.configs/j2
ee-system/2.0.1/car,j2eeType=GBean,name=ServerInfo did not start.
The service ServiceModule=org.apache.geronimo.configs/j2ee-system/2.0.1/car,j2
eeType=ArtifactResolver,name=ArtifactResolver did not start because org.apache.g
eronimo.configs/j2ee-system/2.0.1/car?ServiceModule=org.apache.geronimo.configs/
j2ee-system/2.0.1/car,j2eeType=GBean,name=ServerInfo did not start.
The service ServiceModule=org.apache.geronimo.configs/j2ee-system/2.0.1/car,j2
eeType=ConfigurationManager,name=ConfigurationManager did not start because the
following dependent services did not start: [org.apache.geronimo.configs/j2ee-sy
stem/2.0.1/car?ServiceModule=org.apache.geronimo.configs/j2ee-system/2.0.1/car,j
2eeType=ArtifactResolver,name=ArtifactResolver, org.apache.geronimo.configs/j2ee
-system/2.0.1/car?ServiceModule=org.apache.geronimo.configs/j2ee-system/2.0.1/ca
r,j2eeType=AttributeStore,name=AttributeManager]
The service ServiceModule=org.apache.geronimo.configs/j2ee-system/2.0.1/car,j2
eeType=SystemLog,name=Logger did not start because org.apache.geronimo.configs/j
2ee-system/2.0.1/car?ServiceModule=org.apache.geronimo.configs/j2ee-system/2.0.1
/car,j2eeType=GBean,name=ServerInfo did not start.
at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfiguratio
nGBeans(ConfigurationUtil.java:477)
... 33 more
{code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.