Re: shutdown restart

2007-05-02 Thread Rashmi Rubdi
Also, if the OS is Unix/Linux based, you most likely should grant execute permissions for startup.sh and shutdown.sh - before trying to execute them the first time. -Regards Rashmi - To start a new topic, e-mail:

Re: Comet and Async Servlets - Architecture Question

2007-05-02 Thread Martin Perez
Sebastiaan, Yes you're right. I forgot to add something like isClosed() to your SynchronizedOutputStream so I can check if it's closed before writing. Anyways, I found that after a certain limit (for ex. 6000 - 8000 users) the system starts to behave incorrectly. Some clients never get an

Re: Exception with Comet in Tomcat with high load

2007-05-02 Thread Martin Perez
Sebastiaan, Yes you're right. I forgot to add something like isClosed() to your SynchronizedOutputStream so I can check if it's closed before writing. Anyways, I found that after a certain limit (for ex. 6000 - 8000 users) the system starts to behave incorrectly. Some clients never get an

Re: Comet and Async Servlets - Architecture Question

2007-05-02 Thread Martin Perez
Sorry about this last email. It was for Sebastiaan but in another thread. Cheers, Martin On 5/2/07, Martin Perez [EMAIL PROTECTED] wrote: Sebastiaan, Yes you're right. I forgot to add something like isClosed() to your SynchronizedOutputStream so I can check if it's closed before writing.

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

