Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
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
JSP - A mailing list about Java Server Pages specification and reference
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
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
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
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
Making index.jsp work as welcome page after upgrade

Making index.jsp work as welcome page after upgrade

2004-01-07       - By Talley, Angelina

 Back
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

Hello! I just upgraded a web application from Tomcat 4.0.6/mod_jk 1.2.5 to
Tomcat 4.1.29/mod_jk2 2.0.2 (built myself), both on Apache 1.3.27 on Linux.
Our webapp runs as the ROOT context (files are in
$TOMCAT_HOME/webapps/ROOT). We have precompiled the JSP pages for 4.1.29,
but did not do that in 4.0.6.

On the old setup, to get to our application all you had to do was type
https://myserver <https://myserver>  and you'd get index.jsp by default.
Now, if you type the URL like that you get a directory listing. You have to
explicitly put index.jsp in the URL to get to it. If you do that, the entire
web app works just fine.

Is there some new configuration item I need to tweak here? I tried adding a
segment for welcome-file-list to my web.xml:

   <welcome-file-list>
       <welcome-file>index.jsp</welcome-file>
   </welcome-file-list>

But it still doesn't work. Any other suggestions would be greatly
appreciated. I figured perhaps my workers2.properties was messed up, so I'll
put a sample of that below. I made almost no changes at all to server.xml
except to add tomcatAuthentication="false" for the Coyote connector and to
comment out the connector on port 8080. I should note that if run as Tomcat
standalone (without Apache) on Windows (haven't tried Linux because of our
authentication setup), it works perfectly.

>From workers2.properties:

#
# IP socket channel
#
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1

#
# define the ajp13 worker
#
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

#
# Uri mapping - jsp files only
#
[uri:/*.jsp]
group=ajp13:localhost:8009

#
# Uri mapping - Struts stuff
#
[uri:/action/*]
group=ajp13:localhost:8009

#
# Uri mapping - all servlets in servlets directory
#
[uri:/servlets/*]
group=ajp13:localhost:8009


>From server.xml:

<!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
   <Connector className="org.apache.coyote.tomcat4.CoyoteConnector Source code of org.apache.coyote.tomcat4.CoyoteConnector"
              port="8009" minProcessors="5" maxProcessors="75"
              enableLookups="true" redirectPort="8443"
              acceptCount="10" debug="0" connectionTimeout="0"
              useURIValidationHack="false"
              tomcatAuthentication="false"

protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler Source code of org.apache.jk.server.JkCoyoteHandler"/>



Entire jk2.properties:

#
# Socket configuration
#
handler.list=request,container,channelSocket

#
# socket configuration
#
channelSocket.port=8009
channelSocket.address=127.0.0.1
channelSocket.maxPort=port+10


Thanks!

-Angelina Talley


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