Webservice Deployment error

Use this forum for questions regarding installation, upgrading and configuration of OpenEMM

Moderator: moderator

geotech
Posts: 2
Joined: Mon Sep 19, 2011 6:18 am

Webservice Deployment error

Post by geotech »

Hi Maschoff,
I was trying to deploy webservice in OpenEmm-2011. But I am getting such errors which are shown below:

[root@openemm webservices]# sh EmmSoapClient.sh
Exception in thread "main" java.lang.NoClassDefFoundError:
Caused by: java.lang.ClassNotFoundException:
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
. Program will exit.ain class:
[root@openemm webservices]# vi EmmSoapClient.sh
[root@openemm webservices]# vi core.sh
[root@openemm webservices]# /bin/sh core.sh
core.sh: ./EmmCreateWSDL.sh: /bin/sh^M: bad interpreter: No such file or directo
[root@openemm webservices]# vi EmmCreateWSDL.sh
[root@openemm webservices]# vi core.sh
[root@openemm webservices]# /bin/sh core.sh
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/
Caused by: java.lang.ClassNotFoundException: org.apache.axis.wsdl.Java2WSDL
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: org.apache.axis.wsdl.Java2WSDL. Program will exit
: command not foundine 5:
[root@openemm webservices]#

i will be pleased if you tell me the solution as soon as possible..

Madhur Raj
bigmega
Posts: 2
Joined: Wed Sep 21, 2011 4:19 pm

Re: Webservice Deployment error

Post by bigmega »

Hi Raj I just installed a fresh OpenEmm solution and came across with the same situation.Please open file EmmSoapClient.sh (Located in webservice folder) with some text editor such as Gnu nano then take a look at first line where it says DEPLOY=../webapps/core (that is the default value) then compare with you real name of folder inside webapps, mine was openemm instead core for example. Once you capture the real folder name then go back to EmmSoapClient.sh file and change the deploy path at first line and save document. Finally, repeat same instructions for EmmCreateWSLD.sh and run script again.

That error is shown because script is unable to find the right path where all java class are located in order to compile de webservice. I would like to add that I succeed compiling my webservice.wsld file but I'm still unable to use it since it gives error 404 - Not found all the time. Hope this is your situation and find a solution to your issue, the same way if you come across with some thoughts about why the webservice is not running it would be appreciate to know.

Regards

Bigmega
maschoff
Site Admin
Posts: 2628
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: Webservice Deployment error

Post by maschoff »

bigmega is right! We forgot to change the deploy path - sorry for that!
OpenEMM Maintainer
bigmega
Posts: 2
Joined: Wed Sep 21, 2011 4:19 pm

Re: Webservice Deployment error

Post by bigmega »

Your team is the one who is right delivering an excellent product to the community. It takes some time to install it in linux but work like a charm, thanks for everything and we provide a little help in top of that.

Thanks
geotech
Posts: 2
Joined: Mon Sep 19, 2011 6:18 am

Re: Webservice Deployment error

Post by geotech »

Thanks a lot. I also got success to compile the wsdl file, but still I am getting the same error as mentioning below:

HTTP Status 404-/RemoteContentModuleManager

Type status report

message/RemoteContentModuleManager

description The Request source Resource (/RemoteContentModuleManager) is not available.

Apache Tomcat/6.0.32

Please if anyone knows the solution then post here ASAP.
It would be appreciate to know.


Thanks
Post Reply