Hi,

I'm new to Axis, and I'm trying to get the examples in the user guide
working. Unfortunately, they are broken.

Building and deploying the sample service (MyService.aar) as explained in
section "Installing and testing client code" seems to work fine.

But running the client as explained fails:
axis2 org.apache.axis2.axis2userguide.Client results in "Exception in thread
"main" java.lang.NoClassDefFoundError:
org/apache/axis2/axis2userguide/Client".

Then I tried the approach as explained in the README.txt in the userguide
directory.  Deploying the service using "axis2server.bat" fails with the
following stacktrace:

"org.apache.axis2.deployment.DeploymentException: Processing Operations
Modules logging module is invalid or has not been deployed; nested exception
is:"

But since the deployment I mentioned first was successful
(http://localhost:8080/axis2/services/listServices
nicely lists the "MyService" service as Active) , this shouldn't be a big
problem. So I tried running the sample client against this service
deployment:
"ant run.client.blocking", resulting in:

"[java] org.apache.axis2.deployment.DeploymentException: Processing
Operations Modules logging module is invalid or has not been deployed;
nested exception is:" <<huge stack trace following>>

I became a bit frustrated here :(
Then I found a number of bug reports, raising very similar issues:


https://issues.apache.org/jira/browse/AXIS2-2040
https://issues.apache.org/jira/browse/AXIS2-1815
<https://issues.apache.org/jira/browse/AXIS2-2040>https://issues.apache.org/jira/browse/AXIS2-1700
<https://issues.apache.org/jira/browse/AXIS2-2040>
Two of them are still open, and one of them is resolved. I've tried
today's (21 March) snapshot, but if fails compiling since it can't
find  org.apache.axiom.om.OMElement
, when running "ant run.client.blocking".

Then I followed the helpful advise of another user experiencing
similar problems
(http://www.mail-archive.com/[email protected]/msg26819.html).
This allowed me to successfully deploy the "MyServiceWithModule.aar"
but I really don't know if I need this service. What's the difference
between MyService and MyServiceWithModule, and which one is the client
application using?

Still, this did not result in a working client application.

Can somebody explain to me, in detail, how to get the user guide
(version 1.1.1) example working?

Or even better, can somebody make sure that the user guide examples
work out of the box? For people who are new to a technology (like
myself to Axis2), simple tutorials and samples are extremely valuable.
Not working
examples are extremely frustrating, and quickly result in loss of
confidence in the technology; "If they can't even get the examples
working....."

Thanks,
Tom

Reply via email to