Hi, I am trying to deploy a webservice. I have setup the tomcat and axis. I have a web service called test.jws When I put the URL http://localhost:8080/axis/test.jws I get the message There is a Web Service here Click to see the WSDL.
Then I created enviroment variables for the axis class path, etc.
When I tried to run the client, I get the error C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\axis>java TestCient -p8080 GetResult 2 3 Exception in thread "main" java.lang.NoClassDefFoundError: TestClient
I think it might be a problem with the environment variable but everything seems to be fine.
Hi, I have placed the ClientTest in the axis folder. When I included it in the class path I gt the error C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\axis>java -classpath .;%AXISCLASSPATH% HotelClient -p8080 getQuote 1 2 Exception in thread "main" java.lang.NoClassDefFoundError: Files/Apache
Joined: Mar 22, 2005
Classpaths that contain spaces are a bit of a problem. Either rename the directories not to contain spaces, or enclose the problematic path entries with double quotes, like
I have changed the AXISCLASSPATH to "%AXIS_LIB%\axis.jar";"%AXIS_LIB%\commons-discovery.jar";"%AXIS_LIB%\commons-logging.jar";"%AXIS_LIB%\jaxrpc.jar";"%AXIS_LIB%\saaj.jar";"%AXIS_LIB%\log4j-1.2.8.jar";"%AXIS_LIB%\xml-apis.jar";"%AXIS_LIB%\xercesImpl.jar"
c:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\axis>java -classpath %AXISCLASSPATH%;. HelloClient -p8080 barker 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.client.Call.addParameter(Call.java:968) at org.apache.axis.client.Call.addParameter(Call.java:1003) at HelloClient.main(HelloClient.java:30)
Where am I going wrong?
Joined: Mar 22, 2005
It seems that you're missing one of the jar files that comes with Axis 1, namely wsdl4j-1.5.1.jar (it may have a different version number if you're not using Axis 1.4).