Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
Mod jk selective forwarding performance problem

Mod jk selective forwarding performance problem

2007-08-06       - By Bill Bainbridge

 Back
Reply:     1     2     3     4     5     6  

I am using Tomcat 5.5.23 with Apache 2.2.4 and mod_jk.  The "payments" app uses
Struts, Spring and Tiles.  I'd like to have Apache serve the images,
stylesheets and other static content that is referenced in the Struts jsps, but
when I try to do that, if the page isn't cached in the browser, it comes up
with no buttons (from the images/ directory) until I click the browser's
"Refresh" icon; then it shows up again with all the buttons.  The apache error
log shows a "File does not exist:" message on the first try, e.g.:

File does not exist: /usr/apache/httpd/htdocs/payments/images/Bttn_IAgree.gif
;jsessionid?9B1578B6A813AAF2AB528C7DD398E4, referer: http://74.205.87.59
/payments/welcome.do  (we're using the IP address until we go into production,
when we'll switch over the DNS for the domain name).

I don't have any problems at all when everything for the /payments/ address
goes to Tomcat.  Here's the mod_jk section of httpd.conf:

LoadModule jk_module modules/mod_jk.so

JkWorkersFile /usr/apache/httpd/conf/workers.properties
JkShmFile /usr/apache/httpd/logs/mod_jk.shm
JkLogFile /usr/apache/httpd/logs/mod_jk.log
JkLogLevel warn
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkMount /payments/* worker1
JkUnMount /payments/images/* worker1
JkUnMount /payments/html/* worker1
JkUnMount /payments/css/* worker1

I get the same results (no buttons the first time) when I leave out the
JkUnMount lines and change the JkMount line to:

JkMount/payments/*.do

Does anyone know why Apache can't find the image files the first time, but does
the second?  Is this a page timeout thing?  Thanks!

Bill



-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.