Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 192005

Summary: Axis2: "Run on server" does not bring Axis2 Web app up on Tomcat 6.0
Product: [WebTools] WTP Webservices Reporter: Kathy Chan <kathy>
Component: jst.wsAssignee: Saminda Wijeratne <samindaw>
Status: CLOSED FIXED QA Contact: Keith Chong <keith.chong.ca>
Severity: major    
Priority: P3 CC: gbrehmer, keith.chong.ca, project-eclipse
Version: 2.0Keywords: plan
Target Milestone: 3.2 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard: Axis2
Attachments:
Description Flags
Fix for Bug 192005
keith.chong.ca: iplog+
Modified patch to update versions none

Description Kathy Chan CLA 2007-06-11 13:00:10 EDT
With the fix for bug 177421, the Axis2 facet can be added to servlet 2.5 project (such as one targetted to Tomcat 6.0).  However, even after adding the Axis2 facet, "run on server" (e.g. on http://localhost:8080/tc60/) returns "HTTP error 404 - requested resource "tc60" not available".  However, if I go to the URL "http://localhost:8080/tc60/services/listServices", the Axis2 service shows up OK.

Here's the web.xml after adding the Axis2 facet:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
  <servlet>
    <display-name>Apache-Axis Servlet</display-name>
    <servlet-name>AxisServlet</servlet-name>
    <servlet-class>org.apache.axis2.transport.http.AxisServlet</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>
    <display-name>Apache-Axis Admin Servlet Web Admin</display-name>
    <servlet-name>AxisAdminServlet</servlet-name>
    <servlet-class>org.apache.axis2.transport.http.AxisAdminServlet</servlet-class>
    <load-on-startup>100</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>AxisAdminServlet</servlet-name>
    <url-pattern>/axis2-admin/*</url-pattern>
  </servlet-mapping>
</web-app>
Comment 1 Kathy Chan CLA 2009-01-15 14:36:05 EST
Hi Saminda,

This is still a problem with WTP 3.1 01/15 driver.  Please take a look at this major problem for WTP 3.1.
Comment 2 Keith Chong CLA 2009-06-18 13:06:43 EDT
Hi Saminda, can you look at this for 3.1.1 ?
Comment 3 Keith Chong CLA 2009-08-20 14:02:55 EDT
Saminda...retarget this to 3.2
Comment 4 Saminda Wijeratne CLA 2009-12-07 03:12:16 EST
Created attachment 153904 [details]
Fix for Bug 192005 	

The welcome file list was not updated for tomcat 6.0. Please test and verify this patch.

Saminda.
Comment 5 Kathy Chan CLA 2009-12-07 10:14:06 EST
Keith, please verify patch.
Comment 6 Keith Chong CLA 2010-01-11 12:39:40 EST
Created attachment 155768 [details]
Modified patch to update versions
Comment 7 Keith Chong CLA 2010-01-11 12:48:43 EST
Saminda, thanks for the patch.  I've released the changes for 3.2 M5.
Comment 8 Keith Chong CLA 2010-06-17 15:54:24 EDT
Closing on behalf of Kathy.  I verified this awhile back and on the latest WTP 3.2 driver with Tomcat 6.0.