Re: ClassCastException in tomcat 6

2010-01-04 Thread Peter Crowther
2010/1/5 test123456 > I put the jackrabbit.war file into the webapps. > > I have a new test project which will access the jackrabbit.war through the > JNDI lookup. > > In server.xml i have a global jndi resource. > and the tomcat lib directory contain all the required jar files. > > In the test p

ClassCastException in tomcat 6

2010-01-04 Thread test123456
I am trying to setup content repository using the jackrabbit and tomcat 6 server. I put the jackrabbit.war file into the webapps. I have a new test project which will access the jackrabbit.war through the JNDI lookup. In server.xml i have a global jndi resource. and the tomcat lib directory c

RE: JSP 2.0 examples throw security exception - Need help with configuration

2010-01-04 Thread Shanmugham, Dayanand (IE10)
Hi, I installed TC 6.0.20 in new folder, recreated Tomcat Server instance in Eclipse, made it point to new TC 6.0.20 installation folder and all examples work now. Thanks & Regards, Daya -Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: Monday, January

Re: Help with security-constraint in web.xml

2010-01-04 Thread Joe Hansen
Chuck, I just forgot to enable the HTTPS Connector! Login form is working now over https. Many thanks for your help. You saved my day. Thanks, Joe On Mon, Jan 4, 2010 at 4:06 PM, Caldarale, Charles R wrote: >> From: Joe Hansen [mailto:joe.hansen...@gmail.com] >> Subject: Re: Help with secu

RE: Help with security-constraint in web.xml

2010-01-04 Thread Caldarale, Charles R
> From: Joe Hansen [mailto:joe.hansen...@gmail.com] > Subject: Re: Help with security-constraint in web.xml > > However, when I enter the login credentials and submit the > form, nothing happens. Somehow changing the redirectPort > seems to have broken the login form. Turn on the AccessLogValve t

Re: jsessionid on EXACTLY the 2nd request?

2010-01-04 Thread Ken Bowen
Thanks Mark. That cleared it up for me: Re: a) look at the html source of the responses and/or look at the URLs for the links you are clicking on before you click on them. That's the trick. The source for that (in a JSP) looks like: class="top_parent">Another Page And when I hover

Re: Help with security-constraint in web.xml

2010-01-04 Thread Joe Hansen
Changing the redirectPort to 443 on both the Connectors (HTTP/1.1 and AP/1.3) did redirect /spring_security_login to https://mywebsite.com/spring_security_login. However, when I enter the login credentials and submit the form, nothing happens. Somehow changing the redirectPort seems to have broken

RE: Help with security-constraint in web.xml

2010-01-04 Thread Caldarale, Charles R
> From: Joe Hansen [mailto:joe.hansen...@gmail.com] > Subject: Re: Help with security-constraint in web.xml > > Only a couple of pages need to be served on HTTPS on our website. All > the remaining pages could be accessed using just HTTP. Then I'd use what you've got and not try to optimize what

Re: Help with security-constraint in web.xml

2010-01-04 Thread Joe Hansen
Chuck, >> No, I said you could handle the SSL encryption/decryption in httpd; the >> redirection still has to occur by Tomcat recognizing a reference to a >> confidential resource. I did configure the SSL on the httpd end (c:\Apache\conf\extra\httpd-ssl.conf) file. >> As far as how to do so, y

Re: jsessionid on EXACTLY the 2nd request?

2010-01-04 Thread Mark Thomas
On 04/01/2010 21:43, Ken Bowen wrote: > I'm not sure about that. Run through your test again, but this time: a) look at the html source of the responses and/or look at the URLs for the links you are clicking on before you click on them. > Here's what seems to me to be the sequence of > events:

RE: Help with security-constraint in web.xml

2010-01-04 Thread Caldarale, Charles R
> From: Joe Hansen [mailto:joe.hansen...@gmail.com] > Subject: Re: Help with security-constraint in web.xml > > You were saying that I should handle the forced HTTPS redirection of > certain pages on the httpd end, right? No, I said you could handle the SSL encryption/decryption in httpd; the re

