[ https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12626323#action_12626323 ]
Tim McConnell commented on GERONIMODEVTOOLS-500: ------------------------------------------------ Hi Forrest, thanks for the information. I'm finally able to reproduce this problem. It only fails when using the 2.0.1 version of the server -- not the 2.0.2 version. It appears that the geronimo-web schema changed slightly between the 2.0.1 and 2.0.2 versions of the server, and the Geronimo v2.0 server adapter uses the "http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1" namespace that is not supported on the 2.0.1 Geronimo server. Thus, there are a number of alternatives: 1. Update to the 2.0.2 version of the server 2. Stay at 2.0.1 version of the server, but update your geronimo-web deployment plan to use the "http://geronimo.apache.org/xml/ns/j2ee/web-2.0" namespace (instead of "http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1"). 3. Since there are at least two possible work-arounds I haven't yet pursued a code change. And at this point, I'm more inclined to document this as a restriction on the GEP v2.0 server adapter and not change any code (primarily because the GEP 2.0 and 2.1 shares the same code for the jst.web facet and I'd hate to have a separate version for 2.1.x, 2.0.1, and 2.0.2 versions of the server). However, I could probably be convinced otherwise if the two work-arounds above are not acceptable. Thanks > geronimo-web.xml generated by Geronimo v2.0 Server Adapter of GEP 2.1.2 in > Ganymede has wrong web deployment namespace > ---------------------------------------------------------------------------------------------------------------------- > > Key: GERONIMODEVTOOLS-500 > URL: > https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-500 > Project: Geronimo-Devtools > Issue Type: Bug > Components: eclipse-plugin > Affects Versions: 2.1.2 > Environment: OS: XP SP2 > Eclipse: Ganymede JEE package > JDK: IBM SDK 5 SR6b > GEP: 2.1.2 > Reporter: Forrest Xia > Assignee: Tim McConnell > Priority: Minor > Attachments: logs.zip > > > Steps: > 1. Install both geronimo server adapters v2.0 and v2.1 in GEP 2.1.2 through > "Download additional server adapters" in Ganymede > 2. Create a dynamic web project using Geronimo v2.0 server runtime > 3. Make this project "Run on Server" > Symptom: > An error shows the web deployment namespace is not correct as follows: > Distribution of module failed. See log for details. > org.apache.geronimo.common.DeploymentException: Cannot handle web plan with > namespace http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1 -- expecting > http://geronimo.apache.org/xml/ns/j2ee/web-2.0 or > http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0 > org.apache.geronimo.common.DeploymentException: > org.apache.geronimo.common.DeploymentException: Cannot handle web plan with > namespace http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1 -- expecting > http://geronimo.apache.org/xml/ns/j2ee/web-2.0 or > http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0 > at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:385) > at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:126) > 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:124) > at > org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:865) > at > org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239) > at org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:342) > 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:124) > at > org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:865) > 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(DynamicMetaDataImpl.java:231) > at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:238) > at > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:833) > at > com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:802) > at > javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1423) > at > javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectionImpl.java:96) > at > javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1260) > at > java.security.AccessController.doPrivileged(AccessController.java:279) > at > javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1363) > at > javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:797) > at sun.reflect.GeneratedMethodAccessor167.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:618) > at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:309) > at sun.rmi.transport.Transport$1.run(Transport.java:168) > at > java.security.AccessController.doPrivileged(AccessController.java:279) > at sun.rmi.transport.Transport.serviceCall(Transport.java:164) > at > sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:506) > at > sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.handleRequest(TCPTransport.java:838) > at > sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:912) > at java.lang.Thread.run(Thread.java:810) > Caused by: org.apache.geronimo.common.DeploymentException: Cannot handle > web plan with namespace http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1 -- > expecting http://geronimo.apache.org/xml/ns/j2ee/web-2.0 or > http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0 > at > org.apache.geronimo.web.deployment.GenericToSpecificPlanConverter.convertToSpecificPlan(GenericToSpecificPlanConverter.java:60) > at > org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.getTomcatWebApp(TomcatModuleBuilder.java:269) > at > org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.createModule(TomcatModuleBuilder.java:175) > at > org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.createModule(AbstractWebModuleBuilder.java:179) > at > org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder$$FastClassByCGLIB$$8523248f.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:124) > at > org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830) > 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$$e6e319de.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:124) > at > org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830) > 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$$e6e319de.createModule(<generated>) > at > org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeploymentPlan(EARConfigBuilder.java:289) > 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:124) > at > org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830) > 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.CorbaGBeanNameSource$$EnhancerByCGLIB$$1e1093f3.getDeploymentPlan(<generated>) > at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:234) > ... 36 more -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.