Re: a servlet-related Java question

2010-04-22 Thread Bill Barker
Christopher Schultz ch...@christopherschultz.net wrote in message news:4bcf5f41.6060...@christopherschultz.net... -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 4/21/2010 3:46 PM, André Warnier wrote: Mark Thomas wrote: On 21/04/2010 20:24, André Warnier wrote: Mark Thomas

Re: standardize the URL

2010-04-22 Thread banto
Gregor Schneider wrote: On Tue, Apr 20, 2010 at 12:54 PM, banto banto...@gmail.com wrote: Hi, i know this can be a silly question but i have the following issue: i want to call my web app with a standard URL as http://host:port/myString how does the url look like when you call

Re: Can't login to Tomcat manager pages

2010-04-22 Thread Pid
On 21/04/2010 18:45, Propes, Barry L wrote: I started having a similar problem yesterday and discovered that somehow my web.xml file had been deleted (not sure how), so I replaced it. Make sure you have that in your manager folder in WEB-INF. Barry probably meant: make sure you have a

Re: a servlet-related Java question

2010-04-22 Thread Pid
On 21/04/2010 19:52, André Warnier wrote: Hi. A while ago, I wrote a servlet filter which has served me well since, to wrap a servlet for which I do not have nor can obtain the source code, and of which I only generally know what it does. Now it seems that with a new version of this servlet,

Re: standardize the URL

2010-04-22 Thread Pid
On 22/04/2010 07:45, banto wrote: Gregor Schneider wrote: On Tue, Apr 20, 2010 at 12:54 PM, banto banto...@gmail.com wrote: Hi, i know this can be a silly question but i have the following issue: i want to call my web app with a standard URL as http://host:port/myString how does

Re: standardize the URL

2010-04-22 Thread banto
Pid * wrote: On 22/04/2010 07:45, banto wrote: Gregor Schneider wrote: On Tue, Apr 20, 2010 at 12:54 PM, banto banto...@gmail.com wrote: Hi, i know this can be a silly question but i have the following issue: i want to call my web app with a standard URL as

Re: Can't login to Tomcat manager pages

2010-04-22 Thread Luís de Sousa
Hello everyone, thank you for the answers. I started by looking for the web.xml file, it is together with tomcat-users.xml in the CATALINA_HOME/conf directory (/etc/tomcat6). I don't have a manager directory under /var/lib/tomcat6/webapps so I checked if the tomcat6-admin package is installed: $

Re: standardize the URL

2010-04-22 Thread Pid
On 22/04/2010 10:10, banto wrote: Pid * wrote: On 22/04/2010 07:45, banto wrote: Gregor Schneider wrote: On Tue, Apr 20, 2010 at 12:54 PM, banto banto...@gmail.com wrote: Hi, i know this can be a silly question but i have the following issue: i want to call my web app with a

How to configure ProxyPassReverse for SSL redirect

2010-04-22 Thread Timo Meinen
Hi, our configuration is a Apache 2.2 web server, acting as a reverse proxy for Tomcat 6. This is the configuration: ServerNameit.localhost.de ProxyPass / ajp://127.0.0.1:8009/spike/ ProxyPassReverse/ ajp://127.0.0.1:8009/spike/ ProxyPassReverseCookiePath

Re: standardize the URL

2010-04-22 Thread banto
Pid * wrote: On 22/04/2010 10:10, banto wrote: Pid * wrote: On 22/04/2010 07:45, banto wrote: Gregor Schneider wrote: On Tue, Apr 20, 2010 at 12:54 PM, banto banto...@gmail.com wrote: Hi, i know this can be a silly question but i have the following issue: i want to call

Re: [Tomcat 7-RC1] JNDI Startup Issue

2010-04-22 Thread alvins
Full stack-trace - javax.naming.NameNotFoundException: Name comp is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:774) at org.apache.naming.NamingContext.lookup(NamingContext.java:157) at

