CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Java

 problem deploying Servletts for Tomcat 5.5

Print topic Send  topic

Author Message
Wolfgang Kraus
Posted: 08/24/2005, 5:51 AM

I need to build Java Servletts for Tomcat 5.5, oracle 10i and Java 5.
The build process works fine.

When I deploy the servletts I get error:

HTTP Status 404 - /Test1/TEMP_MAPPI_list.do
...
description The requested resource (/Test1/TEMP_MAPPI_list.do) is not available.


Can anybody help me?

----------------------------
This is the web-inf\web.xml file

<?xml version="1.0"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<!--
//webApp configuration head @1-20A8545C
-->
<web-app>

<servlet>
<servlet-name>controller</servlet-name>
<servlet-class>com.codecharge.ControllerServlet</servlet-class>
</servlet>

<servlet>
<servlet-name>viewer</servlet-name>
<servlet-class>com.codecharge.ViewerServlet</servlet-class>
</servlet>
<!--

//End webApp configuration head

//siteInit head @2-560E289E
-->
<servlet>
<servlet-name>siteInit</servlet-name>
<servlet-class>com.codecharge.InitServlet</servlet-class>

<init-param>
<param-name>configuration.file</param-name>
<param-value>/WEB-INF/site.properties</param-value>
</init-param>

<init-param>
<param-name>languages.file</param-name>
<param-value>/WEB-INF/languages.properties</param-value>
</init-param>
<!--

//End siteInit head

//server specific parameters @3-09626FDE
-->

<init-param>
<param-name>controllerHandlerClassName</param-name>
<param-value>com.codecharge.util.DefaultControllerHandler</param-value>
</init-param>

<init-param>
<param-name>usedUnpackedWarFile</param-name>
<param-value>false</param-value>
</init-param>

<init-param>
<param-name>convertReturnLinkToAbsolute</param-name>
<param-value>false</param-value>
</init-param>
<!--

//End server specific parameters

//siteInit tail @5-5E3BCE44
-->
<load-on-startup>108</load-on-startup>
</servlet>

<!--

//End siteInit tail

//Servlet mapping @6-7E2ED0C8
-->
<servlet-mapping>
<servlet-name>controller</servlet-name>
<url-pattern>/*.do</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>viewer</servlet-name>
<url-pattern>/*.show</url-pattern>
</servlet-mapping>


<servlet-mapping>
<servlet-name>controller</servlet-name>
<url-pattern>/Footer.do</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>viewer</servlet-name>
<url-pattern>/Footer.show</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>controller</servlet-name>
<url-pattern>/Header.do</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>viewer</servlet-name>
<url-pattern>/Header.show</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>controller</servlet-name>
<url-pattern>/TEMP_MAPPI_list.do</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>viewer</servlet-name>
<url-pattern>/TEMP_MAPPI_list.show</url-pattern>
</servlet-mapping>

<!--

//End Servlet mapping

//webApp configuration tail @7-398BFCF7
-->
<welcome-file-list>
<welcome-file>index.do</welcome-file>
</welcome-file-list>

</web-app>
<!--

//End webApp configuration tail


-->



Richard
Posted: 10/07/2005, 8:50 AM

Hi,
I am having the same issue, did you ever find a solution
Bill Valentine-Cooper
Posted: 10/08/2005, 7:20 PM

I had the same problem. I turned on full logging under Tomcat 5.5, and saw where it was complaining about the *.do url patterns. I deleted that and it's fine.
miko

Posts: 50
Posted: 10/09/2005, 11:00 PM

I have no problems with 'Tomcat 5' as my Target server (project property in Properties window).
_________________
Regards,
Michael
View profile  Send private message
Stephan
Posted: 10/13/2005, 7:34 AM

Just map your "controller" servlet to the pattern *.do instead of /*.do
chinna
Posted: 11/08/2005, 9:23 AM

Hai,
If 404 error means file not found.change the url pattern and also put your tools.jar in tomcat/common/lib folder
rajesh rai
Posted: 11/28/2005, 7:02 AM

I need to build Java Servletts for Tomcat 5.5, oracle 10i and Java 5.
The build process works fine.

When I deploy the servletts I get error:
resourse not found
how to deploy in tomcat 5.0

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.