Re: Change the encoding format of xml outpu

2007-01-22 Thread Sarah Parrott
Thanks for all that guys! I'm writing out xml in a servlet not a jsp page so I can't use the page declaration thing. If it is putting a BOM in in front of the xml, how can I stop it doing this? Thanks, Sarah On 21/01/07, Rashmi Rubdi [EMAIL PROTECTED] wrote: From what I've experience (don't

RE: mod_jk replacement?

2007-01-22 Thread David Rodríguez Fernández
Recently i'm using mod_proxy_ajp, as mod_jk replacement with apache. I don't have this in an production environment, but along this week I plan to do it. This is an extract of my apache config: ProxyPass /app/img/ ! ProxyPass /app/js/ ! ProxyPass /app/doc/ ! ProxyPass /app/css/ !

Re: HTTP response code 200 - in access log

2007-01-22 Thread Andreas Deller
Hi I have activated LiveHttpHeaders and the RequestDumperValve and fortunately ran into the problem in my development environment. Sorry for the long posting, but it seems necessary to me. Important notes: - Between the client and the server, there is a reverse proxy. - After all, this is *one*

Form-based authentication and WML

2007-01-22 Thread Langas de los Langas
Hi to everyone. I'm developing a JSP application with form-based authentication (with user data stored in an OpenLDAP directory) running in Tomcat 5.5. The application has two features: a web portal and a WAP portal. The file web.xml is configured with the necessary security constraints. For

RE: isapi_redirect problem : works in all cases except one

