error while trying to run first HelloWorld.jws in SimpleAxisServer
Jesus Angeles
Ranch Hand
Joined: Feb 26, 2005
Posts: 1985
posted
0
I did follow all instructions, and all classpaths seem to be ok. My error is:
================== the server window ==================
C:\wd\book beginning jws\coding\CH3 PG 114>java org.apache.axis.transport.http.S impleAxisServer log4j:WARN No appenders could be found for logger (org.apache.axis.i18n.ProjectR esourceBundle). log4j:WARN Please initialize the log4j system properly. Exception in thread "main" java.lang.NoClassDefFoundError: javax/wsdl/OperationT ype at org.apache.axis.description.OperationDesc.<clinit>(OperationDesc.java :59) at org.apache.axis.description.JavaServiceDesc.createOperationForMethod( JavaServiceDesc.java:1213) at org.apache.axis.description.JavaServiceDesc.createOperationsForName(J avaServiceDesc.java:1150) at org.apache.axis.description.JavaServiceDesc.getSyncedOperationsForNam e(JavaServiceDesc.java:1112) at org.apache.axis.description.JavaServiceDesc.loadServiceDescByIntrospe ctionRecursive(JavaServiceDesc.java:962) at org.apache.axis.description.JavaServiceDesc.loadServiceDescByIntrospe ction(JavaServiceDesc.java:896) at org.apache.axis.providers.java.JavaProvider.initServiceDesc(JavaProvi der.java:477) at org.apache.axis.handlers.soap.SOAPService.getInitializedServiceDesc(S OAPService.java:285) at org.apache.axis.handlers.JWSHandler.setupService(JWSHandler.java:273)
at org.apache.axis.handlers.JWSHandler.invoke(JWSHandler.java:72) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg y.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.server.AxisServer.invoke(AxisServer.java:249) at org.apache.axis.transport.http.SimpleAxisWorker.execute(SimpleAxisWor ker.java:428) at org.apache.axis.transport.http.SimpleAxisWorker.run(SimpleAxisWorker. java:155) at org.apache.axis.transport.http.SimpleAxisServer.run(SimpleAxisServer. java:245) at org.apache.axis.transport.http.SimpleAxisServer.start(SimpleAxisServe r.java:296) at org.apache.axis.transport.http.SimpleAxisServer.start(SimpleAxisServe r.java:304) at org.apache.axis.transport.http.SimpleAxisServer.main(SimpleAxisServer .java:385)
C:\wd\book beginning jws\coding\CH3 PG 114>
================= the client window =================
C:\wd\book beginning jws\coding\CH3 PG 114>java HelloWorldClient HelloWorld.main: Entering... log4j:WARN No appenders could be found for logger (org.apache.axis.i18n.ProjectR esourceBundle). log4j:WARN Please initialize the log4j system properly. Caught an exception: (0)null
C:\wd\book beginning jws\coding\CH3 PG 114>
=============
Any ideas?
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 32767
posted
0
That class is in a file called wsdl4j-1.5.1.jar in lib directory of the Axis 1.2 distribution. Maybe you inadvertently removed it, or the file is corrupted.