Re: standardize the URL

2010-04-22 Thread Pid
On 22/04/2010 11:27, banto wrote: Pid * wrote: On 22/04/2010 10:10, banto wrote: Pid * wrote: On 22/04/2010 07:45, banto wrote: Gregor Schneider wrote: On Tue, Apr 20, 2010 at 12:54 PM, banto banto...@gmail.com wrote: Hi, i know this can be a silly question but i have the

Re: standardize the URL

2010-04-22 Thread banto
Pid * wrote: On 22/04/2010 11:27, banto wrote: Pid * wrote: On 22/04/2010 10:10, banto wrote: Pid * wrote: On 22/04/2010 07:45, banto wrote: Gregor Schneider wrote: On Tue, Apr 20, 2010 at 12:54 PM, banto banto...@gmail.com wrote: Hi, i know this can be a silly

Re: How to run second instance of Tomcat 6.0.20 on separate port

2010-04-22 Thread Kapil Godara
Hi, Thanks a lot to all. I achieved the Goal :) But still not able to install the second tomcat instance as Windows Service. Where do i need to make changes? What I did next is Step 1 - Copied the contents of C:\tomcat1 into C:\tomcat2 Step 2 - Changed the Http, shutdown and ajp connecter port

Re: Can't login to Tomcat manager pages

2010-04-22 Thread David Smith
On 4/21/2010 1:14 PM, Luís de Sousa wrote: Dear all, Tomcat 6.0.20 on Ubuntu 9.10. I can't login to the manager pages (http://localhost:8080/manager/html). I set a new user and a few roles in the /etc/tomcat6/tomcat-users.xml file, restarted Tomcat but can't possibly login. I browsed

Re: Can't login to Tomcat manager pages

2010-04-22 Thread Konstantin Kolinko
2010/4/22 Luís de Sousa luis.a.de.so...@gmail.com: I then performed a shutdown and startup. Unlike yesterday, today I'm getting a Connection refused exception when shutting down, Connection refused means Tomcat was not running, or failed to stop. If it is still running, you can use kill

Re: Can't login to Tomcat manager pages

2010-04-22 Thread Luís de Sousa
On Thu, Apr 22, 2010 at 1:29 PM, David Smith david.sm...@cornell.edu I have a Ubuntu 9.10 system and did exactly what you've posted above. It works like a charm.  Have you altered anything else?  Change permission inadvertently on tomcat-users.xml?  Mine is read/write by root, read-only by

Re: Can't login to Tomcat manager pages

2010-04-22 Thread David Smith
Here's my system's tomcat-user.xml as listed w/ ls -l: -rw-r- 1 root tomcat6 1202 2010-04-22 08:15 /etc/tomcat6/tomcat-users.xml As you can see, user and group permissions are set, but the other permissions are all blank. This is the way it should be since it contains password

myeclipse and tomcat

2010-04-22 Thread Christoph Kukulies
I'm playing a bit with myeclipse and I'm wondering whether anyone on this list here is using it with Tomcat as application server running other apps, rather than using tomcat from within the built into myeclipse Tomcat server. Any experiences with that setup? -- Christoph Kukulies

Re: Can't login to Tomcat manager pages

2010-04-22 Thread Luís de Sousa
On Thu, Apr 22, 2010 at 2:18 PM, David Smith david.sm...@cornell.edu wrote: Here's my system's tomcat-user.xml as listed w/ ls -l: -rw-r-  1  root  tomcat6  1202  2010-04-22  08:15 /etc/tomcat6/tomcat-users.xml As you can see, user and group permissions are set, but the other

Re: myeclipse and tomcat

2010-04-22 Thread Ken Bowen
I'm not sure I understand your question. But first, are you using plain Eclipse, or MyEclipse? (I use the latter) Do you mean: Using MyEclipse configured so that it is using an external Tomcat server, NOT the included myEclipse Tomcat server? I've never used the included myEclipse

