axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fabien Couble" <fabien.couble.exte...@capgemini.com>
Subject Re: org.apache.axis2.phaseresolver.PhaseException
Date Thu, 06 Jul 2006 10:03:54 GMT

Thx for your response, but there's still a problem.

I add your command:
ConfigurationContext configContext =
ConfigurationContextFactory.createConfigurationContextFromFileSystem("C:/Program
Files/Apache Software Foundation/Tomcat 5.5/webapps/axis2/WEB-INF",
"C:/Program Files/Apache Software Foundation/Tomcat
5.5/webapps/axis2/WEB-INF/conf/axis2.xml");

In fact, the server and the client has the same axis2.xml (I think it's 
normal) but now i can't engage the modules at the client side with the 
sender.engageModule(...) because an exception is raised saying that the 
modules have already been added.
So I remove these commands  but another exception is raised:
<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header 
/><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>
The server 10.68.150.83 failed to respond; nested exception is:
 org.apache.commons.httpclient.NoHttpResponseException: The server 
10.68.150.83 failed to 
respond</faultstring><detail><Exception>org.apache.axis2.AxisFault: The

server 10.68.150.83 failed to respond; nested exception is:
 org.apache.commons.httpclient.NoHttpResponseException: The server 
10.68.150.83 failed to respond; nested exception is:
 org.apache.axis2.AxisFault: The server 10.68.150.83 failed to respond; 
nested exception is:
 org.apache.commons.httpclient.NoHttpResponseException: The server 
10.68.150.83 failed to respond&#13;
 at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:222)&#13;
 at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:639)&#13;
 at 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:43)&#13;
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:504)&#13;
 at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)&#13;
 at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)&#13;
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)&#13;
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)&#13;
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)&#13;
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)&#13;
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)&#13;
 at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)&#13;
 at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)&#13;
 at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)&#13;
 at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)&#13;
 at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)&#13;
 at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)&#13;
 at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)&#13;
 at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)&#13;
 at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)&#13;
 at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)&#13;
 at java.lang.Thread.run(Unknown Source)&#13;
Caused by: org.apache.axis2.AxisFault: The server 10.68.150.83 failed to 
respond; nested exception is:
 org.apache.commons.httpclient.NoHttpResponseException: The server 
10.68.150.83 failed to respond&#13;
 at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:304)&#13;
 at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)&#13;
 ... 21 more&#13;
Caused by: org.apache.commons.httpclient.NoHttpResponseException: The server 
10.68.150.83 failed to respond&#13;
 at 
org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1835)&#13;
 at 
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590)&#13;
 at 
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995)&#13;
 at 
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)&#13;
 at 
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)&#13;
 at 
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)&#13;
 at 
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)&#13;
 at 
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:654)&#13;
 at 
org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:115)&#13;
 at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:298)&#13;
 ... 22 more&#13;
</Exception></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>

Is it normal that the client and the server have the same file!! Actually i 
tried wwith two separate files but there is another exception
Have you got an idea??
Thx in advance
Fabien


----- Original Message ----- 
From: "Deepal Jayasinghe" <deepal@opensource.lk>
To: <axis-user@ws.apache.org>
Sent: Thursday, July 06, 2006 11:26 AM
Subject: Re: org.apache.axis2.phaseresolver.PhaseException


