You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Twan Munster <t....@emaxx.nl> on 2003/10/10 16:16:18 UTC
redirect port 8080 to 443
Hello,
I'm using apache+mod_ssl+mod_jk to make a secure connection.
But every time I call a page in cocoon it is called through port 8080. Is it possible to redirect a call to port 8080 to port 443? And not for the entire server, but only for a certain directory?How is this done?
thnx
Twan
RE: NEWBEE: try to connect to Firebird database.
Posted by "Richard Drent (Drent IT BV)" <in...@drentit.nl>.
The weird this is that they are in
WEB-INF/lib
And also in the
Jakarta-tomcat/lib
And I tried also with attribute 777, but Im lost in this one...
Is my syntax of connecting OK???
Greetz richard
Root cause:
java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
The problem is that you don't deploy the "FirebirdSQL" driver. Put all the
following files
firebirdsql-full.jar
jaas.jar
log4j-core.jar
mini-concurrent.jar
mini-j2ee.jar
in the "WEB-INF\lib" folder.
That's all.
Diego
----- Original Message -----
From: "Richard Drent (Drent IT BV)" <in...@drentit.nl>
To: "'Tomcat Users List'" <to...@jakarta.apache.org>
Sent: Saturday, October 11, 2003 5:33 PM
Subject: NEWBEE: try to connect to Firebird database.
Hi all
I'm lost, I try to connect to a firebird database with the Jaybird jdbc.
I have her the syntax of my page, because I don't now if it is tomcat, the
JDBC or my page who is making the error. The error is at the bottom of this
msg.
So can some body tell me what is wrong here, or where to start.
Thnx
Richard
##################
Here is the syntax of my page
###########################
<%@ page contentType="text/html; charset=iso-8859-1" language="java"
import="java.sql.*, javax.naming.*,javax.sql.*" errorPage="" %>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<%
Connection con;
String databaseURL =
"jdbc:firebirdsql:192.168.0.115/3050:/home/firebird/data/employee.fdb";
String user = "sysdba";
String password = "richard";
//String driverName = "org.firebirdsql.jdbc.FBDriver";
java.sql.Connection c = null;
java.sql.Statement s = null;
java.sql.ResultSet rs = null;
//Load driver
Class.forName("org.firebirdsql.jdbc.FBDriver");
//Attempt to connect to a driver.
c = DriverManager.getConnection(databaseURL, user, password);
//Create a Statement object
s = c.createStatement();
//java.sql.ResultSet result = stmt.executeQuery ("select full_name from
employee where salary < 50000");
rs = s.executeQuery("SELECT * FROM SALES");
%>
</table>
</body>
</html>
######################
########################
Error msg
#####################
Error: 500
Location: /connect3.jsp
Internal Servlet Error:
javax.servlet.ServletException
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
Root cause:
java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at
_0002fconnect_00033_0002ejspconnect3_jsp_20._jspService(_0002fconnect_00033_
0002ejspconnect3_jsp_20.java:82)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
va:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:282)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
###########################
#############################
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: NEWBEE: try to connect to Firebird database.
Posted by Diego Novati <di...@tin.it>.
Root cause:
java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
The problem is that you don't deploy the "FirebirdSQL" driver. Put all the
following files
firebirdsql-full.jar
jaas.jar
log4j-core.jar
mini-concurrent.jar
mini-j2ee.jar
in the "WEB-INF\lib" folder.
That's all.
Diego
----- Original Message -----
From: "Richard Drent (Drent IT BV)" <in...@drentit.nl>
To: "'Tomcat Users List'" <to...@jakarta.apache.org>
Sent: Saturday, October 11, 2003 5:33 PM
Subject: NEWBEE: try to connect to Firebird database.
Hi all
I'm lost, I try to connect to a firebird database with the Jaybird jdbc.
I have her the syntax of my page, because I don't now if it is tomcat, the
JDBC or my page who is making the error. The error is at the bottom of this
msg.
So can some body tell me what is wrong here, or where to start.
Thnx
Richard
##################
Here is the syntax of my page
###########################
<%@ page contentType="text/html; charset=iso-8859-1" language="java"
import="java.sql.*, javax.naming.*,javax.sql.*" errorPage="" %>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<%
Connection con;
String databaseURL =
"jdbc:firebirdsql:192.168.0.115/3050:/home/firebird/data/employee.fdb";
String user = "sysdba";
String password = "richard";
//String driverName = "org.firebirdsql.jdbc.FBDriver";
java.sql.Connection c = null;
java.sql.Statement s = null;
java.sql.ResultSet rs = null;
//Load driver
Class.forName("org.firebirdsql.jdbc.FBDriver");
//Attempt to connect to a driver.
c = DriverManager.getConnection(databaseURL, user, password);
//Create a Statement object
s = c.createStatement();
//java.sql.ResultSet result = stmt.executeQuery ("select full_name from
employee where salary < 50000");
rs = s.executeQuery("SELECT * FROM SALES");
%>
</table>
</body>
</html>
######################
########################
Error msg
#####################
Error: 500
Location: /connect3.jsp
Internal Servlet Error:
javax.servlet.ServletException
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
Root cause:
java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at
_0002fconnect_00033_0002ejspconnect3_jsp_20._jspService(_0002fconnect_00033_
0002ejspconnect3_jsp_20.java:82)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
va:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:282)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
###########################
#############################
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
NEWBEE: try to connect to Firebird database.
Posted by "Richard Drent (Drent IT BV)" <in...@drentit.nl>.
Hi all
I'm lost, I try to connect to a firebird database with the Jaybird jdbc.
I have her the syntax of my page, because I don't now if it is tomcat, the
JDBC or my page who is making the error. The error is at the bottom of this
msg.
So can some body tell me what is wrong here, or where to start.
Thnx
Richard
##################
Here is the syntax of my page
###########################
<%@ page contentType="text/html; charset=iso-8859-1" language="java"
import="java.sql.*, javax.naming.*,javax.sql.*" errorPage="" %>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<%
Connection con;
String databaseURL =
"jdbc:firebirdsql:192.168.0.115/3050:/home/firebird/data/employee.fdb";
String user = "sysdba";
String password = "richard";
//String driverName = "org.firebirdsql.jdbc.FBDriver";
java.sql.Connection c = null;
java.sql.Statement s = null;
java.sql.ResultSet rs = null;
//Load driver
Class.forName("org.firebirdsql.jdbc.FBDriver");
//Attempt to connect to a driver.
c = DriverManager.getConnection(databaseURL, user, password);
//Create a Statement object
s = c.createStatement();
//java.sql.ResultSet result = stmt.executeQuery ("select full_name from
employee where salary < 50000");
rs = s.executeQuery("SELECT * FROM SALES");
%>
</table>
</body>
</html>
######################
########################
Error msg
#####################
Error: 500
Location: /connect3.jsp
Internal Servlet Error:
javax.servlet.ServletException
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
Root cause:
java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at
_0002fconnect_00033_0002ejspconnect3_jsp_20._jspService(_0002fconnect_00033_
0002ejspconnect3_jsp_20.java:82)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
va:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:282)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
###########################
#############################
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: Jav.util.logging URGENT
Posted by Galbayar <ga...@mobinet.mn>.
java version "1.4.1_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_03-b02)
Java HotSpot(TM) Client VM (build 1.4.1_03-b02, mixed mode)
-----Original Message-----
From: Joseph Krasnov [mailto:j.krasnov@verizon.net]
Sent: Sunday, October 12, 2003 12:21 AM
To: 'Tomcat Users List'
Subject: RE: Jav.util.logging URGENT
What version of Java are you using?
-----Original Message-----
From: Galbayar [mailto:galbayar@mobinet.mn]
Sent: Saturday, October 11, 2003 2:54 AM
To: Tomcat Users List
Subject: Jav.util.logging URGENT
Hi, I am learning to use logger. I have a code snippet below
package test
import java.io.IOException;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.logging.FileHandler;
import java.util.logging.SimpleFormatter;
public class Logger implements Serializable {
static SimpleDateFormat sdf = new SimpleDateFormat("yyyy_MM_dd");
public static void logInfo(String message) {
try {
java.util.logging.Logger logger =
java.util.logging.Logger.getLogger(
"test");
FileHandler fh = new FileHandler("C:/ubs_" + sdf.format(new
Date()) + ".log", true);
fh.setFormatter(new SimpleFormatter());
logger.addHandler(fh);
logger.info(message);
} catch (SecurityException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
}
after called Logger.logInfo("test") 2 times created 5 files?
ubs_2003_10_11.log
ubs_2003_10_11.log.lck
ubs_2003_10_11.log.1
ubs_2003_10_11.log.1.lck
ubs_2003_10_11.log.2
ubs_2003_10_11.log.2.lck
what's happened? i need Logger create one file?
Thanks in advance
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: Jav.util.logging URGENT
Posted by Joseph Krasnov <j....@verizon.net>.
What version of Java are you using?
-----Original Message-----
From: Galbayar [mailto:galbayar@mobinet.mn]
Sent: Saturday, October 11, 2003 2:54 AM
To: Tomcat Users List
Subject: Jav.util.logging URGENT
Hi, I am learning to use logger. I have a code snippet below
package test
import java.io.IOException;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.logging.FileHandler;
import java.util.logging.SimpleFormatter;
public class Logger implements Serializable {
static SimpleDateFormat sdf = new SimpleDateFormat("yyyy_MM_dd");
public static void logInfo(String message) {
try {
java.util.logging.Logger logger =
java.util.logging.Logger.getLogger(
"test");
FileHandler fh = new FileHandler("C:/ubs_" + sdf.format(new
Date()) + ".log", true);
fh.setFormatter(new SimpleFormatter());
logger.addHandler(fh);
logger.info(message);
} catch (SecurityException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
}
after called Logger.logInfo("test") 2 times created 5 files?
ubs_2003_10_11.log
ubs_2003_10_11.log.lck
ubs_2003_10_11.log.1
ubs_2003_10_11.log.1.lck
ubs_2003_10_11.log.2
ubs_2003_10_11.log.2.lck
what's happened? i need Logger create one file?
Thanks in advance
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Jav.util.logging URGENT
Posted by Galbayar <ga...@mobinet.mn>.
Hi, I am learning to use logger. I have a code snippet below
package test
import java.io.IOException;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.logging.FileHandler;
import java.util.logging.SimpleFormatter;
public class Logger implements Serializable {
static SimpleDateFormat sdf = new SimpleDateFormat("yyyy_MM_dd");
public static void logInfo(String message) {
try {
java.util.logging.Logger logger =
java.util.logging.Logger.getLogger(
"test");
FileHandler fh = new FileHandler("C:/ubs_" + sdf.format(new
Date()) + ".log", true);
fh.setFormatter(new SimpleFormatter());
logger.addHandler(fh);
logger.info(message);
} catch (SecurityException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
}
after called Logger.logInfo("test") 2 times created 5 files?
ubs_2003_10_11.log
ubs_2003_10_11.log.lck
ubs_2003_10_11.log.1
ubs_2003_10_11.log.1.lck
ubs_2003_10_11.log.2
ubs_2003_10_11.log.2.lck
what's happened? i need Logger create one file?
Thanks in advance
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Tomcat restart.
Posted by anunay ashish <an...@tis.co.in>.
Hi,
I am using Tomcat to host an application. Sometimes it happens that the JSP
page giving an error, becomes fine as soon as I restart the tomcat. The
error generated is specifically at the place where I am initializing the
bean.
Why is it so?
Thanks in advance.
Regards,
Anunay Ashish.
----- Original Message -----
From: "Peter Harrison" <pe...@nothingbutnet.co.nz>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Saturday, October 11, 2003 12:24 PM
Subject: Re: redirect port 8080 to 443
> On Sat, 11 Oct 2003 17:38, Bill Barker wrote:
> > It's in the FAQ:
> > http://jakarta.apache.org/tomcat/faq/security.html#https
> >
> > "Twan Munster" <t....@emaxx.nl> wrote in message
> > news:005001c38f39$12a22570$1501a8c0@picard...
> > Hello,
> >
> > I'm using apache+mod_ssl+mod_jk to make a secure connection.
> > But every time I call a page in cocoon it is called through port 8080.
Is
> > it possible to redirect a call to port 8080 to port 443? And not for
the
> > entire server, but only for a certain directory?How is this done?
>
> Assuming you have configured tomcat correctly to handle SSL its simply a
> matter of using https:// rather than http:// in you URL's.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: redirect port 8080 to 443
Posted by Peter Harrison <pe...@nothingbutnet.co.nz>.
On Sat, 11 Oct 2003 17:38, Bill Barker wrote:
> It's in the FAQ:
> http://jakarta.apache.org/tomcat/faq/security.html#https
>
> "Twan Munster" <t....@emaxx.nl> wrote in message
> news:005001c38f39$12a22570$1501a8c0@picard...
> Hello,
>
> I'm using apache+mod_ssl+mod_jk to make a secure connection.
> But every time I call a page in cocoon it is called through port 8080. Is
> it possible to redirect a call to port 8080 to port 443? And not for the
> entire server, but only for a certain directory?How is this done?
Assuming you have configured tomcat correctly to handle SSL its simply a
matter of using https:// rather than http:// in you URL's.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: redirect port 8080 to 443
Posted by Twan Munster <t....@emaxx.nl>.
thnx for comment, but it didn't work
I still can connect to http://localhost/secure/
Twan
----- Original Message -----
From: "Bill Barker" <wb...@wilshire.com>
To: <to...@jakarta.apache.org>
Sent: Saturday, October 11, 2003 6:38 AM
Subject: Re: redirect port 8080 to 443
> It's in the FAQ:
> http://jakarta.apache.org/tomcat/faq/security.html#https
>
> "Twan Munster" <t....@emaxx.nl> wrote in message
> news:005001c38f39$12a22570$1501a8c0@picard...
> Hello,
>
> I'm using apache+mod_ssl+mod_jk to make a secure connection.
> But every time I call a page in cocoon it is called through port 8080. Is
it
> possible to redirect a call to port 8080 to port 443? And not for the
> entire server, but only for a certain directory?How is this done?
>
> thnx
>
> Twan
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: redirect port 8080 to 443
Posted by Twan Munster <t....@emaxx.nl>.
I got it working,
thnx
now i have to get my client authentication working. Its very difficult under
tomcat.
----- Original Message -----
From: "Steph Richardson" <st...@kvasar.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>; "Twan Munster"
<t....@emaxx.nl>
Sent: Monday, October 13, 2003 10:56 PM
Subject: RE: redirect port 8080 to 443
> Can't think why this is still a problem ( it definitely works for me ) ,
other than a simple one of URL patterns.
> Does the URI "/secure" match the pattern "/secure/*", is there a default
document there which would cause a redirect that is
> affecting this.
> What happens when you try going to http://localhost/secure/somethingelse
>
>
> > -----Original Message-----
> > From: Twan Munster [mailto:t.munster@emaxx.nl]
> > Sent: Monday, October 13, 2003 6:17 AM
> > To: Tomcat Users List
> > Subject: Re: redirect port 8080 to 443
> >
> >
> > thnx for comment, but it didn't work
> > I still can connect to http://localhost:8080/secure/
> >
> > Twan
> > ----- Original Message -----
> > From: "Steph Richardson" <st...@kvasar.com>
> > To: "Tomcat Users List" <to...@jakarta.apache.org>
> > Sent: Sunday, October 12, 2003 5:17 PM
> > Subject: RE: redirect port 8080 to 443
> >
> >
> > >
> > > You can have tomcat automatically make redirects to https ( and
whatever
> > port is configured in the "redirectPort" attribute of your
> > > http Connecter - 443 usually ), you can add some constraints in
web.xml.
> > Try this altered for whatever directories you want to be
> > > https only :
> > > <security-constraint>
> > > <web-resource-collection>
> > > <web-resource-name>Some Directories</web-resource-name>
> > > <url-pattern>/secure/*</url-pattern>
> > > <url-pattern>/checkout/*</url-pattern>
> > > </web-resource-collection>
> > > <user-data-constraint>
> > > <transport-guarantee>CONFIDENTIAL</transport-guarantee>
> > > </user-data-constraint>
> > > </security-constraint>
> > >
> > > Beware now of issues with welcome-file-list redirects happening at the
> > same time as this one. You can end up with situations where
> > > tomcat sends you to https on the http port. e.g. :
> > https://myserver.com:8080/secure.index.jsp
> > >
> > >
> > >
> > > Steph
> > >
> > >
> > >
> > >
> > > > -----Original Message-----
> > > > From: Bill Barker [mailto:wbarker@wilshire.com]
> > > > Sent: Saturday, October 11, 2003 12:39 AM
> > > > To: tomcat-user@jakarta.apache.org
> > > > Subject: Re: redirect port 8080 to 443
> > > >
> > > >
> > > > It's in the FAQ:
> > > > http://jakarta.apache.org/tomcat/faq/security.html#https
> > > >
> > > > "Twan Munster" <t....@emaxx.nl> wrote in message
> > > > news:005001c38f39$12a22570$1501a8c0@picard...
> > > > Hello,
> > > >
> > > > I'm using apache+mod_ssl+mod_jk to make a secure connection.
> > > > But every time I call a page in cocoon it is called through port
8080.
> > Is it
> > > > possible to redirect a call to port 8080 to port 443? And not for
the
> > > > entire server, but only for a certain directory?How is this done?
> > > >
> > > > thnx
> > > >
> > > > Twan
> > > >
> > > >
> > > >
> > > >
> > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> > > >
> > > >
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: redirect port 8080 to 443
Posted by Steph Richardson <st...@kvasar.com>.
Can't think why this is still a problem ( it definitely works for me ) , other than a simple one of URL patterns.
Does the URI "/secure" match the pattern "/secure/*", is there a default document there which would cause a redirect that is
affecting this.
What happens when you try going to http://localhost/secure/somethingelse
> -----Original Message-----
> From: Twan Munster [mailto:t.munster@emaxx.nl]
> Sent: Monday, October 13, 2003 6:17 AM
> To: Tomcat Users List
> Subject: Re: redirect port 8080 to 443
>
>
> thnx for comment, but it didn't work
> I still can connect to http://localhost:8080/secure/
>
> Twan
> ----- Original Message -----
> From: "Steph Richardson" <st...@kvasar.com>
> To: "Tomcat Users List" <to...@jakarta.apache.org>
> Sent: Sunday, October 12, 2003 5:17 PM
> Subject: RE: redirect port 8080 to 443
>
>
> >
> > You can have tomcat automatically make redirects to https ( and whatever
> port is configured in the "redirectPort" attribute of your
> > http Connecter - 443 usually ), you can add some constraints in web.xml.
> Try this altered for whatever directories you want to be
> > https only :
> > <security-constraint>
> > <web-resource-collection>
> > <web-resource-name>Some Directories</web-resource-name>
> > <url-pattern>/secure/*</url-pattern>
> > <url-pattern>/checkout/*</url-pattern>
> > </web-resource-collection>
> > <user-data-constraint>
> > <transport-guarantee>CONFIDENTIAL</transport-guarantee>
> > </user-data-constraint>
> > </security-constraint>
> >
> > Beware now of issues with welcome-file-list redirects happening at the
> same time as this one. You can end up with situations where
> > tomcat sends you to https on the http port. e.g. :
> https://myserver.com:8080/secure.index.jsp
> >
> >
> >
> > Steph
> >
> >
> >
> >
> > > -----Original Message-----
> > > From: Bill Barker [mailto:wbarker@wilshire.com]
> > > Sent: Saturday, October 11, 2003 12:39 AM
> > > To: tomcat-user@jakarta.apache.org
> > > Subject: Re: redirect port 8080 to 443
> > >
> > >
> > > It's in the FAQ:
> > > http://jakarta.apache.org/tomcat/faq/security.html#https
> > >
> > > "Twan Munster" <t....@emaxx.nl> wrote in message
> > > news:005001c38f39$12a22570$1501a8c0@picard...
> > > Hello,
> > >
> > > I'm using apache+mod_ssl+mod_jk to make a secure connection.
> > > But every time I call a page in cocoon it is called through port 8080.
> Is it
> > > possible to redirect a call to port 8080 to port 443? And not for the
> > > entire server, but only for a certain directory?How is this done?
> > >
> > > thnx
> > >
> > > Twan
> > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> > >
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: redirect port 8080 to 443
Posted by Twan Munster <t....@emaxx.nl>.
thnx for comment, but it didn't work
I still can connect to http://localhost:8080/secure/
Twan
----- Original Message -----
From: "Steph Richardson" <st...@kvasar.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Sunday, October 12, 2003 5:17 PM
Subject: RE: redirect port 8080 to 443
>
> You can have tomcat automatically make redirects to https ( and whatever
port is configured in the "redirectPort" attribute of your
> http Connecter - 443 usually ), you can add some constraints in web.xml.
Try this altered for whatever directories you want to be
> https only :
> <security-constraint>
> <web-resource-collection>
> <web-resource-name>Some Directories</web-resource-name>
> <url-pattern>/secure/*</url-pattern>
> <url-pattern>/checkout/*</url-pattern>
> </web-resource-collection>
> <user-data-constraint>
> <transport-guarantee>CONFIDENTIAL</transport-guarantee>
> </user-data-constraint>
> </security-constraint>
>
> Beware now of issues with welcome-file-list redirects happening at the
same time as this one. You can end up with situations where
> tomcat sends you to https on the http port. e.g. :
https://myserver.com:8080/secure.index.jsp
>
>
>
> Steph
>
>
>
>
> > -----Original Message-----
> > From: Bill Barker [mailto:wbarker@wilshire.com]
> > Sent: Saturday, October 11, 2003 12:39 AM
> > To: tomcat-user@jakarta.apache.org
> > Subject: Re: redirect port 8080 to 443
> >
> >
> > It's in the FAQ:
> > http://jakarta.apache.org/tomcat/faq/security.html#https
> >
> > "Twan Munster" <t....@emaxx.nl> wrote in message
> > news:005001c38f39$12a22570$1501a8c0@picard...
> > Hello,
> >
> > I'm using apache+mod_ssl+mod_jk to make a secure connection.
> > But every time I call a page in cocoon it is called through port 8080.
Is it
> > possible to redirect a call to port 8080 to port 443? And not for the
> > entire server, but only for a certain directory?How is this done?
> >
> > thnx
> >
> > Twan
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: redirect port 8080 to 443
Posted by Steph Richardson <st...@kvasar.com>.
You can have tomcat automatically make redirects to https ( and whatever port is configured in the "redirectPort" attribute of your
http Connecter - 443 usually ), you can add some constraints in web.xml. Try this altered for whatever directories you want to be
https only :
<security-constraint>
<web-resource-collection>
<web-resource-name>Some Directories</web-resource-name>
<url-pattern>/secure/*</url-pattern>
<url-pattern>/checkout/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
Beware now of issues with welcome-file-list redirects happening at the same time as this one. You can end up with situations where
tomcat sends you to https on the http port. e.g. : https://myserver.com:8080/secure.index.jsp
Steph
> -----Original Message-----
> From: Bill Barker [mailto:wbarker@wilshire.com]
> Sent: Saturday, October 11, 2003 12:39 AM
> To: tomcat-user@jakarta.apache.org
> Subject: Re: redirect port 8080 to 443
>
>
> It's in the FAQ:
> http://jakarta.apache.org/tomcat/faq/security.html#https
>
> "Twan Munster" <t....@emaxx.nl> wrote in message
> news:005001c38f39$12a22570$1501a8c0@picard...
> Hello,
>
> I'm using apache+mod_ssl+mod_jk to make a secure connection.
> But every time I call a page in cocoon it is called through port 8080. Is it
> possible to redirect a call to port 8080 to port 443? And not for the
> entire server, but only for a certain directory?How is this done?
>
> thnx
>
> Twan
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: redirect port 8080 to 443
Posted by Bill Barker <wb...@wilshire.com>.
It's in the FAQ:
http://jakarta.apache.org/tomcat/faq/security.html#https
"Twan Munster" <t....@emaxx.nl> wrote in message
news:005001c38f39$12a22570$1501a8c0@picard...
Hello,
I'm using apache+mod_ssl+mod_jk to make a secure connection.
But every time I call a page in cocoon it is called through port 8080. Is it
possible to redirect a call to port 8080 to port 443? And not for the
entire server, but only for a certain directory?How is this done?
thnx
Twan
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org