You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Antanas Masevicius <an...@lksoft.lt> on 2002/12/23 18:56:30 UTC
jws works and with wsdd doesn't?
Hello,
consider the following code:
public Element produceElement(String getElement, String getChildren)
throws SdaiException, FileNotFoundException, ClassNotFoundException,
SAXException, IOException, Exception{
// get an XML stream
InputStream fromStream = performXmlQuery(getElement, getChildren);
// create Element from thne stream - got an exception here
SOAPBodyElement el = new SOAPBodyElement(fromStream);
return el.getAsDOM();
}
i use axis1_1 beta, the same error is with 1_0 version:
java.lang.reflect.InvocationTargetException
at org.apache.axis.AxisFault.makeFault(AxisFault.java:127)
at
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:336)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126)
at
org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:469)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:315)
...cut here
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:385)
at
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:293)
at
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:332)
... 40 more
Caused by: java.lang.NoClassDefFoundError:
org/apache/axis/message/SOAPBodyElement
at
jsdaix.ap214.pdtnet.server.PDTNetServlet.produceElement(PDTNetServlet.java:137)
at
jsdaix.ap214.pdtnet.server.PDTNetServlet.ItemQuery(PDTNetServlet.java:124)
... 47 more
my wsdd file looks like:
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<service name="Servlet" provider="java:RPC">
<parameter name="className" value="server.PDTNetServlet"/>
<parameter name="allowedMethods" value="produceElement"/>
</service>
</deployment>
this method works when class is deployed as jws. Could this be an Axis
bug or it is not possible to use SOAPBodyElement here?
thank you.