geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lin Sun" <linsun....@gmail.com>
Subject RE: Problem deploying Daytrader1.1 using the Geronimo Eclipse Plugin1.1.0
Date Mon, 24 Jul 2006 14:57:16 GMT
Hi Slava, Are you using the latest daytrader 1.1 plan?  From the trace, your
plan has parentId and context-priority-classloader which are no longer used
in 1.1.

Lin

-----Original Message-----
From: Radoslava Bakalova [mailto:rbakalova@yahoo.com] 
Sent: Tuesday, July 18, 2006 9:37 AM
To: user@geronimo.apache.org
Subject: Problem deploying Daytrader1.1 using the Geronimo Eclipse
Plugin1.1.0

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(To
mcatModuleBuilder.java:241)
	at
org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.createModule(Tomca
tModuleBuilder.java:158)
	at
org.apache.geronimo.web.deployment.AbstractWebModuleBuilder.createModule(Abs
tractWebModuleBuilder.java:118)
	at
org.apache.geronimo.web.deployment.AbstractWebModuleBuilder$$FastClassByCGLI
B$$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:81
7)
	at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
	at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvo
ker.java:35)
	at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMetho
dInterceptor.java:96)
	at
org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$36b45905
.createModule(<generated>)
	at
org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.createModule(Swit
chingModuleBuilder.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:81
7)
	at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
	at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvo
ker.java:35)
	at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMetho
dInterceptor.java:96)
	at
org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$36b45905
.createModule(<generated>)
	at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.addModules(EARConfigBui
lder.java:751)
	at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getEarPlan(EARConfigBui
lder.java:364)
	at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeploymentPlan(EARCo
nfigBuilder.java:263)
	at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e5
6ec6.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:81
7)
	at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
	at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvo
ker.java:35)
	at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMetho
dInterceptor.java:96)
	at
org.apache.geronimo.deployment.ConfigurationBuilder$$EnhancerByCGLIB$$42a161
77.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:85
2)
	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(<g
enerated>)
	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:85
2)
	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(Unknow
n
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/tom
cat-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(SchemaConversion
Utils.java:605)
	at
org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.getTomcatWebApp(To
mcatModuleBuilder.java:234)
	... 69 more

	at
org.apache.geronimo.st.core.GenericGeronimoServerBehaviour.doFail(GenericGer
onimoServerBehaviour.java:218)
	at
org.apache.geronimo.st.core.GenericGeronimoServerBehaviour.doDeploy(GenericG
eronimoServerBehaviour.java:145)
	at
org.apache.geronimo.st.core.GenericGeronimoServerBehaviour.invokeCommand(Gen
ericGeronimoServerBehaviour.java:113)
	at
org.apache.geronimo.st.core.GenericGeronimoServerBehaviour.publishModule(Gen
ericGeronimoServerBehaviour.java:94)
	at
org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(Serv
erBehaviourDelegate.java:672)
	at
org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(Ser
verBehaviourDelegate.java:752)
	at
org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBeha
viourDelegate.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.j
ava: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