• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Developing Java Web Services with AXIS, Tomcat,

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Saloon Keeper
Posts: 7585
176
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Saloon Keeper
Posts: 7585
176
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Saloon Keeper
Posts: 7585
176
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There's nothing to help with - download the war file, drop it into Tomcat, and you're ready to go.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic