This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes  java.lang.ClassNotFoundException: undeploy.wsdd Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark " java.lang.ClassNotFoundException: undeploy.wsdd" Watch " java.lang.ClassNotFoundException: undeploy.wsdd" New topic
Author

java.lang.ClassNotFoundException: undeploy.wsdd

davo ram
Greenhorn

Joined: May 03, 2012
Posts: 2

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

Joined: Feb 24, 2008
Posts: 17
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

Joined: May 03, 2012
Posts: 2
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: java.lang.ClassNotFoundException: undeploy.wsdd
 
Similar Threads
java.lang.ClassNotFoundException: org.hsqldb.jdbcDriver
while running junit it is throwing java.lang.Unsupported Class Version Error
Problems Starting HSQLDB server
Cannot find org.apache.commons.javaflow
Problems with Jasper Reports