Hi,

I am trying to use the role webservice for an external application.
Here I am getting an error.

the command that I use and the error are as follows:

C:\Documents and Settings\graosn\Desktop>"C:\Program
Files\Java\jdk1.6.0_18\bin\
java" -cp
"../lib/wssdk.jar;../lib/jaxrpc-api.jar";"../lib/mail.jar";"../lib/act
ivation.jar";"C:\Program Files\Java\jdk1.6.0_18\lib\tools.jar";
com.novell.soa.w
s.impl.tools.wsdl2java.Main -verbose -ds gensrc -d C:\Documents and
Settings\gra
osn\Desktop\ -noskel -notie -genclient -keep -package
com.novell.soa.af.role.soa
p.impl -javadoc role.wsdl
Exception in thread "main" java.lang.NoClassDefFoundError:
com/novell/soa/ws/imp
l/tools/wsdl2java/Main
Caused by: java.lang.ClassNotFoundException:
com.novell.soa.ws.impl.tools.wsdl2j
ava.Main
at java.net.URLClassLoader$1.run(URLClassLoader.java: 202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 07)
at
sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 48)
Could not find the main class:
com.novell.soa.ws.impl.tools.wsdl2java.Main. Pro
gram will exit.

I have added the jar files
wssdk.jar,jaxrpc-api.jar,mail.jar,tools.jar,activation.jar to my
classpath which is C:\Program Files\Java\jdk1.6.0_18\lib

Can someone help me out in getting rid of this error?

Regards,
Gopi


--
GopinathRao
------------------------------------------------------------------------
GopinathRao's Profile: http://forums.novell.com/member.php?userid=62050
View this thread: http://forums.novell.com/showthread.php?t=408293