Hi,
I'm trying to execute an Axis 1 client on a Windows Mobile plateform (WM
2003). My client only uses Axis API (jaxrpc) without any stubs generated
through wsdl2java, and I set the following jars in the classpath:
- axis.jar
- jaxrpc.jar
- commons-logging.jar
- commons-discovery.jar
- saaj.jar
- wsdl.jar
This client executes well on my PC but it fails when I run it on the
Windows Mobile platform.
It seems that the error comes from the configuration of Axis Engine:
EngineConfigurationFactoryFinder does not find the ServletConfig class...
Any idea about how can I solve this, and why does Axis engine require
ServletConfig? (i don't have any dependency to servlet config for a
client on PC)
Thanks for your help.
Regards,
Hervé
(full stacktrace follows)
=========================
org.apache.axis.configuration.EngineConfigurationFactoryFinder newFactory
WARNING: Factory
org.apache.axis.configuration.EngineConfigurationFactoryServlet Ignored:
invoke method failed: public static EngineConfigurationFactory
newFactory(Object).
java.lang.ClassNotFoundException: javax/servlet/ServletConfig not found
in java.lang.ClassLoader$1{urls=[file:////,file:/My
Documents/axis-client-api/,file:/My Documents/Lib/a.jar,file:/My
Documents/Lib/j.jar,file:/My Documents/Lib/cd.jar,file:/My
Documents/Lib/cl.jar,file:/My Documents/Lib/sj.jar,file:/My
Documents/Lib/w.jar], parent=null}
at java.net.URLClassLoader.findClass(URLClassLoader.java:531)
at java.lang.ClassLoader.loadClass(ClassLoader.java:342)
at java.lang.ClassLoader$1.loadClass(ClassLoader.java:1112)
at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
at
org.apache.axis.configuration.EngineConfigurationFactoryServlet.newFactory(EngineConfigurationFactoryServlet.java:79)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:355)
at
org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(EngineConfigurationFactoryFinder.java:189)
at
org.apache.axis.configuration.EngineConfigurationFactoryFinder.access$200(EngineConfigurationFactoryFinder.java:46)
at
org.apache.axis.configuration.EngineConfigurationFactoryFinder$1.run(EngineConfigurationFactoryFinder.java)
at java.security.AccessController.doPrivileged(AccessController.java:96)
at
org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(EngineConfigurationFactoryFinder.java:113)
at
org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(EngineConfigurationFactoryFinder.java:160)
at
org.apache.axis.client.Service.getEngineConfiguration(Service.java:813)
at org.apache.axis.client.Service.getAxisClient(Service.java:104)
at org.apache.axis.client.Service.<init>(Service.java:113)
at TestService.hello(TestService.java:22)
at TestService.main(TestService.java:75)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:355)
at java.lang.VMMainThread$1.run(VMMainThread.java)
at java.lang.VMThread.run(VMThread.java:120)
Aug 31, 2006 4:18:03 PM org.apache.axis.utils.JavaUtils
isAttachmentSupported
WARNING: Unable to find required classes (javax.activation.DataHandler
and javax.mail.internet.MimeMultipart). Attachment support is disabled.
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.net.ConnectException:
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.net.ConnectException:
at gnu.java.net.VMPlainSocketImpl.connect(Native Method)
at gnu.java.net.VMPlainSocketImpl.connect(VMPlainSocketImpl.java:295)
at gnu.java.net.PlainSocketImpl.connect(PlainSocketImpl.java:239)
at java.net.Socket.connect(Socket.java:440)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:355)
at
org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:153)
at
org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:120)
at
org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
at
org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at TestService.hello(TestService.java:38)
at TestService.main(TestService.java:75)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:355)
at java.lang.VMMainThread$1.run(VMMainThread.java)
at java.lang.VMThread.run(VMThread.java:120)
{http://xml.apache.org/axis/}hostname:Pocket_PC
java.net.ConnectException:
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at TestService.hello(TestService.java:38)
at TestService.main(TestService.java:75)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:355)
at java.lang.VMMainThread$1.run(VMMainThread.java)
at java.lang.VMThread.run(VMThread.java:120)
Caused by: java.net.ConnectException:
at gnu.java.net.VMPlainSocketImpl.connect(Native Method)
at gnu.java.net.VMPlainSocketImpl.connect(VMPlainSocketImpl.java:295)
at gnu.java.net.PlainSocketImpl.connect(PlainSocketImpl.java:239)
at java.net.Socket.connect(Socket.java:440)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:355)
at
org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:153)
at
org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:120)
at
org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
at
org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
...15 more
[FULL GC 24952K -> 15032K(50503K) 1.874778 secs]
[Starting finalize (494 objects)]
JVM exit.[End finalize]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]