Re: Help with security-constraint in web.xml

2010-01-04 Thread Joe Hansen
Thanks for the super quick reply, Chuck! Here's what I did. I changed the redirectPort on the following two Connector elements. From 8443 to 443. And that did the trick. /* Previously */ /* Currently */ You were saying that I should handle the forced HTTPS redirection of certain pages on the

RE: Help with security-constraint in web.xml

2010-01-04 Thread Caldarale, Charles R
> From: Joe Hansen [mailto:joe.hansen...@gmail.com] > Subject: Help with security-constraint in web.xml > > What do I need to do so that the user is directed to > https://ourwebsite.com/spring_security_login instead Fix the redirectPort attribute in your elements in conf/server.xml. BTW, since

Help with security-constraint in web.xml

2010-01-04 Thread Joe Hansen
Hey all, We are using Tomcat 6.0 / Apache 2.2. We would like the user to login over HTTPS rather than plain HTTP. So, I have defined the following security-constraint in the web.xml file of our web application: Login Login

Re: jsessionid on EXACTLY the 2nd request?

2010-01-04 Thread Ken Bowen
I'm not sure about that. Here's what seems to me to be the sequence of events: Browser sends initial request http://myapp.com Tomcat creates session and generates page for this request. Tomcat doesn't know that Browser supports cookies, so it should append jsessionid (but d

Re: jsessionid on EXACTLY the 2nd request?

2010-01-04 Thread Mark Thomas
On 04/01/2010 20:52, Ken Bowen wrote: > I'm seeing what I think is odd behavior regarding jsessionid's. > [My setup(s): Tomcat 6.0.20 on a MacBook Pro using Java 1.6.0_17, > Tomcat 6.0.18 on CentOS 5 using Java 1.6.0_12 ] > I'm seeing the same behavior on both systems, and the same > behavior happ

jsessionid on EXACTLY the 2nd request?

2010-01-04 Thread Ken Bowen
I'm seeing what I think is odd behavior regarding jsessionid's. [My setup(s): Tomcat 6.0.20 on a MacBook Pro using Java 1.6.0_17, Tomcat 6.0.18 on CentOS 5 using Java 1.6.0_12 ] I'm seeing the same behavior on both systems, and the same behavior happens with Safari and FF. Both browsers have coo

RE: 5.5.28 Windows Installer issues

2010-01-04 Thread Jeffrey Janner
Some further update on the download problem: It hits just shy of 700kb (86%) downloaded when it pauses, downloads about another 1kb, then hangs for about 30 seconds before completing the install. Since the file is not where it should be, I'm guessing the installer is timing out on the download

Re: mod_proxy_ajp JSESSIONID and Mime Type

2010-01-04 Thread Konstantin Kolinko
2010/1/4 Darren Salomons : > > I'm using Tomcat 6.0.18 with apache 2.2.11. > > So this isn't a normal pass through of files from tomcat to apache.  I > use a URL such as http://mydomain.com/servlet/stylesheet.css to execute > a servlet that would dynamically create the file "stylesheet.css". > Sinc

Re: mod_proxy_ajp JSESSIONID and Mime Type

2010-01-04 Thread Darren Salomons
I'm using Tomcat 6.0.18 with apache 2.2.11. So this isn't a normal pass through of files from tomcat to apache.  I use a URL such as http://mydomain.com/servlet/stylesheet.css to execute a servlet that would dynamically create the file "stylesheet.css".   Since my servlet excepts all types of f

RE: Weird JAXP problem at Tomcat startup

2010-01-04 Thread Caldarale, Charles R
> From: David Haraburda [mailto:david.harabu...@dairy.com] > Subject: Weird JAXP problem at Tomcat startup > > I turned on JAXP debugging and noticed that when I had the > problem, JAXP was finding a system property specifying that > xerces should be used: > > INFO: Starting Coyote HTTP/1.1 on ht

