[
https://jira.jboss.org/jira/browse/JBWS-1931?page=com.atlassian.jira.plug...
]
Joseph Mango commented on JBWS-1931:
------------------------------------
I'm having a problem similar, I happen to be quite new to JAX-WS and am not sure of
the correct configs. I created a WSDL and was attempting to create services from that
WSDL.
JRE 1.5.0_17-b04
JBOSS 4.2.3.GA
C:\Documents and Settings\jmango\My
Documents\NetBeansProjects\AstCycle\nbproject\jaxws-build.xml:24: You are loading JAX-WS
2.0 API from
jar:file:/E:/jboss-4.2.3.GA/client/jboss-jaxws.jar!/javax/xml/ws/Service.class but this
tool requires JAX-WS 2.1 API.
BUILD FAILED (total time: 0 seconds)
Thanks In Advance,
Joe
Update to jaxb-2.1 required for certain endpoints
-------------------------------------------------
Key: JBWS-1931
URL:
https://jira.jboss.org/jira/browse/JBWS-1931
Project: JBoss Web Services
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: jbossws-native
Environment: JBOSS 4.2.2 GA, JDK1.6
Reporter: cai jc
Assignee: Richard Opalka
I created a web service endpoint using JWS:
/*
* BookWS.java
*
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package net.cjc.ws;
import java.util.List;
import javax.ejb.*;
import javax.jws.*;
import javax.jws.soap.SOAPBinding;
import net.cjc.beans.AuthorManager;
import net.cjc.entity.Book;
@WebService(name="BookWS",targetNamespace="http://net.cjc.ws",serviceName="BookWSService")
@SOAPBinding(style= SOAPBinding.Style.RPC)
@Stateless
public class BookWS {
/* @EJB
private AuthorManager am;
@WebMethod
public List<Book> getMyBook(String me)
{
return am.queryBooks(me);
}*/
@WebMethod
public String getMyBook(String me)
{
return "you have nothing!";
}
}
And modified web.xml to configure this endpoint as a servlet.
At deploy time,the app server throws an exception:
06:13:45,593 ERROR [MainDeployer] Could not start deployment:
file:/D:/jboss-4.2.2.GA/server/default/tmp/deploy/tmp7551cjc.ear-contents/cjc-war.war
java.lang.NoClassDefFoundError: Could not initialize class
com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder
at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:422)
at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:286)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)
at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:105)
at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:116)
...
But I still can see this web service from
http://localhost:8080/jbossws/services.While I
click it to retrieve WSDL,another exception is thrown:
06:25:15,796 ERROR [RequestHandlerImpl] Error processing web service request
java.lang.IllegalStateException: Cannot obtain endpoint meta data
at
org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleWSDLRequest(RequestHandlerImpl.java:520)
at
org.jboss.wsf.stack.jbws.RequestHandlerImpl.doGet(RequestHandlerImpl.java:144)
at
org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:126)
at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
....
Is this a bug? or my fault?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira