[Design of JBoss Web Services] - Help needed on Web Service
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=4123913#4123913
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123913
16 years, 11 months
[Design of JBoss Web Services] - JBAS-3812, ws deployers modify JBossWebMetaData
by scott.stark@jboss.org
We are still doing some hacky integration between the ws deployers and the war deployer. The WebMetaData/JBossWebMetaData processing should be sufficiently authoritative at this point that we don't need to write out a modified web.xml. I'm not sure this is still being used in org.jboss.web.deployers.AbstractWarDeployment:
| // Get the war URL
| // FIXME: JBAS-3812 - TomcatDeployment should use modified WebMetaData
| URL warURL = unit.getAttachment("org.jboss.web.expandedWarURL", URL.class);
| if( warURL == null )
| warURL = unit.getAttachment("jbossws.expanded.war.url", URL.class);
| if (warURL == null)
| warURL = unit.getRoot().toURL();
|
The tomcat layer is being driven by the WebMetaData/JBossWebMetaData now, so any modification by the ws deployers should be done as input into a deployer like MergedJBossMetaDataDeployer does for the ejb metadata. I'd like to get this cleaned up for jbossas 5.0.0.CR1 when the war deployer is cleaned up.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123146#4123146
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123146
16 years, 11 months
Wiki documentation status
by Alessio Soldano
Hi Folks,
yesterday and today I've spent some time checking the wiki documentation
and fixing some stuff to obtain better exports for the release doc. Here
is a list of questions / things you might want to be aware of:
1) thanks to some investigations, it has been figured out that multiple
wiki pages can be exported to docbook (and thus to html/pdf) providing a
list of articles in the wiki2xml form. See my previous email for further
details. The article list I would suggest for exporting the release
documentation is the following (perhaps the last 4 entries could be
excluded and a better article order could be chosen):
User_Guide
JBossWS_JAX-WS_Tools
Authentication
Secure_transport
JAX-WS_Endpoint_Configuration
JAX-WS_Client_Configuration
Endpoint_management
Records_management
WS-Security_options
FAQ
JAX-WS_Annotations
Wsconsume
Wsprovide
Wsrunclient
2) http://jira.jboss.org/jira/browse/JBWS-1961 allows links even to
sections to be correctly exported (otherwise links to articles only are
considered); http://jira.jboss.org/jira/browse/JBWS-1960 instead allows
images to be exported (absolute urls to images in html version, embedded
images in the pdf version). I did some successful tests on a jbws
mediawiki instance running on my laptop, please let me know whether I
can update the jbws.dyndns.org instance and how (I cannot ssh to it).
Once the up-to-date version of the wiki2xml plug-in is online I could
double-check the release documentation is exported the right way.
3) all the new features going out from with 2.0.3 are now described or
referenced in the User Guide; as discussed on IRC with Heiko, this
includes the records management stuff. My only concern about this is
that the records management documentation also contains some directions
on how to use records with Metro and CXF stacks... but 2.0.3 still has
native only. Anyway I don't think this is actually a real problem, let
me know if you disagree with me.
4) there are some missing images linked in the user guide, does someone
have them and is able to upload them?
5) the user guide also links to
http://jbws.dyndns.org/mediawiki/index.php?title=Common_features_and_prop...
that imho is still a work in progress. What is it meant to contain?
6)
http://jbws.dyndns.org/mediawiki/index.php?title=FAQ#What_JIRA_issues_are...
contains a list of jira issues backed up by tests... is there a rule
saying which issues should be mentioned here (since I see lots are
missing) or *all* jbwsXYZ should be included and we simply forgot
updating there since some time ;-) ?
7) http://jbws.dyndns.org/mediawiki/index.php?title=Interop_Endpoints
links to http://jbossws.demo.jboss.com that seems to be unavailable.
Where should we deploy the interop endpoints? Perhaps I could deploy
also the last ones I prepared in Seattle last November ;-)
Thank you
Cheers
Alessio
16 years, 11 months
Re: UsernameToken and Transport Authentication
by Magesh Kumar B
CC'ing wider audience and resending the request.
-Magesh
-----Original Message-----
From: Magesh Kumar B <mbojan(a)redhat.com>
Reply-To: mbojan(a)redhat.com
To: jboss-support-ws <jboss-support-ws(a)redhat.com>
Subject: UsernameToken and Transport Authentication
Date: Wed, 16 Jan 2008 15:52:30 +0530
Recently I received two queries regarding using UsernameToken without
BASIC authentication. AFAIC understand, I have replied to the forum post
below. Please correct me if I am wrong.
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120345
-Magesh
16 years, 11 months