Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.ClassNotFoundException: undeploy.wsdd

 
davo ram
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

hello,
I'm doing the undeploy and deploy web services in an application I have.

I set the variables:

set AXISHOME=%NX_ROOT%\java\lib
set classpath= %AXISHOME%\axis.jar;%AXISHOME%\jaxrpc.jar;%AXISHOME%\saaj.jar;%AXISHOME%\commons-logging.jar;%AXISHOME%\commons-discovery.jar;%AXISHOME%\wsdl4j.jar;%AXISHOME%\log4j-1.2.8.jar;%classpath%;

I still pointing at the path where my file undeploy.wsdd and try to run the following command:

java-cp org.apache.axis.client.AdminClient undeploy.wsdd

But it throws the following error:

Exception in thread "main" java.lang.NoClassDefFoundError: undeploy / WSDD
Caused by: java.lang.ClassNotFoundException: undeploy.wsdd
at java.net.URLClassLoader $ 1.run (Unknown Source)
at java.security.AccessController.doPrivileged (Native Method)
at java.net.URLClassLoader.findClass (Unknown Source)
at java.lang.ClassLoader.loadClass (Unknown Source)
at sun.misc.Launcher $ AppClassLoader.loadClass (Unknown Source)
at java.lang.ClassLoader.loadClass (Unknown Source)
Could not find the main class: undeploy.wsdd. Program will exit.


Any idea why this happening to me?

Thank you.
Regards, David.
 
Alexei Kaigorodov
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
davo ram wrote:
java-cp org.apache.axis.client.AdminClient undeploy.wsdd


The option -cp expects a list of jar/directories where your classes reside. Here java thinks that org.apache.axis.client.AdminClient is such a list, and undeploy.wsdd is the main class. Since the classpath is already set in the environment variable, just remove "-cp" from the command line
 
davo ram
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alexei Kaigorodov wrote:
davo ram wrote:
java-cp org.apache.axis.client.AdminClient undeploy.wsdd


The option -cp expects a list of jar/directories where your classes reside. Here java thinks that org.apache.axis.client.AdminClient is such a list, and undeploy.wsdd is the main class. Since the classpath is already set in the environment variable, just remove "-cp" from the command line


thanks you're right.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic