my dog learned polymorphism*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "ClassNotFoundException: org.apache.axis2.transport.SimpleAxis2Server" Watch "ClassNotFoundException: org.apache.axis2.transport.SimpleAxis2Server" New topic
Author

ClassNotFoundException: org.apache.axis2.transport.SimpleAxis2Server

John Smith
Ranch Hand

Joined: Aug 21, 2004
Posts: 48
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
C:\axis2-1.5.1\bin>axis2server.bat
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 java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
Could not find the main class: org.apache.axis2.transport.SimpleAxis2Server. Program will exit.
C:\axis2-1.5.1\bin>

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.

Yours,

Frustrated.
Ben Linus
Greenhorn

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
.1-bin\axis2-1.5.1\repository
[SimpleAxisServer] Using the Axis2 RepositoryD:\Axis 2 Tutorial\axis2-1.5.1-bin\
axis2-1.5.1\repository
[SimpleAxisServer] Using the Axis2 Configuration FileD:\Axis 2 Tutorial\axis2-1.
5.1-bin\axis2-1.5.1\conf\axis2.xml
[INFO] Clustering has been disabled
[INFO] Deploying module: addressing-1.5.1 - file:/D:/Axis 2 Tutorial/axis2-1.5.1
-bin/axis2-1.5.1/repository/modules/addressing-1.5.1.mar
[INFO] Deploying module: metadataExchange-1.5.1 - file:/D:/Axis 2 Tutorial/axis2
-1.5.1-bin/axis2-1.5.1/repository/modules/mex-1.5.1.mar
[INFO] Deploying module: mtompolicy-1.5.1 - file:/D:/Axis 2 Tutorial/axis2-1.5.1
-bin/axis2-1.5.1/repository/modules/mtompolicy-1.5.1.mar
[INFO] Deploying module: ping-1.5.1 - file:/D:/Axis 2 Tutorial/axis2-1.5.1-bin/a
xis2-1.5.1/repository/modules/ping-1.5.1.mar
[INFO] Deploying module: script-1.5.1 - file:/D:/Axis 2 Tutorial/axis2-1.5.1-bin
/axis2-1.5.1/repository/modules/scripting-1.5.1.mar
[INFO] Deploying module: soapmonitor-1.5.1 - file:/D:/Axis 2 Tutorial/axis2-1.5.
1-bin/axis2-1.5.1/repository/modules/soapmonitor-1.5.1.mar
[INFO] Deploying module: metadataExchange-1.5.1 - file:/D:/Axis 2 Tutorial/axis2
-1.5.1-bin/axis2-1.5.1/lib/mex-1.5.1.jar
[INFO] Deploying Web service: version.aar - file:/D:/Axis 2 Tutorial/axis2-1.5.1
-bin/axis2-1.5.1/repository/services/version.aar
[INFO] [SimpleAxisServer] Started
[SimpleAxisServer] Started
[INFO] Listening on port 8080
Ben Linus
Greenhorn

Joined: Mar 02, 2010
Posts: 15
oh sorry, i'm using Windows XP
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ClassNotFoundException: org.apache.axis2.transport.SimpleAxis2Server
 
Similar Threads
Axis2 - WSDL to code
Axis2 and Eclipse
JAVA2WSDL in AXIS2
Faulty Web Services
Exception in thread "main" java.lang.NoClassDefFoundError: Files\axis2-1/5/3;E:\ Program