You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by John Sisson <jr...@gmail.com> on 2006/06/18 12:42:10 UTC

Re: [VOTE] 1.1 Release - Daytrader deployment questions

Has anyone successfully deployed the DayTrader ear from the release 
candidate?

If so, what are the steps to deploy?

I have tried deploying with only the ear and got the error below.  I 
also tried deploying the ear using the 
daytrader\tags\1.1.0\plans\dayTrader-plan.xml file and also get a 
similar error.

I also noticed that the geronimo\daytrader\tags\1.1.0\README 
instructions seem out of date. E.G. talks about running createDB.bat or 
createDB.sh.

Will DayTrader require files other than the ear to deploy?  If so, how 
will users get their hands on those files?

Is there a reason why we shouldn't have a src distribution for DayTrader.

I'll vote when I can see it working.

Thanks,

John

John Sisson wrote:
> Matt Hogstrom wrote:
>> All,
>>
>> I have created what I hope is the final release of Geronimo 1.1.  
>> There has been a lot of work that has gone into this release (please 
>> review the RELEASE-NOTES).  Here are the final release candidates for 
>> your review.
>>
>> *DayTrader Application*
>> http://people.apache.org/~hogstrom/1.1-final/daytrader-ear-1.1.ear
>>
> I tried deploying the daytrader-ear-1.1.ear file from the console using 
> the j2ee-tomcat assembly (only specifying the archive name, no plan 
> specified) and got an xml error.  Looks like there are some old style 
> deployment descriptors in there.
> 
> org.apache.geronimo.common.DeploymentException: xml problem for web app 
> web.war
>    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:118) 
> 
>    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$$1acbb967.createModule(<generated>) 
> 
>    at 
> org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.createModule(SwitchingModuleBuilder.java:141) 
> 
>    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$$1acbb967.createModule(<generated>) 
> 
>    at 
> org.apache.geronimo.j2ee.deployment.EARConfigBuilder.addModules(EARConfigBuilder.java:751) 
> 
>    at 
> org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getEarPlan(EARConfigBuilder.java:364) 
> 
>    at 
> org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeploymentPlan(EARConfigBuilder.java:263) 
> 
>    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$$26b8c1d9.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:534)
> Caused by: org.apache.xmlbeans.XmlException: Invalid deployment 
> descriptor: [error: cvc-complex-type.3.2.1: Attribute not allowed (no 
> wildcards allowed): configId, error: cvc-complex-type.3.2.1: Attribute 
> not allowed (no wildcards allowed): parentId, error: 
> cvc-complex-type.2.4a: Expected elements 
> 'environment@http://geronimo.apache.org/xml/ns/deployment-1.1 
> 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 
> 'context-priority-classloader@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-1.1' 
> here]
> Descriptor: <xml-fragment configId="TradeWeb" parentId="Trade" 
> xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.1" 
> xmlns:tom="http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-1.1">
>  <tom:context-priority-classloader>false</tom:context-priority-classloader>
>  <naming:resource-ref>
>    <naming:ref-name>jdbc/TradeDataSource</naming:ref-name>
>    <naming:resource-link>TradeDataSource</naming:resource-link>
>  </naming:resource-ref>
> </xml-fragment>
>    at 
> org.apache.geronimo.schema.SchemaConversionUtils.validateDD(SchemaConversionUtils.java:605) 
> 
>    at 
> org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.getTomcatWebApp(TomcatModuleBuilder.java:234) 
> 
>    ... 44 more
> 
> 
>> <SNIP>
>>
>> Matt
>>
> 
> 

Re: [VOTE] 1.1 Release - Daytrader deployment questions

Posted by Matt Hogstrom <ma...@hogstrom.org>.
John,

My thinking was to release the daytrader-ear-1.1.ear into the repo as it is really the only part of 
the application that requires versioning.  However,  your points below hilight that a quick 1.1.1 on 
DayTrader with improved documentation is in order.  I propose we release the ear now and fix up a 
distributable package with the deployment descriptors for Geronimo, JBoss, etc. separately as a 1.1.1.