Re: a servlet-related Java question

2010-04-22 Thread Kris Schneider
On Thu, Apr 22, 2010 at 2:37 AM, Bill Barker billwbar...@verizon.net wrote: Christopher Schultz ch...@christopherschultz.net wrote in message news:4bcf5f41.6060...@christopherschultz.net... -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 4/21/2010 3:46 PM, André Warnier wrote:

Re: Can't login to Tomcat manager pages

2010-04-22 Thread André Warnier
Luís de Sousa wrote: On Thu, Apr 22, 2010 at 2:18 PM, David Smith david.sm...@cornell.edu wrote: Here's my system's tomcat-user.xml as listed w/ ls -l: -rw-r- 1 root tomcat6 1202 2010-04-22 08:15 /etc/tomcat6/tomcat-users.xml As you can see, user and group permissions are set, but

Re: Can't login to Tomcat manager pages

2010-04-22 Thread Luís de Sousa
On Thu, Apr 22, 2010 at 2:49 PM, André Warnier a...@ice-sa.com wrote: What do you see when running ps -ef | grep tomcat ? Hi André, I see loadsa stuff I don't understand :) Luís $ ps -ef | grep tomcat root 2129 1 0 08:07 ?00:00:00 /usr/bin/jsvc -user tomcat6 -cp

RE: Can't login to Tomcat manager pages

2010-04-22 Thread Propes, Barry L
Sorry, yes, Pid, that's what I meant. Sorry for confusion there. -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Thursday, April 22, 2010 2:57 AM To: Tomcat Users List Subject: Re: Can't login to Tomcat manager pages On 21/04/2010 18:45, Propes, Barry L wrote: I

Re: How to configure ProxyPassReverse for SSL redirect

2010-04-22 Thread Hassan Schroeder
On Thu, Apr 22, 2010 at 3:25 AM, Timo Meinen timomei...@googlemail.com wrote: our configuration is a Apache 2.2 web server, acting as a reverse proxy for Tomcat 6. This is the configuration: ServerName    it.localhost.de ProxyPass               /       ajp://127.0.0.1:8009/spike/

Re: How to configure ProxyPassReverse for SSL redirect

2010-04-22 Thread Timo Meinen
Hi Hassan, yes, there are two VirtualHost entries. One for port 80 and one for port 443 with SSL engine enabled. Both have the same proxy configuration. Timo 2010/4/22 Hassan Schroeder hassan.schroe...@gmail.com: On Thu, Apr 22, 2010 at 3:25 AM, Timo Meinen timomei...@googlemail.com wrote:

Where is this class?

2010-04-22 Thread laredotornado
Hi, Im running Tomcat 6.0.26. In my app, I'm getting a java.lang.ClassNotFoundException: javax.validation.ValidatorFactory exception. Does anyone know where to find the ValidatorFactory class? More generally, is there a web site taht will tell me what JAR a particular class belongs to?

RE: Where is this class?

2010-04-22 Thread Joseph Morgan
http://jcp.org/en/jsr/detail?id=303 -Original Message- From: laredotornado [mailto:laredotorn...@gmail.com] Sent: Thursday, April 22, 2010 12:22 PM To: users@tomcat.apache.org Subject: Where is this class? Hi, Im running Tomcat 6.0.26. In my app, I'm getting a

RE: Where is this class?

2010-04-22 Thread laredotornado
Is this just the documentation ? I'm not able to find the JAR file to download from this page. Thanks, - Dave Joseph Morgan-2 wrote: http://jcp.org/en/jsr/detail?id=303 -Original Message- From: laredotornado [mailto:laredotorn...@gmail.com] Sent: Thursday, April 22, 2010

Re: Session Timeout - Filter Not Called

2010-04-22 Thread Paul Carroll
I guess what I really need to be able to do is determine when a user creates a new session. This could either be done by the user opening the browser and browse to our application where the user logs in and the new session is created. Or the user's session times out and the user is presented

