You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "David Jencks (JIRA)" <de...@geronimo.apache.org> on 2006/06/13 03:21:32 UTC

[jira] Assigned: (GERONIMO-2108) web app deployment fails with strange error if geronimo-web.xml defines a message-destination

     [ http://issues.apache.org/jira/browse/GERONIMO-2108?page=all ]

David Jencks reassigned GERONIMO-2108:
--------------------------------------

    Assign To: David Jencks

> web app deployment fails with strange error if geronimo-web.xml defines a message-destination
> ---------------------------------------------------------------------------------------------
>
>          Key: GERONIMO-2108
>          URL: http://issues.apache.org/jira/browse/GERONIMO-2108
>      Project: Geronimo
>         Type: Bug
>     Security: public(Regular issues) 
>   Components: deployment
>     Versions: 1.1
>  Environment: geronimo 1.1-rc1 on jdk 1.4.2 on osx
>     Reporter: Christoph Sturm
>     Assignee: David Jencks

>
> deploying this geronimo-web.xml: 
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1"
>        xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.1"
>    xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1">
>    <dep:environment>
>        <dep:moduleId>
>       <dep:groupId>geronimo</dep:groupId>
>       <dep:artifactId>wtf</dep:artifactId>
>       <dep:version>1.1</dep:version>
>       <dep:type>war</dep:type>
>        </dep:moduleId>
>    </dep:environment>
>    <nam:message-destination>
>        <nam:message-destination-name>
>            x
>        </nam:message-destination-name>
>        <nam:admin-object-link>
>            y
>        </nam:admin-object-link>
>    </nam:message-destination>
> </web-app>
> results in this error message:
> org.apache.geronimo.common.DeploymentException: xml problem for web app .
>        at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.getTomcatWebApp(TomcatModuleBuilder.java:241)
>        at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.createModule(TomcatModuleBuilder.java:158)
>        at org.apache.geronimo.web.deployment.AbstractWebModuleBuilder.createModule(AbstractWebModuleBuilder.java:114)
>        at org.apache.geronimo.web.deployment.AbstractWebModuleBuilder$$FastClassByCGLIB$$459e0cc.invoke(<generated>)
>        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
>        at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
>        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)
>        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:817)
>        at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
>        at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
>        at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
>        at org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$23aaf839.createModule(<generated>)
>        at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.createModule(SwitchingModuleBuilder.java:94)
>        at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder$$FastClassByCGLIB$$d0c31844.invoke(<generated>)
>        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
>        at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
>        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)
>        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:817)
>        at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
>        at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
>        at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
>        at org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$23aaf839.createModule(<generated>)
>        at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeploymentPlan(EARConfigBuilder.java:275)
>        at org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e56ec6.invoke(<generated>)
>        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
>        at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
>        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)
>        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:817)
>        at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
>        at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
>        at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
>        at org.apache.geronimo.deployment.ConfigurationBuilder$$EnhancerByCGLIB$$2f9800ab.getDeploymentPlan(<generated>)
>        at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:232)
>        at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:124)
>        at org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invoke(<generated>)
>        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
>        at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
>        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)
>        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:852)
>        at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
>        at org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:106)
>        at org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:60)
>        at java.lang.Thread.run(Thread.java:552)
> Caused by: org.apache.xmlbeans.XmlException: Invalid deployment
> descriptor: [error: cvc-complex-type.2.4a: Expected elements
> 'context-root@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-1.1
> web-container@http://geronimo.apache.org/xml/ns/naming-1.1
> host@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-1.1
> cross-context@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-1.1
> disable-cookies@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-1.1
> valve-chain@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-1.1
> tomcat-realm@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-1.1
> manager@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-1.1
> cluster@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-1.1
> gbean-ref@http://geronimo.apache.org/xml/ns/naming-1.1
> ejb-ref@http://geronimo.apache.org/xml/ns/naming-1.1
> ejb-local-ref@http://geronimo.apache.org/xml/ns/naming-1.1
> service-ref@http://geronimo.apache.org/xml/ns/naming-1.1
> resource-ref@http://geronimo.apache.org/xml/ns/naming-1.1
> resource-env-ref@http://geronimo.apache.org/xml/ns/naming-1.1
> message-destination@http://geronimo.apache.org/xml/ns/naming-1.1
> security-realm-name@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-1.1
> gbean@http://geronimo.apache.org/xml/ns/deployment-1.1' instead of
> 'message-destination@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-1.1'
> here]
> Descriptor: <xml-fragment
> xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.1"
> xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1"
> xmlns:tom="http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-1.1">
>  <dep:environment>
>    <dep:moduleId>
>      <dep:groupId>geronimo</dep:groupId>
>      <dep:artifactId>wtf</dep:artifactId>
>      <dep:version>1.1</dep:version>
>      <dep:type>war</dep:type>
>    </dep:moduleId>
>  </dep:environment>
>  <tom:message-destination>
>    <tom:message-destination-name>x</tom:message-destination-name>
>    <tom:admin-object-link>y</tom:admin-object-link>
>  </tom:message-destination>
> </xml-fragment>
>        at org.apache.geronimo.schema.SchemaConversionUtils.validateDD(SchemaConversionUtils.java:604)
>        at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.getTomcatWebApp(TomcatModuleBuilder.java:234)
>        ... 42 more
> the message-destination element got a different namespace somehow. It seems something goes wrong when converting the deployment plan.
> Adding a <content-root> before the message-destination by David Jencks suggestion doesnt work around the problem.

-- 
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