users@grizzly.java.net

Re: Grizzly with JAX-WS

From: Survivant 00 <survivant00_at_gmail.com>
Date: Thu, 3 Sep 2009 06:07:42 -0400

please send me a war file that I can test with the latest grizzly version.

thanks

2009/9/3 smurugu <smurugu_at_gmail.com>

>
> Here is the embedded version of the code which generates similar error
>
> ServletAdapter sa1 = new ServletAdapter();
> sa1.setServletInstance(new
> com.sun.xml.ws.transport.http.servlet.WSServlet());
>
> sa1.setServletPath("C:/Users/hptest/AppData/Local/Temp/jaxws-fromjava/");
> sa1.setContextPath("/addnumbers");
>
>
> sa1.addServletListener("com.sun.xml.ws.transport.http.servlet.WSServletContextListener");
> gws.addGrizzlyAdapter(sa1, new String [] {"/addnumbers"});
>
>
> 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-tp25228543p25269543.html
> Sent from the Grizzly - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>
>