File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes ClassNotFoundException: org.apache.axis2.transport.SimpleAxis2Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "ClassNotFoundException: org.apache.axis2.transport.SimpleAxis2Server" Watch "ClassNotFoundException: org.apache.axis2.transport.SimpleAxis2Server" New topic

ClassNotFoundException: org.apache.axis2.transport.SimpleAxis2Server

John Smith
Ranch Hand

Joined: Aug 21, 2004
Posts: 49
Hi All:

I download Axis 2 versin 1.5.1.
I unzipped to the following directory:C:\axis2-1.5.1
I set AXIS2_HOME -->C:\axis2-1.5.1
I am using windows 2000 server, with jdk 16_17.
I setted JAVA_HOME -->C:\Java\jdk16_17
I ran C:\axis2-1.5.1\bin>axis2.bat
Than I ran
Using JAVA_HOME C:\Java\jdk16_17
Using AXIS2_HOME C:\axis2-1.5.1
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis2/transport/SimpleAxis2Server
Caused by: java.lang.ClassNotFoundException: org.apache.axis2.transport.SimpleAxis2Server
at Method)
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at java.lang.ClassLoader.loadClassInternal(
Could not find the main class: org.apache.axis2.transport.SimpleAxis2Server. Program will exit.

Can anyone please give me a hint why I am getting the above error.

Any help or hint or an url would be greatly appreciated.


Ben Linus

Joined: Mar 02, 2010
Posts: 15
Hi John,

Not sure why you're getting that, but mine seems to work ok - have a look at my settings and compare?

Using JAVA_HOME D:\jdk1.6
Using AXIS2_HOME D:\Axis 2 Tutorial\axis2-1.5.1-bin\axis2-1.5.1
[INFO] [SimpleAxisServer] Starting
[INFO] [SimpleAxisServer] Using the Axis2 RepositoryD:\Axis 2 Tutorial\axis2-1.5
[SimpleAxisServer] Using the Axis2 RepositoryD:\Axis 2 Tutorial\axis2-1.5.1-bin\
[SimpleAxisServer] Using the Axis2 Configuration FileD:\Axis 2 Tutorial\axis2-1.
[INFO] Clustering has been disabled
[INFO] Deploying module: addressing-1.5.1 - file:/D:/Axis 2 Tutorial/axis2-1.5.1
[INFO] Deploying module: metadataExchange-1.5.1 - file:/D:/Axis 2 Tutorial/axis2
[INFO] Deploying module: mtompolicy-1.5.1 - file:/D:/Axis 2 Tutorial/axis2-1.5.1
[INFO] Deploying module: ping-1.5.1 - file:/D:/Axis 2 Tutorial/axis2-1.5.1-bin/a
[INFO] Deploying module: script-1.5.1 - file:/D:/Axis 2 Tutorial/axis2-1.5.1-bin
[INFO] Deploying module: soapmonitor-1.5.1 - file:/D:/Axis 2 Tutorial/axis2-1.5.
[INFO] Deploying module: metadataExchange-1.5.1 - file:/D:/Axis 2 Tutorial/axis2
[INFO] Deploying Web service: version.aar - file:/D:/Axis 2 Tutorial/axis2-1.5.1
[INFO] [SimpleAxisServer] Started
[SimpleAxisServer] Started
[INFO] Listening on port 8080
Ben Linus

Joined: Mar 02, 2010
Posts: 15
oh sorry, i'm using Windows XP
Madhawa Chaminda

Joined: Aug 18, 2014
Posts: 1
I came accross the same issue as you have mentioned but in my scenario i have mistakenly set up the AXIS2_HOME variable to upto the bin directory (AXIS2_HOME=/home/dev/axis2-1.6.2-bin/bin).once i have removed the /bin segment it worked for me.for any other people might be help full so thats why i am replying to this much old post.

Madhawa Chaminda
I agree. Here's the link:
subject: ClassNotFoundException: org.apache.axis2.transport.SimpleAxis2Server
It's not a secret anymore!