You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by asma <am...@laas.fr> on 2009/04/08 11:29:34 UTC
Re: problem in deploying user's module with axis2-1.4.1
asma a écrit :
> asma a écrit :
>> Hello everyone;
>>
>> i have developped a simple webservice Calculatrice.java with
>> axis2-1.4.1, deployed it by generating wsdl, skeleton and stub and
>> finally i tested it successfully either in server side and client
>> side by developping its client CalculatriceClient.
>>
>> Now i'm trying to extend it with new custom modules (loggingmodule)
>> which contains just one handler named (LogHandler).
>>
>> to accomplich that, i just followed the tutorial
>> http://ws.apache.org/axis2/1_4/modules.html.
>>
>> i proceeded from the modification of both service.xml and axis2.xml
>> files by adding the necessary tags (like <phase name="*loggingPhase*"
>> /> inside every flow in axis2.xml and <ref module="*logging*" /> in
>> services.xml) as mentionned in the tutorial only on server side and
>> also by addig the loggingmodule.mar which contains LoggingModule.java
>> and LogHandler.java
>>
>> and creating module.xml under the module archive loggingmodule.mar
>> located in "project_name\WebContent\WEB-INF\modules\loggingmodule.mar
>> ; and which exist inside the module archive exactly under \META-INF.
>> *below, there is the details of environment*
>> axis2 version: axis2-1.4.1
>> Application Server :Apache Tomcat 6.0.14
>> jdk1.6.0_13
>>
>> Unfortunately,when i would try to test the web service with the new
>> configuration, the next error message poped up:
>>
>> *Error on server side*
>>
>> *[INFO] Unable to sendViaPost to
>> url[http://localhost:8080/calcProj/services/Calculatrice]
>> java.net.ConnectException: Connection refused: connect*
>> at java.net.PlainSocketImpl.socketConnect(Native Method)
>> at java.net.PlainSocketImpl.doConnect(Unknown Source)
>> at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
>> at java.net.PlainSocketImpl.connect(Unknown Source)
>> at java.net.SocksSocketImpl.connect(Unknown Source)
>> at java.net.Socket.connect(Unknown Source)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>> at java.lang.reflect.Method.invoke(Unknown Source)
>> at
>> org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:140)
>>
>> at
>> org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:125)
>>
>> at
>> org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
>>
>> at
>> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
>>
>> at
>> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
>>
>> at
>> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
>>
>> at
>> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
>>
>> at
>> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
>>
>> at
>> org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:542)
>>
>> at
>> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:189)
>>
>> at
>> org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
>> at
>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:371)
>>
>> at
>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:209)
>>
>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
>> at
>> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)
>>
>> at
>> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
>>
>> at
>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
>>
>> at ismaelpack.CalculatriceStub.add(CalculatriceStub.java:463)
>> at ismaelpack.CalculatriceClient.main(CalculatriceClient.java:28)
>> org.apache.axis2.AxisFault: Connection refused: connect
>> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>> at
>> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)
>>
>> at
>> org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
>> at
>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:371)
>>
>> at
>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:209)
>>
>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
>> at
>> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)
>>
>> at
>> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
>>
>> at
>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
>>
>> at ismaelpack.CalculatriceStub.add(CalculatriceStub.java:463)
>> at ismaelpack.CalculatriceClient.main(CalculatriceClient.java:28)
>> Caused by: java.net.ConnectException: Connection refused: connect
>> at java.net.PlainSocketImpl.socketConnect(Native Method)
>> at java.net.PlainSocketImpl.doConnect(Unknown Source)
>> at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
>> at java.net.PlainSocketImpl.connect(Unknown Source)
>> at java.net.SocksSocketImpl.connect(Unknown Source)
>> at java.net.Socket.connect(Unknown Source)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>> at java.lang.reflect.Method.invoke(Unknown Source)
>> at
>> org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:140)
>>
>> at
>> org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:125)
>>
>> at
>> org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
>>
>> at
>> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
>>
>> at
>> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
>>
>> at
>> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
>>
>> at
>> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
>>
>> at
>> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
>>
>> at
>> org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:542)
>>
>> at
>> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:189)
>>
>> ... 9 more
>>
>> i'll waiting for your suggestions and your ideas, plz. It's soooooo
>> urgent
>> Thanks
>>
> Hi
>
> Does anybody have any idea
>
> i'm really blocked
>
> the service which was so well working, would never work and the IDE
> eclipse shows the error message that it become faulty and that's
> caused by the non deployed module referenced by the service.
> hence the service's problem will probably be resolved unless the
> module succeed to be deployed, and i'm unable to find any idea any
> more.
>
> Thanks a lot in advance
>
> -Asma
>
>