[JBossWS] - Unable to create SAAJ meta-factory
by iyiguncevik
I implemented a small webservice from wsdl using JAX-WS. I'm trying to deploy it to JBOSS app server and getting the error below.
I didn't specify any bindings neither in sun-jaxws.xml nor in service implementation class with annotations. What could be the reason for this?
I use JBOSS 4.2.2_GA and JAXWS 2.1.3
anonymous wrote : SEVERE: WSSERVLET11: failed to parse runtime descriptor: java.lang.Error: javax.xml.soap.SOAPException: Unable to create SAAJ
| meta-factoryorg.jboss.ws.core.soap.SAAJMetaFactoryImpl
| java.lang.Error: javax.xml.soap.SOAPException: Unable to create SAAJ meta-factoryorg.jboss.ws.core.soap.SAAJMetaFactoryImpl
| at com.sun.xml.ws.api.SOAPVersion.(SOAPVersion.java:166)
| at com.sun.xml.ws.api.SOAPVersion.(SOAPVersion.java:68)
| at com.sun.xml.ws.api.BindingID.(BindingID.java:304)
| at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.createBinding(DeploymentDescriptorParser.java:281)
| at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parseAdapters(DeploymentDescriptorParser.java:222)
| at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parse(DeploymentDescriptorParser.java:133)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124206#4124206
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124206
16 years, 11 months
[JBossWS] - javax.xml.ws.WebServiceException: Unable to create Provider:
by mgk
Hi,
I've been trying to create a stub for Stock quote web service and am having trouble with that. It says "21:40:54,812 ERROR [[action]] Servlet.service() for servlet action threw exception
javax.xml.ws.WebServiceException: Unable to create Provider: org.jboss.ws.core.jaxws.spi.ProviderImpl"
I'm using JBoss App server 4.2 version under eclipse 3.3.1
I used jwsdp2.0 for "StockQuote" web service. The following is the generated code:
package net.webservicex;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import net.webservicex.StockQuote;
import net.webservicex.StockQuoteSoap;
/**
* This class was generated by the JAXWS SI.
* JAX-WS RI 2.0-b26-ea3
* Generated source version: 2.0
*
*/
@WebServiceClient(name = "StockQuote", targetNamespace = "http://www.webserviceX.NET/", wsdlLocation = "http://www.webservicex.net/stockquote.asmx?WSDL")
public class StockQuote
extends Service
{
private final static URL WSDL_LOCATION;
private final static QName STOCKQUOTE = new QName("http://www.webserviceX.NET/", "StockQuote");
private final static QName STOCKQUOTESOAP = new QName("http://www.webserviceX.NET/", "StockQuoteSoap");
static {
URL url = null;
try {
url = new URL("http://www.webservicex.net/stockquote.asmx?WSDL");
} catch (MalformedURLException e) {
e.printStackTrace();
}
WSDL_LOCATION = url;
}
public StockQuote(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
public StockQuote() {
super(WSDL_LOCATION, STOCKQUOTE);
}
/**
*
* @return
* returns StockQuoteSoap
*/
@WebEndpoint(name = "StockQuoteSoap")
public StockQuoteSoap getStockQuoteSoap() {
return (StockQuoteSoap)super.getPort(STOCKQUOTESOAP, StockQuoteSoap.class);
}
}
I'm calling the service the following way:
StockQuote service = new StockQuote();
StockQuoteSoap port = service.getStockQuoteSoap();
String quote = port.getQuote("STT");
I'm getting the following error in the first line of the above code itself:
21:40:54,812 WARN [RequestProcessor] Unhandled Exception thrown: class javax.xml.ws.WebServiceException
21:40:54,812 ERROR [[action]] Servlet.service() for servlet action threw exception
javax.xml.ws.WebServiceException: Unable to create Provider: org.jboss.ws.core.jaxws.spi.ProviderImpl
at javax.xml.ws.spi.Provider.provider(Provider.java:83)
at javax.xml.ws.Service.(Service.java:58)
at net.webservicex.StockQuote.(StockQuote.java:44)
at com.struts.action.FiboGenAction.execute(FiboGenAction.java:81)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:595)
I really appreciate any help you could provide in this. Basically, I want framework to get stock quote for any given ticker.
Can someone please help me? Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124094#4124094
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124094
16 years, 11 months
[JBossWS] - Re: jbossws-2.0.3 released
by heiko.braun@jboss.com
What's new in jbossws-2.0.3.GA
----------------------------------
Bug
* [JBWS-1217] - WSDLtoJava Namespace to package mapping does not support multiple namespaces
* [JBWS-1324] - JMS Endpoint - Message delivery starts before endpoint is ready.
* [JBWS-1762] - web.xml modified to web.xml.org - Subsequent runs fail
* [JBWS-1813] - context-root in jboss.xml is ignored
* [JBWS-1819] - wsrunclient script(s) differ and do not always function.
* [JBWS-1841] - WebServiceRef injection from DD doesn't work
* [JBWS-1873] - WSDL to Java - Incorrect case of generated type for anonymous type.
* [JBWS-1876] - Wrong Content-Type in SOAP 1.2 messages
* [JBWS-1879] - @BindingType is read from SEI instead of endpoint implementation
* [JBWS-1881] - WSDL To Java - All generated types have first character upper case, extends clause in base types do not take this into account.
* [JBWS-1906] - Stack overflow exception when reading bad wsdl files
* [JBWS-1924] - Verify installation script for jboss-4.2.1.GA
* [JBWS-1937] - Document/Literal addressing endpoint fails when retreiving Outbound Action
* [JBWS-1939] - URL port information of soap:address is different from import schemaLocation URL
Feature Request
* [JBWS-1257] - Add configuration for token references
* [JBWS-1850] - Documentation support for Java->WSDL
* [JBWS-1874] - Allow configuration of secret key wrap algorithm
* [JBWS-1880] - WS-Addressing with endpoints using soap 1.2
* [JBWS-1897] - Enable/disable logging on every endpoint
* [JBWS-1898] - Statistics/logs about clients calling endpoints
* [JBWS-1899] - Fine grained management of statistics recording
* [JBWS-1904] - Explicitly set the namespace of a WebFault
* [JBWS-1911] - Support the JMS transport with JAX-WS
* [JBWS-1950] - Show collected records as html table in jmx-console
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123959#4123959
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123959
16 years, 11 months
[JBossWS] - Attachments with SOAP
by sidgod
Hi,
I am kind of new to Web Services and this is what i am using right now :
JBOSS AS 4.0.4.GA, JBoss WS 1.2 and jdk 1.5.12. I am trying to get SOAP with attachments working. I saw one MTOP example that comes with JBOSS WS 1.2 and was trying to do the same.
I am taking DataHandler as one of the inputs to my method, i am not providing anything in configuration file to WSTools while building the application JAR.
so API looks like:
public void transferFile(String msg, WrappedBean handle) { }
Can somebody please tell me why is this not working and whether anything else needs to be done or some other alternative to get Attachments working with SOAP ?
Thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123951#4123951
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123951
16 years, 11 months