axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-3805) Provider<DataSource> does not work
Date Tue, 27 May 2008 14:28:41 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-3805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12600134#action_12600134
] 

Davanum Srinivas commented on AXIS2-3805:
-----------------------------------------

Additional reading:
http://weblogs.java.net/blog/arungupta/archive/2006/03/jaxws_20_provid_1.html
http://blogs.sun.com/artf/entry/operating_at_the_xml_message
http://developers.sun.com/learning/javaoneonline/2006/webtier/TS-1222.pdf



> Provider<DataSource> does not work
> ----------------------------------
>
>                 Key: AXIS2-3805
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3805
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: jaxws
>    Affects Versions: 1.4
>            Reporter: Rafael Thomas Goz Coutinho
>            Assignee: Davanum Srinivas
>
> i'm trying to use javax.activation.DataSource in a Rest web services in Geronimo 2.1
but it seems that axis2 can't create the Datasource to invoke the Web service.
> Here is the Webservice impl:
> @WebServiceProvider
> @BindingType(value = HTTPBinding.HTTP_BINDING)
> @ServiceMode(value = javax.xml.ws.Service.Mode.MESSAGE)
> public class DonateRestWS implements Provider<DataSource> {
> 	public DataSource invoke(DataSource source) {
> 	DataSource json = new FileDataSource("c:\\setupisam.log");//new JsonDataSource();
> 	return json;
> }
> }
> and here is the error:
> 09:48:38,158 ERROR [Axis2WebServiceContainer] Exception occurred while trying to invoke
service method doService()
> org.apache.axis2.AxisFault: The creation of the javax.activation.DataSource provider
instance failed. 
> 	at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
> 	at org.apache.axis2.jaxws.server.JAXWSMessageReceiver.receive(JAXWSMessageReceiver.java:166)
> 	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
> 	at org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:125)
> 	at org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:119)
> 	at org.apache.geronimo.axis2.pojo.POJOWebServiceContainer.processURLRequest(POJOWebServiceContainer.java:165)
> 	at org.apache.geronimo.axis2.Axis2WebServiceContainer.processGETRequest(Axis2WebServiceContainer.java:331)
> 	at org.apache.geronimo.axis2.Axis2WebServiceContainer.doService2(Axis2WebServiceContainer.java:264)
> 	at org.apache.geronimo.axis2.Axis2WebServiceContainer.doService(Axis2WebServiceContainer.java:205)
> 	at org.apache.geronimo.axis2.Axis2WebServiceContainer.invoke(Axis2WebServiceContainer.java:168)
> 	at org.apache.geronimo.webservices.WebServiceContainerInvoker.service(WebServiceContainerInvoker.java:84)
> 	at org.apache.geronimo.webservices.POJOWebServiceServlet.service(POJOWebServiceServlet.java:79)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> 	at org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56)
> 	at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:406)
> 	at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> 	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
> 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
> 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
> 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> 	at java.lang.Thread.run(Thread.java:810)
> Caused by: 
> javax.xml.ws.WebServiceException: The creation of the javax.activation.DataSource provider
instance failed. 
> 	at org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:172)
> 	at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:69)
> 	at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:117)
> 	at org.apache.axis2.jaxws.server.dispatcher.ProviderDispatcher.getProviderInstance(ProviderDispatcher.java:334)
> 	at org.apache.axis2.jaxws.server.dispatcher.ProviderDispatcher.invoke(ProviderDispatcher.java:93)
> 	at org.apache.axis2.jaxws.server.EndpointController.invoke(EndpointController.java:172)
> 	at org.apache.axis2.jaxws.server.JAXWSMessageReceiver.receive(JAXWSMessageReceiver.java:113)
> 	... 26 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message