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 jadeite100 <ja...@yahoo.com> on 2010/03/15 04:58:29 UTC

ClassNotFoundException: org.apache.axis2.transport.SimpleAxis2Server

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.
-- 
View this message in context: http://old.nabble.com/ClassNotFoundException%3A-org.apache.axis2.transport.SimpleAxis2Server-tp27900262p27900262.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org


Re: ClassNotFoundException: org.apache.axis2.transport.SimpleAxis2Server

Posted by Andreas Veithen <an...@gmail.com>.
The class is definitely there and the axis2server.bat script is known
to work. If it causes problems, then this probably means that either
some files have been corrupted or that there is in issue with the
script on your particular Windows version.

On Mon, Mar 15, 2010 at 04:58, jadeite100 <ja...@yahoo.com> wrote:
>
> 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.
> --
> View this message in context: http://old.nabble.com/ClassNotFoundException%3A-org.apache.axis2.transport.SimpleAxis2Server-tp27900262p27900262.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org


Re: ClassNotFoundException: org.apache.axis2.transport.SimpleAxis2Server

Posted by Amila Suriarachchi <am...@gmail.com>.
On Wed, Mar 17, 2010 at 9:31 AM, jadeite100 <ja...@yahoo.com> wrote:

>
> Hi All:
>
> I delete the "@echo off" line in the .bat file, and from the looks of it
> the set AXIS_2_CLASS_PATH is assigned the jar files.
>
> Can anyone please tell me which jar file the SimpleAxis2Server.class is
> suppose to belong to in apache axis 2 version 1.5?
>

it is in axis2-transport-http-1.5. but I think your problem is different.

thanks,
Amila.

>
> I went to this web site:
> http://www.findjar.com/jar/org.apache.axis2/jars/axis2-1.2.jar.html
> It contains the axis2-1.2.jar, and I placed this jar in the
> c:\axis2-1.5.1\lib directory and ran axis2server.bat and got the same error
> as before
>
> It set the classpath variable:
> set AXIS2_CLASS_PATH=!AXIS2_CLASS_PATH!;C:\axis2-1.5.1\lib\axis2-1.2.jar
>
> It ran as follow:
> "c:\Java\jdk16_17\bin\java.exe" -cp "!AXIS2_CLASS_PATH!"
> org.apache.axis2.transport.SimpleAxis2Server -repo
> "C:\axis2-1.5.1\repository" -conf "C:\axis2-1.5.1\conf\axis2.xml"
>
> I attached axis2.txt which is the output from running
> C:\axis2-1.5.1\bin\axis2.bat and axis2server.txt which is the result of
> running
> C:\axis2-1.5.1\bin\axis2server.txt.
>
> Can anyone please tell me what is wrong with my axis2 version 1.5 setup?
>
>
> C:\axis2-1.5.1>"C:\Java\jdk16_17\bin\java.exe"  -cp "!AXIS2_CLASS_PATH!"
> org.apache.axis2.transport.SimpleAxis2Server -repo
> "C:\axis2-1.5.1\repository" -conf "C:\axis2-1.5.1\conf\axis2.xml"
> 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>goto end
>
> Yours,
>
> Frustrated http://old.nabble.com/file/p27927644/axis2server.txt
> axis2server.txt  http://old.nabble.com/file/p27927644/axis2.txt axis2.txt
> --
> View this message in context:
> http://old.nabble.com/ClassNotFoundException%3A-org.apache.axis2.transport.SimpleAxis2Server-tp27900262p27927644.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>
>


-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/

Re: ClassNotFoundException: org.apache.axis2.transport.SimpleAxis2Server

Posted by Andreas Veithen <an...@gmail.com>.
Could it be that you are hitting the command line (or environment
variable) length limitation [1]?

Andreas

[1] http://support.microsoft.com/?kbid=830473

