Re: Jconsole and remote monitoring

2007-05-03 Thread Rainer Jung
Thank's for reminding me, I forgot. But I think he uses 5.5.9 (very outdated). CATALINA_OPTS was used for start and stop until 5.5.20, and with 5.5.21 we switched to only using it for startup. Peter Rossbach schrieb: Please use CATALINA_OPTS to set jmx options. The catalina.sh stop command use

RE: Comet: problem with request.getParameter() in Comet POST requests

2007-05-03 Thread Reich, Matthias
-Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Wouldn't every application which isn't as dumb as the chat example (which does not care about the content it reads but simply passes it back to it's clients) need to implement it's own mechanism to check

RE: Installing Tomcat on Windows Server 2003 x64

2007-05-03 Thread Darren Kukulka
We have recently migrated to this platform and have had smooth success with a SUN 64-bit JRE (version 1.5.0_10) We are using a pre-compiled Tomcat binary (5.5.23, Tomcat5.exe and Tomcat5w.exe) and tc-native.dll (APR) which can be found at

RE: Comet: problem with request.getParameter() in Comet POST requests

2007-05-03 Thread Reich, Matthias
-Original Message- From: Rémy Maucherat [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 02, 2007 11:13 PM On 5/2/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: It's a race condition and the problem occurs quite infrequently (especially with small request bodies). The larger the

Re: Comet: problem with request.getParameter() in Comet POST requests

2007-05-03 Thread Sebastiaan van Erk
Hi, I am working on a scenario with browsers as clients. The client does requests with JavaScript code like this: req = new XMLHttpRequest(); req.onreadystatechange = handler; req.open(post, /somecontext/somecometservlet/somerequest?param1=val1param2=val2 ); req.send(null); We

Handling SSL Client Auth abort

2007-05-03 Thread Subscriber
Hi guys, When a client cancels a SSL Client Auth request, Tomcat ends the request and it's not possible to catch this error - Does anybody have a solution to this problem? Regards, kews - To start a new topic, e-mail:

Tomcat Installation in VPS

2007-05-03 Thread Abubakar Gurnah
Hi there! I have a VPS (Virtual private server) and I want to install Tomcat, this is my first time, from this which one should i go with! I'm confused! * Core: o zip (pgp, md5) o tar.gz (pgp, md5) * Deployer: //im thinking for going with this but im not sure o zip (pgp, md5) o tar.gz (pgp,

Re: shutdown restart

2007-05-03 Thread Martin Gainty
$CATALINA_HOME/conf/server.xml Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true reboot server and server will now auto deploy any war in $CATALINA_HOME/webapps folder M-- This email message and any files transmitted with it contain confidential information intended

Tomcat context issue

2007-05-03 Thread tb323
Hi there! This is probably a dumb question if you're not a newbie like me. I just installed Tomcat 6.0.10 on Ubuntu Feisty and I'm having some problems configuring it. I'm attempting to move the appBase into a directory under my public_html. In server.xml I have this: Host name=localhost

Re: Handling SSL Client Auth abort

2007-05-03 Thread Martin Gainty
in the event of failed login you can throw AuthenticationException This is a comprehensive example is for SunOne you can use the bits you need http://java.sun.com/developer/technicalArticles/WebServices/appserv8-1.html M-- This email message and any files transmitted with it contain confidential

Re: Comet and Async Servlets - Architecture Question

2007-05-03 Thread Filip Hanik - Dev Lists
Praveen Balaji wrote: Thanks Sebastiaan. I came to about the same conclusions as you listed out here. I also saw your post on parsing POST parameters and I think it's going to create problems for me as well! I am unsure the API would be improved. I simply think, as Filip pointed out

RE: Tomcat context issue

2007-05-03 Thread Caldarale, Charles R
From: tb323 [mailto:[EMAIL PROTECTED] Subject: Tomcat context issue In server.xml I have this: Host name=localhost appBase=/home/tb323/projects/www/public_html/webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false This way I

RE: Handling SSL Client Auth abort

2007-05-03 Thread Caldarale, Charles R
From: Subscriber [mailto:[EMAIL PROTECTED] Subject: Re: Handling SSL Client Auth abort ...unfortunately I never get that far where I can catch the exception. The exception is thrown within Tomcat and in my application code. (I'll assume there's a rather critical not missing from the

RE: Tomcat context issue

2007-05-03 Thread tb323
Thanks for the extremely quick reply. :) I'll check this out after work. /Tommy Caldarale, Charles R wrote: From: tb323 [mailto:[EMAIL PROTECTED] Subject: Tomcat context issue In server.xml I have this: Host name=localhost appBase=/home/tb323/projects/www/public_html/webapps

Re: Handling SSL Client Auth abort

2007-05-03 Thread Subscriber
PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ NOD32 2236 (20070503) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com - To start a new topic, e-mail

mod_jk and ClientAbortException

2007-05-03 Thread Dirk Manske
Hi, we are using Tomcat 5.5.20 with Apache 1.3.37 via mod_jk and Struts 1.1. Furthermore we cache the reponses with OSCache 2.1. From time to time when building up the cache a SocketException occurs. In the Tomcat logs we can see that this Exception is wrapped in a ClientAbortException.

Re: How to access application in the root?

2007-05-03 Thread Rashmi Rubdi
Hi Ashok, On 5/3/07, Ashok Sahu [EMAIL PROTECTED] wrote: Hi All, I am migrating my J2EE application from JRun to Tomcat 5.0.28. I deployed successfully the 'myAppname.war' file in Tomcat. Now here is my problem: In the JRun, we were calling the jsp or servlet without giving the application

NIOSelector busy wait

2007-05-03 Thread Sebastiaan van Erk
Hi, I have a problem that sometimes the NIO selector goes into a busy wait loop. In line 1430 the code of NIOEndpoint.java, keyCount = selector.select(selectorTimeout); select keeps returning 0 without waiting. I'm running on the latest trunk version of tomcat 6,

Tomcat 5.5.23 with Sun JDK 1.5.0_11 can't find the Apache Tomcat Native library

2007-05-03 Thread Rafael Caceres
Hi all, The Apache Tomcat Native library was built from the untarred source on /usr/local/apache-tomcat-5.5.23/bin/tomcat-native-1.1.6-src/jni/native using: ./configure --with-apr=/usr/local/apache2/bin/apr-config --with-ssl --prefix=/usr/local/apr;make;make install On startup the Tomcat logs

Re: NIOSelector busy wait

2007-05-03 Thread Filip Hanik - Dev Lists
it will return 0 after the timeout has expired if there was no events. most likely its not a bug in the JDK but in your linux kernel/distro so far I haven't seen the behavior you've explained. Filip Sebastiaan van Erk wrote: Hi, I have a problem that sometimes the NIO selector goes into a

Re: User-password from the HttpServletRequest

2007-05-03 Thread sebbo
I saw, that I can get the password via the Principle: The Tomcat server has his own implementation of Principle: GenericPrinciple which holds all the stuff (pw, roles, etc). I know the problem with the changing of password, but thats not the main probelm now ;-) Does somebody know a good

War with timestamp not using META-INF/context.xml path

2007-05-03 Thread Garner, Shawn
Tomcat 5.5.17 JDK 1.5 I deployed a war through the online manager and it deployed it under the filename instead of the path in the META-INF/context.xml of the war. So my war is mycontext-20070427-0946-sys.war And my context.xml has path=/mycontext in it but it deployed it under

Re: problem with tomcat clusters sso with apache load balancer

2007-05-03 Thread Peter Rossbach
Hi, the clusterSSO implementation is not ready: - at normal shutdown from one application or a node all sessions are expired. clusterSSO is a normal session listener and context stop expires all sessions. - The sessionID rewrite from JvmRouteBinderValve are not coordinated with

Re: [OT] User-password from the HttpServletRequest

2007-05-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sam, [EMAIL PROTECTED] wrote: I saw, that I can get the password via the Principle: The Tomcat server has his own implementation of Principle: GenericPrinciple which holds all the stuff (pw, roles, etc). Wow, Tomcat keeps the user's password

RE: War with timestamp not using META-INF/context.xml path

2007-05-03 Thread Caldarale, Charles R
From: Garner, Shawn [mailto:[EMAIL PROTECTED] Subject: War with timestamp not using META-INF/context.xml path path in the META-INF/context.xml of the war. Neither the path nor the docBase attributes are allowed when the Context element is in META-INF/context.xml. As the doc states, the URI

RE: War with timestamp not using META-INF/context.xml path

2007-05-03 Thread Caldarale, Charles R
From: Garner, Shawn [mailto:[EMAIL PROTECTED] Subject: RE: War with timestamp not using META-INF/context.xml path The fourth bullet says this: -if the previous file was not found for this application, in an individual file at /META-INF/context.xml inside the application files Sure

RE: War with timestamp not using META-INF/context.xml path

2007-05-03 Thread Garner, Shawn
So there is no way to have the war tell the container what context to use other than the filename? Shawn -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Thursday, May 03, 2007 2:23 PM To: Tomcat Users List Subject: RE: War with timestamp not using

RE: War with timestamp not using META-INF/context.xml path

2007-05-03 Thread Caldarale, Charles R
From: Garner, Shawn [mailto:[EMAIL PROTECTED] Subject: RE: War with timestamp not using META-INF/context.xml path So there is no way to have the war tell the container what context to use other than the filename? Correct, unless you manually place the Context element in server.xml, which

Re: NIOSelector busy wait

2007-05-03 Thread Sebastiaan van Erk
Hi, it will return 0 after the timeout has expired if there was no events. most likely its not a bug in the JDK but in your linux kernel/distro Well Ubuntu is pretty big, so I'd expect other people to have seen this as well. I have been able to reproduce a select busy loop in the JDK

RE: War with timestamp not using META-INF/context.xml path

2007-05-03 Thread Garner, Shawn
We don't use a deployment script. Not sure if we could, it's all secured and isolated. Without the timestamp and the environment in the war name somebody could deploy a war to the wrong environment or an old war. Sounds to me like if it is easy enough to use the filename that you could use the

Re: User-password from the HttpServletRequest

2007-05-03 Thread Johnny Kewl
Sebbo the word you looking for is SYMMETRICAL encryption I think Sun has an Class... cant remember. Anyway have a look at things like DES... and the one I like IDEA. You can read up on all that stuff and I'm pretty sure you will find java implementations. I did have this all coded a

RE: War with timestamp not using META-INF/context.xml path

2007-05-03 Thread Caldarale, Charles R
From: Garner, Shawn [mailto:[EMAIL PROTECTED] Subject: RE: War with timestamp not using META-INF/context.xml path We don't use a deployment script. Not sure if we could, it's all secured and isolated. If you do it by hand, you can do it with a script. Without the timestamp and the

Re: War with timestamp not using META-INF/context.xml path

2007-05-03 Thread Rashmi Rubdi
On 5/3/07, Garner, Shawn [EMAIL PROTECTED] wrote: We don't use a deployment script. Not sure if we could, it's all secured and isolated. Without the timestamp and the environment in the war name somebody could deploy a war to the wrong environment or an old war. Sounds to me like if it is

Deploying Default Webapp in Tomcat 6.0

2007-05-03 Thread Matthew Inger
I've been trying to figure out how to deploy a .war file as the root webapp in Tomcat 6.0.10. Say I have a foo.war file, and create a conf/Catalina/localhost/foo.xml file with the following contents: Context path= docBase=foo / I would expect (as in Tomcat 5), that the url:

RE: Deploying Default Webapp in Tomcat 6.0

2007-05-03 Thread Caldarale, Charles R
From: Matthew Inger [mailto:[EMAIL PROTECTED] Subject: Deploying Default Webapp in Tomcat 6.0 I've been trying to figure out how to deploy a .war file as the root webapp in Tomcat 6.0.10. Say I have a foo.war file, and create a conf/Catalina/localhost/foo.xml file with the following

Re: Tomcat 5.5.23 with Sun JDK 1.5.0_11 can't find the Apache Tomcat Native library

2007-05-03 Thread Orlando Reis
Try de dir where you compiled the files, where you did: sh buildconf; ./configure and make There is a directory .libs in there you will find the native library's copy them to your $JAVA_HOME/jre/lib/i386/client There should be 6 files: libtcnative-1.a libtcnative-1.lai libtcnative-1.so.0

Re: Deploying Default Webapp in Tomcat 6.0

2007-05-03 Thread Orlando Reis
:) I liked this one On 5/3/07, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Matthew Inger [mailto:[EMAIL PROTECTED] Subject: Deploying Default Webapp in Tomcat 6.0 I've been trying to figure out how to deploy a .war file as the root webapp in Tomcat 6.0.10. Say I have a foo.war

JDBCRealm

2007-05-03 Thread Murtuza
-I am using mysql as database.. -I have mysql-connector-java-5.0.5 jdbc driver in my tomcat/lib directory -I am using JDBCRealm for authentication -On my windows machine it works fine -when I deployed it on linux box it does't work -I get the foloowing error message from my localhost log file

Re: JDBCRealm

2007-05-03 Thread Martin Gainty
Have you verified the mysql listener is listening? Have you verified the JDBCRealm is configured using the parameters which will allow you to connect? If you are able to confirm both please post your JDBCRealm parameters here Martin This email message and any files transmitted with it contain

Re: JDBCRealm

2007-05-03 Thread Murtuza
below is my context.xml file. I can connect to the mysql database from a java class with the same username/pass. ?xml version=1.0 encoding=UTF-8? Context path=/security docBase=security debug=99 Realm className=org.apache.catalina.realm.JDBCRealm digest=MD5

Re: JDBCRealm

2007-05-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Murtuza, Context path=/security docBase=security You should specify neither the path nor the docBase attributes when you are using a context.xml file. This is probably not the problem, but could be causing some other problems. The only

Re: JDBCRealm

2007-05-03 Thread Martin Gainty
Murtuza here is server.xml example from Tomcat 5.5 docs where test is name of db user=testr and password=testr Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=org.gjt.mm.mysql.Driver connectionURL=jdbc:mysql://localhost/test?user=testramp;password=testr

Re: NIOSelector busy wait

2007-05-03 Thread Martin Gainty
curious what the value tcpSelectorTimeout is defines in %TOMCAT_HOME%/conf/server.xml Bedankt/ Martin-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email

firewall setting for AJP1.3 connector

2007-05-03 Thread Swaroop George
I have a machine sitting in the DMZ with IIS 6.0 as the web server. I am trying to redirect request to an internal server running Tomcat sitting behind the firewall using isapi_redirect.dll I have opened up port 8009 which is defined as the AJP1.3 connector in the server.xml. 8009 has been