Hello Friends, I have installed Java Web Services Developers Pack 1.3. Then i downloaded Axis 1.1, copied axis directory to Tomcat's webapps directroy. It is not working. I tried copying the two jar files to tomcats common directory, and restarted the server. The strange thing is, that the same thing is working with axis beta 1 (ver old version). Did any body face this ? I have not installed jdk seprately, it is the one which came with web services dev pack. I am getting /axis, the requested resource is not available. Suresh.
Journey is as important as the Destination.<br /> <br />PMP, SCJP, SCJD, SCEA (Part 1), SCMAD, SCDJWS
It should work. AXIS contains very serious documentation that covers all installation issued. You need to read it ang do step by step through. In general I advice you to use regular Tomcat 5. Don't forget to set all environment variables <pre> AXIS_HOME=c:\tomcat5\webapps\axis AXIS_LIB=%AXIS_HOME%\lib AXISCLASSPATH=%AXIS_LIB%\axis.jar;%AXIS_LIB%\commons-discovery.jar;%AXIS_LIB%\jaxrpc.jar;%AXIS_LIB%\commons-discovery.jar;%AXIS_LIB%\commons-logging.jar;%AXIS_LIB%\saaj.jar;%AXIS_LIB%\wsdl4j.jar;%AXIS_LIB%\log4j-1.2.8.jar; </pre>
Good luck for yourself.
Anita Wang
Greenhorn
Joined: Mar 15, 2004
Posts: 20
posted
0
I'm having the same problem. Did you have it fixed? If so, could you let me know what you have done? Thanks!
Anita Wang
Greenhorn
Joined: Mar 15, 2004
Posts: 20
posted
0
Forgot to ask, did you install Axis under the jwsdp1/3/server/webapps/ or did you install another Tomcat?
Then do I need to delete the server that comes with JWSDP? Thanks!
Anita Wang
Greenhorn
Joined: Mar 15, 2004
Posts: 20
posted
0
It worked! Many thanks to Stas! I just installed Tomcat 5(binary version) under C, and then put the webapps/axis directory of Axis under the webapps directory of Tomcat. Today is a good day!
You can keep JWSDP installation. I keep them both. Just also keep in mind that you can add AXIS to your application war archive. http://ws.apache.org/axis/java/install.html#advanced ------------------------------------------------------------- If you are experienced in web application development, and especially if you wish to add web services to an existing or complex webapp, you can take an alternate approach to running Axis. Instead of adding your classes to the Axis webapp, you can add Axis to your application. The core concepts are Add axis.jar, wsdl.jar, saaj.jar, jaxrpc.jar and the other dependent libraries to your WAR file. Copy all the Axis Servlet declarations and mappings from axis/WEB-INF/web.xml and add them to your own web.xml Build and deploy your webapp. Run the Axis AdminClient against your own webapp, instead of Axis, by changing the URL you invoke it with. The process is also covered in Chapter 15 of Java Development with Ant, which can be downloaded as a PDF file.
Anita Wang
Greenhorn
Joined: Mar 15, 2004
Posts: 20
posted
0
Have a new problem... I'm trying to compile the classes for my web service under axis, but it keeps telling me that javax.xml.rpc package does not exist. I have copied the jaxrpc-api.jar to axis/WEB-INF/lib and inclued it in the classpath, but it still won't work. Anyone has idea why? Thanks!
Anita Wang
Greenhorn
Joined: Mar 15, 2004
Posts: 20
posted
0
Never mind, I figured it out already. If you have similar problem, let me know. Maybe I can help. Thanks for the help, everyone!
Anita Wang
Greenhorn
Joined: Mar 15, 2004
Posts: 20
posted
0
Sigh...having problem again... I'm going through the steps in Axis installation instruction (install.html in axis-1_1\docs) and every step works, except the Testing step. In this step, the example stockquote has been installed and deployed, and need to be run using the following command: java -cp "%AXISCLASSPATH%" samples.stock.GetQuote -lhttp://localhost:8080/axis/servlet/AxisServlet -uuser1 -wpass1 XXX but the computer gives me very strange error: Exception in thread "main" java.lang.NoClassDefFoundError: samples/stock/GetQuote when GetQuote is right in the directory it supposed to be. And I couldn't figure out what the problem is. Might be some stupid problem... And I'm not clear about where I should run the above command. The instruction says under the "distribution directory for xml-axis", does that mean the axis directory under tomcat or the axis directory generated from downloading? Anyone can help, many thanks in advance...
Balaji Loganathan
author and deputy
Bartender
Joined: Jul 13, 2001
Posts: 3150
posted
0
xml-axis means the directory which contians your axis webapps and lib's. Did you set your AXISCLASSPATH properly as indicated in documentation (step6-classpath setup) ?? See whether you have included all the lib files like axis.jar, commons-discovery.jar, commons-logging.jar, jaxrpc.jar, saaj.jar, log4j-1.2.8.jar, xml-apis,xercer etc., You can find these jar under webapps/axis/web-inf/lib folder of your axis directory. if you still have the problem, please tell us your directory structure of your tomcat and axis like C:\Tomcat C:\Tomcat\axis\webapps
I am also facing a similar problem. I have follwed all the instruction in step 6(deplyoing your web service). My admin client is running perfectly and get the messsage "Done processing". But I am not able to execute the command in step 7(testing). I get the following error message "Exception in thread "main" java.lang.NoClassDefFoundError: samples/stock/GetQuote"
My Axis installation path is C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\axis All the jar files are in C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\axis\WEB-INF\lib and I have added them to the AXISCLASSPATH.
Please help me in solving the problem.
Kim Tran
Greenhorn
Joined: Aug 24, 2003
Posts: 1
posted
0
Did you run the samples.stock.GetQuote from the directory that you install the axis? I installed the axis under c:\axis, then I ran samples.stock.GetQuote from there. Hope this helps.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: Axis 1.1 setup on Java Web Services Dev Pack 1.3