Weird JAXP problem at Tomcat startup

2010-01-04 Thread David Haraburda
Sometimes, when starting Tomcat I get an error when JAXP is trying to load the DocumentBuilderFactory. Tomcat does not start completely. This doesn't always happen, and when it does I can restart the server and it is fine. I turned on JAXP debugging and noticed that when I had the problem, JAXP w

RE: Tomcat 6 Log Tomcat output to file

2010-01-04 Thread Caldarale, Charles R
> From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] > Subject: Re: Tomcat 6 Log Tomcat output to file > > catalina.bat run >outputfile.log 2>&1 Indeed; thanks for the correction. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for

Re: Tomcat 6 Log Tomcat output to file

2010-01-04 Thread Konstantin Kolinko
2010/1/4 Caldarale, Charles R : >> From: n828cl [mailto:chuck.caldar...@unisys.com] >> Subject: Re: Tomcat 6 Log Tomcat output to file >> >> awarnier wrote: >> > startup.bat > outputfile >> >> Close, but it should be: >> >> catalina.bat > outputfile.log > > Scratch that - it's not complete; it shou

Fw: JSP 2.0 examples throw security exception - Need help with configuration

2010-01-04 Thread Tobias Crefeld
Am Mon, 4 Jan 2010 17:47:23 +0530 schrieb "Shanmugham, Dayanand (IE10)" : > 127.0.0.1 - admin [04/Jan/2010:17:45:09 +0530] "GET /manager/html > HTTP/1.1" 500 2615 "admin" is not a valid username but a valid role in the (uncommented) default-version of tomcat-users.xml. You should look (or insert)

Re: Multiple UserDatabases

2010-01-04 Thread Mark Thomas
On 04/01/2010 11:39, vramanaj wrote: > > Can you elobrate the second option ? http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html > > > markt-2 wrote: >> >> On 04/01/2010 11:14, vramanaj wrote: http://old.nabble.com/file/p27011540/server.xml server.xml http://old.na

Re: JSP 2.0 examples throw security exception - Need help with configuration

2010-01-04 Thread Konstantin Kolinko
2010/1/4 Shanmugham, Dayanand (IE10) : > Hi All, > > > I need help with resolving following error - staketrace is shown below. > Following is what I did: > > 1.      Downloaded TC 6.0 and extracted into D:\TC60 > 2.      Downloaded "Eclipse Java EE IDE for Web Developers." (or) > Eclipse 3.5 with J

RE: JSP 2.0 examples throw security exception - Need help with configuration

2010-01-04 Thread Shanmugham, Dayanand (IE10)
Tried both options (Tomcat restart and clearing IE 6.0 browser cache) but still get the same error. Following is from the "localhost_access_log.2010-01-04.log": ~~~ 127.0.0.1 - - [04/Jan/2010:17:43:52 +0530] "GET /examples/jsp/ HTTP/1.1" 200 16294 127.0.0.1 - - [04/Jan/2010:17:43:52 +0530] "GET /

Re: JSP 2.0 examples throw security exception - Need help with configuration

2010-01-04 Thread Tobias Crefeld
Am Mon, 4 Jan 2010 17:08:26 +0530 schrieb "Shanmugham, Dayanand (IE10)" : > 3.Started Tomcat instance > 4.All Servlets and JSP 1.2 examples work fine but when I run > the JSP 2.0 examples, I get the following security exception messages > 5.I removed the comments from "tomcat-users.xm

Re: Multiple UserDatabases

2010-01-04 Thread vramanaj
Can you elobrate the second option ? markt-2 wrote: > > On 04/01/2010 11:14, vramanaj wrote: >>> http://old.nabble.com/file/p27011540/server.xml server.xml >>> http://old.nabble.com/file/p27011540/app-context.xml.txt >>> app-context.xml.txt >>> >> >> And the content in context file using j

