Hi,
I am pretty new to jbossws. I am trying to expose my ejb as webservices and 
have been try a very trivial example for test. I can register the endpoint but 
does not generate the wsdl file.

this is the basic service I am trying to test on.

@Stateless
@WebService(name = "additionService", serviceName = "additionService", 
targetNamespace = "http://eardeployment.jaxws/";)
//@SOAPBinding(style = SOAPBinding.Style.RPC)
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
@WebContext(contextRoot = "/test")
public class Addition {

    @WebMethod(operationName = "add")
    public int add(@WebParam(name = "i") int i, @WebParam(name = "j") int j) {
        int k = i + j;
        return k;
    }
}

The ERRORS that I get are :

javax.servlet.ServletException: Servlet.init() for servlet Addition threw 
exception
        
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
        
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
        
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
        
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
        
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
        
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
        org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
        java.lang.Thread.run(Thread.java:595)

root cause

java.lang.ClassCastException: org.jboss.wsf.framework.DefaultSPIProviderResolver
        
org.jboss.wsf.spi.SPIProviderResolver.getInstance(SPIProviderResolver.java:38)
        org.jboss.wsf.stack.jbws.EndpointServlet.init(EndpointServlet.java:68)
        
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
        
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
        
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
        
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
        
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
        
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
        org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
        java.lang.Thread.run(Thread.java:595)

Any help in providing some enlightenment will be greatly appreciated.

Thanks,
RJ


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4239455#4239455

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4239455
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to