Discussion:
[Apache Axis 1.4] - Caused by: java.lang.ClassNotFoundException: org.apache.axis.client.Service
krajendr82
2018-04-18 09:48:41 UTC
Permalink
Dear All,

We are getting the below error when we try to invoke a webservice using
*Apache Axis 1.4* framework. The client classes are generated using
"*org.apache.axis.tools.ant.wsdl.Wsdl2javaAntTask*" & bundled into a jar
file. At run-time, *TomEE Plus 7.0.3* unable to locate the axis jar &
generated client classes though they are available in classpath.

We are forced to use older version of Apache Axis (1.4) due to the reason
that the client supplied WSDL file is of /*RPC Encoded style*/ & Axis 2
doesn't support it.

The real question is does TomEE supports Apache Axis 1.4 or is there any
restriction in Axis usage. Any sort of help much appreciated!! Please
advise!!

Caused by: java.lang.ClassNotFoundException: org.apache.axis.client.Service
at
org.apache.openejb.util.classloader.URLClassLoaderFirst.loadClass(URLClassLoaderFirst.java:141)
~[openejb-core-7.0.3.jar:7.0.3]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_121]
at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_121]
at java.lang.ClassLoader.defineClass(ClassLoader.java:763) ~[?:1.8.0_121]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
~[?:1.8.0_121]
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
~[?:1.8.0_121]
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
~[?:1.8.0_121]
at java.net.URLClassLoader$1.run(URLClassLoader.java:368) ~[?:1.8.0_121]
at java.net.URLClassLoader$1.run(URLClassLoader.java:362) ~[?:1.8.0_121]
at java.security.AccessController.doPrivileged(Native Method)
~[?:1.8.0_121]
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
~[?:1.8.0_121]
at
org.apache.openejb.util.classloader.URLClassLoaderFirst.loadInternal(URLClassLoaderFirst.java:174)
~[openejb-core-7.0.3.jar:7.0.3]
at
org.apache.tomee.catalina.TomEEWebappClassLoader.loadClass(TomEEWebappClassLoader.java:196)
~[tomee-catalina-7.0.3.jar:7.0.3]
at
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119)
~[catalina.jar:8.5.11]

Thanks,
Karthik



--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html
krajendr82
2018-05-30 08:42:39 UTC
Permalink
Best solution is to use Apache Axis 2 but if it's unavoidable to use Axis 1
then try the below solution.

Solution is to bundle the below 2 jars into APP-INF\lib folder as part of
the ear,

1) axis.jar
2) commons-discovery-0.2.jar



--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html
Loading...