geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Schaetz <florian.scha...@optitool.de>
Subject Re: Webservice: WSDL Generations fails
Date Tue, 07 Jul 2009 08:17:27 GMT
Jarek Gawor wrote:

> Which class can't be found?

Ok, let me sumarize... I've got three jar-files:

1) Service.jar - containing the stateless EJB/Webservice (with
apropriate META-INF)
2) Biz.jar - simple library .jar, containing the business logic,
including a Session class
3) Common.jar - containing helper classes, etc. - including a simple
interface IProgressMonitor (which just uses java.lang classes, no import
statements) and it's implementation NullPointerMonitor.
Of course, Biz.jar and Common.jar are in the repository and correctly
marked as dependencies in the Service.jar's openejb-jar.xml file.

When deploying the EJB/Webservice, I get the following error message
(but the EJB is deployed correctly, just the WSDL doesn't get generated,
which of course prevents the WebService from being there):

2009-07-06 15:34:15,182 ERROR [WsdlGenerator] WSDL generation process failed
2009-07-06 15:34:15,182 ERROR [WsdlGenerator] Exception in thread "main"
java.lang.NoClassDefFoundError: net/uniopt/util/IProgressMonitor
	at java.lang.Class.getDeclaredMethods0(Native Method)
	at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
	at java.lang.Class.privateGetPublicMethods(Class.java:2547)
	at java.lang.Class.getMethods(Class.java:1410)
	at
com.sun.xml.ws.modeler.RuntimeModeler.determineWebMethodUse(RuntimeModeler.java:288)
	at
com.sun.xml.ws.modeler.RuntimeModeler.processClass(RuntimeModeler.java:304)
	at
com.sun.xml.ws.modeler.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:249)
	at com.sun.tools.ws.wscompile.CompileTool.buildModel(CompileTool.java:631)
	at com.sun.tools.ws.wscompile.CompileTool.run(CompileTool.java:536)
	at com.sun.tools.ws.util.ToolBase.run(ToolBase.java:54)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at com.sun.tools.ws.Invoker.main(Invoker.java:41)
	at com.sun.tools.ws.WsGen.main(WsGen.java:28)
Caused by: java.lang.ClassNotFoundException:
net.uniopt.util.IProgressMonitor
	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
	... 16 more#

The place where this occurs looks like this...

// This first line works fine
Session session = new UserManager().login(entityManager, user, pwd);
// The error occurs if the following line is there:
session.load( entityManager, new NullProgressMonitor() );
// (Session.load takes the EntityManager and an IProgressMonitor as
// parameter)

I really would be grateful if anyone had any idea what my problem could
be...

Flo

Mime
View raw message