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.Proj ectResourc eBundle).
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/AdminS ervice
faultActor:
faultNode:
faultDetail:
{}:return code: 404
<html><head>&l t;title> ;Apache Tomcat/5.5.3 - Error report</title><st yle>< ;!--H1 {font-family:Tahoma,Arial, sans-serif ;color:whi te;backgro und-color: #525D76;fo nt-size:22 px;} H2 {font-family:Tahoma,Arial, sans-serif ;color:whi te;backgro und-color: #525D76;fo nt-size:16 px;} H3 {font-family:Tahoma,Arial, sans-serif ;color:whi te;backgro und-color: #525D76;fo nt-size:14 px;} BODY {font-family:Tahoma,Arial, sans-serif ;color:bla ck;backgro und-color: white;} B {font-family:Tahoma,Arial, sans-serif ;color:whi te;backgro und-color: #525D76;} P {font-family:Tahoma,Arial, sans-serif ;backgroun d:white;co lor:black; font-size: 12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style& gt; </head><body>& lt;h1>H TTP Status 404 - /axis/services/AdminServic e</h1&g t;<HR size="1" noshade="noshade" ;><p ><b& gt;type< ;/b> Status report</p><p>& lt;b>me ssage</ b> <u>/axis/services/Ad minService </u> </p> <p>& lt;b>de scription& lt;/b> <u>The requested resource (/axis/services/AdminServi ce) is not available.</u></p ><HR size="1" noshade="noshade" ;><h 3>Apach e Tomcat/5.5.3</h3>< ;/body> </html& gt;
{http://xml.apache.org/axis/}HttpErrorCode:404
"
When i browse to my axis directory,
which is "C:\Programme\Internet\Tom cat\webapp s\ROOT\axi s"
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.
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.Proj
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/AdminS
faultActor:
faultNode:
faultDetail:
{}:return code: 404
<html><head>&l
{http://xml.apache.org/axis/}HttpErrorCode:404
"
When i browse to my axis directory,
which is "C:\Programme\Internet\Tom
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.
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\W EB-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-n ame>
<listener>
<listener-class>org.apache .axis.tran sport.http .AxisHTTPS essionList ener</list ener-class >
</listener>
<servlet>
<servlet-name>AxisServlet< /servlet-n ame>
<display-name>Apache-Axis Servlet</display-name>
<servlet-class>
org.apache.axis.transport. http.AxisS ervlet
</servlet-class>
</servlet>
<servlet>
<servlet-name>AdminServlet </servlet- name>
<display-name>Axis Admin Servlet</display-name>
<servlet-class>
org.apache.axis.transport. http.Admin Servlet
</servlet-class>
<load-on-startup>100</load -on-startu p>
</servlet>
<servlet>
<servlet-name>SOAPMonitorS ervice</se rvlet-name >
<display-name>SOAPMonitorS ervice</di splay-name >
<servlet-class>
org.apache.axis.monitor.SO APMonitorS ervice
</servlet-class>
<init-param>
<param-name>SOAPMonitorPor t</param-n ame>
<param-value>5001</param-v alue>
</init-param>
<load-on-startup>100</load -on-startu p>
</servlet>
<servlet-mapping>
<servlet-name>AxisServlet< /servlet-n ame>
<url-pattern>/servlet/Axis Servlet</u rl-pattern >
</servlet-mapping>
<servlet-mapping>
<servlet-name>AxisServlet< /servlet-n ame>
<url-pattern>*.jws</url-pa ttern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AxisServlet< /servlet-n ame>
<url-pattern>/services/*</ url-patter n>
</servlet-mapping>
<servlet-mapping>
<servlet-name>SOAPMonitorS ervice</se rvlet-name >
<url-pattern>/SOAPMonitor< /url-patte rn>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AdminServlet </servlet- name>
<url-pattern>/servlet/Admi nServlet</ url-patter n>
</servlet-mapping>
<session-config>
<!-- Default to 5 minute session timeouts -->
<session-timeout>5</sessio n-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-fi le>
<welcome-file>index.jsp</w elcome-fil e>
<welcome-file>index.jws</w elcome-fil e>
</welcome-file-list>
</web-app>
in the directory axis.
So i got web.xml inside Tomcat\webapps\ROOT\axis\W
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<
<listener>
<listener-class>org.apache
</listener>
<servlet>
<servlet-name>AxisServlet<
<display-name>Apache-Axis Servlet</display-name>
<servlet-class>
org.apache.axis.transport.
</servlet-class>
</servlet>
<servlet>
<servlet-name>AdminServlet
<display-name>Axis Admin Servlet</display-name>
<servlet-class>
org.apache.axis.transport.
</servlet-class>
<load-on-startup>100</load
</servlet>
<servlet>
<servlet-name>SOAPMonitorS
<display-name>SOAPMonitorS
<servlet-class>
org.apache.axis.monitor.SO
</servlet-class>
<init-param>
<param-name>SOAPMonitorPor
<param-value>5001</param-v
</init-param>
<load-on-startup>100</load
</servlet>
<servlet-mapping>
<servlet-name>AxisServlet<
<url-pattern>/servlet/Axis
</servlet-mapping>
<servlet-mapping>
<servlet-name>AxisServlet<
<url-pattern>*.jws</url-pa
</servlet-mapping>
<servlet-mapping>
<servlet-name>AxisServlet<
<url-pattern>/services/*</
</servlet-mapping>
<servlet-mapping>
<servlet-name>SOAPMonitorS
<url-pattern>/SOAPMonitor<
</servlet-mapping>
<servlet-mapping>
<servlet-name>AdminServlet
<url-pattern>/servlet/Admi
</servlet-mapping>
<session-config>
<!-- Default to 5 minute session timeouts -->
<session-timeout>5</sessio
</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-
</mime-mapping>
<mime-mapping>
<extension>xsd</extension>
<mime-type>text/xml</mime-
</mime-mapping>
<welcome-file-list id="WelcomeFileList">
<welcome-file>index.html</
<welcome-file>index.jsp</w
<welcome-file>index.jws</w
</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
> 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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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 :-)
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
just move the axis directory to
tomcat/webapps/axis
and restart tomcat...
(and cross your fingers) ;-)
hehehe
Tim
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 :-)
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
And hope your fellow students can follow in your footsteps :-)
Tim
ASKER
can you double check it and/or post it here?