I get similar error "failed to parse runtime descriptor" when i tried with
embedded mode. Looking into further
the xml parser (sun-jaxws.xml the endpoints tag) trying to load
http://java.sun.com/xml/ns/jax-ws/ri/runtime "namespace" causing the issue.
It seems like it is trying to fetch the namespace through FTP and fails.
I tried with servlet autodeployer as well but now its not able to resolve
WSServlet, here is the output
C:\jaxws\jaxws-ri>java -cp
C:\jaxws\jaxws-ri\jaxws-rt.jar;C:\jaxws\jaxws-ri\acti
vation.jar;C:\jaxws\jaxws-ri\FastInfoset.jar;C:\jaxws\jaxws-ri\http.jar;C:\jaxws
\jaxws-ri\jaxb-api.jar;C:\jaxws\jaxws-ri\jaxb-impl.jar;C:\jaxws\jaxws-ri\jaxws-r
t.jar;C:\jaxws\jaxws-ri\jaxws-tools.jar;C:\jaxws\jaxws-ri\jsr173_api.jar;C:\jaxw
s\jaxws-ri\jsr181-api.jar;C:\jaxws\jaxws-ri\mimepull.jar;C:\jaxws\jaxws-ri\saaj-
api.jar;C:\jaxws\jaxws-ri\saaj-impl.jar;C:\jaxws\jaxws-ri\stax-ex.jar;C:\jaxws\j
axws-ri\streambuffer.jar;C:\jaxws\jaxws-ri\woodstax.jar -jar
C:\grizzly\grizzly
-http-servlet-deployer-1.9.17.jar -p 8080 -a
C:\jaxws\jaxws-ri\samples\fromjava\
build\war\jaxws-fromjava.war
Sep 2, 2009 8:53:58 PM
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDep
loyer deploy
INFO: Will deploy application
path=C:\Users\hptest\AppData\Local\Temp\jaxws-from
java\WEB-INF\web.xml
Sep 2, 2009 8:53:59 PM com.sun.grizzly.util.ClassLoaderUtil load
SEVERE: Unable to load class com.sun.xml.ws.transport.http.servlet.WSServlet
java.lang.ClassNotFoundException:
com.sun.xml.ws.transport.http.servlet.WSServle
t
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
com.sun.grizzly.util.ClassLoaderUtil.load(ClassLoaderUtil.java:166)
at
com.sun.grizzly.util.ClassLoaderUtil.load(ClassLoaderUtil.java:154)
at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.setSer
vlet(GrizzlyWebServerDeployer.java:900)
at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.getSer
vletAdapterList(GrizzlyWebServerDeployer.java:461)
at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.deploy
(GrizzlyWebServerDeployer.java:535)
at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.deploy
War(GrizzlyWebServerDeployer.java:123)
at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.deploy
Application(GrizzlyWebServerDeployer.java:240)
at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.deploy
Applications(GrizzlyWebServerDeployer.java:231)
at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.launch
(GrizzlyWebServerDeployer.java:1130)
at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.main(G
rizzlyWebServerDeployer.java:1261)
Sep 2, 2009 8:53:59 PM
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDep
loyer deploy
INFO: deployed application
path=C:\Users\hptest\AppData\Local\Temp\jaxws-fromjav
a\WEB-INF\web.xml
Sep 2, 2009 8:54:02 PM com.sun.grizzly.http.servlet.ServletContextImpl
initListe
ners
WARNING: Unable to load listener: null
Sep 2, 2009 8:54:02 PM com.sun.grizzly.Controller start
INFO: Starting Grizzly Framework 1.9.17 - Wed Sep 02 20:54:02 PDT 2009
JDice wrote:
>
> I wanted see if any one used Grizzly with JAX-WS. I can make it work
> using
> Grizzly Servlet Deployer. But not able make it work in emmbed
> GrizzlyWebServer adding ServletAdapter and setting WSContextListener and
> WSServlet. Any body did this is? if yes please provide me details. Or Any
> other ways to integrate JAX-WS with Grizzly? Also a strange problem with
> GrizzlyServletDeployer is when I expanded war file and give the war file
> location I am consitantly getting following exception. I am using
> *grizzly-http-servlet-deployer-1.9.17-SNAPSHOT.
> *It works if I give just the WAR file. I used jar -xvf webap.war to expand
> the war file.
> **
> Exception :
>
> Aug 31, 2009 11:45:06 AM
> com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer deploy
>
> INFO: Will deploy application path=\webapps\app1\WEB-INF\web.xml
>
> Aug 31, 2009 11:45:38 AM
> com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer deploy
>
> INFO: deployed application path=\webapps\app1\WEB-INF\web.xml
>
> Aug 31, 2009 11:45:38 AM
> com.sun.xml.ws.transport.http.servlet.WSServletContextListener
> contextInitialized
>
> INFO: WSSERVLET12: JAX-WS context listener initializing
>
> Aug 31, 2009 11:46:11 AM
> com.sun.xml.ws.transport.http.servlet.WSServletContextListener
> contextInitialized
>
> SEVERE: WSSERVLET11: failed to parse runtime descriptor: *
> java.net.UnknownHostException*: C
> *
>
> java.net.UnknownHostException*: C
>
> at java.net.PlainSocketImpl.connect(Unknown Source)
>
> at java.net.Socket.connect(Unknown Source)
>
> at java.net.Socket.connect(Unknown Source)
>
> at sun.net.NetworkClient.doConnect(Unknown Source)
>
> at sun.net.NetworkClient.openServer(Unknown Source)
>
> at sun.net.ftp.FtpClient.openServer(Unknown Source)
>
> at sun.net.ftp.FtpClient.openServer(Unknown Source)
>
> at sun.net.www.protocol.ftp.FtpURLConnection.connect(Unknown Source)
>
> at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(Unknown
> Source)
>
> at java.net.URL.openStream(Unknown Source)
>
> at
> com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(
> *WSServletContextListener.java:108*)
>
> at com.sun.grizzly.http.servlet.ServletContextImpl.initListeners(*
> ServletContextImpl.java:152*)
>
> at com.sun.grizzly.http.servlet.ServletAdapter.configureServletEnv(*
> ServletAdapter.java:440*)
>
> at com.sun.grizzly.http.servlet.ServletAdapter.start(*
> ServletAdapter.java:277*)
>
> at com.sun.grizzly.tcp.http11.GrizzlyAdapterChain.start(*
> GrizzlyAdapterChain.java:118*)
>
> at com.sun.grizzly.http.SelectorThread.initEndpoint(*
> SelectorThread.java:1101*)
>
> at com.sun.grizzly.http.SelectorThread.listen(*SelectorThread.java:1152*)
>
> at com.sun.grizzly.http.embed.GrizzlyWebServer.start(*
> GrizzlyWebServer.java:585*)
>
> at com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.launch(*
> GrizzlyWebServerDeployer.java:1142*)
>
> at com.gdas.grizzly.SampleWebServer3.main(*SampleWebServer3.java:26*)
>
> Aug 31, 2009 11:46:11 AM com.sun.grizzly.http.servlet.ServletContextImpl
> initListeners
>
> SEVERE:
> *
>
> com.sun.xml.ws.transport.http.servlet.WSServletException*: WSSERVLET11:
> failed to parse runtime descriptor: *java.net.UnknownHostException*: C
>
> at
> com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(
> *WSServletContextListener.java:118*)
>
> at com.sun.grizzly.http.servlet.ServletContextImpl.initListeners(*
> ServletContextImpl.java:152*)
>
> at com.sun.grizzly.http.servlet.ServletAdapter.configureServletEnv(*
> ServletAdapter.java:440*)
>
> at com.sun.grizzly.http.servlet.ServletAdapter.start(*
> ServletAdapter.java:277*)
>
> at com.sun.grizzly.tcp.http11.GrizzlyAdapterChain.start(*
> GrizzlyAdapterChain.java:118*)
>
> at com.sun.grizzly.http.SelectorThread.initEndpoint(*
> SelectorThread.java:1101*)
>
> at com.sun.grizzly.http.SelectorThread.listen(*SelectorThread.java:1152*)
>
> at com.sun.grizzly.http.embed.GrizzlyWebServer.start(*
> GrizzlyWebServer.java:585*)
>
> at com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.launch(*
> GrizzlyWebServerDeployer.java:1142*)
>
> at com.gdas.grizzly.SampleWebServer3.main(*SampleWebServer3.java:26*)
>
> Caused by: *java.net.UnknownHostException*: C
>
> at java.net.PlainSocketImpl.connect(Unknown Source)
>
> at java.net.Socket.connect(Unknown Source)
>
> at java.net.Socket.connect(Unknown Source)
>
> at sun.net.NetworkClient.doConnect(Unknown Source)
>
> at sun.net.NetworkClient.openServer(Unknown Source)
>
> at sun.net.ftp.FtpClient.openServer(Unknown Source)
>
> at sun.net.ftp.FtpClient.openServer(Unknown Source)
>
> at sun.net.www.protocol.ftp.FtpURLConnection.connect(Unknown Source)
>
> at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(Unknown
> Source)
>
> at java.net.URL.openStream(Unknown Source)
>
> at
> com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(
> *WSServletContextListener.java:108*)
>
> ... 9 more
>
> Aug 31, 2009 11:46:11 AM com.sun.grizzly.Controller start
>
> INFO: Starting Grizzly Framework 1.9.17-SNAPSHOT - Mon Aug 31 11:46:11 MST
> 2009
>
>
>
>
>
> Thanks,
>
> TP
>
>
--
View this message in context: http://www.nabble.com/Grizzly-with-JAX-WS-tp25228543p25269531.html
Sent from the Grizzly - Users mailing list archive at Nabble.com.