Dear Ben,
Just check the servlet mapping package separator that
you have implemented it in AIX and Solaris.
regards,
Das
--- Flaffer [EMAIL PROTECTED] wrote:
I added the mapping to the web.xml of the app and it
made no
difference. For some reason, it seems to ignore the
mapping
completely! I have no idea why it works on Solaris
but not on AIX!
Ben Ricker
On Thu, 27 Jan 2005 22:45:02 -0500, Parsons
Technical Services
[EMAIL PROTECTED] wrote:
I have not worked with TC4 but I think your
problem is that the mappings for
the servlets should be in the web.xml for the app
and not in the general
web.xml. Also when you do the mappings in the app
web.xml you do not need
fully qualified paths.
Doug
- Original Message -
From: Flaffer [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Thursday, January 27, 2005 12:37 PM
Subject: Invoker workaround on AIX
I am migrating around 10 apps from Tomcat 4.0.6
(Sun JDK 1.3.1) to
Tomcat 4.0.6 on AIX 5.2 using IBMs JDK
1.3.1sr7).
I am having an issue working around the invoker
servlet. I have the
workaround(where you explicitely map the
/servlet context ) working on
Solaris. But when I bring the config over to
AIX, the URI /servlet
cannot be mapped to a context.
Here are the two configs. The first one does not
work. It throws this
error in the engine log:
2005-01-27 10:20:39 StandardHost[pdw0stl5]:
Mapping request URI
'/servlet/com.bo.hsal.servlet'
2005-01-27 10:20:39 StandardHost[pdw0stl5]:
Trying the longest
context path prefix
2005-01-27 10:20:39 StandardHost[pdw0stl5]:
Trying the default context
2005-01-27 10:20:39 StandardHost[pdw0stl5]:
MAPPING configuration
error for request URI
The access log shows a 500 error thrown on the
request. Here is the
pertinent part of the web.xml for the
application server instance
(i.e., conf/web.xml):
?xml version=1.0 encoding=ISO-8859-1 ?
!DOCTYPE web-app (View Source for full
doctype...)
web-app
servlet
servlet-namedefault/servlet-name
servlet-classorg.apache.catalina.servlets.DefaultServlet/servlet-class
init-param
param-namedebug/param-name
param-value0/param-value
/init-param
init-param
param-namelistings/param-name
param-valuefalse/param-value
/init-param
load-on-startup1/load-on-startup
/servlet
- !-- Mapping to replace Invoker servlet.
NOTE: USED ONLY BY BO APPS.
--
!-- LEAVE COMMENTED OUT FOR OTHER APPS. This
addresses a securty
concern.
--
!-- See
http://marc.theaimsgroup.com/?l=tomcat-userm=103945394724196w=2
--
servlet
servlet-nameservlet/servlet-name
servlet-classcom.bo.hsal.HSALServlet/servlet-class
/servlet
servlet
servlet-namejsp/servlet-name
servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
init-param
param-namelogVerbosityLevel/param-name
param-valueWARNING/param-value
/init-param
load-on-startup3/load-on-startup
/servlet
!-- Built In Servlet Mappings
=
--
servlet-mapping
servlet-namedefault/servlet-name
url-pattern//url-pattern
/servlet-mapping
!-- Uncomment for BO Apps Only. See Invoker
replacement above.
--
servlet-mapping
servlet-nameservlet/servlet-name
url-pattern/servlet/*/url-pattern
/servlet-mapping
servlet-mapping
servlet-namejsp/servlet-name
url-pattern*.jsp/url-pattern
/servlet-mapping
The config that works is the default one which
loads the invoker
servlet and maps it.
?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
servlet
servlet-namedefault/servlet-name
servlet-classorg.apache.catalina.servlets.DefaultServlet/servlet-class
init-param
param-namedebug/param-name
param-value0/param-value
/init-param
init-param
param-namelistings/param-name
param-valuefalse/param-value
/init-param
load-on-startup1/load-on-startup
/servlet
servlet
servlet-nameinvoker/servlet-name
servlet-classorg.apache.catalina.servlets.InvokerServlet/servlet-class
init-param
param-namedebug/param-name
param-value0/param-value
/init-param
load-on-startup2/load-on-startup
/servlet
servlet
servlet-namejsp/servlet-name
servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
init-param
param-namelogVerbosityLevel/param-name
param-valueWARNING/param-value
/init-param
load-on-startup3/load-on-startup
/servlet
!-- Built In Servlet Mappings
= --
servlet-mapping
servlet-namedefault/servlet-name
url-pattern//url-pattern
/servlet-mapping
!-- The mapping for the