dcsimg
".do" files execution problem with Tomcat 4.0 & Apache 1.3
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Rob_A
Posted On:   Saturday, April 13, 2002 11:12 PM

Hello. I'm trying to use ".do" files to get them to execute from a form post using Tomcat & Apache. It works fine if I go straight to Tomcat and post the form with the content; however, if I go through Apache, and post the form, it will give "file not found" errors you can see an example here: http://www.valuerequest.com:8180/logon.jsp then go here and compare: http://www.valuerequest.com/logon.jsp I'm using the HTTP 1.1 connector to get Apache & Tomcat to communicate. It works fine for just executing JSP files and Servlets. Here's the logon.jsp file you're accessing above: ============================================ <%@ page language=&quo   More>>

Hello. I'm trying to use ".do" files to get them to execute from a form post using Tomcat & Apache. It works fine if I go straight to Tomcat and post the form with the content; however, if I go through Apache, and post the form, it will give "file not found" errors


you can see an example here: http://www.valuerequest.com:8180/logon.jsp then go here and compare: http://www.valuerequest.com/logon.jsp


I'm using the HTTP 1.1 connector to get Apache & Tomcat to communicate. It works fine for just executing JSP files and Servlets.


Here's the logon.jsp file you're accessing above:

============================================

<%@ page language="java" %>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>








key="logon.title"/>




















































=======================================






Here's the catalina log file. Everything seems fine:

=====================================

2002-04-14 01:25:06 WebappLoader[]: Deploying class repositories to work directory /var/tomcat4/work/valuerequest.com/_

2002-04-14 01:25:06 WebappLoader[]: Deploy JAR /WEB-INF/lib/jdbc7.0-1.2.jar to /home/valuerequest/html/WEB-INF/lib/jdbc7.0-1.2.jar

2002-04-14 01:25:06 WebappLoader[]: Deploy JAR /WEB-INF/lib/log4j.jar to /home/valuerequest/html/WEB-INF/lib/log4j.jar

2002-04-14 01:25:06 WebappLoader[]: Deploy JAR /WEB-INF/lib/omcontrib.jar to /home/valuerequest/html/WEB-INF/lib/omcontrib.jar

2002-04-14 01:25:06 WebappLoader[]: Deploy JAR /WEB-INF/lib/omcore.jar to /home/valuerequest/html/WEB-INF/lib/omcore.jar

2002-04-14 01:25:06 WebappLoader[]: Deploy JAR /WEB-INF/lib/openmap.jar to /home/valuerequest/html/WEB-INF/lib/openmap.jar

2002-04-14 01:25:06 WebappLoader[]: Deploy JAR /WEB-INF/lib/servletMonitor.jar to /home/valuerequest/html/WEB-INF/lib/servletMonitor.jar

2002-04-14 01:25:06 WebappLoader[]: Deploy JAR /WEB-INF/lib/struts.jar to /home/valuerequest/html/WEB-INF/lib/struts.jar

2002-04-14 01:25:06 StandardManager[]: Seeding random number generator class java.security.SecureRandom

2002-04-14 01:25:06 StandardManager[]: Seeding of random number generator has been completed

2002-04-14 01:25:06 ContextConfig[]: Added certificates -> request attribute Valve

2002-04-14 01:25:06 initialisation: init

2002-04-14 01:25:06 initialisation: Initializing the GIS...

2002-04-14 01:25:07 initialisation: Configuring the GIS with :/home/valuerequest/html/WEB-INF/conf/gis.properties

2002-04-14 01:25:07 initialisation: Configuring the logging of the GIS with :/home/valuerequest/html/WEB-INF/conf/gis-logging.properties

2002-04-14 01:25:07 initialisation: GIS Initialized

2002-04-14 01:25:07 action: init

2002-04-14 01:25:07 action: Loading application resources from resource com.dgarnier.awas.web.ApplicationResources

2002-04-14 01:25:07 action: Initializing configuration from resource path /WEB-INF/struts-config.xml

2002-04-14 01:25:08 action: Process servletName=mapdisplay, urlPattern=*.map

2002-04-14 01:25:08 action: Process servletName=graphdisplay, urlPattern=*.ghd

2002-04-14 01:25:08 action: Process servletName=initialisation, urlPattern=/nothing

2002-04-14 01:25:08 action: Process servletName=hello, urlPattern=/hello

2002-04-14 01:25:08 action: Process servletName=action, urlPattern=*.do

2002-04-14 01:25:08 action: Mapping for servlet 'action' = '*.do'

2002-04-14 01:25:08 StandardWrapper[]: Loading container servlet default

2002-04-14 01:25:08 default: init

2002-04-14 01:25:08 StandardWrapper[]: Loading container servlet invoker

2002-04-14 01:25:08 invoker: init

2002-04-14 01:25:08 mapdisplay: init

2002-04-14 01:25:08 graphdisplay: init

2002-04-14 01:25:08 hello: init

2002-04-14 01:25:08 jsp: init
=====================================



My Apache httpd.conf file for this virtual host looks like this:

=====================================



ServerAdmin valuerequest@valuerequest.com

DocumentRoot /home/valuerequest/html

ServerName valuerequest.com

ServerAlias www.valuerequest.com

ScriptAlias '/cgi-bin' /home/valuerequest/cgi-bin

CustomLog /var/log/httpd/valuerequest-access_log combined

ErrorLog /home/valuerequest/error_log

Alias '/stats' /home/valuerequest/stats



=====================================


Here's the portion of my Server.xml file for this host:

=====================================





debug="0"/>

www.valuerequest.com





=====================================



My guess it somehow Apache doesn't know to forward the ".do" files to Tomcat. Perhaps the HTTP 1.1 connector can't be used for this purpose?


Anyone have any insight? I'm pretty new to Tomcat and Java.


Thanks!    <<Less
About | Sitemap | Contact