It's not a secret anymore!*
The moose likes Tomcat and the fly likes Developing Java Web Services with AXIS, Tomcat, Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Developing Java Web Services with AXIS, Tomcat," Watch "Developing Java Web Services with AXIS, Tomcat," New topic
Author

Developing Java Web Services with AXIS, Tomcat,

nana Aku
Greenhorn

Joined: Dec 05, 2011
Posts: 4
Hi guys, i have been trying to Develope Java Web Services with AXIS, Tomcat, and i am having a lot of errors. I downloaded Tomcat 7, Axis 1.4, and i copies files from axis to tomcat. when iclick on the list i have an error message
HTTP Status 404 - /axis/servlet/AxisServlet

--------------------------------------------------------------------------------

type Status report

message /axis/servlet/AxisServlet

description The requested resource (/axis/servlet/AxisServlet) is not available.


--------------------------------------------------------------------------------

Apache Tomcat/7.0.22

Please can some one help me urgently from the begining. I do not know if i did something wrong along the way. thanks
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
If you're just starting out with SOAP WS, don't use Axis 1.4 use Axis2 1.6 - lots of bug fixes, performance improvements and new features.

There should be more information (at the least a full stack trace) in one of the Tomcat log files. Since you said you copied "files" - that sounds suspicious: Axis comes as a WAR file, so that would be just a single file you have to deploy, not multiple files. How exactly did you deploy Axis?
nana Aku
Greenhorn

Joined: Dec 05, 2011
Posts: 4
first i downloaded the tomcat and the Axis (1.4)
I copied from C:\axis-1_4\webapps\axis\WEB-INF\web.xml into: C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ROOT\WEB-INF\web.xml

then i changed the following block in the copied file
<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>/servlet/AxisServlet</url-pattern>
</servlet-mapping>

Change to:

<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>/axis/servlet/AxisServlet</url-pattern>
</servlet-mapping>

3.i the copied From: C:\axis-1_4\webapps\axis\WEB-INF\lib
To: C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ROOT\WEB-INF\lib


and
4. From: C:\axis-1_4\webapps\axis\WEB-INF \classes
To: C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ROOT\WEB-INF \classes
then i copied a precreated server-config.wsdd file: to
C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ROOT\WEB-INF/server-config.wsdd

then i copied from C:\axis-1_4\webapps\axis folder
To: C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ROOT\axis

lastly
i Started the Apache Tomcat 7 Service from Control Panel\Administrative Tools\Services
Typing: http://localhost:8080/axis/at the explorer
then select list and i had the error message.
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
I'll ask again: Why are you using Axis1 1.4 instead of Axis2 1.6?

And even if you're using Axis1 1.4, why are you not moving the entire "axis" directory to your Tomcat's webapps directory? You should leave the ROOT directory alone.
nana Aku
Greenhorn

Joined: Dec 05, 2011
Posts: 4
That was what i was directed to us and we were to follow that procedure. if you can help me use the other version , that is fine. All that i wantis to develope a web service with Axis, tomcat and the “server-config.wsdd” and i should be able to attach some services such mathematical functions in java and users should be able to get the required reply.
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
There's nothing to help with - download the war file, drop it into Tomcat, and you're ready to go.
 
jQuery in Action, 2nd edition
 
subject: Developing Java Web Services with AXIS, Tomcat,
 
Similar Threads
WSDL -> WSDD? or WSDD -> WSDL?
How to view the Soap Message
confiqure Apache tomcat
(/axis/servlet/AdminServlet) is not available.
Consuming Services outside the firewall