Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Axis 1.1 setup on Java Web Services Dev Pack 1.3  RSS feed

 
Suresh Bansal
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Stan Sokolov
Ranch Hand
Posts: 120
Hibernate IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>
 
Anita Wang
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Forgot to ask, did you install Axis under the jwsdp1/3/server/webapps/ or did you install another Tomcat?
 
Stan Sokolov
Ranch Hand
Posts: 120
Hibernate IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Another Tomcat
 
Anita Wang
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then do I need to delete the server that comes with JWSDP?
Thanks!
 
Anita Wang
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Stan Sokolov
Ranch Hand
Posts: 120
Hibernate IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Amit Cool
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!