2007-01-22 Thread Per Johnsson
Hi! I just notice that you have /wiki/ in the uriworkers and path=/wiki. Try to change your ajp connector to /wiki*=ajp13w I have sometimes had some problem with differences in the last slash. /Per Jonsson -Original Message- From: Rich Stern [mailto:[EMAIL PROTECTED] Sent: den 19

Re: Session Monitoring tool?

2007-01-22 Thread Kristian Rink
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck; [Caldarale, Charles R [EMAIL PROTECTED] @ Wed, 17 Jan 2007 09:31:48 -0600] Yes, there is, but the information it provides is rather limited (to telling me how many active sessions there are and what session timeout is set)... Lambda

java.exe cause high cpu utilization

2007-01-22 Thread Sascha Wehnert
Hi folks, Problem: As soon as I access anything within tomcat (manager, probe…) java.exe starts to stress the cpu. If I access the applications via port 8080 and bypass Apache, everything is fine. So my assumptions is that something within my Apache configuration is wrong but I

Double-quotes in cookie values

2007-01-22 Thread Leandro de Oliveira
Hi, I have to set a cookie with commas in its value, but Tomcat is putting double quotes at start and end of the value. I´d like to set values without quotes. Thank you __ Fale com seus amigos de graça com o novo Yahoo! Messenger

Re: Session Monitoring tool?

2007-01-22 Thread Ben Souther
What kind of information are you looking for? If it's application specific data, it wouldn't be difficult to write something yourself. I have a sample app that shows the users logged in to the system, how long they've been active, when the session times out, and what the last page they've hit

Re: Session Monitoring tool?

2007-01-22 Thread JNeuhoff
You may want to implement your own HTTPSessionListener for your servlet. It looks something like this: package mypackage; import javax.servlet.http.HttpSessionListener; import javax.servlet.http.HttpSessionEvent; public class SessionListener implements HttpSessionListener { static int

Re: HTTP response code 200 - in access log

2007-01-22 Thread Pid
Andreas Deller wrote: Hi I have activated LiveHttpHeaders and the RequestDumperValve and fortunately ran into the problem in my development environment. Sorry for the long posting, but it seems necessary to me. Important notes: - Between the client and the server, there is a reverse proxy.

Re: HTTP response code 200 - in access log

2007-01-22 Thread Andreas Deller
Pid wrote: Andreas Deller wrote: Hi I have activated LiveHttpHeaders and the RequestDumperValve and fortunately ran into the problem in my development environment. Sorry for the long posting, but it seems necessary to me. Important notes: - Between the client and the server, there is a

Write Permission on Tomcat from Java code

2007-01-22 Thread edvin
Tomcat: 5.5.20, Java: 1.4.2_12, JVM: 1.5.0_07-b03, WinXp, (Eclipse 3.2, Axis 1.2). Hi, I have deployed a web service in AXIS on Tomcat for reading and writing xml files from/on my system. Both work fine if I call the web service via the Firefox Browser. But when I call the web service from a

Access to error page denied in Firefox 2.0

2007-01-22 Thread Marcel Frehner
I'm trying to set up form-based authentication in a JSF Application on Tomcat 5.5.4. I've got a login page, a welcome page and an error page. On entering the right username and password I get redirected to welcome.jsp. On entering the wrong credentials IE displays my custom error.html with a

Webapps loading order

2007-01-22 Thread Orlando Reis
Hi, can someone please tell me the order in which the webapps are loaded? I can't find anything on the archives nor on the documentation, is it alphabetically or reverse alphabetically or is there no order at all? On the searches I made through out the list archive someone said the answer was

Re: HTTP response code 200 - in access log

2007-01-22 Thread Pid
Andreas Deller wrote: Pid wrote: Andreas Deller wrote: Hi I have activated LiveHttpHeaders and the RequestDumperValve and fortunately ran into the problem in my development environment. Sorry for the long posting, but it seems necessary to me. Important notes: - Between the client and the

RE: Webapps loading order

2007-01-22 Thread Peter Crowther
From: Orlando Reis [mailto:[EMAIL PROTECTED] Hi, can someone please tell me the order in which the webapps are loaded? There is no defined order, and implementations may vary - you shouldn't rely on any order. Can you tell us a bit more about what you're trying to do, as there are a few

Re: Webapps loading order

2007-01-22 Thread David Smith
Funny, I find lot's of info on this and the answer is always no. Some posts suggest hacks though: http://www.google.com/search?hl=enq=tomcat+webapp+load+order As has been noted in at least one of the results above, it's a fragile design. Better to design the depending webapps to handle the

Re: HTTP response code 200 - in access log

2007-01-22 Thread Andreas Deller
Pid wrote: Andreas Deller wrote: Pid wrote: Andreas Deller wrote: Hi I have activated LiveHttpHeaders and the RequestDumperValve and fortunately ran into the problem in my development environment. Sorry for the long posting, but it seems necessary to me. Important notes: - Between the

Re: Access to error page denied in Firefox 2.0

2007-01-22 Thread David Delbecq
I see several potential problems as a side note before the core problem... First, you map your security constraint to /*, that mean *nothing* in your webapp will be accessible prior to login, this includes pictures, css. Second, be aware to never access directly login.html, it should be tomcat

Re: Webapps loading order

2007-01-22 Thread Orlando Reis
Ok, your right I did found some information a little bit later after posting. The reason for not having any order is because it's multithread and all webapps are loaded at the same time. I was wondering about order because we have properties file that if badly configured on one context will

RE: Webapps loading order

2007-01-22 Thread Caldarale, Charles R
From: Orlando Reis [mailto:[EMAIL PROTECTED] Subject: Re: Webapps loading order The reason for not having any order is because it's multithread and all webapps are loaded at the same time. Actually, the Tomcat webapp deployer is not currently multi-threaded, but there's no reason it

Re: HTTP response code 200 - in access log problem with files served from NAS

2007-01-22 Thread Pid
Andreas Deller wrote: Thanks for the optimization hint, although we don't encounter performance problems so far. APR just leverages OS native functionality, it's a gain rather than a correction. In the former case, I'd try to eliminate the room for error between versions by standardising

Re: mod_jk replacement?

2007-01-22 Thread Hassan Schroeder
On 1/22/07, David Rodríguez Fernández [EMAIL PROTECTED] wrote: Recently i'm using mod_proxy_ajp, as mod_jk replacement with apache. The OP asked about Apache httpd 2.0.x, for which mod_proxy_ajp is not available (introduced in 2.2.x). And yes, I've used it successfully in production on Linux

Re: Webapps loading order

2007-01-22 Thread Orlando Reis
Ok, if it ain't multithread then there must be some kind of order? I mean is it a random function? Or something like that? Always defining contexts on server.xml, will that make them load in the order provided in the file? Thanks in advance Orlando On 1/22/07, Caldarale, Charles R [EMAIL

RE: Webapps loading order

2007-01-22 Thread Caldarale, Charles R
From: Orlando Reis [mailto:[EMAIL PROTECTED] Subject: Re: Webapps loading order Ok, if it ain't multithread then there must be some kind of order? I mean is it a random function? Or something like that? It's not random, but it's subject to change at any time. You should not depend on any

Re: Webapps loading order

2007-01-22 Thread Orlando Reis
Ok, I won't depend on it (still wonder what it is...). But the definition of the contexts in the server.xml would that guarantee an order on loading? Orlando On 1/22/07, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Orlando Reis [mailto:[EMAIL PROTECTED] Subject: Re: Webapps loading

Re: Access to error page denied in Firefox 2.0

2007-01-22 Thread Marcel Frehner
Thank you for your answer David. My conclusion would be to move my protected resources to a separate folder and adjust my web.xml accordingly. Of course you were absolutely right about the 403 status. My Firefox had an existing but not authorised user stored and I kept testing with that one.

RE: Webapps loading order

2007-01-22 Thread Caldarale, Charles R
From: Orlando Reis [mailto:[EMAIL PROTECTED] Subject: Re: Webapps loading order But the definition of the contexts in the server.xml would that guarantee an order on loading? What does the spec say? (Hint: there is no server.xml nor Context element in the spec.) You really, really need

AW: java.exe cause high cpu utilization

2007-01-22 Thread Sascha Wehnert
Hi, looks like my tcnative-1.dll (1.1.4) was the source of all evil. Switched to 1.1.6 and no problems so far... Regards, Sascha -Ursprüngliche Nachricht- Von: Sascha Wehnert [mailto:[EMAIL PROTECTED] Gesendet: Montag, 22. Januar 2007 14:01 An: Tomcat Users List Betreff:

RE: Change the encoding format of xml outpu

2007-01-22 Thread Nelson, Tracy M.
| From: Sarah Parrott [mailto:[EMAIL PROTECTED] | Sent: Monday, 22 January, 2007 02:44 | | I'm writing out xml in a servlet not a jsp page so I can't use the page | declaration thing. So how are you writing it out? Just stuffing everything into a StringBuffer and then writing it out to a file?

Re: Webapps loading order

2007-01-22 Thread Orlando Reis
Ok, that's what I needed to hear will have to do a synchronization mechanism. Yes, I know, we don't use anything in the server.xml file, context definitions are in the context definition in catalina/localhost in context.xml definition. Thanks On 1/22/07, Caldarale, Charles R [EMAIL PROTECTED]

Re: Embedded Tomcat and application communication

2007-01-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yiannis, Yiannis Mavroukakis wrote: The scenario is a server daemon that has a cli for runtime configuration and status. Oh, so you want to be able to reconfigure Tomcat remotely. I assume that you are talking about more interesting things than

Tomcat 6.0.8 JSF 1.2 RI

2007-01-22 Thread Zaphod
I try to use the JSF 1.2_03 RI with Tomcat 6.0.8. I get a NullPointerException: Servlet.service() for servlet jsp threw exception java.lang.NullPointerException at org.apache.jsp.VDVRequest_jsp._jspInit(VDVRequest_jsp.java:25) at

Re: Tomcat 6.0.8 JSF 1.2 RI

2007-01-22 Thread Tim Funk
Check your server.xml - this should be in it - if not - then you will (sometimes) get the error as described below: Listener className=org.apache.catalina.core.JasperListener / -Tim Zaphod wrote: I try to use the JSF 1.2_03 RI with Tomcat 6.0.8. I get a NullPointerException:

Re: mod_jk replacement?

2007-01-22 Thread JNeuhoff
Hmm, this might be a good reason to upgrade to Apache 2.2.x then. Currently, the mod_jk 1.2.20 in conjunction with Apache 2.0.59 is not suitable for a production system running Windows 2003, and unfortunately we don't have sysadmins for Linux or Unix, hence I am stuck with Windows 2003 as the

Re: mod_jk replacement?

2007-01-22 Thread Mladen Turk
JNeuhoff wrote: Is there another connector software available ... http://www.nabble.com/Apache-mod_jk-memory-leak--tf3023318.html There are two major things why you can observe so called 'leak'. When connecting Apache Httpd and Tomcat via mod_jk the major thing you have to take into account

Re: mod_jk replacement?

2007-01-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 J, JNeuhoff wrote: Hmm, this might be a good reason to upgrade to Apache 2.2.x then. Currently, the mod_jk 1.2.20 in conjunction with Apache 2.0.59 is not suitable for a production system running Windows 2003, and unfortunately we don't have

Re: Tomcat Permissions

2007-01-22 Thread Jacob Fenwick
Sorry about that, it didn't occur to me that this would go under the same thread. I don't know very much about email thread technology. Jacob Mark Thomas wrote: When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and

Replace SSLServerSocketFactory?

2007-01-22 Thread Alan Marcinkowski
Hello All, I know that there used to be (in tomcat 4) a way to replace the SSLServerSocketFactory that got used to create the listener. I'm using 5.5 and want to put in a custom socket factory with a custom TrustManager that uses external configuration to make client authentication decisions.

Re: Tomcat 4.x (Major Problem)

2007-01-22 Thread Andy Moller
This is the current environment: JVM: Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode) OS: Windows 2003 server (Version 5.2.3790) Database: Oracle 9i (Release 9.2.0.1.0) JDBC Driver: Netdirect JDataServer Version 2.20.1 Web/application server: Tomcat-Standalone (Apache Tomcat/4.0.3) /

Re: Tomcat 4.x (Major Problem)

2007-01-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andy, Andy Moller wrote: String commonName = (String)session.getAttribute(commonName); String[] value1 = (request.getParameterValues(value_1) != null) ? request.getParameterValues(value_1) : new String[0]; String[] value2 =

RE: Tomcat 4.x (Major Problem)

2007-01-22 Thread Caldarale, Charles R
From: Andy Moller [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat 4.x (Major Problem) snip String[] value1 = (request.getParameterValues(value_1) != null) ? request.getParameterValues(value_1) : new String[0]; snip String singleVal1= value1[i]; snip

Re: mod_jk replacement?

2007-01-22 Thread JNeuhoff
Thank for your explanations. I've read all your posts to this thread and Apache-mod_jk-memory-leak, and you didn't post the server.xml config for AJP/1.3 connector, neither the essential httpd.conf directives. Here are connection-related directives from the the httpd.conf we have been using

Re: Tomcat 4.x (Major Problem)

2007-01-22 Thread Andy Moller
On 1/22/07, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andy, Andy Moller wrote: String commonName = (String)session.getAttribute(commonName); String[] value1 = (request.getParameterValues(value_1) != null) ?

Re: Tomcat 4.x (Major Problem)

2007-01-22 Thread Andy Moller
On 1/22/07, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Andy Moller [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat 4.x (Major Problem) snip String[] value1 = (request.getParameterValues(value_1) != null) ? request.getParameterValues(value_1) : new String[0]; snip

Re: mod_jk replacement?

2007-01-22 Thread Mladen Turk
JNeuhoff wrote: Thank for your explanations. If any part closes this (AJP) connection you will observe 'memory leaak', meaning thread will stay open without the clue the other part closed the connection. Maybe I mis-understood the meaning of the timeout settings because I always thought