Page 1 of 1

5.4.0 and Webservices

Posted: Fri Mar 21, 2008 5:41 pm
by asai
Hi Guys,

Hate to beat a dead horse here, but...it's not dead.

I just upgraded to 5.4.0, using the installer script. However, when I try to build the WSDL file with ./EmmCreateWSDL.sh I get the following error:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/Java2WSDL

Yes, I'm doing everything according to the documentation by using the following command:

Code: Select all

 ./EmmCreateWSDL.sh -o ws.wsdl -l "http://myserver.net:8080/emm_webservice" -n "urn:agnitas-webservice" -w ALL org.agnitas.webservice.EmmWebService_Port 
Can anyone help me with this? Thanks.

Posted: Sat Mar 22, 2008 2:39 pm
by maschoff
Apparently, OpenEMM does not find the Axis libs. Please copy libs axis.jar, jaxrpc.jar, saar,jar, wsdl4j.jar and xercesImpl.jar from /home/openemm/webapps/core/WEB-INF/lib to home/openemm/lib. Does this help?

Posted: Sat Mar 22, 2008 4:31 pm
by asai
I copied them, but still get the error

Code: Select all

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/Java2WSDL

Posted: Sat Mar 22, 2008 5:51 pm
by maschoff
Have you noticed that with 5.4.0 the path has changed from /home/openemm/webapps/openemm/htdocs to /home/openemm ?

fix

Posted: Sat Mar 22, 2008 6:09 pm
by maschoff
This is the fix regarding the path:

change the second line in EmmCreateWSDL.sh to

DEPLOY=/home/openemm/webapps/core

Does it work now?

Posted: Sat Mar 22, 2008 6:47 pm
by asai
Yes, that did it. Thanks, Martin.

Now, would that path modification work without having to copy any files over to the other directory?

Posted: Sat Mar 22, 2008 7:27 pm
by maschoff
Yes, I will update the webservice doc and post a hint to the SourceForge bugtracker. Thanks for your patience!

Posted: Sat Mar 22, 2008 7:28 pm
by asai
Thanks for yours :)