You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Trygve Hardersen <tr...@jotta.no> on 2009/07/28 10:01:16 UTC

wadi clustering - jetty7

Hi

I'm trying to get WADI clustering to work with Jetty7 and the latest
Geronimo 2.2 snapshot. I package our application as a WAR inside an EAR
which is then deployed as a CAR to Geronimo. With Jetty6 the difference
between the non-clustered and WADI-clustered plugins were:

1. Switch the Maven dependency and car-maven-plugin deploymentConfig from
org.apache.geronimo.configs/jetty6-deployer to
org.apache.geronimo.configs/jetty6-clustering-builder-wadi in pom.xml
2. Add <clustering-wadi/> to plan.xml

When I do this with Jetty7 I get the following build time error:

INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] could not package plugin

Embedded error: Could not locate web module gbean in web app configuration
No matches for referencePatterns:
[no.jotta.jgs.plugins/web-clustering-plugin_web-war.war/0.1-SNAPSHOT/car?#org.apache.geronimo.jetty7.WebAppContextWrapper]
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: could not package
plugin
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:703)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    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: could not package
plugin
    at
org.apache.geronimo.mavenplugins.car.PackageMojo.execute(PackageMojo.java:212)
    at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
    ... 16 more
Caused by: org.apache.geronimo.common.DeploymentException: Could not locate
web module gbean in web app configuration
    at
org.apache.geronimo.jetty7.cluster.wadi.builder.WADIJettyClusteringBuilder.extractWebModule(WADIJettyClusteringBuilder.java:128)
    at
org.apache.geronimo.jetty7.cluster.wadi.builder.WADIJettyClusteringBuilder.build(WADIJettyClusteringBuilder.java:111)
    at
org.apache.geronimo.deployment.NamespaceDrivenBuilderCollection.build(NamespaceDrivenBuilderCollection.java:46)
    at
org.apache.geronimo.jetty7.deployment.JettyModuleBuilder.addGBeans(JettyModuleBuilder.java:435)
    at
org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.addGBeans(SwitchingModuleBuilder.java:165)
    at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:652)
    at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:257)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
    at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:130)
    at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:850)
    at
org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:237)
    at
org.apache.geronimo.mavenplugins.car.PackageMojo.invokeDeployer(PackageMojo.java:483)
    at
org.apache.geronimo.mavenplugins.car.PackageMojo.buildPackage(PackageMojo.java:309)
    at
org.apache.geronimo.mavenplugins.car.PackageMojo.execute(PackageMojo.java:209)
    ... 18 more
Caused by: org.apache.geronimo.kernel.GBeanNotFoundException: No matches for
referencePatterns:
[no.jotta.jgs.plugins/web-clustering-plugin_web-war.war/0.1-SNAPSHOT/car?#org.apache.geronimo.jetty7.WebAppContextWrapper]
    at
org.apache.geronimo.kernel.config.Configuration.findGBeanData(Configuration.java:688)
    at
org.apache.geronimo.kernel.config.Configuration.findGBeanData(Configuration.java:645)
    at
org.apache.geronimo.jetty7.cluster.wadi.builder.WADIJettyClusteringBuilder.extractWebModule(WADIJettyClusteringBuilder.java:126)
    ... 35 more

I looked a bit in the source and it seems to me like the
WADIJettyClusteringBuilder is unable to find the WAR module (which is also
what it is saying). Am I missing something here, or could this be a bug
somewhere in Geronimo? I've tried many different dependency configurations
but I'm always getting the same error.

I have a sample application, used in GERONIMO-4756, that shows the problem.
It simply tries to deploy the web-plugin module using WADI clustering as
described above. Please let me know if I should create a bug for this.

Many thanks for your help and effort!

Trygve Hardersen
Jotta AS