users@grizzly.java.net

Re: WebService URL Mapping support for /*

From: Survivant 00 <survivant00_at_gmail.com>
Date: Thu, 12 Nov 2009 19:41:39 -0500

JAX-WS over Grizzlr Deployer works

http://localhost:8080/jaxws-asyncprovider/hello/*
Web Services Endpoint Information Service Name:{urn:test}HelloPort Name:
{urn:test}HelloAsyncPort Address:
http://localhost:8080/jaxws-asyncprovider/helloWSDL:
http://localhost:8080/jaxws-asyncprovider/hello?wsdlImplementation class:
asyncprovider.server.HelloAsyncImpl

here the command line that I used

-a c:\temp\demo\tofix\jaxws-asyncprovider
--libraryPath=C:/Source/grizzly/modules/http-servlet-deployer/lib-jaxws/jaxws-ri/lib

but you need to extract the war file.

We have a issue with the refactoring done in the latest release for
Deployer. I'm working on that.




2009/11/12 Survivant 00 <survivant00_at_gmail.com>

> thanks I'll try that. tonight.
>
> never jax-ws over Deployer.
>
>
>
> 2009/11/12 JDice <rolls.royal25_at_gmail.com>
>
>>
>> I am using the Asyncprovider sample that comes with Jax-WS.
>>
>> Please find WAR file is attached.
>>
>>
>>
>> survivant wrote:
>> >
>> > can you provide a war please. I'm working on another issue with
>> Deployer.
>> > Could help to do both in the same time.
>> >
>> > 2009/11/11 JDice <rolls.royal25_at_gmail.com>
>> >
>> >>
>> >> Goal is to map many URLs after particuar node to same endpoint.
>> >> I am using GrizzlyServletDeployer(1.9.18.M2 and 1.9.18-e).
>> >> Here sun-jaxws.xml : Note URL Mapping has /hello/*
>> >> <endpoints
>> >> xmlns="http://java.sun.com/xml/ns/jax-ws/ri/runtime"
>> >> version="2.0">
>> >> <endpoint
>> >> name="asyncprovider"
>> >> implementation="asyncprovider.server.HelloAsyncImpl"
>> >> wsdl="WEB-INF/wsdl/hello_literal.wsdl"
>> >> service="{urn:test}Hello"
>> >> port="{urn:test}HelloAsyncPort"
>> >> url-pattern="/hello/*" />
>> >> </endpoints>
>> >>
>> >> Here is servlet mapping in web.xml:
>> >> <servlet-mapping>
>> >> <servlet-name>AsyncProviderServlet</servlet-name>
>> >> <url-pattern>/hello/*</url-pattern>
>> >> </servlet-mapping>
>> >>
>> >> Now If I invoke this WebService with URL:
>> >> <soap:address location="
>> http://localhost:8080/jaxws-asyncprovider/hello/*
>> >> "/>
>> >> or
>> >> <soap:address
>> >> location="http://localhost:8080/jaxws-asyncprovider/hello/service"/>
>> >>
>> >> The endpoint is not getting invoked and getting this exception-
>> >> NOTE: This same setup work on Tomcat but not on Grizzly. Please advise
>> >> how
>> >> to fix or get around this issue.
>> >> run:
>> >> [java] Invoking Web Service with = sync,source
>> >> [java] Exception in thread "main"
>> >> com.sun.xml.ws.protocol.soap.MessageCreat
>> >> ionException: Couldn't create SOAP message due to exception: XML reader
>> >> error: c
>> >> om.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
>> >> [java] at [row,col {unknown-source}]: [1,0]
>> >> [java] at
>> >> com.sun.xml.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCo
>> >> dec.java:365)
>> >> [java] at
>> >> com.sun.xml.ws.transport.http.client.HttpTransportPipe.proces
>> >> s(HttpTransportPipe.java:187)
>> >> [java] at
>> >> com.sun.xml.ws.transport.http.client.HttpTransportPipe.proces
>> >> sRequest(HttpTransportPipe.java:94)
>> >> [java] at
>> >> com.sun.xml.ws.transport.DeferredTransportPipe.processRequest
>> >> (DeferredTransportPipe.java:116)
>> >> [java] at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:598)
>> >> [java] at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:557)
>> >> [java] at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:542)
>> >> [java] at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:439)
>> >> [java] at com.sun.xml.ws.client.Stub.process(Stub.java:222)
>> >> [java] at
>> >> com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:135)
>> >>
>> >> [java] at
>> >> com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethod
>> >> Handler.java:109)
>> >> [java] at
>> >> com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethod
>> >> Handler.java:89)
>> >> [java] at
>> >> com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:118)
>> >> [java] at $Proxy27.hello(Unknown Source)
>> >> [java] at asyncprovider.client.AsyncClient.test(Unknown Source)
>> >> [java] at asyncprovider.client.AsyncClient.main(Unknown Source)
>> >> [java] Caused by:
>> com.sun.xml.ws.streaming.XMLStreamReaderException:
>> >> XML re
>> >> ader error: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
>> >> [java] at [row,col {unknown-source}]: [1,0]
>> >> [java] at
>> >> com.sun.xml.ws.streaming.XMLStreamReaderUtil.wrapException(XM
>> >> LStreamReaderUtil.java:267)
>> >> [java] at
>> >> com.sun.xml.ws.streaming.XMLStreamReaderUtil.next(XMLStreamRe
>> >> aderUtil.java:95)
>> >> [java] at
>> >> com.sun.xml.ws.streaming.XMLStreamReaderUtil.nextContent(XMLS
>> >> treamReaderUtil.java:110)
>> >> [java] at
>> >> com.sun.xml.ws.streaming.XMLStreamReaderUtil.nextElementConte
>> >> nt(XMLStreamReaderUtil.java:100)
>> >> [java] at
>> >> com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCode
>> >> c.java:175)
>> >> [java] at
>> >> com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCode
>> >> c.java:303)
>> >> [java] at
>> >> com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCode
>> >> c.java:129)
>> >> [java] at
>> >> com.sun.xml.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCo
>> >> dec.java:360)
>> >> [java] ... 15 more
>> >> [java] Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF
>> >> in
>> >> prol
>> >> og
>> >> [java] at [row,col {unknown-source}]: [1,0]
>> >> [java] at
>> >> com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanne
>> >> r.java:661)
>> >> [java] at
>> >> com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader
>> >> .java:2134)
>> >> [java] at
>> >> com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamR
>> >> eader.java:2040)
>> >> [java] at
>> >> com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java
>> >> :1069)
>> >> [java] at
>> >> com.sun.xml.ws.util.xml.XMLStreamReaderFilter.next(XMLStreamR
>> >> eaderFilter.java:92)
>> >> [java] at
>> >> com.sun.xml.ws.streaming.XMLStreamReaderUtil.next(XMLStreamRe
>> >> aderUtil.java:76)
>> >> [java] ... 21 more
>> >> [java] Java Result: 1
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://old.nabble.com/WebService-URL-Mapping-support-for--*-tp26309302p26309302.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
>> >>
>> >>
>> >
>> >
>> > --
>> >
>> > Vous pouvez me suivre sur Twitter / You can follow me on Twitter :
>> > http://twitter.com/survivant
>> >
>> >
>> http://old.nabble.com/file/p26319882/jaxws-asyncprovider.war
>> --
>>
>> View this message in context:
>> http://old.nabble.com/WebService-URL-Mapping-support-for--*-tp26309302p26319882.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
>>
>>
>
>
> --
>
> Vous pouvez me suivre sur Twitter / You can follow me on Twitter :
> http://twitter.com/survivant
>



-- 
Vous pouvez me suivre sur Twitter / You can follow me on Twitter :
http://twitter.com/survivant