The namespace is not declared properly in the endpoint file. It must be:
alias.ode_ns=http://NSFromMyService/ <http://nsfrommyservice/>

Mind the 'alias' prefix.

See ode/axis2-war/src/test/resources/TestSoapHeader, for a test case.

Alexis

On Thu, Oct 8, 2009 at 2:16 AM, Park033 <[email protected]> wrote:

>
> Hello,
>
> Ths for you're help Alexis, I've fixed my problem (my ODE version didn't
> loaded my property file so I've updated ODE to 1.3.3 and it works now,
> property file is loaded).
>
> Loaded but didn't works in my process...
>
> Here my broker.endpoint :
> ode_ns=http://NSFromMyService/
> ode_ns.MyService.MyServicePort.ode.address=http://MyNewAndSexyEndpoint
>
> Here my Service.wsdl :
>
> <wsdl:definitions
>  targetNamespace="http://NSFromMyService/";
>  txmlns:tns="http://NSFromMyService/";>
> [...]
> <wsdl:service name="MyService">
>     <wsdl:port name="MyServicePort" binding="tns:MyBinding">
>          <wsdlsoap:address location="http://MyOldAndUglyEndpoint"; />
>      </wsdl:port>
> </wsdl:service>
>
> The Deployment works fine, but when I invoke the WS describe in my
> "Service.wsdl" the process took "MyOldAndUglyEndpoint" instead of
> "MyNewAndSexyEndpoint" from my broker.endpoint.
>
>
> Here the log :
>
> Loading property log :
> - DEBUG - GeronimoLog.debug(66) | Loading property file:
> C:\jboss-4.2.3.GA
> \server\default\.\deploy\ode.war\WEB-INF\processes\editique-1\broker.endpoint
> - DEBUG - GeronimoLog.debug(66) | New property:ode_ns ->
> http://NSFromMyService
> - DEBUG - GeronimoLog.debug(66) | New property: address ->
> http://MyNewAndSexyEndpoint
> - INFO - GeronimoLog.info(79) | [Endpoint files for {DeploymentUnit
> editique-1}] updated
> - DEBUG - GeronimoLog.debug(66) | Properties for service
> {http://pv-bpel-editique/}procEditiqueService<http://pv-bpel-editique/%7DprocEditiqueService>,
> port procEditiquePort:
> {ode_ns=>http://NSFromMyService}
> - DEBUG - GeronimoLog.debug(66) | Creating ProcessDao object for process
> "{http://pv-bpel-editique/}procEditique-103<http://pv-bpel-editique/%7DprocEditique-103>
> ".
> - INFO - GeronimoLog.info(79) | Created new process DAO for
> {http://pv-bpel-editique/}procEditique-103<http://pv-bpel-editique/%7DprocEditique-103>(guid=hqejbhcnphr4nhuk560cst)
> - INFO - GeronimoLog.info(79) | Registered process
> {http://pv-bpel-editique/}procEditique-103<http://pv-bpel-editique/%7DprocEditique-103>
> .
>
>
> When the WS is called log :
> 16:02:54 - DEBUG - GeronimoLog.debug(66) |
> [C:\jboss-4.2.3.GA
> \server\default\deploy\ode.war\WEB-INF\processes\editique-1\MyService.axis2]
> check for changes
> 16:02:54 - INFO - GeronimoLog.info(79) |
> [C:\jboss-4.2.3.GA
> \server\default\deploy\ode.war\WEB-INF\processes\editique-1\MyService.axis2]
> initialized
> 16:02:54 - DEBUG - GeronimoLog.debug(66) | [Properties for Endpoint:
> {http://NSFromMyService/}MyService#MyServicePort<http://NSFromMyService/%7DMyService#MyServicePort>]
> check for changes
> 16:02:54 - DEBUG - GeronimoLog.debug(66) | Properties for service
> {http://NSFromMyService/}MyService <http://NSFromMyService/%7DMyService>,
> port MyServicePort:
> {ode_ns=>http://NSFromMyService/}
> 16:02:54 - DEBUG - GeronimoLog.debug(66) | Properties for service
> {http://NSFromMyService/}MyService <http://NSFromMyService/%7DMyService>,
> port MyServicePort:
> {ode_ns=>http://NSFromMyService/}
> 16:02:54 - DEBUG - GeronimoLog.debug(66) | Translating Properties for Axis2
> 16:02:54 - INFO - GeronimoLog.info(79) | [Properties for Endpoint:
> {http://NSFromMyService/}MyService#MyServicePort<http://NSFromMyService/%7DMyService#MyServicePort>]
> updated
> 16:02:54 - DEBUG - GeronimoLog.debug(66) | Commiting on
> com.arjuna.ats.jbossatx.jta.transactionmanagerdeleg...@eeb560...
> 16:02:57 - ERROR - GeronimoLog.error(108) | Error sending message
> (mex={PartnerRoleMex#4611686018427387904 [PID
> {http://pv-bpel-editique/}procEditique-103<http://pv-bpel-editique/%7DprocEditique-103>]
> calling
> [email protected](...)}):
> MyOldAndUglyEndpoint
> org.apache.axis2.AxisFault: MyOldAndUglyEndpoint
>        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
>        at
> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:195)
>        at
> org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
>        at
>
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327)
>        at
>
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)
>        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
>        at
>
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374)
>        at
>
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
>        at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
>        at
>
> org.apache.ode.axis2.SoapExternalService$1$1.call(SoapExternalService.java:201)
>        at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>        at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>        at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>        at java.lang.Thread.run(Thread.java:619)
> Caused by: java.net.UnknownHostException: MyOldAndUglyEndpoint
>        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
>        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
>        at java.net.Socket.connect(Socket.java:519)
>        at java.net.Socket.connect(Socket.java:469)
>        at java.net.Socket.<init>(Socket.java:366)
>        at java.net.Socket.<init>(Socket.java:240)
>        at
>
> org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:79)
>        at
>
> org.apache.commons.httpclient.protocol.ControllerThreadSocketFactory$1.doit(ControllerThreadSocketFactory.java:90)
>        at
>
> org.apache.commons.httpclient.protocol.ControllerThreadSocketFactory$SocketTask.run(ControllerThreadSocketFactory.java:157)
>        ... 1 more
> 16:02:57 - DEBUG - GeronimoLog.debug(66) | Beginning a new transaction
> 16:02:57 - DEBUG - GeronimoLog.debug(66) | Commiting on
> com.arjuna.ats.jbossatx.jta.transactionmanagerdeleg...@eeb560...
> 16:02:57 - DEBUG - GeronimoLog.debug(66) | Beginning a new transaction
> 16:02:57 - DEBUG - GeronimoLog.debug(66) | injecting (...)
> 16:02:57 - ERROR - GeronimoLog.error(104) | Failure during invoke: Error
> sending message (mex={PartnerRoleMex#4611686018427387904 [PID
> {http://pv-bpel-editique/}procEditique-103<http://pv-bpel-editique/%7DprocEditique-103>]
> calling
> [email protected](...)}):
> MyOldAndUglyEndpoint
> 16:02:57 - DEBUG - GeronimoLog.debug(66) | Removing mex 4611686018427387904
> from memory store.
> 16:02:57 - DEBUG - GeronimoLog.debug(66) | ActivityRecovery: Activity 16
> requires recovery
> 16:02:57 - INFO - GeronimoLog.info(79) | ActivityRecovery: Registering
> activity 16, failure reason: Error sending message
> (mex={PartnerRoleMex#4611686018427387904 [PID
> {http://pv-bpel-editique/}procEditique-103<http://pv-bpel-editique/%7DprocEditique-103>]
> calling
> [email protected](...)}):
> MyOldAndUglyEndpoint on channel 27
> 16:02:57 - DEBUG - GeronimoLog.debug(66) | Commiting on
> com.arjuna.ats.jbossatx.jta.transactionmanagerdeleg...@eeb560...
> 16:02:57 - DEBUG - GeronimoLog.debug(66) | Properties for service
> {http://pv-bpel-editique/}procEditiqueService<http://pv-bpel-editique/%7DprocEditiqueService>,
> port procEditiquePort:
> {ode_ns=>http://NSFromMyService/}
> 16:02:57 - WARN - GeronimoLog.warn(96) | MEX produced a fault
> {MyRoleMex#4611686018427387903 [Client hqejbhcnphr4nhuk560csu] calling
> {http://pv-bpel-editique/}procEditiqueService.process(...)<http://pv-bpel-editique/%7DprocEditiqueService.process%28...%29>
> }
> org.apache.ode.axis2.OdeFault: Message exchange failure due to: Error
> sending message (mex={PartnerRoleMex#4611686018427387904 [PID
> {http://pv-bpel-editique/}procEditique-103<http://pv-bpel-editique/%7DprocEditique-103>]
> calling
> [email protected](...)}):
> MyOldAndUglyEndpoint
>        at
>
> org.apache.ode.axis2.util.SoapMessageConverter.createOdeFault(SoapMessageConverter.java:570)
>        at org.apache.ode.axis2.ODEService.onResponse(ODEService.java:282)
>        at
> org.apache.ode.axis2.ODEService.onAxisMessageExchange(ODEService.java:189)
>        at
>
> org.apache.ode.axis2.hooks.ODEMessageReceiver.invokeBusinessLogic(ODEMessageReceiver.java:69)
>        at
>
> org.apache.ode.axis2.hooks.ODEMessageReceiver.invokeBusinessLogic(ODEMessageReceiver.java:52)
>        at
>
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96)
>        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
>        at
>
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
>        at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120)
>        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:182)
>        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:619)
>
>
> If you have any idea...
>
> Vincent
>
>
> Alexis Midon-2 wrote:
> >
> > You would need to activate some logging:set the category org.apache.utils
> > to
> > DEBUG, then restart.
> >
> >
> > if should see some messages like:
> > 14:22:17,184 DEBUG [HierarchicalProperties] Loading property file:
> > (..)/HelloWorld/HelloWorld.ode/config.endpoint
> >
> > On Wed, Sep 16, 2009 at 8:11 AM, Park033 <[email protected]> wrote:
> >
> >>
> >> Hi,
> >>
> >> I have exactly the same problem, my broker.endpoint is deployed in my
> >> process/$SERVICENAME folder,
> >> the namespace in the property file is the same as in the wsdl and my
> >> properties are well formed (i.e : ode_ns.SampleService.ode.address=....
> >> (the service port is optional))
> >>
> >> Where can I see if my broker.endpoint is well deployed/used in my
> >> ode/process ?
> >>
> >> Ths,
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/WSDL-Endpoint-URL-Address-tp23524951p25800768.html
> Sent from the Apache Ode User mailing list archive at Nabble.com.
>
>

Reply via email to