Link to home
Start Free TrialLog in
Avatar of Kevlarso
Kevlarso

asked on

I have CATALINA_HOME, AXIS_HOME, where is the webapps directory of the servlet engine ? Please help me out. I copied axis2.war to every webapps directory possible, but still can not get to AXIS2.

I have run "ant create.war" to create axis2.war.
I copied axis2.war to CATALINA_HOME\webapps , could not get http://localhost:8080/axis2 , it always flips to http://localhost:8080/axis2/services
I copied axis2.war to AXIS2_HOME\webapps, it still does the same.
I don't know what it means by "sevlet engine" where is that engine ?  where is the webapps directory of that engine ?
Avatar of Mick Barry
Mick Barry
Flag of Australia image

the 1st one looks like the right one.
what does your web.xml look like?
what other applications are running in tomcat
Avatar of Kevlarso
Kevlarso

ASKER

Hi Savant,

Thanks for extending a helpful hand.
the web.xml in D:\Apa_Tom\Tomcat 5.5\webapps\ROOT\WEB-INF which is also
D:\CATALINA_HOME\webapps\ROOT\WEB-INF is the following  :

<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    version="2.4">

  <display-name>Welcome to Tomcat</display-name>
  <description>
     Welcome to Tomcat
  </description>

<!-- JSPC servlet mappings start -->

    <servlet>
        <servlet-name>org.apache.jsp.index_jsp</servlet-name>
        <servlet-class>org.apache.jsp.index_jsp</servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>org.apache.jsp.index_jsp</servlet-name>
        <url-pattern>/index.jsp</url-pattern>
    </servlet-mapping>

<!-- JSPC servlet mappings end -->

</web-app>

Please let know if this is not the web.xml that you mentioned.

No other application is running.

Thanks
Kevlarso
is there one in D:\Apa_Tom\Tomcat 5.5\webapps\axis2\WEB-INF

is D:\Apa_Tom\Tomcat 5.5\webapps where you deployed
Hi Savant,

You are right, there is a web.xml in   D:\Apa_Tom\Tomcat 5.5\webapps\axis2\WEB-INF
and I copied it here:

<?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-Axis2</display-name>
    <servlet>
        <servlet-name>AxisServlet</servlet-name>
        <display-name>Apache-Axis Servlet</display-name>
        <servlet-class>org.apache.axis2.transport.http.AxisServlet</servlet-class>
        <!--<init-param>-->
        <!--<param-name>axis2.xml.path</param-name>-->
        <!--<param-value>/WEB-INF/conf/axis2.xml</param-value>-->
        <!--<param-name>axis2.xml.url</param-name>-->
        <!--<param-value>http://localhot/myrepo/axis2.xml</param-value>-->
        <!--<param-name>axis2.repository.path</param-name>-->
        <!--<param-value>/WEB-INF</param-value>-->
        <!--<param-name>axis2.repository.url</param-name>-->
        <!--<param-value>http://localhot/myrepo</param-value>-->
        <!--</init-param>-->
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
        <servlet-name>AxisAdminServlet</servlet-name>
        <display-name>Apache-Axis AxisAdmin Servlet (Web Admin)</display-name>
        <servlet-class>
            org.apache.axis2.transport.http.AxisAdminServlet</servlet-class>
    </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>AxisAdminServlet</servlet-name>
        <url-pattern>/axis2-admin/*</url-pattern>
    </servlet-mapping>

    <mime-mapping>
        <extension>inc</extension>
        <mime-type>text/plain</mime-type>
    </mime-mapping>

   <welcome-file-list>
      <welcome-file>index.jsp</welcome-file>
      <welcome-file>index.html</welcome-file>
      <welcome-file>/axis2-web/index.jsp</welcome-file>
    </welcome-file-list>

    <error-page>
      <error-code>404</error-code>
      <location>/axis2-web/Error/error404.jsp</location>
    </error-page>

    <error-page>
        <error-code>500</error-code>
        <location>/axis2-web/Error/error500.jsp</location>
    </error-page>
</web-app>

Yes, I copied  axis2.war  into  D:\Apa_Tom\Tomcat 5.5\webapps  
then typed the URL  http://localhost:8080/axis2/
the URL changed automatically to  http://localhost:8080/axis2/services/
and the browser body page shows:

Deployed services
Version
Available operations
getVersion

Thanks for help
Kevlarso
it may be meant to do that. theres nothing in web.xml mapped to /
whats in D:\Apa_Tom\Tomcat 5.5\webapps\axis2

Dear Savant,

It still does not work.
I am going to re-install axis2.

Thanks
Kevlarso
I re-installed axis2 on a new laptop and it is working now.

This issue has been resolved.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia 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
Savant,
Thank you for help
Please close the question
close it please