I'm so accustomed to using my own scripts and DDs I totally missed the issues you point out below.

Thanks.

John Sisson wrote:
> Has anyone successfully deployed the DayTrader ear from the release 
> candidate?
> 
> If so, what are the steps to deploy?
> 
> I have tried deploying with only the ear and got the error below.  I 
> also tried deploying the ear using the 
> daytrader\tags\1.1.0\plans\dayTrader-plan.xml file and also get a 
> similar error.
> 
> I also noticed that the geronimo\daytrader\tags\1.1.0\README 
> instructions seem out of date. E.G. talks about running createDB.bat or 
> createDB.sh.
> 
> Will DayTrader require files other than the ear to deploy?  If so, how 
> will users get their hands on those files?
> 
> Is there a reason why we shouldn't have a src distribution for DayTrader.
> 
> I'll vote when I can see it working.
> 
> Thanks,
> 
> John
> 
> John Sisson wrote:
>> Matt Hogstrom wrote:
>>> All,
>>>
>>> I have created what I hope is the final release of Geronimo 1.1.  
>>> There has been a lot of work that has gone into this release (please 
>>> review the RELEASE-NOTES).  Here are the final release candidates for 
>>> your review.
>>>
>>> *DayTrader Application*
>>> http://people.apache.org/~hogstrom/1.1-final/daytrader-ear-1.1.ear
>>>
>> I tried deploying the daytrader-ear-1.1.ear file from the console 
>> using the j2ee-tomcat assembly (only specifying the archive name, no 
>> plan specified) and got an xml error.  Looks like there are some old 
>> style deployment descriptors in there.
>>
>> org.apache.geronimo.common.DeploymentException: xml problem for web 
>> app web.war
>>    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:118) 
>>
>>    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$$1acbb967.createModule(<generated>) 
>>
>>    at 
>> org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.createModule(SwitchingModuleBuilder.java:141) 
>>
>>    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$$1acbb967.createModule(<generated>) 
>>
>>    at 
>> org.apache.geronimo.j2ee.deployment.EARConfigBuilder.addModules(EARConfigBuilder.java:751) 
>>
>>    at 
>> org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getEarPlan(EARConfigBuilder.java:364) 
>>
>>    at 
>> org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeploymentPlan(EARConfigBuilder.java:263) 
>>
>>    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$$26b8c1d9.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:534)
>> Caused by: org.apache.xmlbeans.XmlException: Invalid deployment 
>> descriptor: [error: cvc-complex-type.3.2.1: Attribute not allowed (no 
>> wildcards allowed): configId, error: cvc-complex-type.3.2.1: Attribute 
>> not allowed (no wildcards allowed): parentId, error: 
>> cvc-complex-type.2.4a: Expected elements 
>> 'environment@http://geronimo.apache.org/xml/ns/deployment-1.1 
>> 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 
>> 'context-priority-classloader@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-1.1' 
>> here]
>> Descriptor: <xml-fragment configId="TradeWeb" parentId="Trade" 
>> xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.1" 
>> xmlns:tom="http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-1.1">
>>  <tom:context-priority-classloader>false</tom:context-priority-classloader> 
>>
>>  <naming:resource-ref>
>>    <naming:ref-name>jdbc/TradeDataSource</naming:ref-name>
>>    <naming:resource-link>TradeDataSource</naming:resource-link>
>>  </naming:resource-ref>
>> </xml-fragment>
>>    at 
>> org.apache.geronimo.schema.SchemaConversionUtils.validateDD(SchemaConversionUtils.java:605) 
>>
>>    at 
>> org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.getTomcatWebApp(TomcatModuleBuilder.java:234) 
>>
>>    ... 44 more
>>
>>
>>> <SNIP>
>>>
>>> Matt
>>>
>>
>>
> 
> 
>