RE: Where is this class?

2010-04-22 Thread Joseph Morgan
Sorry. Go to this page: http://jcp.org/aboutJava/communityprocess/final/jsr303/index.html And then click on the Reference Implementation link to download it from there. Unzip the file and in the lib directory you'll find a validation-api-1.0.0.GA.jar which will have the class in it

Re: Client cert authentication

2010-04-22 Thread acastanheira2001
Thanks Mark, I use mod_proxy (ProxyPass and ProxyReverse) to connect Apache (2.2.3) to Tomcat(5.5)/Jboss (4.2). Can mod_proxy pass client cert to Tomcat? I use the following code to get the client cert, but certs object is null: public void verificaCertCliente(HttpServletRequest req) throws

Re: Client cert authentication

2010-04-22 Thread Mark Thomas
On 22/04/2010 20:00, acastanheira2001 wrote: Thanks Mark, I use mod_proxy (ProxyPass and ProxyReverse) to connect Apache (2.2.3) to Tomcat(5.5)/Jboss (4.2). Can mod_proxy pass client cert to Tomcat? With 5.5.x, not with out some custom code. With 6.0.x, yes. You'd need to port this to

Running tomcat/6.0.26 with security manager generates ORACLE jdbc error

2010-04-22 Thread suresht
hi Users, when I run TOMCAT using -security option on Java 1.6 jdk, I get following error. I added policy definitions for all properities, oraclejars and JNDIpermission for the context. org.apache.jasper.JasperException: java.lang.ArrayIndexOutOfBoundsException: -1

Re: Where is this class? - Check out http://findjar.com

2010-04-22 Thread Simon Husin
Dave, Yes, there is, http://findjar.com On Thu, 22 Apr 2010 11:22:05 -0600, laredotornado laredotorn...@gmail.com wrote: Hi, Im running Tomcat 6.0.26. In my app, I'm getting a java.lang.ClassNotFoundException: javax.validation.ValidatorFactory exception. Does anyone know where to find

Re: a servlet-related Java question

2010-04-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill, On 4/22/2010 2:37 AM, Bill Barker wrote: It's pretty inaccessible for novice Java programmers, but you could use the proxy API which is [just] about the coolest thing available in Java IMO. If it does a forward or include done the line,

Re: a servlet-related Java question

2010-04-22 Thread Kris Schneider
On Thu, Apr 22, 2010 at 3:40 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill, On 4/22/2010 2:37 AM, Bill Barker wrote: It's pretty inaccessible for novice Java programmers, but you could use the proxy API which is [just] about

Re: a servlet-related Java question

2010-04-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill, On 4/22/2010 2:37 AM, Bill Barker wrote: If [the request/filter] does a forward or include done the line, this won't work with any remotely recent version of Tomcat. These versions enforce the spec requirement that the Request has to be a

Re: Running tomcat/6.0.26 with security manager generates ORACLE jdbc error

2010-04-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Suresh, On 4/22/2010 3:19 PM, suresht wrote: when I run TOMCAT using -security option on Java 1.6 jdk, I get following error. I added policy definitions for all properities, oraclejars and JNDIpermission for the context. Care to share those

Re: Session Timeout - Filter Not Called

2010-04-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul, On 4/22/2010 2:44 PM, Paul Carroll wrote: I guess what I really need to be able to do is determine when a user creates a new session. This could either be done by the user opening the browser and browse to our application where the user

Re: a servlet-related Java question

2010-04-22 Thread Kris Schneider
On Thu, Apr 22, 2010 at 4:31 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill, On 4/22/2010 2:37 AM, Bill Barker wrote: If [the request/filter] does a forward or include done the line, this won't work with any remotely recent

Re: Could not get dir listing

