5.4.0 and Webservices

Use this forum for questions regarding adoption and functionality of OpenEMM

Moderator: moderator

asai
Posts: 70
Joined: Fri May 25, 2007 5:48 pm

5.4.0 and Webservices

Post 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.
maschoff
Site Admin
Posts: 2628
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Post 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?
OpenEMM Maintainer
asai
Posts: 70
Joined: Fri May 25, 2007 5:48 pm

Post 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
maschoff
Site Admin
Posts: 2628
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Post by maschoff »

Have you noticed that with 5.4.0 the path has changed from /home/openemm/webapps/openemm/htdocs to /home/openemm ?
OpenEMM Maintainer
maschoff
Site Admin
Posts: 2628
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

fix

Post 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?
OpenEMM Maintainer
asai
Posts: 70
Joined: Fri May 25, 2007 5:48 pm

Post 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?
maschoff
Site Admin
Posts: 2628
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Post by maschoff »

Yes, I will update the webservice doc and post a hint to the SourceForge bugtracker. Thanks for your patience!
OpenEMM Maintainer
asai
Posts: 70
Joined: Fri May 25, 2007 5:48 pm

Post by asai »

Thanks for yours :)
Post Reply