geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Radoslava Bakalova <rbakal...@yahoo.com>
Subject Problem deploying Daytrader1.1 using the Geronimo Eclipse Plugin1.1.0
Date Tue, 18 Jul 2006 13:36:42 GMT
Hi Everyone,

Has anyone tried to deploy Daytrader1.1 on Geronimo1.1
via the Geronimo1.1 Eclipse plug-in?


I am using g-eclipse-plugin-1.1-deployable-RC10.zip p
and  wtp 1.5.
If I import the Daytrader1.1 ear file in my Eclipse
workspace and try to deploy it on the Geronimo1.1
(without making any changes to the ear), I get the
following a deployment error:

“java.lang.Exception: xml problem for web app web.war
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$$36b45905.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$$36b45905.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$$42a16177.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.kernel.KernelGBean.invoke(KernelGBean.java:338)
	at
org.apache.geronimo.kernel.KernelGBean$$FastClassByCGLIB$$1cccefc9.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.system.jmx.MBeanGBeanBridge.invoke(MBeanGBeanBridge.java:168)
	at
com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(Unknown
Source)
	at
com.sun.jmx.mbeanserver.MetaDataImpl.invoke(Unknown
Source)
	at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown
Source)
	at
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown
Source)
	at
javax.management.remote.rmi.RMIConnectionImpl.doOperation(Unknown
Source)
	at
javax.management.remote.rmi.RMIConnectionImpl.access$100(Unknown
Source)
	at
javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(Unknown
Source)
	at java.security.AccessController.doPrivileged(Native
Method)
	at
javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(Unknown
Source)
	at
javax.management.remote.rmi.RMIConnectionImpl.invoke(Unknown
Source)
	at
sun.reflect.GeneratedMethodAccessor162.invoke(Unknown
Source)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at sun.rmi.server.UnicastServerRef.dispatch(Unknown
Source)
	at sun.rmi.transport.Transport$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native
Method)
	at sun.rmi.transport.Transport.serviceCall(Unknown
Source)
	at
sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown
Source)
	at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown
Source)
	at java.lang.Thread.run(Unknown Source)
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)
	... 69 more

	at
org.apache.geronimo.st.core.GenericGeronimoServerBehaviour.doFail(GenericGeronimoServerBehaviour.java:218)
	at
org.apache.geronimo.st.core.GenericGeronimoServerBehaviour.doDeploy(GenericGeronimoServerBehaviour.java:145)
	at
org.apache.geronimo.st.core.GenericGeronimoServerBehaviour.invokeCommand(GenericGeronimoServerBehaviour.java:113)
	at
org.apache.geronimo.st.core.GenericGeronimoServerBehaviour.publishModule(GenericGeronimoServerBehaviour.java:94)
	at
org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:672)
	at
org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourDelegate.java:752)
	at
org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:610)
	at
org.eclipse.wst.server.core.internal.Server.doPublish(Server.java:803)
	at
org.eclipse.wst.server.core.internal.Server.publish(Server.java:791)
	at
org.eclipse.wst.server.core.internal.PublishServerJob.run(PublishServerJob.java:145)
	at
org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)."

It seems that the Eclipse plugin is looking for a lot
more elements and attributes in the geronimo-web.xml
deployment descriptor then the existing ones.

However, if I export this same project as an ear file
and deploy it on Geronimo1.1, it deploys fine.

Does anyone know how can I successfully deploy
Daytrader1.1 directly from Eclipse?

Thanks,
Slava



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Mime
View raw message