Gabriel,
We have tested jaxrpc-ri.xml files with multiple endpoints without
any troubles. Sounds like a classpath issue. You may want to examine
your configuration.
Gabriel Bauman wrote:
> Hello,
>
> I have created a simple web application with Jax-Rpc that has 2
> endpoints defined in the jaxrpc-ri.xml file. The methods are simple
> tests that return a string.
>
> Everything builds and deploys perfectly, but as soon as I attempt to
> invoke a method from the client, I get the following on stderr:
>
> java.lang.NoClassDefFoundError:
> com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl
> at
> com.sun.xml.messaging.saaj.soap.SOAPPartImpl.<init>(SOAPPartImpl.java:52
> )
> at
> com.sun.xml.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl.<init>(SOAPPart1_
> 1Impl.java:24)
> at
> com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.getSOAPPart(Messag
> e1_1Impl.java:48)
> at
> com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:144)
> at
> com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.<init>(Message1_1I
> mpl.java:43)
> at
> com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl.createM
> essage(SOAPMessageFactory1_1Impl.java:32)
> at
> com.sun.xml.rpc.soap.message.SOAPMessageContext.createMessage(SOAPMessag
> eContext.java:122)
> at
> com.sun.xml.rpc.server.http.JAXRPCServletDelegate.getSOAPMessageFromRequ
> est(JAXRPCServletDelegate.java:609)
> at
> com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServletDe
> legate.java:273)
> at
> com.sun.xml.rpc.server.http.JAXRPCServlet.doPost(JAXRPCServlet.java:69)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:165)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
> at
> com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChai
> n.java:113)
> at
> com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.ja
> va:177)
> at
> com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.j
> ava:221)
> at
> com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:253)
> at
> com.caucho.server.port.TcpConnection.run(TcpConnection.java:305)
> at com.caucho.util.ThreadPool.run(ThreadPool.java:273)
> at java.lang.Thread.run(Unknown Source)
>
> ...and the call fails.
>
> This doesn't appear to happen when there is only one endpoint defined in
> jaxrpc-ri.xml.
>
> Is this a known issue? If so, is there any workaround? I am using the
> JWSDP version 1.3. My service definitions and jaxrpc-ri are attached.
>
> Thanks in advance,
>
> Gabe
>
>
> ------------------------------------------------------------------------
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <!DOCTYPE webServices SYSTEM "http://java.sun.com/xml/ns/jax-rpc/ri/dd">
>
> <webServices
> xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/dd"
> version="1.0"
> targetNamespaceBase="http://hello.org/wsdl"
> typeNamespaceBase="http://hello.org/types"
> urlPatternBase="/services">
>
> <endpoint
> name="date"
> displayName="Date Web Service"
> description="A simple date service"
> wsdl="/WEB-INF/date.wsdl"
> interface="test.DateServiceIF"
> implementation="test.DateServiceImpl"
> model="/WEB-INF/date-model.xml.gz"
> />
>
> <endpoint
> name="foo"
> displayName="Foo Web Service"
> description="A simple foo service"
> wsdl="/WEB-INF/foo.wsdl"
> interface="test.FooServiceIF"
> implementation="test.FooServiceImpl"
> model="/WEB-INF/foo-model.xml.gz"
> />
>
>
> <endpointMapping
> endpointName="date"
> urlPattern="/service/date"
> />
>
> <endpointMapping
> endpointName="foo"
> urlPattern="/service/foo"
> />
>
> </webServices>
>
>
> ------------------------------------------------------------------------
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
>
> <service name="date"
>
> targetNamespace="http://localhost:8080/test/wsdl"
>
> typeNamespace="http://localhost:8080/test/types"
>
> packageName="test">
>
> <interface name="test.DateServiceIF"
>
> servantName="test.DateServiceImpl"/>
>
> </service>
>
> </configuration>
>
>
> ------------------------------------------------------------------------
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
>
> <service name="foo"
>
> targetNamespace="http://localhost:8080/test/wsdl"
>
> typeNamespace="http://localhost:8080/test/types"
>
> packageName="test">
>
> <interface name="test.FooServiceIF"
>
> servantName="test.FooServiceImpl"/>
>
> </service>
>
> </configuration>
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
> For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
--
Doug Kohlert
Java Software Division
Sun Microsystems, Inc.
phone: 503 345-9806
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net