2010-04-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Christoph, On 4/21/2010 8:59 AM, Christoph Kukulies wrote: Strange. Don't know whether this has happened since I upgraded to Tomcat 6.0.26, anyway, my application doesn't start anymore. :( 21.04.2010 14:49:36

Re: Running tomcat/6.0.26 with security manager generates ORACLE jdbc error

2010-04-22 Thread suresht
hi Christopher i have attached a copy of the policy file. yes that is true but the command line application includes the security manager with equivalent policy, Tomcat + your webapp + Oracle JDBC Driver + SecurityManager = Exception Some other app + Oracle JDBC Driver = no exception

Re: separating content from the application

2010-04-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Milko, On 4/21/2010 4:54 AM, M.H.G. Emmerig wrote: webapps\Root\applicationfiles webapps\Root\content\publications webapps\Root\content\images Make sure that's ROOT, not Root, unless your webapp really is called Root. the application comes as a

Re: a servlet-related Java question

2010-04-22 Thread Konstantin Kolinko
2010/4/23 Kris Schneider kschnei...@gmail.com: On Thu, Apr 22, 2010 at 4:31 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- On 4/22/2010 2:37 AM, Bill Barker wrote: If [the request/filter] does a forward or include done the line, this won't work

Re: a servlet-related Java question

2010-04-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kris, On 4/22/2010 4:48 PM, Kris Schneider wrote: On Thu, Apr 22, 2010 at 4:31 PM, Christopher Schultz ch...@christopherschultz.net wrote: The following filter works as expected on Tomcat 6.0.26 (some changes were required to make it actually

Re: a servlet-related Java question

2010-04-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin, On 4/22/2010 4:53 PM, Konstantin Kolinko wrote: 2010/4/23 Kris Schneider kschnei...@gmail.com: On Thu, Apr 22, 2010 at 4:31 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- On 4/22/2010

Re: Running tomcat/6.0.26 with security manager generates ORACLE jdbc error

2010-04-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Suresh, On 4/22/2010 4:51 PM, suresht wrote: i have attached a copy of the policy file. It was stripped by the list. yes that is true but the command line application includes the security manager with equivalent policy Ok. The web

Re: Session Timeout - Filter Not Called

2010-04-22 Thread Paul Carroll
Yes. I put the session marker in my filter and I perform a simple check each time through the filter to determine if the marker exists and to check if it equals the current session id. Thanks. --- ch...@christopherschultz.net wrote: From: Christopher Schultz ch...@christopherschultz.net To:

Re: a servlet-related Java question

2010-04-22 Thread Konstantin Kolinko
2010/4/23 Christopher Schultz ch...@christopherschultz.net: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin, On 4/22/2010 4:53 PM, Konstantin Kolinko wrote: 2010/4/23 Kris Schneider kschnei...@gmail.com: On Thu, Apr 22, 2010 at 4:31 PM, Christopher Schultz

Re: virtual host configuration

2010-04-22 Thread Leon Kolchinsky
Try here http://myunster.com/blog/10.html http://myunster.com/blog/10.htmlBest Regards, Leon Kolchinsky On Thu, Apr 22, 2010 at 12:00, daulat khan daulat@gmail.com wrote: Hi, I am planning to setup virtual hosting in apache-tomcat integrated setup. Please share useful links or docs

Re: Running tomcat/6.0.26 with security manager generates ORACLE jdbc error

2010-04-22 Thread suresht
hi Christopher, I see a char array being set to a number. charstring1[charstring1-1] = 0; Christopher Schultz-2 wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Suresh, On 4/22/2010 4:51 PM, suresht wrote: i have attached a copy of the policy file. It was stripped by

Re: Q: how to obtain notification when a WebApp is unloaded/reloaded?

2010-04-22 Thread Godmar Back
Following up on an earlier conversation about how to obtain notification when a WebApp is unloaded/reloaded [1], I was told that registering a ServletContextListener is the only possibility (that is, there is no runtime API.) However, registering a ServletContextListener doesn't work and leads to