dev@jax-ws.java.net

Re: Metro 2.0EA Error not seen with JAXWS 2.1.7...

From: Jitendra Kotamraju <Jitendra.Kotamraju_at_Sun.COM>
Date: Sun, 08 Nov 2009 23:50:03 -0800

Tony Anecito wrote:
> Hi All,
>
> When I startup Tomcat 2.0.18 using Metro 2.0EA and JDK 1.6.0_18 I get the following exception for my web service. Note this does not occur with JAXWS 2.1.6.
>
> Perhaps a bug??
>
> Please let me know what I can do. I will revert back to JAXWS till I know what to try next.
>
Can you try with the jax-ws ri 2.2 latest nightlies:
https://jax-ws.dev.java.net/servlets/ProjectDocumentList?folderID=11088&expandFolder=11088&folderID=11088

or with metro 2.0 nightlies:

https://metro.dev.java.net/servlets/ProjectDocumentList?folderID=10314&expandFolder=10314&folderID=10314

If it still doesn't work, can you file a bug.

thanks,
Jitu
> Regards,
> -Tony
>
> WARNING: duplicate class definition bug occured? Please report this : Jlib/GenericMessage/Message$JaxbAccessorM_getData_setData_[Ljava_lang_String;
> java.lang.ClassFormatError: Illegal class name "Jlib/GenericMessage/Message$JaxbAccessorM_getData_setData_[Ljava_lang_String;" in class file Jlib/GenericMessage/Message$JaxbAccessorM_getData_setData_[Ljava_lang_String;
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:466)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at com.sun.xml.bind.v2.runtime.reflect.opt.Injector.inject(Injector.java:205)
> at com.sun.xml.bind.v2.runtime.reflect.opt.Injector.inject(Injector.java:85)
> at com.sun.xml.bind.v2.runtime.reflect.opt.AccessorInjector.prepare(AccessorInjector.java:89)
> at com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.get(OptimizedAccessorFactory.java:114)
> at com.sun.xml.bind.v2.runtime.reflect.Accessor$GetterSetterReflection.optimize(Accessor.java:369)
> at com.sun.xml.bind.v2.runtime.property.ArrayProperty.<init>(ArrayProperty.java:65)
> at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.<init>(ArrayERProperty.java:84)
> at com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.<init>(ArrayElementProperty.java:96)
> at com.sun.xml.bind.v2.runtime.property.ArrayElementLeafProperty.<init>(ArrayElementLeafProperty.java:66)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> at com.sun.xml.bind.v2.runtime.property.PropertyFactory.create(PropertyFactory.java:124)
> at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.<init>(ClassBeanInfoImpl.java:179)
> at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextImpl.java:515)
> at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextImpl.java:534)
> at com.sun.xml.bind.v2.runtime.property.SingleElementNodeProperty.<init>(SingleElementNodeProperty.java:101)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> at com.sun.xml.bind.v2.runtime.property.PropertyFactory.create(PropertyFactory.java:124)
> at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.<init>(ClassBeanInfoImpl.java:179)
> at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextImpl.java:515)
> at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:330)
> at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1140)
> at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:154)
> at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:106)
> at com.sun.xml.ws.developer.JAXBContextFactory$1.createJAXBContext(JAXBContextFactory.java:109)
> at com.sun.xml.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:161)
> at com.sun.xml.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:154)
> at java.security.AccessController.doPrivileged(Native Method)
> at com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:153)
> at com.sun.xml.ws.model.AbstractSEIModelImpl.postProcess(AbstractSEIModelImpl.java:94)
> at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:258)
> at com.sun.xml.ws.server.EndpointFactory.createSEIModel(EndpointFactory.java:338)
> at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:201)
> at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:505)
> at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parseAdapters(DeploymentDescriptorParser.java:253)
> at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parse(DeploymentDescriptorParser.java:147)
> at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:124)
> at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
> at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
> at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
> at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:850)
> at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:724)
> at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:493)
> at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
> at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
> at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
> at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> at org.apache.catalina.core.StandardService.start(StandardService.java:516)
> at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> Nov 6, 2009 5:00:09 PM com.sun.xml.ws.server.MonitorBase createRoot
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jax-ws.dev.java.net
> For additional commands, e-mail: dev-help_at_jax-ws.dev.java.net
>
>