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
 
SOLVED: 5.0.18 Ignoring <security-constraint >?

SOLVED: 5.0.18 Ignoring <security-constraint >?

2004-01-23       - By Merrill Cornish

 Back
I (accidently) figured out the problem with the <security-constraint>.  The
problem was in the Connector definition for port 80 in server.xml.  The excerpt
from server.xml that I posted was correct because it was inadvertently from the
5.0.16 installation. (The editor helpfully "remembered" it for me.)

In the 5.0.18 installation that I was actually using, the redirectPort
attribute for the Connect on port 80 was still port 8443 rather than port 443,
which I had set up the SSL Connector for.

Not that I'm trying salve my ego or anything :-), but I still think there may
be a Tomcat installation problem/oddity/gotcha.  

During the installation of the *.exe version, it asks what port you want Tomcat
to listen on with the default (reasonably enough) as 8080.  I set that input
field to 80.  In server.xml, the port attribute of the Connector element was
properly changed from 8080 to 80, but the redirectPort of that connector was
left unchanged as 8443.

This may be a mis-feature, depending upon on your view point.  One way of
looking at it is that ports 80 and 443 go together while ports 8080 and 8433 go
together.  If the installation dialog allows the default listen port to be
changed from 8080 to 80, then shouldn't it also change the default SSL port
from 8433 to 433 along with enabling the Connector for port 443?  

Perhaps the installation needs an additional option of the "what port do you
want" dialog that lets you pick an SSL port if you want one where the default
is no SSL.  At least that dialog choice would make it clear that the choice of
HTTP port is independent of the choice of HTTPS port.

Anyway, it works for now.

Merrill


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