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 Dinh Minh Quan <qd...@elca.ch> on 2002/06/19 07:53:47 UTC

Using class of axis in jws file

Hello,

I downloaded the axis to try it, for the simple example:

test.jws:

public class test {
	pblic String sayHello(String hello) {
		return hello;
	}
}

Than, it is OK. But I try to use the session:
MessageContext.getCurrentContext(), I already imported that class. But when
I try to run it, it shows the exception:

java.lang.NoClassDefFoundError: org/apache/axis/MessageContext
at soapleaf2.printString(soapleaf2.java:31)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:2
29)
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:262)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:
71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:154)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:121)
at org.apache.axis.handlers.JWSProcessor.invokeImpl(JWSProcessor.java:288)
at org.apache.axis.handlers.JWSProcessor.invoke(JWSProcessor.java:106)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:
71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:154)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:121)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:288)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:576)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:80
6)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)

It is very strange because it can compile but can not find the class in
runtime. Can you help me how to solve this problem?

Thanks a lot,
Quan