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
 
Tomcat / Apache / SSl

Tomcat / Apache / SSl

2004-01-13       - By johncoyle@(protected)

 Back
Reply:     1     2  

Software: Apache - 2.0.48
Tomcat - 4.1.29
OpenSSL - 0.9.6l [engine] 04 Nov 2003

Hi,

I am trying to encrypt all data being transmitted from the client pc to
the webserver, and also from the webserver to tomcat. I have only been
working on tomcat for a couple of months but have experience on WebSphere.


I have enabled ssl on both apache and on tomcat, and both are accessible
directly:
apache: https://host
tomcat: https://host:8443



When I try set up a connector from apache to tomcat using port 8443 i get
an "Internal Server Error" and the follwoing errors in the mod_jk log:


[jk_ajp_common.c (661)]: In jk_endpoint_t::ajp_connect_to_endpoint,
connected sd = 16
[jk_ajp_common.c (693)]: sending to ajp13 #358
[jk_ajp_common.c (966)]: ajp_send_request 2: request body to send 0 -
request body to resend 0
[jk_ajp_common.c (755)]: ajp_connection_tcp_get_message: Error - Wrong
message format 0x1503
[jk_ajp_common.c (1137)]: Error reading reply from tomcat. Tomcat is down
or network problems.
[jk_ajp_common.c (1290)]: ERROR: Receiving from tomcat failed, recoverable
operation. err=2
[jk_ajp_common.c (1309)]: sending request to tomcat failed in send loop.
err=2
[jk_ajp_common.c (1318)]: Error connecting to tomcat. Tomcat is probably
not started or is listening on the wrong port. Failed errno = 0
[jk_ajp_common.c (1529)]: Into jk_endpoint_t::done, closing connection 0
[jk_ajp_common.c (605)]: In jk_endpoint_t::ajp_close_endpoint


Apache to Tomcat using the ajp13 connector over port 8009 works fine but I
have a requirement to encrypt all data. Any ideas?
Thanks,
John


Configs: ========
--- Tomcat configs
## server.xml
...
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector Source code of org.apache.coyote.tomcat4.CoyoteConnector"
port="8443" minProcessors="5" maxProcessors="75" enableLookups="true"
acceptCount="100" debug="0" scheme="https" secure="true"
useURIValidationHack="false" disableUploadTimeout="true">
<Factory className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory Source code of org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
clientAuth="true" protocol="TLS" /> </Connector>
...

## workers.properties

workers.tomcat_home="/usr/jakarta-tomcat-4 (See http://cat-4.ora-code.com).1.29/"
workers.java_home="/usr/java/j2sdk1.4.1_03/bin/java"
ps=/

worker.list=bob

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=bob

worker.bob.port=8443
worker.bob.host=10.0.0.10
worker.bob.type=ajp13

worker.bob.lbfactor=1

--- Apache configs
## httpd.conf
...
LoadModule jk_module modules/mod_jk.so

JkWorkersFile "/usr/jakarta-tomcat-4 (See http://cat-4.ora-code.com).1.29/conf/workers.properties"

JkLogFile "/usr/httpd-2 (See http://tpd-2.ora-code.com).0.48/logs/mod_jk-log"
JkLogLevel debug

JkMount / bob
JkMount /* bob
...



-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)




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