On Wed, Mar 17, 2010 at 05:01, jadeite100 <ja...@yahoo.com> wrote:
>
> Hi All:
>
> I delete the "@echo off" line in the .bat file, and from the looks of it
> the set AXIS_2_CLASS_PATH is assigned the jar files.
>
> Can anyone please tell me which jar file the SimpleAxis2Server.class is
> suppose to belong to in apache axis 2 version 1.5?
>
> I went to this web site:
> http://www.findjar.com/jar/org.apache.axis2/jars/axis2-1.2.jar.html
> It contains the axis2-1.2.jar, and I placed this jar in the
> c:\axis2-1.5.1\lib directory and ran axis2server.bat and got the same error
> as before
>
> It set the classpath variable:
> set AXIS2_CLASS_PATH=!AXIS2_CLASS_PATH!;C:\axis2-1.5.1\lib\axis2-1.2.jar
>
> It ran as follow:
> "c:\Java\jdk16_17\bin\java.exe" -cp "!AXIS2_CLASS_PATH!"
> org.apache.axis2.transport.SimpleAxis2Server -repo
> "C:\axis2-1.5.1\repository" -conf "C:\axis2-1.5.1\conf\axis2.xml"
>
> I attached axis2.txt which is the output from running
> C:\axis2-1.5.1\bin\axis2.bat and axis2server.txt which is the result of
> running
> C:\axis2-1.5.1\bin\axis2server.txt.
>
> Can anyone please tell me what is wrong with my axis2 version 1.5 setup?
>
>
> C:\axis2-1.5.1>"C:\Java\jdk16_17\bin\java.exe"  -cp "!AXIS2_CLASS_PATH!"
> org.apache.axis2.transport.SimpleAxis2Server -repo
> "C:\axis2-1.5.1\repository" -conf "C:\axis2-1.5.1\conf\axis2.xml"
> 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>goto end
>
> Yours,
>
> Frustrated http://old.nabble.com/file/p27927644/axis2server.txt
> axis2server.txt  http://old.nabble.com/file/p27927644/axis2.txt axis2.txt
> --
> View this message in context: http://old.nabble.com/ClassNotFoundException%3A-org.apache.axis2.transport.SimpleAxis2Server-tp27900262p27927644.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org


Re: ClassNotFoundException: org.apache.axis2.transport.SimpleAxis2Server

Posted by jadeite100 <ja...@yahoo.com>.
Hi All:

I delete the "@echo off" line in the .bat file, and from the looks of it
the set AXIS_2_CLASS_PATH is assigned the jar files.

Can anyone please tell me which jar file the SimpleAxis2Server.class is
suppose to belong to in apache axis 2 version 1.5?

I went to this web site:
http://www.findjar.com/jar/org.apache.axis2/jars/axis2-1.2.jar.html
It contains the axis2-1.2.jar, and I placed this jar in the
c:\axis2-1.5.1\lib directory and ran axis2server.bat and got the same error
as before

It set the classpath variable:
set AXIS2_CLASS_PATH=!AXIS2_CLASS_PATH!;C:\axis2-1.5.1\lib\axis2-1.2.jar

It ran as follow:
"c:\Java\jdk16_17\bin\java.exe" -cp "!AXIS2_CLASS_PATH!"
org.apache.axis2.transport.SimpleAxis2Server -repo
"C:\axis2-1.5.1\repository" -conf "C:\axis2-1.5.1\conf\axis2.xml"

I attached axis2.txt which is the output from running
C:\axis2-1.5.1\bin\axis2.bat and axis2server.txt which is the result of
running
C:\axis2-1.5.1\bin\axis2server.txt.

Can anyone please tell me what is wrong with my axis2 version 1.5 setup?


C:\axis2-1.5.1>"C:\Java\jdk16_17\bin\java.exe"  -cp "!AXIS2_CLASS_PATH!"
org.apache.axis2.transport.SimpleAxis2Server -repo
"C:\axis2-1.5.1\repository" -conf "C:\axis2-1.5.1\conf\axis2.xml"
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>goto end

Yours,

Frustrated http://old.nabble.com/file/p27927644/axis2server.txt
axis2server.txt  http://old.nabble.com/file/p27927644/axis2.txt axis2.txt 
-- 
View this message in context: http://old.nabble.com/ClassNotFoundException%3A-org.apache.axis2.transport.SimpleAxis2Server-tp27900262p27927644.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org