tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: Unable to Access Servlet After Migrating From Tomcat 5.0.25 to 6.0.18
Date Fri, 04 Sep 2009 13:15:41 GMT
> From: Lataxes, Karl [mailto:Karl.Lataxes@nielsen.com]
> Subject: Unable to Access Servlet After Migrating From Tomcat 5.0.25 to
> 6.0.18
> 
> The context.xml and web.xml files as described are similar to what we
> have running under Tomcat 5.0.25.

Which is likely the problem.  The <Context> element has changed between the two levels.

> <Context path="/UMI" docBase="/amd/homes/lataxeks/umi/ap/DataColl"

The path attribute is not allowed when the file containing the <Context> element is
in conf/Catalina/[host]; instead, that file must be named UMI.xml.

> 	<Resources
> className="org.apache.naming.resources.FileDirContext"
> 		allowLinking="true" />

Remove the <Resources> element, since it's the default.  Note that there is no allowLinking
attribute for <Resources>.

> 	<Logger className="org.apache.catalina.logger.FileLogger"
> 		prefix="UMIAPDC_log." suffix=".txt"
> 		directory="/amd/homes/lataxeks/umi/logs"
> 		timestamp="true"/>

There is no <Logger> element in Tomcat 6.0; remove that.

> 	<Realm className="org.apache.catalina.realm.MemoryRealm" />

Unless you're just testing, that's not a good choice for a <Realm>.

> The following are the contents of the web.xml file:
> 	<servlet-mapping>
> 		<servlet-name>HUControlServlet</servlet-name>
> 		<url-pattern>/UMI/servlet/HUControlServlet</url-pattern>
> 	</servlet-mapping>

The /UMI should not be part of the <url-pattern>.

Clean up all of the above, and then let's see what happens.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus
for use only by the intended recipient. If you received this in error, please contact the
sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message