geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christoph Sturm" <christoph.st...@gmail.com>
Subject Re: strange errormessage when trying to deploy a war (maybe a bug?) (1.1-rc)
Date Mon, 12 Jun 2006 18:01:02 GMT
http://issues.apache.org/jira/browse/GERONIMO-2108

On 6/12/06, David Jencks <david_jencks@yahoo.com> wrote:
> I think that's a bug, will try to investigate later today.  If you'd
> like to file a jira that would be helpful.  Can you see what happens
> if you include a <context-root> element before the message-destination?
>
> thanks
> david jencks
>
> On Jun 12, 2006, at 9:21 AM, Christoph Sturm wrote:
>
> > hey!
> >
> > If I try to deploy this geronimo-web on 1.1rc1 (j2ee-jetty or tomcat):
> >
> > <?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>
> >
> > i get a really strange stacktrace:
> > org.apache.geronimo.common.DeploymentException: xml problem for web
> > app .
> >        at
> > org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.getTomcatWeb
> > App(TomcatModuleBuilder.java:241)
> >        at
> > org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.createModule
> > (TomcatModuleBuilder.java:158)
> >        at
> > org.apache.geronimo.web.deployment.AbstractWebModuleBuilder.createModu
> > le(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.createModul
> > e(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.doDe
> > ploy(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.getTomcatWeb
> > App(TomcatModuleBuilder.java:234)
> >        ... 42 more
> >
> >
> > somehow my deployment namespace got replaced by the web-tomcat
> > namespace.
> > (I first tried with jetty, there it happens too, but with the
> > web-jetty namespace instead of the web-tomcat namespace)
> >
> > it seems as if some stylesheet that tries to convert the deployment
> > plan converts a bit too much :)
> >
> > regards
> > chris
> > --
> > christoph.sturm@gmail.com
>
>


-- 
christoph.sturm@gmail.com

Mime
View raw message