Link to home
Start Free TrialLog in
Avatar of drnick
drnick

asked on

AXIS and Tomcat

Hello my friends,

i'm a axis/tomcat newbie in windows,
and, as you already guessed, nothing works.

i got axis and tomcat as far as happy axis is
completely happy.
i got the admin stuff in web.xml of axis enabled.
however, none of the axis servlets is working.
i'm going with tomcat 5.5.3 and java 1.4.2_05
compatibility plus axis 1.2 alpha.


http://localhost:8080/axis/services/Version?method=getVersion 
produces

"HTTP Status 404 - /axis/services/Version

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

type Status report

message /axis/services/Version

description The requested resource (/axis/services/Version) is not available.


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

Apache Tomcat/5.5.3"

also, when i use my eclise 3.0 to try the example
http://pyre.third-bit.com/bindsoap/soapexamples/soapexamples.html,
when i come to
...Double-click on the class in the package explorer. This should bring up a different window called the "Class File Editor" - but this isn't important. From the top menu, go to Run->Run... and ...
it produces the output

"log4j:WARN No appenders could be found for logger (org.apache.axis.i18n.ProjectResourceBundle).
log4j:WARN Please initialize the log4j system properly.
Processing file deploy.wsdd
Exception: AxisFault
 faultCode: {http://xml.apache.org/axis/}HTTP
 faultSubcode:
 faultString: (404)/axis/services/AdminService
 faultActor:
 faultNode:
 faultDetail:
      {}:return code:  404
<html><head><title>Apache Tomcat/5.5.3 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - /axis/services/AdminService</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>/axis/services/AdminService</u></p><p><b>description</b> <u>The requested resource (/axis/services/AdminService) is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/5.5.3</h3></body></html>
      {http://xml.apache.org/axis/}HttpErrorCode:404
"

When i browse to my axis directory,
which is "C:\Programme\Internet\Tomcat\webapps\ROOT\axis"
i also cannot find a sub-directory called servlet.

The main axis page comes correct, but when i click to view the list of deployed blabla,
i also the error that the AxisServlet is not to be found.

Could you please help me?
Thanks.
Avatar of TimYates
TimYates
Flag of United Kingdom of Great Britain and Northern Ireland image

sounds like you are missing something in web.xml...

can you double check it and/or post it here?
Avatar of drnick
drnick

ASKER

ok, i put the axis-thing inside my Tomcat\webapps\ROOT folder,
in the directory axis.
So i got web.xml inside Tomcat\webapps\ROOT\axis\WEB-INF.
another web.xml is inside Tomcat\conf.

i state the content of the first one here, since that one should
be the interesting one:

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>
  <display-name>Apache-Axis</display-name>

    <listener>
        <listener-class>org.apache.axis.transport.http.AxisHTTPSessionListener</listener-class>
    </listener>

  <servlet>
    <servlet-name>AxisServlet</servlet-name>
    <display-name>Apache-Axis Servlet</display-name>
    <servlet-class>
        org.apache.axis.transport.http.AxisServlet
    </servlet-class>
  </servlet>

  <servlet>
    <servlet-name>AdminServlet</servlet-name>
    <display-name>Axis Admin Servlet</display-name>
    <servlet-class>
        org.apache.axis.transport.http.AdminServlet
    </servlet-class>
    <load-on-startup>100</load-on-startup>
  </servlet>

  <servlet>
    <servlet-name>SOAPMonitorService</servlet-name>
    <display-name>SOAPMonitorService</display-name>
    <servlet-class>
        org.apache.axis.monitor.SOAPMonitorService
    </servlet-class>
    <init-param>
      <param-name>SOAPMonitorPort</param-name>
      <param-value>5001</param-value>
    </init-param>
    <load-on-startup>100</load-on-startup>
  </servlet>

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

  <servlet-mapping>
    <servlet-name>AxisServlet</servlet-name>
    <url-pattern>*.jws</url-pattern>
  </servlet-mapping>

  <servlet-mapping>
    <servlet-name>AxisServlet</servlet-name>
    <url-pattern>/services/*</url-pattern>
  </servlet-mapping>

  <servlet-mapping>
    <servlet-name>SOAPMonitorService</servlet-name>
    <url-pattern>/SOAPMonitor</url-pattern>
  </servlet-mapping>


  <servlet-mapping>
    <servlet-name>AdminServlet</servlet-name>
    <url-pattern>/servlet/AdminServlet</url-pattern>
  </servlet-mapping>


    <session-config>
        <!-- Default to 5 minute session timeouts -->
        <session-timeout>5</session-timeout>
    </session-config>

    <!-- currently the W3C havent settled on a media type for WSDL;
    http://www.w3.org/TR/2003/WD-wsdl12-20030303/#ietf-draft
    for now we go with the basic 'it's XML' response -->
  <mime-mapping>
    <extension>wsdl</extension>
     <mime-type>text/xml</mime-type>
  </mime-mapping>


  <mime-mapping>
    <extension>xsd</extension>
    <mime-type>text/xml</mime-type>
  </mime-mapping>

  <welcome-file-list id="WelcomeFileList">
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>index.jws</welcome-file>
  </welcome-file-list>

</web-app>
>  ok, i put the axis-thing inside my Tomcat\webapps\ROOT folder,
> in the directory axis.

This won't work...

EITHER

a)  Move the axis directory to the webapps directory,

OR

b) Move the WEB-INF contents to ROOT/WEB-INF
ASKER CERTIFIED SOLUTION
Avatar of TimYates
TimYates
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of drnick

ASKER

would be so kind to post such a bit?
since i made the error of not installing examples included,
there seems to be no examples-context-entry in server.xml
and when i got to install the whole thing again,
i'm gonna get nuts you know -
i wrote my installation steps down, because a group
of my fellow students have to use this stuff also,
and it is now 20 steps,
meaning installing is not funny anmore :-)
Actually...you don't need to change server.xml

just move the axis directory to

  tomcat/webapps/axis

and restart tomcat...

(and cross your fingers) ;-)

hehehe

Tim
Avatar of drnick

ASKER

here you got your points, fellow,
at least the axis functions work.
gonna try the examples now,
so prepare for a new question following soon :-)
Hee hee, good luck with it all!!

And hope your fellow students can follow in your footsteps :-)

Tim