axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jarek Gawor (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-3805) Provider<DataSource> does not work
Date Tue, 20 May 2008 15:08:55 GMT

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

Jarek Gawor commented on AXIS2-3805:
------------------------------------

I committed a small fix to allow for Providers of DataSource type (revision 658270). However,
that only exposed another problem where there is no BlockFactory implementation for javax.activation.DataSource:

{noformat}
2008-05-20 11:06:30,506 ERROR org.apache.axis2.engine.AxisEngine - Unexpected Error. Unable
to find BlockFactory for type: javax.activation.DataSource
org.apache.axis2.AxisFault: Unexpected Error. Unable to find BlockFactory for type: javax.activation.DataSource
        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
        at org.apache.axis2.jaxws.server.JAXWSMessageReceiver.receive(JAXWSMessageReceiver.java:220)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
        at org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:136)
        at org.apache.axis2.transport.http.util.RESTUtil.processXMLRequest(RESTUtil.java:84)
        at org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:268)
        at org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpService.java:281)
        at org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:187)
        at org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:82)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
Caused by: javax.xml.ws.WebServiceException: Unexpected Error. Unable to find BlockFactory
for type: javax.activation.DataSource
        at org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:173)
        at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:70)
        at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:118)
        at org.apache.axis2.jaxws.server.dispatcher.ProviderDispatcher.createBlockFactory(ProviderDispatcher.java:591)
        at org.apache.axis2.jaxws.server.dispatcher.ProviderDispatcher.createRequestParameters(ProviderDispatcher.java:269)
        at org.apache.axis2.jaxws.server.dispatcher.ProviderDispatcher.invoke(ProviderDispatcher.java:106)
        at org.apache.axis2.jaxws.server.EndpointController.invoke(EndpointController.java:108)
        at org.apache.axis2.jaxws.server.JAXWSMessageReceiver.receive(JAXWSMessageReceiver.java:159)
        ... 10 more
{noformat}


> 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
>
> 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