davo ram

Greenhorn
+ Follow
since May 03, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by davo ram

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.
11 years ago

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.
11 years ago