JSP 2.0 examples throw security exception - Need help with configuration

2010-01-04 Thread Shanmugham, Dayanand (IE10)
Hi All, I need help with resolving following error - staketrace is shown below. Following is what I did: 1. Downloaded TC 6.0 and extracted into D:\TC60 2. Downloaded "Eclipse Java EE IDE for Web Developers." (or) Eclipse 3.5 with J2EE Support and created instance of Tomcat Server to

Re: Multiple UserDatabases

2010-01-04 Thread Mark Thomas
On 04/01/2010 11:14, vramanaj wrote: >> http://old.nabble.com/file/p27011540/server.xml server.xml >> http://old.nabble.com/file/p27011540/app-context.xml.txt >> app-context.xml.txt >> > > And the content in context file using josso as below > > type="javax.sql.DataSource"/> > >From a Tomc

Re: Multiple UserDatabases

2010-01-04 Thread vramanaj
vramanaj wrote: > > http://old.nabble.com/file/p27011540/server.xml server.xml > http://old.nabble.com/file/p27011540/app-context.xml.txt > app-context.xml.txt > And the content in context file using josso as below -- View this message in context: http://old.nabble.com/Multiple-Use

RE: Ask about an architecture of High Availability with Tomcat and Apache

2010-01-04 Thread Wesley Schwengle
On 04.01.10 11:31 Peter Chen wrote: Here I use the Apache HTTP Server just to work as a reverse proxy server. And I use this Apache HTTP Server to separate the external network and the internal network. So it can make sure the security of the internal devices. And I use the Cisco CSS to work

Re: Multiple UserDatabases

2010-01-04 Thread vramanaj
http://old.nabble.com/file/p27011540/server.xml server.xml http://old.nabble.com/file/p27011540/app-context.xml.txt app-context.xml.txt -- View this message in context: http://old.nabble.com/Multiple-UserDatabases-tp26977405p27011540.html Sent from the Tomcat - User mailing list archive at Nab

RE: Ask about an architecture of High Availability with Tomcat and Apache

2010-01-04 Thread Peter Chen
Hi, peter.crowther Here I use the Apache HTTP Server just to work as a reverse proxy server. And I use this Apache HTTP Server to separate the external network and the internal network. So it can make sure the security of the internal devices. And I use the Cisco CSS to work as a load balan

Re: Load balancing questions

2010-01-04 Thread Bob Hall
--- On Mon, 1/4/10 at 1:34 AM, Mark Thomas wrote: > On 03/01/2010 11:09, assan alhamoud > wrote: > > Happy new year to all , > > > > I am using tomcat and JBoss. > > You'll need to explain that further. Why would you use > Tomcat and JBoss > for the same app. I would expect one or the other.

Re: Load balancing questions

2010-01-04 Thread Mark Thomas
On 03/01/2010 11:09, assan alhamoud wrote: > Happy new year to all , > > I am using tomcat and JBoss. You'll need to explain that further. Why would you use Tomcat and JBoss for the same app. I would expect one or the other. > Tomcat/5.0.26 That is very, very old and has many known bugs and a n

Re: mod_proxy_ajp JSESSIONID and Mime Type

2010-01-04 Thread Konstantin Kolinko
2010/1/4 Darren Salomons : > I am having an issue with Apache 2/mod_proxy_ajp and Tomcat 6.  I have > monitored all the headers coming back from apache for various scenarios > and the only scenario that I am having a problem with is when I have a > JSESSIONID appended to the URL.  When the JSESSION

Re: Tomcat 5.5 root directory

2010-01-04 Thread Mark Thomas
On 04/01/2010 06:57, File Send wrote: > Hi users, > > I am using tomcat 5.5 and its running fine, however, I want to see specific > jsp which I deployed in tomcat. I want to view this page by using url like > http://localhost:8080/my.jsp. In this case, in which directory should i keep > this file