users@jax-ws.java.net

JAX-WS (nightly build) + GlassFish or Tomcat: java.lang.NoSuchMethodError: com.sun.xml.stream.XMLEntityStorage

From: Daniel Caldeweyher <d.caldeweyher_at_qut.edu.au>
Date: Sun, 27 Nov 2005 13:35:22 +1000

Hi everyone,

I'm new to JAX-WS. I've been trying to get JAX-WS to work with Tomcat and
GlassFish. I got the early access version to run just fine on Tomcat, but I
didn't like the JAXRPC... prefixes so I decided to give the nights builds of
JAX-WS a go. But it just won't work (see below for the error message in
glassfish; same error in tomcat). I downloaded the latest SJSXP, JWSDP1.6
and JDK6.0 (latest build) but no luck. Can anyone tell me how to fix the
java.lang.NoSuchMethodError:
com.sun.xml.stream.XMLEntityStorage.<init>(Lcom/sun/xml/stream/XMLEntityMana
ger;) error. And yes, sjsxp.jar is in glassfish\lib or tomcat\shared\lib.

Help would be greatly appreciated.

Thanks,
Daniel



[#|2005-11-27T11:15:02.421+1000|INFO|sun-appserver-pe9.0|javax.enterprise.sy
stem.core.classloading|_ThreadID=10;_ThreadName=main;|Loading persistence
units for application:
C:/glassfish/domains/domain1/applications/j2ee-modules/jaxws-fromjava|#]

[#|2005-11-27T11:15:02.421+1000|INFO|sun-appserver-pe9.0|javax.enterprise.sy
stem.core.classloading|_ThreadID=10;_ThreadName=main;|Loading persistence
units for web module called jaxws-fromjava in application
C:/glassfish/domains/domain1/applications/j2ee-modules/jaxws-fromjava|#]

[#|2005-11-27T11:15:02.421+1000|INFO|sun-appserver-pe9.0|javax.enterprise.sy
stem.core.classloading|_ThreadID=10;_ThreadName=main;|Finished loading
persistence units for application:
C:/glassfish/domains/domain1/applications/j2ee-modules/jaxws-fromjava|#]

[#|2005-11-27T11:15:02.631+1000|INFO|sun-appserver-pe9.0|javax.enterprise.re
source.webservices.jaxws.server.http|_ThreadID=10;_ThreadName=main;|WSSERVLE
T12: JAX-WS context listener initializing|#]

[#|2005-11-27T11:15:03.382+1000|SEVERE|sun-appserver-pe9.0|javax.enterprise.
system.container.web|_ThreadID=10;_ThreadName=main;|WebModule[/jaxws-fromjav
a]Exception sending context initialized event to listener instance of class
com.sun.xml.ws.transport.http.servlet.WSServletContextListener
java.lang.NoSuchMethodError:
com.sun.xml.stream.XMLEntityStorage.<init>(Lcom/sun/xml/stream/XMLEntityMana
ger;)V
        at
com.sun.xml.stream.XMLEntityManager.<init>(XMLEntityManager.java:335)
        at com.sun.xml.stream.XMLReaderImpl.<init>(XMLReaderImpl.java:75)
        at
com.sun.xml.stream.ZephyrParserFactory.getXMLStreamReaderImpl(ZephyrParserFa
ctory.java:260)
        at
com.sun.xml.stream.ZephyrParserFactory.createXMLStreamReader(ZephyrParserFac
tory.java:151)
        at
com.sun.xml.stream.ZephyrParserFactory.createXMLStreamReader(ZephyrParserFac
tory.java:133)
        at
com.sun.xml.ws.streaming.XMLStreamReaderFactory.createXMLStreamReader(XMLStr
eamReaderFactory.java:151)
        at
com.sun.xml.ws.streaming.XMLStreamReaderFactory.createXMLStreamReader(XMLStr
eamReaderFactory.java:120)
        at
com.sun.xml.ws.transport.http.servlet.RuntimeEndpointInfoParser.parse(Runtim
eEndpointInfoParser.java:65)
        at
com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitia
lized(WSServletContextListener.java:116)
        at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:
4187)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4706)
        at com.sun.enterprise.web.WebModule.start(WebModule.java:290)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1089)
        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:896)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1089)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:497)
        at org.apache.catalina.startup.Embedded.start(Embedded.java:908)
        at com.sun.enterprise.web.WebContainer.start(WebContainer.java:771)
        at
com.sun.enterprise.web.PEWebContainer.startInstance(PEWebContainer.java:693)
        at
com.sun.enterprise.web.PEWebContainerLifecycle.onStartup(PEWebContainerLifec
ycle.java:70)
        at
com.sun.enterprise.server.ondemand.ServiceGroup.startLifecycleServices(Servi
ceGroup.java:231)
        at
com.sun.enterprise.server.ondemand.WebServiceGroup.startLifecycleServices(We
bServiceGroup.java:208)
        at
com.sun.enterprise.server.ondemand.WebServiceGroup.start(WebServiceGroup.jav
a:58)
        at
com.sun.enterprise.server.ondemand.ServiceGroup$1.run(ServiceGroup.java:174)
        at java.security.AccessController.doPrivileged(Native Method)
        at
com.sun.enterprise.server.ondemand.ServiceGroup.startChildren(ServiceGroup.j
ava:171)
        at
com.sun.enterprise.server.ondemand.MainServiceGroup.start(MainServiceGroup.j
ava:43)
        at
com.sun.enterprise.server.ondemand.ServerEntryListenerImpl.notifyEntry(Serve
rEntryListenerImpl.java:70)
        at
com.sun.enterprise.server.ondemand.entry.ServerEntryHelper.sendEvent(ServerE
ntryHelper.java:60)
        at
com.sun.enterprise.server.ondemand.entry.ServerEntryHelper.generateAppLoader
EntryContext(ServerEntryHelper.java:45)
        at
com.sun.enterprise.server.AbstractLoader.generateEntryContext(AbstractLoader
.java:815)
        at
com.sun.enterprise.server.AbstractLoader.notifyAppEvent(AbstractLoader.java:
821)
        at
com.sun.enterprise.server.DummyWebModuleLoader.load(DummyWebModuleLoader.jav
a:60)
        at
com.sun.enterprise.server.AbstractManager.load(AbstractManager.java:202)
        at
com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLifecycl
e.java:199)
        at
com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java
:324)
        at
com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.j
ava:110)
        at com.sun.enterprise.server.PEMain.run(PEMain.java:318)
        at com.sun.enterprise.server.PEMain.main(PEMain.java:252)
        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:589)
        at com.sun.enterprise.server.PELaunch.main(PELaunch.java:210)
|#]

[#|2005-11-27T11:15:03.382+1000|SEVERE|sun-appserver-pe9.0|org.apache.catali
na.core.StandardContext|_ThreadID=10;_ThreadName=main;|Context startup
failed due to previous errors|#]