2007-05-02 Thread Reich, Matthias
-Original Message- From: Sebastiaan van Erk [mailto:[EMAIL PROTECTED] Sent: Friday, April 27, 2007 7:24 PM To: Tomcat Users List Subject: Re: Comet: problem with request.getParameter() in Comet POST requests GET parameters, ie parameters in the URL will work. However,

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

2007-05-02 Thread Sebastiaan van Erk
Hi, 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 whether there is enough input available to start parsing a chunk of data? Either

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

2007-05-02 Thread Reich, Matthias
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 whether there is enough input available to start parsing a chunk of data?

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

2007-05-02 Thread Rémy Maucherat
On 5/2/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: What you seem to want is more in line with the asynchronous servlet (request, wait, response), which Filip and Remy pointed out is not the quite the same as Tomcat's Comet. Ideally, both models would be possible through single unified API,

JNI in Tomcat6

2007-05-02 Thread Christian Becker
Hello Everybody, i am currently developing a Servlet for Controlling my Winamp with my Mobile. The Library i want to use is jdic. jdic uses JNI with a DLL As Java Application, it is perfectly working. But on my Tomcat6 i always get a Exception while Servlet Initialization:

Re: JNI in Tomcat6

2007-05-02 Thread David Kerber
Christian Becker wrote: Hello Everybody, i am currently developing a Servlet for Controlling my Winamp with my Mobile. The Library i want to use is jdic. jdic uses JNI with a DLL As Java Application, it is perfectly working. But on my Tomcat6 i always get a Exception while Servlet

Can't get Session persistence to work using org.apache.catalina.session.JDBCStore

2007-05-02 Thread Wang, Ningjun \(LNG-NPV\)
I try to setup session persistence using database. I created the file context.xml under the META-INF directory of my WAR file Context WatchedResourceWEB-INF/web.xml/WatchedResource Manager distributable=true className=org.apache.catalina.session.PersistentManager debug=5 saveOnRestart=true

Form-based authentication example broken in Tomcat 6.0

2007-05-02 Thread Frank McCown
I noticed the MemoryRealm / form-based authentication example in Tomcat 6.0 is broken. The example works just fine in Tomcat 5.5, but in the migration to 6.0, it got broken. According to the doc at http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html the app is supposed to be available

When would Tomcat refuse to accept any further connections ?

2007-05-02 Thread Sriram Narayanan
Hello list: We're using Tomcat to host some web services. The nature of our application is such that a single web service receives a lot of requests in bursts. We use Cognos to connect to a data provider called Simba, which in turn makes the requests to the web service. Our customers are

Re: JNI in Tomcat6

2007-05-02 Thread Martin Gainty
Good Morning Dave usually the binaries are located in %JAVA_HOME%/jre/bin backup everything (jvm.cfg especially) you have beforehand change LD_LIBRARY_PATH in jvm.cfg to point to the folder containing your DLL (please verify this works as the signatures for JNI dll's need to conform to spec)

Re:Jconsole and remote monitoring

2007-05-02 Thread [EMAIL PROTECTED]
Now jconsole works but when i shut it down with /bin/./shutdown.sh i get this error: Errore: Eccezione dell'agente : java.rmi.server.ExportException: Port already in use: 7019; nested exception is: java.net.BindException: Address already in use and tomcat doesn't shut down properly. I

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

2007-05-02 Thread Rémy Maucherat
On 5/2/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Sorry about that, did not mean to say it is not possible to do a request, wait, response with Comet. All I'm trying to say is that Comet was not designed (at least, Filip stated this) for the async servlet model, and I tried to point out

Re: Can't get Session persistence to work using org.apache.catalina.session.JDBCStore

2007-05-02 Thread Martin Gainty
Good Morning Wang- Your listener is either not started or is blocked (perhaps by a firewall) verify the default Oracle Port is listening at 1521 netstat -a | grep 1521 (this will verify the Oracle listener is at least listening) verify the SERVICE NAME you have for SID is the same as

Re: Form-based authentication example broken in Tomcat 6.0

2007-05-02 Thread Rémy Maucherat
On 5/2/07, Frank McCown [EMAIL PROTECTED] wrote: The default contents of the conf/tomcat-users.xml file *should* be tomcat-users user name=tomcat password=tomcat roles=tomcat / user name=role1 password=tomcat roles=role1 / user name=both password=tomcat roles=tomcat,role1 /

Re: shutdown restart

2007-05-02 Thread William Biggs
I runing linux where is the file at ? - Original Message - From: Rashmi Rubdi [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, May 01, 2007 11:40 PM Subject: Re: shutdown restart Depends on your Operating System and how you installed it on that OS.

problem with tomcat clusters sso with apache load balancer

2007-05-02 Thread Alejandro Fernandez
Hi, I am Alejandro from Argentina. I am having an issue with tomcat 6.0.10 using clusters and single sign on, while performing load balance with apache 2.2 When I am accessing a secured page, I try to login (the login form is shown correctly) but I receive the following: HTTP Status 400 -

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

2007-05-02 Thread Sebastiaan van Erk
Hi, How about not arguing about everything ? It is your fault when parameters are not processed. Tomcat will process parameters with comet. No, Comet will not process parameters in POST requests if you call getParameter() in the BEGIN event and the request body has not yet arrived.

Re: shutdown restart

2007-05-02 Thread Rashmi Rubdi
You probably might have locate the files, but just in case not the startup.sh and shutdown.sh shell script files are under Tomcat's bin folder. -Regards Rashmi On 5/2/07, William Biggs [EMAIL PROTECTED] wrote: I runing linux where is the file at ?

Re: Global Footer Accross All Webapps

2007-05-02 Thread Simon Stone
Sorry to be dim, what are tiles ? Brantley Hobbs-3 wrote: You could easily do it with tiles. An alternative would be to use a filter and append your footer to the output stream. B. Simon Stone wrote: I am trying to find a way to put some html text on the bottom of all pages

Re: Global Footer Accross All Webapps

2007-05-02 Thread Brantley Hobbs
http://struts.apache.org/1.x/struts-tiles/ A more structured replacement for plain-old JSP include statements. B. Simon Stone wrote: Sorry to be dim, what are tiles ? Brantley Hobbs-3 wrote: You could easily do it with tiles. An alternative would be to use a filter and append your footer

Re: Jconsole and remote monitoring

2007-05-02 Thread Rainer Jung
You neded to change your start/stop scripts, so that they use the management parameters only in the starting case and not in the stopping case (define a new variable and add it in bin/catalina.sh to the start case. [EMAIL PROTECTED] schrieb: Now jconsole works but when i shut it down with

User-password from the HttpServletRequest

2007-05-02 Thread sebbo
Hi How can I get the password from the logged in user via the HttpServletRequest in general? (I need the password in a servlet filter to do some stuff) And there some web server independent solution? Thanks in advance and greets Sam -- Feel free - 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt

Re: User-password from the HttpServletRequest

2007-05-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sam, [EMAIL PROTECTED] wrote: How can I get the password from the logged in user via the HttpServletRequest in general? (I need the password in a servlet filter to do some stuff) Do you mean during the login process, or after it has been done?

Re: Form-based authentication example broken in Tomcat 6.0

2007-05-02 Thread Frank McCown
Rémy Maucherat wrote: On 5/2/07, Frank McCown [EMAIL PROTECTED] wrote: The default contents of the conf/tomcat-users.xml file *should* be tomcat-users user name=tomcat password=tomcat roles=tomcat / user name=role1 password=tomcat roles=role1 / user name=both password=tomcat

Re: shutdown restart

2007-05-02 Thread Pid
You should probably have a good read of the tomcat documentation. http://tomcat.apache.org/ Many useful things are to be found in it. The startup scripts are in %tomcat%/bin, where %tomcat% is the location of your install, (probably, unless you have an unusual setup). p William Biggs

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

2007-05-02 Thread Filip Hanik - Dev Lists
Reich, Matthias wrote: -Original Message- From: Sebastiaan van Erk [mailto:[EMAIL PROTECTED] Sent: Friday, April 27, 2007 7:24 PM To: Tomcat Users List Subject: Re: Comet: problem with request.getParameter() in Comet POST requests GET parameters, ie parameters in the

Form based authentication giving 400 error - strange behavior

2007-05-02 Thread Steven Rock
Sorry for the long explanation but this is a tricky problem that has me stumped. I hope someone else has experienced this. We are having a strange problem with FORM based authentication that we can't figure out. It seems to be an issue with the tomcat

Re: User-password from the HttpServletRequest

2007-05-02 Thread sebbo
Do you mean during the login process, or after it has been done? I mean after the user has been logged in (form based login). Have you an example how I can receive the password from the HttpServletRequest? greets Original-Nachricht Datum: Wed, 02 May 2007 13:31:49 -0400

Re: User-password from the HttpServletRequest

2007-05-02 Thread rmarra
Hi Sam, I did something like that once but using the JSP saving the data in session variable that were available for all the session of the user... Roberto Hi How can I get the password from the logged in user via the HttpServletRequest in general? (I need the password in a servlet filter to

Re: JNI in Tomcat6

2007-05-02 Thread Pid
Caldarale, Charles R wrote: From: Martin Gainty [mailto:[EMAIL PROTECTED] Subject: Re: JNI in Tomcat6 usually the binaries are located in %JAVA_HOME%/jre/bin Only DLLs that are part of the JVM should be placed in %JAVA_HOME%/jre/bin; this is not an appropriate location for

Re: Log files always locked

2007-05-02 Thread Brantley Hobbs
Ultraedit also works. If I could threadjack here, I'd like to point out my own gripe with windows tomcat logging. Can we please make it out of the box log all stdout stuff to a *single* catalina.out file that doesn't roll over? That's a pain. I like to set up an icon to my log file, but I

Re: User-password from the HttpServletRequest

2007-05-02 Thread sebbo
Im using a FORM based authentication. Im not sure, but I think to remember that I once had the possibility to see all the user stuff (password, roles, database password, database user, etc.) but I dont know where ;-). Im using the password of the authentification to encrypt and decrypt some

Re: Log files always locked

2007-05-02 Thread Johnny Kewl
Thanks... does the trick. But still wondering why the file handles are left open... I would think its not good practice. - Original Message - From: Venkat Venkataramanan [EMAIL PROTECTED] To: 'Tomcat Users List' users@tomcat.apache.org Sent: Wednesday, May 02, 2007 8:45 PM Subject:

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

2007-05-02 Thread Peter Rossbach
Hi Am 02.05.2007 um 17:26 schrieb Sebastiaan van Erk: Hi, How about not arguing about everything ? It is your fault when parameters are not processed. Tomcat will process parameters with comet. No, Comet will not process parameters in POST requests if you call getParameter() in the BEGIN

Re: User-password from the HttpServletRequest

2007-05-02 Thread Pid
[EMAIL PROTECTED] wrote: Do you mean during the login process, or after it has been done? I mean after the user has been logged in (form based login). Have you an example how I can receive the password from the HttpServletRequest? You can't access the credential from HttpServletRequest

Re: Jconsole and remote monitoring

2007-05-02 Thread Peter Rossbach
Please use CATALINA_OPTS to set jmx options. The catalina.sh stop command use only JAVA_OPTS and not CATALINA_OPTS. Peter Am 02.05.2007 um 18:09 schrieb Rainer Jung: You neded to change your start/stop scripts, so that they use the management parameters only in the starting case and not in

RE: Log files always locked

2007-05-02 Thread Propes, Barry L
I always drag and drop them from their given directory (in my case it's a shared directory, then the logs are in a subdir) to my desktop and read them that way, as to not interfere with perpetual logging to the file. -Original Message- From: Johnny Kewl [mailto:[EMAIL PROTECTED] Sent:

Re: User-password from the HttpServletRequest

2007-05-02 Thread sebbo
Im using a DataSource Realm. Hmm but from where can I access the credentials? Original-Nachricht Datum: Wed, 02 May 2007 20:00:04 +0100 Von: Pid [EMAIL PROTECTED] An: Tomcat Users List users@tomcat.apache.org Betreff: Re: User-password from the HttpServletRequest [EMAIL

Re: Log files always locked

2007-05-02 Thread Rashmi Rubdi
I'm able to open Tomcat log files with Notepad, while Tomcat is running. I guess the lock happens when Tomcat is writing to the log file, and the file is being opened simultaneously. I think you're using the Windows Installer and I've installed mine from the zip file. I don't know if it makes a

Re: Log files always locked

2007-05-02 Thread David Kerber
Johnny Kewl wrote: Thanks... does the trick. But still wondering why the file handles are left open... I would think its not good practice. I would assume for performance reasons, but that's just a guess. I do the same thing when I know I'm going to be doing a lot of writing, but if

RE: Log files always locked

2007-05-02 Thread Fargusson.Alan
I think this is a Windows issue. I doubt that Tomcat actually locks the log files. The reason I think that this is a Windows issue is that I run into the same thing with other programs. I don't run Tomcat on Windows, so I can't check Tomcat log files specifically. I think that this behavior

Re: User-password from the HttpServletRequest

2007-05-02 Thread Johnny Kewl
JDBC I guess... Maybe the difficulty is an indication that its not the right way to go... For example if a user ever has to change their password... data is lost, or a huge procedure. Think about this... maybe its a good idea. Remember that if you see the user name in a page it means

Re: User-password from the HttpServletRequest

2007-05-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sam, [EMAIL PROTECTED] wrote: Do you mean during the login process, or after it has been done? I mean after the user has been logged in (form based login). Have you an example how I can receive the password from the HttpServletRequest?

Re: Form based authentication giving 400 error - strange behavior

2007-05-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Steven, Steven Rock wrote: Sorry for the long explanation but this is a tricky problem that has me stumped. I hope someone else has experienced this. When you build your URL using javascript, make sure to run the URL through

Re: Log files always locked

2007-05-02 Thread Johnny Kewl
Wots Up Doc!... Rashmi I am using the Windows Installer... and when I saw what you said I killed every thing and then just started and stopped Tomcat... and guess wot!... the files are not locking... ie they letting other programs open them. So now I dont know whats causing the solid lock...

Re: User-password from the HttpServletRequest

2007-05-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sam, [EMAIL PROTECTED] wrote: I'm using the password of the [authentication] to encrypt and decrypt some data to a database user specific (each users own data has the users password). Uh... are you sure this is a good idea? If the user changes

RE: Log files always locked

2007-05-02 Thread Caldarale, Charles R
From: Johnny Kewl [mailto:[EMAIL PROTECTED] Subject: Re: Log files always locked but if you look at Propes, Barry L post... thats exactly wot I had to do ie copy all the files... and then open them... That doesn't really make sense: if they were hard locked, how were you able to copy

RE: Log files always locked

2007-05-02 Thread Propes, Barry L
I actually didn't get a notification saying it was locked, but assumed it wouldn't write to the log while I had it open. Copying it takes a second for me, but I can see where that conflict should theoretically occur. However, I've not held the file open, and then been prompted to save, reload

RE: Log files always locked

2007-05-02 Thread Steven Rock
I use tomcat and jboss on windows. I have installed cygwin Unix shell for windows and put all the commands in my PATH env variable. Then I can run: tail -f log.out This continuously shows me the log file as it gets updated. -Steve -Original Message- From: Fargusson.Alan [mailto:[EMAIL

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

2007-05-02 Thread Sebastiaan van Erk
Hi, I have no problem to get POST parameter with NIO Connector at my begin.event. With APR connector I also have POST parameter problems. Strange! A my first request I get the POST parameter. The POST message close the event and I got an exception after the end event. It's a race

Re: Log files always locked

2007-05-02 Thread Johnny Kewl
I think its just because a copy on a drag and drop is opening the file as read only... Thing is utilities like notepad and wordpad will try open rw. - Original Message - From: Caldarale, Charles R [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, May

Installing Tomcat on Windows Server 2003 x64

2007-05-02 Thread Adrian Bell
Hi, I need to advise someone on how to install Tomcat on a Windows Server 2003 64-bit edition server with an AMD64 processor. Unfortunately I do not have this hardware/software setup myself so am unable to test. I see from a google search that others have encoutered problems with Win2k3 64.

RE: Log files always locked

2007-05-02 Thread Caldarale, Charles R
From: Johnny Kewl [mailto:[EMAIL PROTECTED] Subject: Re: Log files always locked I think its just because a copy on a drag and drop is opening the file as read only... Thing is utilities like notepad and wordpad will try open rw. Makes sense. What about a real editor like ConTEXT or

RE: User-password from the HttpServletRequest

2007-05-02 Thread Steven Rock
I use form based authentication backed by a Database Realm. After the user logs in I can get the user info on top of every JSP page with this code snippet. % Principal principle = (Principal)request.getUserPrincipal(); User loggedInUser = JSPUtils.loadUser(session, principle.getName()); //

RE: Log files always locked

2007-05-02 Thread Propes, Barry L
I've not tried to attempt to open it in Textpad with a current date log. If I'm trying to troubleshoot some problems, I just drag it from my shared dir's subdirectory to either my desktop (usually) or another location and then open it in notepad. I'm not using any other logging mechanism like

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

2007-05-02 Thread Rémy Maucherat
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 request body of the POST request, the more likely it is that the problem occurs. I was testing at a few thousand request

Re: Jconsole and remote monitoring

2007-05-02 Thread [EMAIL PROTECTED]
thank you. You neded to change your start/stop scripts, so that they use the management parameters only in the starting case and not in the stopping case (define a new variable and add it in bin/catalina.sh to the start case. [EMAIL PROTECTED] schrieb: Now jconsole works but when i shut

RE: Log files always locked

2007-05-02 Thread Propes, Barry L
I've not ever gotten a file is copy-protected or disk-protected message, like MS is prone to do with files. However, I'm not sure about Textpad exclusively opening up a read only copy of those things. When I've got a servlet open in Textpad, and let's I say I opened it in Eclipse for some

Re: Log files always locked

2007-05-02 Thread Johnny Kewl
Yes... but I dont think we should ever have to do that... Textpad works BTW... will save u you some hassle... But thanks... nice to know other guys are also seeing it. - Original Message - From: Propes, Barry L [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent:

RE: Log files always locked

2007-05-02 Thread Propes, Barry L
oh yeah, I use Textpad a great deal, I just usually don't open the logs in it -- I just double click and open them in their native app (notepad.). -Original Message- From: Johnny Kewl [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 02, 2007 4:26 PM To: Tomcat Users List Subject: Re: Log

reloading an application

2007-05-02 Thread cifroes
Hi, I want to reload an application using the Manager but I have a doubt: does it reload immediately after I call the Manager or does it wait for processing requests to end or has some other delay? In case there is a delay, can I set it to immediately reload? Thanks in advance, -- cifroes

RE: Log files always locked

2007-05-02 Thread Caldarale, Charles R
From: Propes, Barry L [mailto:[EMAIL PROTECTED] Subject: RE: Log files always locked oh yeah, I use Textpad a great deal, I just usually don't open the logs in it -- I just double click and open them in their native app (notepad.). That's one of the reasons I use ConTEXT - it replaces

Tomcat serves incorrect page

2007-05-02 Thread Molina, Teresa
We just had an extremely odd incident occur in our production environment, and I am hoping the scenario sounds at least familiar to someone. I'm having a fairly difficult time coming up with a good search string, so please excuse me if this is a known issue. This afternoon, we have a number of

Tomcat 5.5, IPv6, APR, HTTP and HTTPS

2007-05-02 Thread Lakshmi Venkataraman
My setup: Tomcat 5.5.23, JDK 1.5, WIN XP I am also using tcnative-1.dll and OpenSSL 0.9.8b Client browser: IE6, Firefox 1.5 for IPv4 IE7 for IPv6. I successfully tested Tomcat 5.5.23 by enabling ipV6 without using APR. SUCCESS: If I use tcnative-ipv4.dll (version 1.1.8) I find that I am able

RE: Tomcat 5.5, IPv6, APR, HTTP and HTTPS

2007-05-02 Thread Lakshmi Venkataraman
Corrections: Here is a summary of what works and what does not. Tomcat 5.5.23, WinXP, JDK 1.5, OpenSSL-0.9.8b is the base configuration. tcnative-1-ipv4.dll (ver 1.1.7) works for both HTTP and HTTPS. tcnative-1-ipv6.dll (ver 1.1.7) works for HTTP and HTTPS only with ipv6 transport between