This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

java.lang.ClassNotFoundException: undeploy.wsdd  RSS feed

 
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.
 
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!