WebMethods Client – NoClassDefFoundError: javax/mail/internet/ParseException

If you’re calling a WebMethods service from a client and you get the error below, you need to add the java mail jar to your classpath.

java.lang.NoClassDefFoundError: javax/mail/internet/ParseException
	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
	at com.wm.util.Base64.encode(Base64.java:77)
	at com.wm.app.b2b.client.BaseContext.setAuthentication(BaseContext.java:598)
	at com.wm.app.b2b.client.Context.connect(Context.java:492)
This entry was posted in Programming, Software AG and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *