Re: NIOSelector busy wait

2007-05-03 Thread Sebastiaan van Erk
Hi, I'm running an embedded tomcat, so I don't have the server.xml file. When I place a breakpoint in the selector loop though I find that the value of selectorTimeout is 1000. Regards, Sebastiaan Martin Gainty wrote: curious what the value tcpSelectorTimeout is defines in %TOMCAT_HOME%/con

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 opened

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

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 HTH 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 h

Re: JDBCRealm

2007-05-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Murtuza, > 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 thing I can think

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. Martin Gainty wrote: > > Have you verified the mysql listener is listening? > Have you verified the JDBCRealm is configured using the parameters which > will allow you to co

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 c

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: 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 "

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 libtc

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

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: I would expect (as in Tomcat 5), that the url: http://localhost:8080/ would be routed to

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

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 e

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 lon

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 pa

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 myself,

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 element in server.xml, which is s

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 META-INF/c

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

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

2007-05-03 Thread Garner, Shawn
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 sounds like it should to me. Shawn -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Thur

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 element is in META-INF/context.xml. As the doc states, the URI pat

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 ly

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 clusterSS

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 mycont

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 encry

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 bus

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 show

Re: problem with tomcat clusters sso with apache load balancer

2007-05-03 Thread Filip Hanik - Dev Lists
I don't think the clusterSSO implementation ever really got finished. It got submitted, but never completed. At least that was my impression of it Filip Alejandro Fernandez wrote: Hi, I am Alejandro from Argentina. I am having an issue with tomcat 6.0.10 using clusters and single sign on, wh

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, on

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 applicatio

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: Handling SSL Client Auth abort

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

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: >> >> > appBase="/home/tb323/projects/www/public_html/webapps" >>

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

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: > > appBase="/home/tb323/projects/www/public_html/webapps" > unpackWARs="true" autoDeploy="true" > xmlValidation="false" xmlNamespaceAware="false"> > > This way I want

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 ear

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 i

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: This way I want to be a

Re: shutdown restart

2007-05-03 Thread Martin Gainty
$CATALINA_HOME/conf/server.xml 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 only for the person(s) to whom this email message is addressed. If you have

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, md5

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: user

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=val1¶m2=val2" ); req.send(null); We intenti

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 l

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 http://svn.apache.org/viewvc/tomcat/connectors/tags/tc5.5.x

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