> Hi Fabien
>
> Fabien Couble wrote:
>
>>
>> I create my ServiceClient like this:
>>
>>    ConfigurationContext configContext =
>> ConfigurationContextFactory.createConfigurationContextFromFileSystem("C:/Program
>> Files/Apache Software Foundation/Tomcat 5.5/webapps/axis2/WEB-INF",
>> null);
>
>  ConfigurationContext configContext =
> ConfigurationContextFactory.createConfigurationContextFromFileSystem("C:/Program
> Files/Apache Software Foundation/Tomcat 5.5/webapps/axis2/WEB-INF",
> "C:/Program Files/Apache Software Foundation/Tomcat
> 5.5/webapps/axis2/WEB-INF/conf/axis2.xml");
>
>>
>>    //Non-Blocking Invocation
>>    sender = new ServiceClient(configContext, null);
>>    sender.engageModule(new QName(Constants.MODULE_ADDRESSING));
>>    sender.engageModule(new QName("logging"));
>>
>> Actually, the module WS-Addressing is well-engaged and works properly.
>> The client has access to the module "logging" in ./module/
>> Is it necessary to specify the location of the file axis2.xml or could
>> it work like that?
>> Actually I think, the client has access to my axis2.xml file but the
>> exception tells me that the phase isn't specify whereas it is.
>> I don't understand...
>>
>> Fabien
>> ----- Original Message ----- From: "Susanne Kaiser"
>> <susanne.kaiser@freiheit.com>
>> To: <axis-user@ws.apache.org>
>> Sent: Thursday, July 06, 2006 11:03 AM
>> Subject: Re: org.apache.axis2.phaseresolver.PhaseException
>>
>>
>>> How do you create your ServiceClient?
>>>
>>> If you use the default constructor, then the
>>> org/apache/axis2/deployment/axis2_default.xml configuration file from
>>> the axis2-kernel jar is going to be used instead of your adjusted
>>> axis2.xml.
>>>
>>> To use my axis2.xml file, I created a ConfigurationContext first and
>>> then the ServiceClient with the context as parameter:
>>>
>>> final URL axis2Url = ClassLoader.getSystemClassLoader().getResource(
>>> "conf/axis2.xml" );
>>> final ConfigurationContext context =
>>> ConfigurationContextFactory.createConfigurationContextFromFileSystem(
>>> null, axis2Url.getPath() );
>>> final ServiceClient serviceClient = new ServiceClient( context, null );
>>> serviceClient.engageModule( new QName( "logging" ) );
>>>
>>> Make sure, that your axis2.xml is residing in your classpath.
>>>
>>> -- 
>>> Susanne Kaiser
>>>
>>>
>>> On Thursday 06 July 2006 10:29, Fabien Couble wrote:
>>>
>>>>
>>>> Actually, I have already added this entry as you can see on the file.
>>>> Or maybe I did it wrong!!?
>>>> But I added the phase logging in every phase order type without any
>>>> success...
>>>>
>>>> Fabien
>>>>
>>>> ----- Original Message ----- From: "Deepal Jayasinghe"
>>>> <deepal@opensource.lk>
>>>> To: <axis-user@ws.apache.org>
>>>> Sent: Thursday, July 06, 2006 10:01 AM
>>>> Subject: Re: org.apache.axis2.phaseresolver.PhaseException
>>>>
>>>>
>>>> > You need to add following entry into axis2.xml
>>>> >
>>>> > <phaseOrder type="inflow">
>>>> >       <phase name="Logging"/>
>>>> > </phaseOrder>
>>>> >
>>>> > Fabien Couble wrote:
>>>> >
>>>> >> Hi,
>>>> >> I'm trying to engage a module at the client side but I have the
>>>> >> following exception
>>>> >>
>>>> >> org.apache.axis2.phaseresolver.PhaseException: Invalid phases please
>>>> >> recheck axis2.xml logging for the handler InFlowLogHandler
>>>> >>
>>>> >> at
>>>> >>
>>>> org.apache.axis2.phaseresolver.PhaseHolder.addHandler(PhaseHolder.java:66)
>>>>
>>>> >>
>>>> >> at
>>>> >>
>>>> org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:191)
>>>>
>>>> >>
>>>> >> at
>>>> >>
>>>> org.apache.axis2.description.AxisOperation.engageModule(AxisOperation.java:128)
>>>>
>>>> >>
>>>> >> at
>>>> >>
>>>> org.apache.axis2.description.AxisService.engageModule(AxisService.java:426)
>>>>
>>>> >>
>>>> >> at
>>>> >>
>>>> org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:279)
>>>>
>>>> >>
>>>> >> at
>>>> >>
>>>> userguide.clients.EchoNonBlockingDualClient.main(EchoNonBlockingDualClient.java:68)
>>>>
>>>> >>
>>>> >> As you can see, Axis finds the module without any problems but I
>>>> think
>>>> >> there is a problem with my configuration files and more precisely
>>>> >> axis2.xml. (as it is written)
>>>> >>
>>>> >> I don't understand because I include the phase name logging into
the
>>>> >> axis2.xml like in the module.xml.
>>>> >>
>>>> >> You can find enclosed my configuation files if you can have a
>>>> look it
>>>> >> could ce very nice...
>>>> >>
>>>> >> Thanks for your help...
>>>> >>
>>>> >> Fabien
>>>> >>
>>>> >> This message contains information that may be privileged or
>>>> >> confidential and is the property of the Capgemini Group. It is
>>>> >> intended only for the person to whom it is addressed. If you are
not
>>>> >> the intended recipient, you are not authorized to read, print,
>>>> retain,
>>>> >> copy, disseminate, distribute, or use this message or any part
>>>> >> thereof. If you receive this message in error, please notify the
>>>> >> sender immediately and delete all copies of this message.
>>>> >>
>>>> >>------------------------------------------------------------------------
>>>>
>>>> >>
>>>> >>---------------------------------------------------------------------
>>>> >>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>>> >>For additional commands, e-mail: axis-user-help@ws.apache.org
>>>> >>
>>>> >
>>>> > -- > Thanks,
>>>> > Deepal
>>>> > ................................................................
>>>> > ~Future is Open~
>>>> >
>>>> >
>>>> >
>>>> > ---------------------------------------------------------------------
>>>> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>>> > For additional commands, e-mail: axis-user-help@ws.apache.org
>>>>
>>>>
>>>> This message contains information that may be privileged or
>>>> confidential and is the property of the Capgemini Group. It is
>>>> intended only for the person to whom it is addressed. If you are not
>>>> the intended recipient, you are not authorized to read, print,
>>>> retain, copy, disseminate, distribute, or use this message or any
>>>> part thereof. If you receive this message in error, please notify
>>>> the sender immediately and delete all copies of this message.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>>
>> This message contains information that may be privileged or
>> confidential and is the property of the Capgemini Group. It is
>> intended only for the person to whom it is addressed. If you are not
>> the intended recipient,  you are not authorized to read, print,
>> retain, copy, disseminate,  distribute, or use this message or any
>> part thereof. If you receive this  message in error, please notify the
>> sender immediately and delete all  copies of this message.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>>
>
> -- 
> Thanks,
> Deepal
> ................................................................
> ~Future is Open~
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org 


This message contains information that may be privileged or confidential and is the property
of the Capgemini Group. It is intended only for the person to whom it is addressed. If you
are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,
 distribute, or use this message or any part thereof. If you receive this  message in error,
please notify the sender immediately and delete all  copies of this message.


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


Mime
View raw message