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
JSP - A mailing list about Java Server Pages specification and reference
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
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
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: 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
 
Subject: Re: jk_mod and binding tomcat 's root to an apache directory

Subject: Re: jk_mod and binding tomcat 's root to an apache directory

2007-11-04       - By Shug Boabby

 Back
Thanks again Rainer,

I think we're getting somewhere with this... but unfortunately all  
responses to myserver.com/tomcat/anything are completely empty. This  
means something is happening because the response to myserver.com/
tomcat is that it doesn't exist (because the rewrite rule doesn't  
apply if there is no trailing slash and it's trying to find the static  
page to serve).

I have noted the e-mail wrapping of the line and corrected for it.

My workers.properties file looks like

workers.tomcat_home=/usr/share/tomcat5.5
workers.java_home=/usr/lib/jvm/java-6 (See http://ava-6.ora-code.com)-sun
ps=/
worker.list=worker1
worker.worker1.port=8009
worker.worker1.host=localhost
worker.worker1.type=ajp13
worker.worker1.lbfactor=1
/=worker1

and my apache configuration (after module loading etc) has

RewriteEngine On
RewriteRule /tomcat/(.*) /$1 [E=JK_WORKER_NAME:worker1,H=jakarta-
servlet,PT]

I don't have any explicit JkMount lines anywhere and I'm not seeing  
anything unusual in my logs.

Have any further ideas? I really appreciate your help on this.

On 4 Nov 2007, at 14:04, Rainer Jung wrote:
> LoadModule rewrite_module modules/mod_rewrite.so
> RewriteEngine On
> RewriteRule /tomcat/(.*) /$1
> [E=JK_WORKER_NAME:myworker,H=jakarta-servlet,PT]
>
> The RewriteRule line extends until "PT]"
>
> This will activate JK forwarding via a worker called myworker (you can
> replace it by the name of your worker) for everything that starts with
> /tomcat/ and also changes the forwarding URL by stripping the leading
> "/tomcat".
>
> FOR Apache we use mod_rewrite for those tricks, because it is a  
> modular
> server and there exists many usefuk modules. For IIS this kind of
> ability is already build into the JK isapi plugin.
>
> Is that what you are looking for?
>
> Note that now we don't replace /tomcat by /servlet-examples, so a
> working request now would be /tomcat/servlet-example/something.

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
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.