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 Rick Isaacs <re...@gmail.com> on 2007/11/15 21:13:46 UTC
Axis2 sample problem - Userguide sample still a problem
Hi,
I tried to build the Userguide sample that Vy Bui had a problem.
I have tried to run the Axis2 userguide sample, but I can not get the
"blocking dual" samples to
work. I keep getting the following error:
[java] org.apache.axis2.AxisFault: Unable to engage module : addressing
1.) The build.xml was corrected to compile using (A)
2.) Commented out <jvmarg value= /> for all the Ant tasks to not use
the sample axis2.xml.
I keep getting addressing errors for all the sample clients.
3.) "C:\apache-tomcat-5.5.25\webapps\axis2\WEB-INF\samples\userguide\conf\axis2.xml"
file that is part of the original sample was not used.
4.) I added the logging phases as outlined to axis2.xml in the Axis2
manual a Userguide Readme.
5.) Running all the clients the dual samples keeping getting an
addressing error. Why?
----------------------------------------------------
BUILD.XML - changed
<!--
<target name="generate.module">
-->
<target name="generate.module" depends="compile">
<----- (A)
.....
<target name="run.client.blocking" depends="compile">
<echo message="***** run.client.blocking" />
<java classname="userguide.clients.EchoBlockingClient"
classpathref="axis.classpath" fork="true">
<!--
<---- (B)
<jvmarg value="-Daxis2.repo=${mainDir}/repository"/>
don't use the sample axis2.xml
<jvmarg value="-Daxis2.xml=conf/axis2.xml"/>
-->
</java>
</target>
<target name="run.client.blockingdual" depends="compile">
<echo message="***** run.client.blockingdual" />
<java classname="userguide.clients.EchoBlockingDualClient"
classpathref="axis.classpath" fork="true">
<!-- <---- (B)
<jvmarg value="-Daxis2.repo=${mainDir}/repository"/>
<jvmarg value="-Daxis2.xml=conf/axis2.xml"/>
-->
</java>
</target>
----------------------------------------------------
Not used from sample
C:\apache-tomcat-5.5.25\webapps\axis2\WEB-INF\samples\userguide\conf\original_axis2.xml
<--(C)
----------------------------------------------------
Changed C:\apache-tomcat-5.5.25\webapps\axis2\WEB-INF\conf\axis2.xml
....
<!-- ================================================= -->
<!-- Global Modules -->
<!-- ================================================= -->
<!-- Comment this to disable Addressing -->
<module ref="addressing"/>
<module ref="soapmonitor"/>
....
<!-- System predefined phases -->
<!-- After Postdispatch phase module author or service
author can add any phase he want -->
<phase name="OperationInPhase"/>
<phase name="soapmonitorPhase"/>
<phase name="loggingPhase"/>
</phaseOrder>
<phaseOrder type="OutFlow">
.....
----------------------------------------------------
RUN.CLIENT.ALL - test
run.client.ping: <--- OK
[echo] ***** run.client.ping
run.client.blocking:
[echo] ***** run.client.blocking <--- OK
[java] ++++
[java] Address: http://localhost:8080/axis2/services/WsaMappingTest
[java] log4j:WARN No appenders could be found for logger
(org.apache.axis2.util.Loader).
[java] log4j:WARN Please initialize the log4j system properly.
run.client.blockingdual: <--- ERROR
[echo] ***** run.client.blockingdual
[java] log4j:WARN No appenders could be found for logger
(org.apache.axis2.util.Loader).
[java] log4j:WARN Please initialize the log4j system properly.
[java] org.apache.axis2.AxisFault: Unable to engage module : addressing
[java] at
org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:339)
run.client.nonblocking: <--- OK
[echo] ***** run.client.nonblocking
run.client.nonblockingdual: <--- ERROR
[echo] ***** run.client.nonblockingdual
[java] log4j:WARN No appenders could be found for logger
(org.apache.axis2.util.Loader).
[java] log4j:WARN Please initialize the log4j system properly.
[java] org.apache.axis2.AxisFault: Unable to engage module : addressing
run.client.servicewithmodule: <--- OK
[echo] ***** run.client.servicewithmodule
[echo] ../..
[echo] ../../repository/conf/axis2.xml
[java] <example1:echo
xmlns:example1="http://example1.org/example1"><example1:Text>Axis2
Echo String </example1:Text></e
----------------------------------------------------
Rick Isaacs
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Axis2 sample problem - Userguide sample still a problem
Posted by Rick Isaacs <re...@gmail.com>.
Hi Martin,
Thanks the suggestions.
I found the addressing problem, but the dual samples now give socket
errors and I had add the servlet.jar to the lib.
>here are the steps
>cd $AXIS2_HOME/samples/userguide
>ant
OK
>http://localhost:8080/axis2/axis2-admin/listService
>UploadService
>$AXIS2_HOME/repository/services/sample-MyService.aar
OK
>Services/ActivateService MyService
>dir F:\TOMCAT\APACHE~1.17\webapps\axis2\WEB-INF\sample-MyService.aar
>vi F:\TOMCAT\APACHE~1.17\webapps\axis2\WEB-INF\services.list (make sure
>sample-MyService.aar is listed)
OK
>dir F:\TOMCAT\APACHE~1.17\webapps\axis2\WEB-INF\modules\addressing.mar
>vi F:\TOMCAT\APACHE~1.17\webapps\axis2\WEB-INF\modules.list (make sure
>addressing.mar is listed)
OK
>EngageModule/For A ServiceModule:addressing
>Select a Service:MyService
>addressing module engaged to the service successfully
OK
>Does this not work for you?
Still not working.
Summary
1.) The addressing module and, I guess all other modules, are found in
/modules/repository
which is due to the following setting in the build.xml
<jvmarg value="-Daxis2.repo=${mainDir}/repository"/>
<jvmarg value="-Daxis2.xml=conf/axis2.xml"/>
This is the reason for the addressing problem.
2.) For the following samples to run I had to add "servlet-api.jar" to Axis jars
in C:\apache-tomcat-5.5.25\webapps\axis2\WEB-INF\lib
See Tomcat startup problem.
3.) The following run OK
ant run.client.ping
ant run.client.blocking
ant run.client.nonblocking
ant run.client.servicewithmodule
4.) The following run - output to Tomcat window, then display many
connection errors and finally hang
ant run.client.blockingdual
ant run.client.nonblockingdual
ERROR: java.net.BindException: Address already in use: JVM_Bind see below.
5.) I have included files, logs and traces.
>What do the tomcat logs say?
--------------------------------------------
Tomcat startup log
The servlet-api.jar must be present in order for any of the sample to execute
INFO: validateJarFile(C:\apache-tomcat-5.5.25\webapps\axis2\WEB-INF\lib\servlet-api.jar)
- jar not loaded.
See Servlet Spec 2.3, section 9.7.2. Offending class:
javax/servlet/Servlet.class
INFO] Deploying module: addressing-1.3
INFO] Deploying module: script-1.3
[INFO] Deploying module: addressing-1.3
[INFO] Deploying module: script-1.3
[INFO] Deploying module: metadataExchange-1.3
[INFO] Deploying module: ping-1.3
[INFO] Deploying module: sample-logging
[INFO] Deploying module: soapmonitor-1.3
[INFO] script module activated
[INFO] Deploying Web service: sample-MyService.aar
[INFO] Deploying Web service: sample-MyServiceWithModule.aar
[INFO] Deploying Web service: sample-WsaMappingService.aar
[INFO] Deploying Web service: SampleService.aar
[INFO] Deploying Web service: version-1.3.aar
6-Nov-2007 11:39:52 org.apache.coyote.http11.Htt
NFO: Starting Coyote HTTP/1.1 on http-8080
6-Nov-2007 11:39:52 org.apache.jk.common.Channel
...
INFO: Server startup in 9323 ms
--------------------------------------------
original sample for usergruide build.xml
<target name="run.client.ping" depends="compile">
<java classname="userguide.clients.PingClient"
classpathref="axis.classpath" fork="true">
<jvmarg value="-Daxis2.repo=${mainDir}/repository"/>
<<<<<<<<< looks in /respository
<jvmarg value="-Daxis2.xml=conf/axis2.xml"/> see below for logging phase
</java>
</target>
--------------------------------------------
My modules.list
addressing-1.3.mar
soapmonitor-1.3.mar
ping-1.3.mar
mex-1.3.mar
axis2-scripting-1.3.mar
logging.mar
--------------------------------------------
My services.list
version-1.3.aar
sample-MyService.aar
sample-MyServiceWithModule.aar
sample-WsaMappingService.aar
--------------------------------------------
AdminServlet
MyService
Service EPR : http://127.0.0.1:8080/axis2/services/MyService
Service Description : MyService
Service Status : Active
Engaged modules for the service
* addressing :: Disengage
* soapmonitor :: Disengage
Available operations
* ping
Engaged Modules for the Operation
o addressing :: Disengage
--------------------------------------------
AdminServlet
Available Modules
* metadataExchange : module description not found
* addressing : This is the WS-Addressing implementation on Axis2,
supporting the WS-Addressing 1.0 Recommendation, as well as the
Submission version (2004/08).
* soapmonitor : module description not found
* sample-logging : module description not found
* ping : module description not found
* script : module description not found
Why is sample-logging not found?
--------------------------------------------
ERROR with dual
In Tomcat window during run of blockingdual
Example1:echo
[INFO] <?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsa="http://www.w3.org/2005/08/addressing">
<soapenv:Header><wsa:To>http://www.w3.org/2005/08/addressing/none</wsa:To>
<wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
</wsa:ReplyTo>
<wsa:MessageID>urn:uuid:5878B129FAFD5FE8FC1195212602966</wsa:MessageID>
<wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action>
<wsa:RelatesTo>urn:uuid:5878B129FAFD5FE8FC1195212602945</wsa:RelatesTo>
<wsa:FaultDetail><wsa:ProblemAction><wsa:Action>urn:echoResponse</wsa:Action>
</wsa:ProblemAction></wsa:FaultDetail>
</soapenv:Header><soapenv:Body>
<soapenv:Fault><faultcode>wsa:ActionNotSupported</faultcode>
<faultstring>The [action] cannot be processed at the
receiver.</faultstring><detail />
</soapenv:Fault></soapenv:Body></soapenv:Envelope>
--------
run.client.blockingdual:
[java] Address: http://127.0.0.1:8080/axis2/services/MyService
[java] [INFO] Deploying module: addressing-1.3
[java] [INFO] Deploying module: script-1.3
[java] [INFO] Deploying module: sample-logging
[java] [INFO] Deploying module: metadataExchange-1.3
[java] [INFO] Deploying module: ping-1.3
[java] [INFO] Deploying module: sample-logging
[java] [INFO] Deploying module: soapmonitor-1.3
[java] [INFO] script module activated
[java] [INFO] Deploying Web service: sample-MyService.aar
[java] [INFO] Deploying Web service: sample-MyServiceWithModule.aar
[java] [INFO] Deploying Web service: sample-WsaMappingService.aar
[java] org.apache.axis2.client.ServiceClient@1a7508a
[java] org.apache.axis2.client.Options@198cb3d
[java] [WARN] Attempt number 1 of 10 to reestalish connection
listener org.apache.axis2.transport.http.server.DefaultConnectionLis
[java] java.net.BindException: Address already in use: JVM_Bind
[java] at java.net.PlainSocketImpl.socketBind(Native Method)
[java] at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
[java] at java.net.ServerSocket.bind(ServerSocket.java:319)
[java] at java.net.ServerSocket.<init>(ServerSocket.java:185)
[java] at java.net.ServerSocket.<init>(ServerSocket.java:97)
[java] at
org.apache.axis2.transport.http.server.DefaultConnectionListener.run(DefaultConnectionListener.java:72)
[java] at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
[java] at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
[java] at java.lang.Thread.run(Thread.java:595)
[java] [WARN] Attempt number 2 of 10 to reestalish connection
listener org.apache.axis2.transport.http.server.DefaultConnectionLis
[java] java.net.BindException: Address already in use: JVM_Bind
[java] at java.net.PlainSocketImpl.socketBind(Native Method)
[java] at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
[java] at java.net.ServerSocket.bind(ServerSocket.java:319)
[java] at java.net.ServerSocket.<init>(ServerSocket.java:185)
[java] at java.net.ServerSocket.<init>(ServerSocket.java:97)
[java] at
org.apache.axis2.transport.http.server.DefaultConnectionListener.run(DefaultConnectionListener.java:72)
[java] at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
[java] at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
[java] at java.lang.Thread.run(Thread.java:595)
[java] [WARN] Attempt number 3 of 10 to reestalish connection
listener org.apache.axis2.transport.http.server.DefaultConnectionLis
[java] java.net.BindException: Address already in use: JVM_Bind
[java] at java.net.PlainSocketImpl.socketBind(Native Method)
[java] at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
[java] at java.net.ServerSocket.bind(ServerSocket.java:319)
[java] at java.net.ServerSocket.<init>(ServerSocket.java:185)
[java] at java.net.ServerSocket.<init>(ServerSocket.java:97)
[java] at
org.apache.axis2.transport.http.server.DefaultConnectionListener.run(DefaultConnectionListener.java:72)
[java] at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
[java] at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
[java] at java.lang.Thread.run(Thread.java:595)
[java] [WARN] Attempt number 4 of 10 to reestalish connection
listener org.apache.axis2.transport.http.server.DefaultConnectionLis
[java] java.net.BindException: Address already in use: JVM_Bind
[java] at java.net.PlainSocketImpl.socketBind(Native Method)
[java] at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
[java] at java.net.ServerSocket.bind(ServerSocket.java:319)
[java] at java.net.ServerSocket.<init>(ServerSocket.java:185)
[java] at java.net.ServerSocket.<init>(ServerSocket.java:97)
[java] at
org.apache.axis2.transport.http.server.DefaultConnectionListener.run(DefaultConnectionListener.java:72)
[java] at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
[java] at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
[java] at java.lang.Thread.run(Thread.java:595)
[java] [WARN] Attempt number 5 of 10 to reestalish connection
listener org.apache.axis2.transport.http.server.DefaultConnectionLis
[java] java.net.BindException: Address already in use: JVM_Bind
[java] at java.net.PlainSocketImpl.socketBind(Native Method)
[java] at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
[java] at java.net.ServerSocket.bind(ServerSocket.java:319)
[java] at java.net.ServerSocket.<init>(ServerSocket.java:185)
[java] at java.net.ServerSocket.<init>(ServerSocket.java:97)
[java] at
org.apache.axis2.transport.http.server.DefaultConnectionListener.run(DefaultConnectionListener.java:72)
[java] at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
[java] at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
[java] at java.lang.Thread.run(Thread.java:595)
[java] [WARN] Attempt number 6 of 10 to reestalish connection
listener org.apache.axis2.transport.http.server.DefaultConnectionLis
[java] java.net.BindException: Address already in use: JVM_Bind
[java] at java.net.PlainSocketImpl.socketBind(Native Method)
[java] at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
[java] at java.net.ServerSocket.bind(ServerSocket.java:319)
[java] at java.net.ServerSocket.<init>(ServerSocket.java:185)
[java] at java.net.ServerSocket.<init>(ServerSocket.java:97)
[java] at
org.apache.axis2.transport.http.server.DefaultConnectionListener.run(DefaultConnectionListener.java:72)
[java] at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
[java] at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
[java] at java.lang.Thread.run(Thread.java:595)
[java] [WARN] Attempt number 7 of 10 to reestalish connection
listener org.apache.axis2.transport.http.server.DefaultConnectionLis
[java] java.net.BindException: Address already in use: JVM_Bind
[java] at java.net.PlainSocketImpl.socketBind(Native Method)
[java] at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
[java] at java.net.ServerSocket.bind(ServerSocket.java:319)
[java] at java.net.ServerSocket.<init>(ServerSocket.java:185)
[java] at java.net.ServerSocket.<init>(ServerSocket.java:97)
[java] at
org.apache.axis2.transport.http.server.DefaultConnectionListener.run(DefaultConnectionListener.java:72)
[java] at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
[java] at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
[java] at java.lang.Thread.run(Thread.java:595)
[java] [WARN] Attempt number 8 of 10 to reestalish connection
listener org.apache.axis2.transport.http.server.DefaultConnectionLis
[java] java.net.BindException: Address already in use: JVM_Bind
[java] at java.net.PlainSocketImpl.socketBind(Native Method)
[java] at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
[java] at java.net.ServerSocket.bind(ServerSocket.java:319)
[java] at java.net.ServerSocket.<init>(ServerSocket.java:185)
[java] at java.net.ServerSocket.<init>(ServerSocket.java:97)
[java] at
org.apache.axis2.transport.http.server.DefaultConnectionListener.run(DefaultConnectionListener.java:72)
[java] at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
[java] at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
[java] at java.lang.Thread.run(Thread.java:595)
[java] [WARN] Attempt number 9 of 10 to reestalish connection
listener org.apache.axis2.transport.http.server.DefaultConnectionLis
[java] java.net.BindException: Address already in use: JVM_Bind
[java] at java.net.PlainSocketImpl.socketBind(Native Method)
[java] at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
[java] at java.net.ServerSocket.bind(ServerSocket.java:319)
[java] at java.net.ServerSocket.<init>(ServerSocket.java:185)
[java] at java.net.ServerSocket.<init>(ServerSocket.java:97)
[java] at
org.apache.axis2.transport.http.server.DefaultConnectionListener.run(DefaultConnectionListener.java:72)
[java] at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
[java] at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
[java] at java.lang.Thread.run(Thread.java:595)
[java] [WARN] Attempt number 10 of 10 to reestalish connection
listener org.apache.axis2.transport.http.server.DefaultConnectionLi
[java] java.net.BindException: Address already in use: JVM_Bind
[java] at java.net.PlainSocketImpl.socketBind(Native Method)
[java] at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
[java] at java.net.ServerSocket.bind(ServerSocket.java:319)
[java] at java.net.ServerSocket.<init>(ServerSocket.java:185)
[java] at java.net.ServerSocket.<init>(ServerSocket.java:97)
[java] at
org.apache.axis2.transport.http.server.DefaultConnectionListener.run(DefaultConnectionListener.java:72)
[java] at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
[java] at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
[java] at java.lang.Thread.run(Thread.java:595)
[java] [ERROR] Terminating connection listener
org.apache.axis2.transport.http.server.DefaultConnectionListener@100363
after 10ret
[java] java.net.BindException: Address already in use: JVM_Bind
[java] at java.net.PlainSocketImpl.socketBind(Native Method)
[java] at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
[java] at java.net.ServerSocket.bind(ServerSocket.java:319)
[java] at java.net.ServerSocket.<init>(ServerSocket.java:185)
[java] at java.net.ServerSocket.<init>(ServerSocket.java:97)
[java] at
org.apache.axis2.transport.http.server.DefaultConnectionListener.run(DefaultConnectionListener.java:72)
[java] at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
[java] at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
[java] at java.lang.Thread.run(Thread.java:595)
[java] org.apache.axis2.AxisFault: Time out while waiting for the
server to send the response.
[java] at
org.apache.axis2.description.OutInAxisOperationClient$SyncCallBack.waitForCompletion(OutInAxisOperation.java:469)
[java] at
org.apache.axis2.description.OutInAxisOperationClient.sendAsync(OutInAxisOperation.java:286)
[java] at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:207)
[java] at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
[java] at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528)
[java] at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508)
[java] [SimpleHTTPServer] Stop called
[java] [INFO] Shut down connection listener
[java] [INFO] Shut down HTTP processors
[java] [INFO] HTTP protocol handler shut down
[java] at userguide.clients.EchoBlockingDualClient.main(Unknown Source)
CTRL-C to stop
--------------------------------------------
C:\apache-tomcat-5.5.25\webapps\axis2\WEB-INF\samples\userguide\conf\axis2.xml
<axisconfig name="AxisJava2.0">
<!-- ================================================= -->
<!-- Global Modules -->
<!-- ================================================= -->
<!-- Comment this to disable Addressing -->
<module ref="addressing"/>
<module ref="soapmonitor"/>
<!-- ================================================= -->
<!-- Phases -->
<!-- ================================================= -->
<phaseOrder type="InFlow">
<phase name="loggingPhase"/>
<phaseOrder type="OutFlow">
<phase name="loggingPhase"/>
<phaseOrder type="InFaultFlow">
<phase name="loggingPhase"/>
<phaseOrder type="OutFaultFlow">
<phase name="loggingPhase"/>
</axisconfig>
--------------------------------------------
On Nov 15, 2007 10:09 PM, Martin Gainty <mg...@hotmail.com> wrote:
> Hi Rick-
>
> here are the steps
> cd $AXIS2_HOME/samples/userguide
> ant
>
> http://localhost:8080/axis2/axis2-admin/listService
> UploadService
> $AXIS2_HOME/repository/services/sample-MyService.aar
>
> Services/ActivateService MyService
> dir F:\TOMCAT\APACHE~1.17\webapps\axis2\WEB-INF\sample-MyService.aar
> vi F:\TOMCAT\APACHE~1.17\webapps\axis2\WEB-INF\services.list (make sure
> sample-MyService.aar is listed)
>
> dir F:\TOMCAT\APACHE~1.17\webapps\axis2\WEB-INF\modules\addressing.mar
> vi F:\TOMCAT\APACHE~1.17\webapps\axis2\WEB-INF\modules.list (make sure
> addressing.mar is listed)
>
> EngageModule/For A Service
> Module:addressing
> Select a Service:MyService
>
> addressing module engaged to the service successfully
>
> Does this not work for you?
> What do the tomcat logs say?
>
> M-
>
> ----- Original Message -----
> From: "Rick Isaacs" <re...@gmail.com>
> To: <ax...@ws.apache.org>
> Sent: Thursday, November 15, 2007 3:13 PM
> Subject: Axis2 sample problem - Userguide sample still a problem
>
>
> > Hi,
> >
> > I tried to build the Userguide sample that Vy Bui had a problem.
> >
> > I have tried to run the Axis2 userguide sample, but I can not get the
> > "blocking dual" samples to
> > work. I keep getting the following error:
> >
> > [java] org.apache.axis2.AxisFault: Unable to engage module :
> addressing
> >
> > 1.) The build.xml was corrected to compile using (A)
> >
> > 2.) Commented out <jvmarg value= /> for all the Ant tasks to not use
> > the sample axis2.xml.
> >
> > I keep getting addressing errors for all the sample clients.
> >
> > 3.)
> "C:\apache-tomcat-5.5.25\webapps\axis2\WEB-INF\samples\userguide\conf\axis2.
> xml"
> >
> > file that is part of the original sample was not used.
> >
> > 4.) I added the logging phases as outlined to axis2.xml in the Axis2
> > manual a Userguide Readme.
> >
> > 5.) Running all the clients the dual samples keeping getting an
> > addressing error. Why?
> >
> > ----------------------------------------------------
> >
> >
> > BUILD.XML - changed
> >
> >
> > <!--
> > <target name="generate.module">
> > -->
> >
> > <target name="generate.module" depends="compile">
> > <----- (A)
> >
> > .....
> >
> > <target name="run.client.blocking" depends="compile">
> > <echo message="***** run.client.blocking" />
> > <java classname="userguide.clients.EchoBlockingClient"
> > classpathref="axis.classpath" fork="true">
> > <!--
> > <---- (B)
> >
> > <jvmarg value="-Daxis2.repo=${mainDir}/repository"/>
> > don't use the sample axis2.xml
> > <jvmarg value="-Daxis2.xml=conf/axis2.xml"/>
> > -->
> >
> > </java>
> > </target>
> >
> > <target name="run.client.blockingdual" depends="compile">
> > <echo message="***** run.client.blockingdual" />
> > <java classname="userguide.clients.EchoBlockingDualClient"
> > classpathref="axis.classpath" fork="true">
> >
> > <!-- <---- (B)
> > <jvmarg value="-Daxis2.repo=${mainDir}/repository"/>
> > <jvmarg value="-Daxis2.xml=conf/axis2.xml"/>
> > -->
> >
> > </java>
> > </target>
> >
> >
> > ----------------------------------------------------
> >
> > Not used from sample
> >
> >
> C:\apache-tomcat-5.5.25\webapps\axis2\WEB-INF\samples\userguide\conf\origina
> l_axis2.xml
> > <--(C)
> >
> > ----------------------------------------------------
> >
> > Changed C:\apache-tomcat-5.5.25\webapps\axis2\WEB-INF\conf\axis2.xml
> >
> > ....
> >
> > <!-- ================================================= -->
> > <!-- Global Modules -->
> > <!-- ================================================= -->
> > <!-- Comment this to disable Addressing -->
> >
> > <module ref="addressing"/>
> >
> > <module ref="soapmonitor"/>
> >
> > ....
> >
> > <!-- System predefined phases -->
> > <!-- After Postdispatch phase module author or service
> > author can add any phase he want -->
> > <phase name="OperationInPhase"/>
> > <phase name="soapmonitorPhase"/>
> >
> > <phase name="loggingPhase"/>
> >
> > </phaseOrder>
> > <phaseOrder type="OutFlow">
> >
> > .....
> >
> > ----------------------------------------------------
> >
> > RUN.CLIENT.ALL - test
> >
> >
> > run.client.ping: <--- OK
> > [echo] ***** run.client.ping
> > run.client.blocking:
> > [echo] ***** run.client.blocking <--- OK
> > [java] ++++
> > [java] Address: http://localhost:8080/axis2/services/WsaMappingTest
> > [java] log4j:WARN No appenders could be found for logger
> > (org.apache.axis2.util.Loader).
> > [java] log4j:WARN Please initialize the log4j system properly.
> >
> > run.client.blockingdual: <--- ERROR
> > [echo] ***** run.client.blockingdual
> > [java] log4j:WARN No appenders could be found for logger
> > (org.apache.axis2.util.Loader).
> > [java] log4j:WARN Please initialize the log4j system properly.
> > [java] org.apache.axis2.AxisFault: Unable to engage module :
> addressing
> > [java] at
> > org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:339)
> >
> > run.client.nonblocking: <--- OK
> > [echo] ***** run.client.nonblocking
> >
> > run.client.nonblockingdual: <--- ERROR
> > [echo] ***** run.client.nonblockingdual
> > [java] log4j:WARN No appenders could be found for logger
> > (org.apache.axis2.util.Loader).
> > [java] log4j:WARN Please initialize the log4j system properly.
> > [java] org.apache.axis2.AxisFault: Unable to engage module :
> addressing
> >
> > run.client.servicewithmodule: <--- OK
> > [echo] ***** run.client.servicewithmodule
> > [echo] ../..
> > [echo] ../../repository/conf/axis2.xml
> > [java] <example1:echo
> > xmlns:example1="http://example1.org/example1"><example1:Text>Axis2
> > Echo String </example1:Text></e
> >
> > ----------------------------------------------------
> >
> > Rick Isaacs
> >
> > ---------------------------------------------------------------------
> > 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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Axis2 sample problem - Userguide sample still a problem
Posted by Martin Gainty <mg...@hotmail.com>.
Hi Rick-
here are the steps
cd $AXIS2_HOME/samples/userguide
ant
http://localhost:8080/axis2/axis2-admin/listService
UploadService
$AXIS2_HOME/repository/services/sample-MyService.aar
Services/ActivateService MyService
dir F:\TOMCAT\APACHE~1.17\webapps\axis2\WEB-INF\sample-MyService.aar
vi F:\TOMCAT\APACHE~1.17\webapps\axis2\WEB-INF\services.list (make sure
sample-MyService.aar is listed)
dir F:\TOMCAT\APACHE~1.17\webapps\axis2\WEB-INF\modules\addressing.mar
vi F:\TOMCAT\APACHE~1.17\webapps\axis2\WEB-INF\modules.list (make sure
addressing.mar is listed)
EngageModule/For A Service
Module:addressing
Select a Service:MyService
addressing module engaged to the service successfully
Does this not work for you?
What do the tomcat logs say?
M-
----- Original Message -----
From: "Rick Isaacs" <re...@gmail.com>
To: <ax...@ws.apache.org>
Sent: Thursday, November 15, 2007 3:13 PM
Subject: Axis2 sample problem - Userguide sample still a problem
> Hi,
>
> I tried to build the Userguide sample that Vy Bui had a problem.
>
> I have tried to run the Axis2 userguide sample, but I can not get the
> "blocking dual" samples to
> work. I keep getting the following error:
>
> [java] org.apache.axis2.AxisFault: Unable to engage module :
addressing
>
> 1.) The build.xml was corrected to compile using (A)
>
> 2.) Commented out <jvmarg value= /> for all the Ant tasks to not use
> the sample axis2.xml.
>
> I keep getting addressing errors for all the sample clients.
>
> 3.)
"C:\apache-tomcat-5.5.25\webapps\axis2\WEB-INF\samples\userguide\conf\axis2.
xml"
>
> file that is part of the original sample was not used.
>
> 4.) I added the logging phases as outlined to axis2.xml in the Axis2
> manual a Userguide Readme.
>
> 5.) Running all the clients the dual samples keeping getting an
> addressing error. Why?
>
> ----------------------------------------------------
>
>
> BUILD.XML - changed
>
>
> <!--
> <target name="generate.module">
> -->
>
> <target name="generate.module" depends="compile">
> <----- (A)
>
> .....
>
> <target name="run.client.blocking" depends="compile">
> <echo message="***** run.client.blocking" />
> <java classname="userguide.clients.EchoBlockingClient"
> classpathref="axis.classpath" fork="true">
> <!--
> <---- (B)
>
> <jvmarg value="-Daxis2.repo=${mainDir}/repository"/>
> don't use the sample axis2.xml
> <jvmarg value="-Daxis2.xml=conf/axis2.xml"/>
> -->
>
> </java>
> </target>
>
> <target name="run.client.blockingdual" depends="compile">
> <echo message="***** run.client.blockingdual" />
> <java classname="userguide.clients.EchoBlockingDualClient"
> classpathref="axis.classpath" fork="true">
>
> <!-- <---- (B)
> <jvmarg value="-Daxis2.repo=${mainDir}/repository"/>
> <jvmarg value="-Daxis2.xml=conf/axis2.xml"/>
> -->
>
> </java>
> </target>
>
>
> ----------------------------------------------------
>
> Not used from sample
>
>
C:\apache-tomcat-5.5.25\webapps\axis2\WEB-INF\samples\userguide\conf\origina
l_axis2.xml
> <--(C)
>
> ----------------------------------------------------
>
> Changed C:\apache-tomcat-5.5.25\webapps\axis2\WEB-INF\conf\axis2.xml
>
> ....
>
> <!-- ================================================= -->
> <!-- Global Modules -->
> <!-- ================================================= -->
> <!-- Comment this to disable Addressing -->
>
> <module ref="addressing"/>
>
> <module ref="soapmonitor"/>
>
> ....
>
> <!-- System predefined phases -->
> <!-- After Postdispatch phase module author or service
> author can add any phase he want -->
> <phase name="OperationInPhase"/>
> <phase name="soapmonitorPhase"/>
>
> <phase name="loggingPhase"/>
>
> </phaseOrder>
> <phaseOrder type="OutFlow">
>
> .....
>
> ----------------------------------------------------
>
> RUN.CLIENT.ALL - test
>
>
> run.client.ping: <--- OK
> [echo] ***** run.client.ping
> run.client.blocking:
> [echo] ***** run.client.blocking <--- OK
> [java] ++++
> [java] Address: http://localhost:8080/axis2/services/WsaMappingTest
> [java] log4j:WARN No appenders could be found for logger
> (org.apache.axis2.util.Loader).
> [java] log4j:WARN Please initialize the log4j system properly.
>
> run.client.blockingdual: <--- ERROR
> [echo] ***** run.client.blockingdual
> [java] log4j:WARN No appenders could be found for logger
> (org.apache.axis2.util.Loader).
> [java] log4j:WARN Please initialize the log4j system properly.
> [java] org.apache.axis2.AxisFault: Unable to engage module :
addressing
> [java] at
> org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:339)
>
> run.client.nonblocking: <--- OK
> [echo] ***** run.client.nonblocking
>
> run.client.nonblockingdual: <--- ERROR
> [echo] ***** run.client.nonblockingdual
> [java] log4j:WARN No appenders could be found for logger
> (org.apache.axis2.util.Loader).
> [java] log4j:WARN Please initialize the log4j system properly.
> [java] org.apache.axis2.AxisFault: Unable to engage module :
addressing
>
> run.client.servicewithmodule: <--- OK
> [echo] ***** run.client.servicewithmodule
> [echo] ../..
> [echo] ../../repository/conf/axis2.xml
> [java] <example1:echo
> xmlns:example1="http://example1.org/example1"><example1:Text>Axis2
> Echo String </example1:Text></e
>
> ----------------------------------------------------
>
> Rick Isaacs
>
> ---------------------------------------------------------------------
> 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