[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 665
  • Last Modified:

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 ?
0
Kevlarso
Asked:
Kevlarso
  • 6
  • 5
1 Solution
 
objectsCommented:
the 1st one looks like the right one.
what does your web.xml look like?
what other applications are running in tomcat
0
 
KevlarsoAuthor Commented:
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
0
 
objectsCommented:
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
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
KevlarsoAuthor Commented:
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
0
 
objectsCommented:
it may be meant to do that. theres nothing in web.xml mapped to /
whats in D:\Apa_Tom\Tomcat 5.5\webapps\axis2

0
 
KevlarsoAuthor Commented:
Dear Savant,

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

Thanks
Kevlarso
0
 
objectsCommented:
ok
0
 
KevlarsoAuthor Commented:
I re-installed axis2 on a new laptop and it is working now.

This issue has been resolved.

Thanks
0
 
objectsCommented:
excellent :)

0
 
KevlarsoAuthor Commented:
Savant,
Thank you for help
Please close the question
0
 
KevlarsoAuthor Commented:
close it please
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now