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
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
 
Problem with Apache/Tomcat/WebDAV/Alfresco

Problem with Apache/Tomcat/WebDAV/Alfresco

2007-08-13       - By Frank Gerlach

 Back
Reply:     1     2  


Hello folks,
we have a problem with the following setup:

Web Browser ->Apache(mod_jk)->Tomcat->Alfresco

Explanation: we would like to access the Alfresco content management system
(running in Tomcat) using WebDAV and SSL.
It works, if we expose Tomcat directly to the network. For security
reasons, we would like to "reverse proxy" with Apache. This does not work for
some reason. (does not send the WWW-Authenticate header)
We have checked mod_jk documentation without detecting any
problems on our side.
Can anybody help ?

Thanks in advance !

regards

Frank


Here are the relevant config settings and software version info:

Apache: Server version: Apache/2.0.59

Tomcat: Apache Tomcat/5.5.20
             jdk 1.5.0_07-b03 Sun Microsystems Inc.
             Linux 2.6.5-7.252-default i386


mod_jk in Apache:

JkMount /* alfresco
JkLogFile /var/log/apache2/mod_jk.log
JkLogLevel debug
JkWorkersFile "/usr/share/tomcat/conf/workers.properties"

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

/usr/share/tomcat/conf/workers.properties:

ps=/

# list the workers by name
worker.list=alfresco

# -- ---- ---- ---- ------
# First tomcat server
# -- ---- ---- ---- ------
worker.alfresco.port=8009
worker.alfresco.host=localhost
worker.alfresco.type=ajp13

# Specify the size of the open connection cache.
#worker.tomcat-worker1.cachesize

#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#  ----> lbfactor must be > 0
#  ----> Low lbfactor means less work done by the worker.
worker.alfresco.lbfactor=100

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

tomcat server.xml:

<!-- Define an AJP 1.3 Connector on port 8009 -->
   <Connector port="8009"
              enableLookups="false" redirectPort="8443" protocol="AJP/1.3"/>



Frank Gerlach
Software engineer

dmc digital media center GmbH
Rommelstra?e 11
70376 Stuttgart (Germany)
Telefon: +49 711 601747-258
Telefax: +49 711 601747-141
eMail:    frank.gerlach@(protected)
Internet: www.dmc.de

Handelsregister: AG Stuttgart HRB 18974
Gesch?ftsf?hrer: Andreas Magg, Daniel Rebhorn, Andreas Schwend

<<Frank Gerlach.vcf>>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7653.2">
<TITLE>Problem with Apache/Tomcat/WebDAV/Alfresco</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<BR>

<P><FONT FACE="Courier New">Hello folks,</FONT>

<BR><FONT FACE="Courier New">we have a problem with the following setup:</FONT>
</P>

<P><FONT FACE="Courier New">Web Browser -&gt;Apache(mod_jk)-&gt;Tomcat-&gt
;Alfresco</FONT>
</P>

<P><FONT FACE="Courier New">Explanation: we would like to access the Alfresco
content management system </FONT>

<BR><FONT FACE="Courier New">(running in Tomcat) using WebDAV and SSL.</FONT>

<BR><FONT FACE="Courier New">It works, if we expose Tomcat directly to the
network. For security </FONT>

<BR><FONT FACE="Courier New">reasons, we would like to &quot;reverse proxy&quot
; with Apache. This does not work for </FONT>

<BR><FONT FACE="Courier New">some reason. (does not send the WWW-Authenticate
header)</FONT>

<BR><FONT FACE="Courier New">We have checked mod_jk documentation without
detecting any </FONT>

<BR><FONT FACE="Courier New">problems on our side. </FONT>

<BR><FONT FACE="Courier New">Can anybody help ?</FONT>
</P>

<P><FONT FACE="Courier New">Thanks in advance !</FONT>
</P>

<P><FONT FACE="Courier New">regards</FONT>
</P>

<P><FONT FACE="Courier New">Frank</FONT>
</P>
<BR>

<P><FONT FACE="Courier New">Here are the relevant config settings and software
version info:</FONT>
</P>

<P><FONT FACE="Courier New">Apache: Server version: Apache/2.0.59</FONT>
</P>

<P><FONT FACE="Courier New">Tomcat: Apache Tomcat/5.5.20 </FONT>

<BR><FONT FACE="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; jdk 1.5.0_07-b03 Sun Microsystems Inc. </FONT>

<BR><FONT FACE="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Linux 2.6.5-7.252-default i386</FONT>
</P>
<BR>

<P><FONT FACE="Courier New">mod_jk in Apache:</FONT>
</P>

<P><FONT FACE="Courier New">JkMount /* alfresco</FONT>

<BR><FONT FACE="Courier New">JkLogFile /var/log/apache2/mod_jk.log</FONT>

<BR><FONT FACE="Courier New">JkLogLevel debug</FONT>

<BR><FONT FACE="Courier New">JkWorkersFile &quot;/usr/share/tomcat/conf/workers
.properties&quot;</FONT>
</P>

<P><FONT FACE="Courier New">+++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++</FONT>
</P>

<P><FONT FACE="Courier New">/usr/share/tomcat/conf/workers.properties:</FONT>
</P>

<P><FONT FACE="Courier New">ps=/</FONT>
</P>

<P><FONT FACE="Courier New"># list the workers by name</FONT>

<BR><FONT FACE="Courier New">worker.list=alfresco</FONT>
</P>

<P><FONT FACE="Courier New"># -- ---- ---- ---- ------</FONT>

<BR><FONT FACE="Courier New"># First tomcat server</FONT>

<BR><FONT FACE="Courier New"># -- ---- ---- ---- ------</FONT>

<BR><FONT FACE="Courier New">worker.alfresco.port=8009</FONT>

<BR><FONT FACE="Courier New">worker.alfresco.host=localhost</FONT>

<BR><FONT FACE="Courier New">worker.alfresco.type=ajp13</FONT>
</P>

<P><FONT FACE="Courier New"># Specify the size of the open connection cache.<
/FONT>

<BR><FONT FACE="Courier New">#worker.tomcat-worker1.cachesize</FONT>
</P>

<P><FONT FACE="Courier New">#</FONT>

<BR><FONT FACE="Courier New"># Specifies the load balance factor when used with
</FONT>

<BR><FONT FACE="Courier New"># a load balancing worker.</FONT>

<BR><FONT FACE="Courier New"># Note:</FONT>

<BR><FONT FACE="Courier New">#&nbsp; ----&gt; lbfactor must be &gt; 0</FONT>

<BR><FONT FACE="Courier New">#&nbsp; ----&gt; Low lbfactor means less work done
by the worker.</FONT>

<BR><FONT FACE="Courier New">worker.alfresco.lbfactor=100</FONT>
</P>

<P><FONT FACE="Courier New">+++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++</FONT>
</P>

<P><FONT FACE="Courier New">tomcat server.xml:</FONT>
</P>

<P><FONT FACE="Courier New">&lt;!-- Define an AJP 1.3 Connector on port 8009 --
&gt;</FONT>

<BR><FONT FACE="Courier New">&nbsp;&nbsp;&nbsp; &lt;Connector port=&quot;8009
&quot;</FONT>

<BR><FONT FACE="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; enableLookups=&quot;false&quot;
redirectPort=&quot;8443&quot; protocol=&quot;AJP/1.3&quot;/&gt;</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=2 FACE="Courier New">Frank Gerlach</FONT>

<BR><FONT SIZE=2 FACE="Courier New">Software engineer</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">dmc digital media center GmbH</FONT>

<BR><FONT SIZE=2 FACE="Courier New">Rommelstra?e 11</FONT>

<BR><FONT SIZE=2 FACE="Courier New">70376 Stuttgart (Germany)</FONT>

<BR><FONT SIZE=2 FACE="Courier New">Telefon: +49 711 601747-258</FONT>

<BR><FONT SIZE=2 FACE="Courier New">Telefax: +49 711 601747-141</FONT>

<BR><FONT SIZE=2 FACE="Courier New">eMail:&nbsp;&nbsp;&nbsp; frank.gerlach@(protected)
.de</FONT>

<BR><FONT SIZE=2 FACE="Courier New">Internet: www.dmc.de</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">Handelsregister: AG Stuttgart HRB 18974<
/FONT>

<BR><FONT SIZE=2 FACE="Courier New">Gesch?ftsf?hrer: Andreas Magg, Daniel
Rebhorn, Andreas Schwend</FONT>
</P>

<P><FONT FACE="Arial" SIZE=2 COLOR="#000000"> &lt;&lt;Frank Gerlach.vcf&gt;&gt;
</FONT>
</P>

</BODY>
</HTML>
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
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.