Broken Pipe?

2007-07-25 Thread Kristian Rink
Folks; a few days ago, on one of our tomcat servers catalina.out started filling up with messages like this: 25.07.2007 08:16:43 org.apache.jk.core.MsgContext action WARNUNG: Error sending end packet java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native

Re: Tomcat consuming entire CPU.

2007-07-25 Thread Juha Laiho
Mark Stevens wrote: I don't think we are using sendfile, to be honest, I've had no involvement in development of the code, I'm just requested to look after the server. I'm going to try and work out how to read thread dumps, hopefully this will help, I'm finding my X11 connection too slow

tomcat-4.1 kaffe; IllegalArgumentException: Attribute must be readable or writable

2007-07-25 Thread Craig Skinner
I have a bog standard tomcat-4.1 kaffe install on OpenBSD 4.0 i386. dmesg head shows that the box has little memory, JAVA_OPTS tuned to suit. Getting this exception (no search engine hits) as below, then tomcat bails out, any pointers? (I fiddled about in catalina.policy with attributes, but no

Re: MySql Connector

2007-07-25 Thread Mohammed Zabin
For test purposes, i have wrote the following code as a java program and it worked fine, but when I tried it in a jsp page i got the following error: Class.forName(com.mysql.jdbc.Driver); String url = jdbc:mysql://localhost:3306/exam; Connection con = DriverManager.getConnection(url,root, exam);

Re: KLUDGE: WebDav - mapping question?

2007-07-25 Thread Johnny Kewl
Guys I like this so much, I couldnt wait for a patch, or possible fix. The problem with the above KLUDGE is that the fix is internal to TC, and if you try incorporate it, you will find you have to pull in half of Tomcats jars to make it work. Its never a good idea to include those jars directly

Tomcat virtuelle server

2007-07-25 Thread Natursprung
Hi there, i have a problem with a virtuall Server on Tomcat i want redirect 2 different DNS-names to one Tomcat on one server. The DNS-names has 2 different destinations inside the webapps-directory. We can´t not insert the whole path in the dns, so i need a other sulution for my problem. thx

Re: MySql Connector

2007-07-25 Thread David Smith
Your stack trace appears to be incomplete. Could you post more? It appears to be a compile error and should cite the code in question. --David Mohammed Zabin wrote: For test purposes, i have wrote the following code as a java program and it worked fine, but when I tried it in a jsp page i

Re: FW: unsubscribe

2007-07-25 Thread David Smith
Matt Hanger wrote: please remove this address - I've had no success with the blank email to [EMAIL PROTECTED] Please post this request to user-owner (at) tomcat.apache.org. One of the list owners will be happy to take care of this for you. --David

Re: FW: unsubscribe

2007-07-25 Thread David Smith
David Smith wrote: Matt Hanger wrote: please remove this address - I've had no success with the blank email to [EMAIL PROTECTED] Please post this request to user-owner (at) tomcat.apache.org. One of the list owners will be happy to take care of this for you. Ooops... it should be

Re: MySql Connector

2007-07-25 Thread Mohammed Zabin
This is all the exception message, I looked inside logs folder, i found an empty file, it continas nothing :~ On 7/25/07, David Smith [EMAIL PROTECTED] wrote: Your stack trace appears to be incomplete. Could you post more? It appears to be a compile error and should cite the code in

Re: MySql Connector

2007-07-25 Thread David Smith
I'm starting to think there's something really funny (ie broken) with your tomcat install. Could you clean install another instance of tomcat (preferably downloaded from the tomcat website) and check the code there? --David Mohammed Zabin wrote: This is all the exception message, I looked

Re: MySql Connector

2007-07-25 Thread Mohammed Zabin
I did this, but i think that there is an option to enable logging, do u know it? On 7/25/07, David Smith [EMAIL PROTECTED] wrote: I'm starting to think there's something really funny (ie broken) with your tomcat install. Could you clean install another instance of tomcat (preferably

COMET with Tomcat 6.0.13 causes 405 Error

2007-07-25 Thread FelixG
Hi everyone, I am trying to get the Adv. IO feature of Tomcat 6.0.13 (running on a sparc sun solaris 8 with JDK6) working. After searching the mailing-lists I changed the connector in server.xml to use the NioProtocol: Connector port=8080 protocol=org.apache.coyote.http11.Http11NioProtocol

Re: Tomcat virtuelle server

2007-07-25 Thread Kristian Rink
Hi there; [Natursprung [EMAIL PROTECTED] @ Wed, 25 Jul 2007 11:14:16 +0200] ... i want redirect 2 different DNS-names to one Tomcat on one server. The DNS-names has 2 different destinations inside the webapps-directory. We can´t not insert the whole path in the dns, so i need a other sulution

Half rendered pages with mod_jk and libtcnative

2007-07-25 Thread Tom
Hello, We've been having problems where half complete pages are being returned from an Apache2--mod_jk--Tomcat setup when the native Apache Tomcat libraries are used. The problem is easily reproducible with large pages where the content is stopped at random points. Sometimes mod_jk detects a

Re: WebDav - mapping question?

2007-07-25 Thread David Delbecq
Hi Johnny, As far as i know, tomcat/webdav is just a simple webdav implementation that allow access to local file system. Slide webdav is file server that provide a webdav interface. It does not store the submitted file as plain file on server, but on stores (typically a database) that includes

Re: Write custom valve?

2007-07-25 Thread Johnny Kewl
Doug, I have never tried this, so as usual, I guessing here. I dont think you are going to come right with the standard valves, nor do I think you should try make a custom valve. Rather look at filters, they not much more difficult to make than a normal servlet, and you will find tons of stuff

Re: Half rendered pages with mod_jk and libtcnative

2007-07-25 Thread Rainer Jung
Concerning the nested pages: have a look at the worker attribute recovery_options on http://tomcat.apache.org/connectors-doc/reference/workers.html You might like to set this to 3 or 7. Concerning tc-native: you might try version 1.1.10, which is available as a separate download. Are there

Re: MySql Connector

2007-07-25 Thread David Smith
Not sure ... you could take a look at http://tomcat.apache.org/tomcat-5.5-doc/logging.html. Tomcat's always provided a complete stack and cited the code in error for me without any changes in logging config. You could also post the complete jsp you are using for a test. See if the error

Re: COMET with Tomcat 6.0.13 causes 405 Error

2007-07-25 Thread Sebastiaan van Erk
Check to make sure that it's really running the Http11NioProtocol, it should say so in the logs when tomcat starts. Furthermore, what kind of environment are your running in? Make sure that the CometProcessor class is not in your classpath twice, This can be caused by build tools which use

Re: Jasper Gobbling exceptions

2007-07-25 Thread Rob Adamson
On 11/07/07, Berglas, Anthony [EMAIL PROTECTED] wrote: When I call a JSP directly via web.xml exceptions provide a number of root cause stack traces the second or third of which indicates what the exception actually was and, with some deciphering, which .tag file generated it. The trace is

Re: Half rendered pages with mod_jk and libtcnative

2007-07-25 Thread Tom
On 7/25/07, Rainer Jung [EMAIL PROTECTED] wrote: Concerning tc-native: you might try version 1.1.10, which is available as a separate download. Are there aditional log messages in the jk log? There were no additional logs and in most cases was failing silently. I've just tried out 1.1.10

change context path with mod_jk

2007-07-25 Thread Christian Schleif
Hi, I'm searching for a solution to mount a web app e.g. example.org:8080/webapp to webapp.example.org I know how to mount it like example.org/webapp or webapp.example.org/webap, but how can I change the contextpath for this domain. Just changing the context path of webapp will not fit

Re: change context path with mod_jk

2007-07-25 Thread Rainer Jung
If you are using Apache httpd as the web server, have a look at mod_rewrite. Regards, Rainer Christian Schleif wrote: Hi, I'm searching for a solution to mount a web app e.g. example.org:8080/webapp to webapp.example.org I know how to mount it like example.org/webapp or

mod_jk error detection

2007-07-25 Thread Scott McClanahan
I am installing mod_jk 1.2.23 in a load balancing configuration between apache 2.0.52 and tomcat 5.0.28. I am trying to understand how the mod_jk error detection actually works. In the documentation socket_timeout directive defaults to zero (infinite waiting) but the retries directive defaults

RE: Bean and Servlet

2007-07-25 Thread Caldarale, Charles R
From: Mohammed Zabin [mailto:[EMAIL PROTECTED] Subject: Re: Bean and Servlet I will tell you the procedure; At each time the user clickes the first page in the site, a random numbers will be generated and stored in the session. You're missing the point. The user may click multiple times

RE: tomcat-4.1 kaffe; IllegalArgumentException: Attribute must be readable or writable

2007-07-25 Thread Caldarale, Charles R
From: Craig Skinner [mailto:[EMAIL PROTECTED] Subject: tomcat-4.1 kaffe; IllegalArgumentException: Attribute must be readable or writable I have a bog standard tomcat-4.1 kaffe install on OpenBSD 4.0 i386. What happens when you use a real JVM? - Chuck THIS COMMUNICATION MAY CONTAIN

RE: Tomcat virtuelle server

2007-07-25 Thread Caldarale, Charles R
From: Kristian Rink [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat virtuelle server [Natursprung [EMAIL PROTECTED] @ Wed, 25 Jul 2007 11:14:16 +0200] ... i want redirect 2 different DNS-names to one Tomcat on one server. The DNS-names has 2 different destinations inside the

Re: COMET with Tomcat 6.0.13 causes 405 Error

2007-07-25 Thread Filip Hanik - Dev Lists
your servlet must implement the CometProcessor interface Filip FelixG wrote: Hi everyone, I am trying to get the Adv. IO feature of Tomcat 6.0.13 (running on a sparc sun solaris 8 with JDK6) working. After searching the mailing-lists I changed the connector in server.xml to use the

Re: tomcat-4.1 kaffe; IllegalArgumentException: Attribute must be readable or writable

2007-07-25 Thread Craig Skinner
On Wed, Jul 25, 2007 at 09:06:39AM -0500, Caldarale, Charles R wrote: From: Craig Skinner [mailto:[EMAIL PROTECTED] Subject: tomcat-4.1 kaffe; IllegalArgumentException: Attribute must be readable or writable I have a bog standard tomcat-4.1 kaffe install on OpenBSD 4.0 i386. What

RE: tomcat-4.1 kaffe; IllegalArgumentException: Attribute must be readable or writable

2007-07-25 Thread Caldarale, Charles R
From: Craig Skinner [mailto:[EMAIL PROTECTED] Subject: Re: tomcat-4.1 kaffe; IllegalArgumentException: Attribute must be readable or writable Not an option: Sun does not release a JKD for BSD. If you can upgrade to Tomcat 5.5, you only need a JRE, not a JDK, and there are

Re: mod_jk error detection

2007-07-25 Thread Rainer Jung
Hi, good questions. First of all: I just today wrote a new docs page about timeouts. We are soon releasing 1.2.24 which contains this page. You can already look at it under http://people.apache.org/~rjung/mod_jk-dev/docs/ (The new page is named Timeouts and part of the group Generic Howtos.

Problem in Apache Tomcat server due to Oracle 10g XE

2007-07-25 Thread senthil gugan
Hi all, I have this problem, I am using Apache Tomcat server and the Oracle XE Database in my linux suse OS. Before installing the Oracle XE, my apache tomcat server works well. But after the installation of the Oracle XE, I had the following error. This is how I start the tomcat:

Re: MySql Connector

2007-07-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohammed, Mohammed Zabin wrote: I have the following error: org.apache.jasper.JasperException: Unable to compile class for JSP: Uhh... you have a syntax error in your JSP code. Fix that, then we'll get back to configuration issues. You didn't

Re: tomcat-4.1 kaffe; IllegalArgumentException: Attribute must be readable or writable

2007-07-25 Thread Craig Skinner
On Wed, Jul 25, 2007 at 09:37:21AM -0500, Caldarale, Charles R wrote: Not an option: Sun does not release a JKD for BSD. If you can upgrade to Tomcat 5.5, you only need a JRE, not a JDK, Oh? That's a new one on me. I thought that JSP's are complied at run time. I have jikes installed. and

Re: MySql Connector

2007-07-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohammed, Mohammed Zabin wrote: I did this, but i think that there is an option to enable logging, do u know it? Logs should go to catalina.out, or to the console if you're using windows and startup.bat instead of a service. - -chris -BEGIN

RE: Problem in Apache Tomcat server due to Oracle 10g XE

2007-07-25 Thread Propes, Barry L
I think XE by default ( I think I recall reading this on the Oracle forum, and I'll search for it to verify) uses port 8080 on installation! -Original Message- From: senthil gugan [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 10:06 AM To: users@tomcat.apache.org Subject:

RE: Problem in Apache Tomcat server due to Oracle 10g XE

2007-07-25 Thread Propes, Barry L
yes, sentil, I was right. By default, it does install on port 8080. But supposedly that can be altered. http://forums.oracle.com/forums/thread.jspa?threadID=337610start=0tstart=0 -Original Message- From: senthil gugan [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 10:06 AM To:

RE: Problem in Apache Tomcat server due to Oracle 10g XE

2007-07-25 Thread senthil gugan
Hi Barry L, Thanks for your reply, I will try this and get back to you. Thanks, Senthil. Propes, Barry L [EMAIL PROTECTED] wrote: yes, sentil, I was right. By default, it does install on port 8080. But supposedly that can be altered.

RE: tomcat-4.1 kaffe; IllegalArgumentException: Attribute must be readable or writable

2007-07-25 Thread Caldarale, Charles R
From: Craig Skinner [mailto:[EMAIL PROTECTED] Subject: Re: tomcat-4.1 kaffe; IllegalArgumentException: Attribute must be readable or writable If you can upgrade to Tomcat 5.5, you only need a JRE, not a JDK, Oh? That's a new one on me. I thought that JSP's are complied at run time.

RE: Problem in Apache Tomcat server due to Oracle 10g XE

2007-07-25 Thread Propes, Barry L
ok, good luck. -Original Message- From: senthil gugan [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 10:28 AM To: Tomcat Users List Subject: RE: Problem in Apache Tomcat server due to Oracle 10g XE Hi Barry L, Thanks for your reply, I will try this and get back to you.

Server Security

2007-07-25 Thread Michael McQuade
Hi folks, hope someone can offer me a little bit of advice. Im running Tomcat 5.0.28 on a home server I want to allow people to look at a product I'm developing over the web But I am worried about my server being hacked Can anyone offer me some tips on how to protect it.

Re: Problem in Apache Tomcat server due to Oracle 10g XE

2007-07-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Senthil, senthil gugan wrote: Hi all, I have this problem, I am using Apache Tomcat server and the Oracle XE Database in my linux suse OS. Before installing the Oracle XE, my apache tomcat server works well. But after the installation of the

RE: Problem in Apache Tomcat server due to Oracle 10g XE

2007-07-25 Thread Propes, Barry L
Chris, I think in this case it did, because he was getting a message about Oracle already running at port 8080, and his Tomcat install previously ran at the same port. So therefore, after his Oracle install, he couldn't run TC any longer. I assume Oracle XE was running on startup, and he

JAAS logout

2007-07-25 Thread lmk
helloo, My quation is about how to remove jaas Principal from the Subject.??. I try to let user to sign out the application..I redirect to the jsp that includes: session.invalidate() but when a try to relogin a have an error (j_security_check not found), I still have access on application

Re: tomcat-4.1 kaffe; IllegalArgumentException: Attribute must be readable or writable

2007-07-25 Thread Craig Skinner
On Wed, Jul 25, 2007 at 10:31:19AM -0500, Caldarale, Charles R wrote: If you can upgrade to Tomcat 5.5, you only need a JRE, not a JDK, Oh? That's a new one on me. I thought that JSP's are complied at run time. They are, but TC 5.5 and above come with Jasper built in, and thus do not

Tomcat5.0.28 character encodingg problem

2007-07-25 Thread Joe Russo
I am getting the following error in the display of the JSP. To give a little history, this application I am supporting, at the time the developers thought they needed to encode the characters to UTF-8 into our Oracle DB. The developers were unaware they could have allowed the DB Driver convert

Re: Server Security

2007-07-25 Thread Michael McQuade
U, also, can Tomcat be run on Port 80? - Original Message - From: Michael McQuade [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, July 25, 2007 11:38 AM Subject: Server Security Hi folks, hope someone can offer me a little bit of advice. Im

Re: Server Security

2007-07-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mike, Michael McQuade wrote: Im running Tomcat 5.0.28 on a home server I want to allow people to look at a product I'm developing over the web But I am worried about my server being hacked Can anyone offer me some tips on how to

[SOLVED] Re: COMET with Tomcat 6.0.13 causes 405 Error

2007-07-25 Thread FelixG
It was like Sebastiaan assumed: I had the catalina.jar included in my webapp after building. After removing it, the error was gone. - Thanks for the fast help.. Regards, felix Sebastiaan van Erk wrote: Check to make sure that it's really running the Http11NioProtocol, it should say so in

Re: Tomcat5.0.28 character encodingg problem

2007-07-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, Joe Russo wrote: I am in the process of converting from using JRUN to Tomcat Good for you! Welcome to the community. I have ran into the problem where these funky symbols are displaying. I can not find any stack traces that would explain

Re: Tomcat5.0.28 character encodingg problem

2007-07-25 Thread Tim Funk
http://tomcat.apache.org/faq/misc.html#utf8 And you should first start with in server.xml: Connector ... URIEncoding=UTF-8 .../ -Tim Joe Russo wrote: I am getting the following error in the display of the JSP. To give a little history, this application I am supporting, at the time the

Re: Logging all data sent to client

2007-07-25 Thread Karel V Sedlacek
Thanks Ben! Heres what I have put together, use at your own risk. any comments welcome. HttpServletResponseLoggingFilter.java public class HttpServletResponseLoggingFilter implements Filter { private Logger mLogger = Logger.getLogger(HttpServletResponseLoggingFilter.class);

Re: Tomcat consuming entire CPU.

2007-07-25 Thread Mark Stevens
Thanks very much all for the advice, I've managed to get my thread dumps nicely formatted side by side in HTML using TDAN (Thread Dump Analyzer) I'll work out how to then get thread ID's using 'ps' and then should be in business. I'm also going to speak with DBA about limiting

Re: Logging all data sent to client

2007-07-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ben, I might change your LoggingHttpServletResponse slightly. I think it's more complicated than necessary. ben short wrote: LoggingHttpServletResponse.java class LoggingHttpServletResponse extends HttpServletResponseWrapper { private

Re: mod_jk error detection

2007-07-25 Thread Scott McClanahan
On Wed, 2007-07-25 at 17:00 +0200, Rainer Jung wrote: Hi, good questions. First of all: I just today wrote a new docs page about timeouts. We are soon releasing 1.2.24 which contains this page. You can already look at it under http://people.apache.org/~rjung/mod_jk-dev/docs/ (The new

Performance problem on HTTP PUT of large binary data

2007-07-25 Thread Daniel Hagen
Dear All, I am currently developing an application that handles uploads of big files using HTTP PUT. The I/O part of the server application can be broken down to (not literally spoken, just to make the working clear): public void doPut(HttpServletRequest request, HttpServletResponse response)

Re: tomcat-4.1 kaffe; IllegalArgumentException: Attribute must be readable or writable

2007-07-25 Thread Markus Schönhaber
Caldarale, Charles R wrote: From: Craig Skinner [mailto:[EMAIL PROTECTED] Subject: Re: tomcat-4.1 kaffe; IllegalArgumentException: Attribute must be readable or writable If you can upgrade to Tomcat 5.5, you only need a JRE, not a JDK, Oh? That's a new one on me. I thought that JSP's are

Re: Server Security

2007-07-25 Thread Steve Ochani
On 25 Jul 2007 at 11:48, Michael McQuade wrote: U, also, can Tomcat be run on Port 80? Yes you can but be aware that a lot of ISPs (for home use anyways) block incoming connections on port 80. - Original Message - From: Michael McQuade [EMAIL PROTECTED] To: Tomcat Users

RE: [Apache2.2.4/modjk/Tomcat6.0.13] redirect url problem

2007-07-25 Thread Dan Beaulieu
The reason was I had my rewrite directives in httpd.conf, when they should have been nested under the virtual host in httpd-ssl.conf. Guess I forgot to mention/remember I am using ssl. So I've got it working, thank you for your help, but it's still unclear why we can't point two different paths at

Re: mod_jk error detection

2007-07-25 Thread Rainer Jung
Hi Scott, I thoroughly enjoyed the updated docs. It is just what I needed. I just want to mention a few inferences I have now from reading it. Thanks. In a load balanced setup using connect_timeout and prepost_timeout, this will protect me from sending either newly established connections

Re: Write custom valve?

2007-07-25 Thread Doug Black
Filip Hanik - Dev Lists devlists at hanik.com writes: take the source code of the RemoteAddrValve and start there. Basically, in the valve is request.getPrincipal returns null, then redirect them to a URL that is protected by your web.xml and requires a login. remember to not trigger the

Re: Tomcat5.0.28 character encodingg problem

2007-07-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nathan, Nathan Hook wrote: - Set the meta type in each and every jsp to be utf-8. Now, most browsers will ignore this value from my understanding, but it shouldn't hurt to add it. Really? The HTTP header should override any META tag, but the

Re: Images in ROOT/images are not found

2007-07-25 Thread Edward Mckee
That's a good idea but it doesn't look like it. Here are all of my images directories under tomcat. ./server/webapps/host-manager/images ./server/webapps/manager/images ./webapps/admin/images ./webapps/balancer/images ./webapps/jsp-examples/images ./webapps/ROOT/archived/images

Re: debug

2007-07-25 Thread Scott McClanahan
On Wed, 2007-07-25 at 22:19 +0200, Rainer Jung wrote: Hi Scott, your post subject is a little generic :) The code shows, that the various realm classes only log additional things for the following debug values: DataSourceRealm.java: debug = 2 JAASMemoryLoginModule.java: debug0

Re: mod_jk error detection

2007-07-25 Thread Scott McClanahan
Thanks, so much! I'd like to continue this thread a bit more because of helpful I think it will be for everyone using mod_jk. On Wed, 2007-07-25 at 22:00 +0200, Rainer Jung wrote: Hi Scott, I thoroughly enjoyed the updated docs. It is just what I needed. I just want to mention a few

Re: debug

2007-07-25 Thread Rainer Jung
Hi Scott, your post subject is a little generic :) The code shows, that the various realm classes only log additional things for the following debug values: DataSourceRealm.java: debug = 2 JAASMemoryLoginModule.java: debug0 JDBCRealm.java: debug = 2 JNDIRealm.java: debug 1, 2, 3, 4

Re: Tomcat5.0.28 character encodingg problem

2007-07-25 Thread Nathan Hook
I think my statement of most browsers will ignore this value might have been a tad bit on the excessive side upon further reading and i was hoping to have that read as don't only rely on using the meta tag. From my understanding there are broswers where they can set their own content type no

RE: Tomcat4.1

2007-07-25 Thread Aleksey Dayen
Right now we using TomCat 4.1 with JDK 1.1. Would our TomCat version work if we update to J2SDK 5.0 with Update 6? Please help!!! Many thanks -Original Message- From: Nathan Hook [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 4:55 PM To: users@tomcat.apache.org Subject:

Re: Tomcat4.1

2007-07-25 Thread Hassan Schroeder
On 7/25/07, Aleksey Dayen [EMAIL PROTECTED] wrote: Right now we using TomCat 4.1 with JDK 1.1. Would our TomCat version work if we update to J2SDK 5.0 with Update 6? 1. Hijacking threads, especially without even removing the previous content, is rude. 2. Why ask about Update 6 when that

Re: mod_jk error detection

2007-07-25 Thread Scott McClanahan
On Wed, 2007-07-25 at 22:40 +0200, Rainer Jung wrote: Scott McClanahan wrote: Thanks, so much! I'd like to continue this thread a bit more because of helpful I think it will be for everyone using mod_jk. That one, reply_timeout, is not really meant for high speed detection. Usually

Re: mod_jk error detection

2007-07-25 Thread Rainer Jung
One obvious thing that confuses me and could be changed is the Advanced worker directives table. It includes directives that are applicable to both load balancer workers and real workers and only distinguishes which directives are used for which worker when it is to be used for a load balancer

Re: Tomcat5.0.28 character encodingg problem

2007-07-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Aleksey, Aleksey Dayen wrote: Right now we using TomCat 4.1 with JDK 1.1. Wow, really? I would think that JDK 1.2 would be the bare minimum for Tomcat 4.1. Would our TomCat version work if we update to J2SDK 5.0 with Update 6? Maybe. IIRC,

RE: Tomcat5.0.28 character encodingg problem

2007-07-25 Thread Aleksey Dayen
Right now we using TomCat 4.1 with JDK 1.1. Would our TomCat version work if we update to J2SDK 5.0 with Update 6? Please help!!! Many thanks -Original Message- From: Nathan Hook [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 4:55 PM To: users@tomcat.apache.org Subject:

Re: mod_jk error detection

2007-07-25 Thread Rainer Jung
Scott McClanahan wrote: Thanks, so much! I'd like to continue this thread a bit more because of helpful I think it will be for everyone using mod_jk. That one, reply_timeout, is not really meant for high speed detection. Usually you've got an ap, that every now and then needs 10 or 20 seconds

Re: Logging all data sent to client

2007-07-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ben, ben short wrote: I ripped and altered the code of the Compression Filter servlet example from tomcat 5.5.23. One other note: since you were using a compression filter as an example, I can see why they didn't do the whole writer thing. A

Re: Logging all data sent to client

2007-07-25 Thread ben short
Hi Christopher, I ripped and altered the code of the Compression Filter servlet example from tomcat 5.5.23. There is no LoggingServletWriter, if you look in the original getWriter method the ServletOutputStream is wrapped by a PrintWriter. So your proposed change of the getWriter method to the

debug

2007-07-25 Thread Scott McClanahan
I've inherited a tomcat 5.0.28 server setup to use ldap as an authentication realm. In the server.xml I see this: Realm className=org.apache.catalina.realm.JNDIRealm debug=99 What are valid values for debug within a realm? Currently a massive amount of ldap lookup and connection details are

Re: Images in ROOT/images are not found

2007-07-25 Thread David Smith
Do you happen to have a webapp named images? If so, that's probably receiving your request instead. --David Edward Mckee wrote: When I try to load images in ROOT/images I get a requested resource (/images/submit.jpg) is not available. error If I move this image to ROOT/image it works.

kerberos,JAAS, and container managed security

2007-07-25 Thread joe bob
Hi, I would like to use kerberos in conjunction with container managed security. I have configured a JAASRealm with Sun's kerberos LoginModule and a basic scenario works fine. I.e, if a user accesses a protected URL, he is challenged with a login screen. The user/password he enters is

RE: Tomcat5.0.28 character encodingg problem

2007-07-25 Thread Aleksey Dayen
thanks chris, our client doesn't want to upgrade to tomecat 5.5 - that's our problem. Aleksey From: Christopher Schultz [EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 5:55 PM To: Tomcat Users List Subject: Re: Tomcat5.0.28 character encodingg problem

Re: Images in ROOT/images are not found

2007-07-25 Thread Edward Mckee
David, I relookedat the webapps directory and I was mistaken. There is a images directory. I removed it and everything is now working. Thanks for getting me pointed in the write direction. Ed On Jul 25, 2007, at 3:01 PM, David Smith wrote: Do you happen to have a webapp named images?

Re: Performance problem on HTTP PUT of large binary data

2007-07-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: Performance problem on HTTP PUT of large binary data - From java.io.InputStream javadoc: Reads some number of bytes from the input stream and

Comet example at Tomcat 6

2007-07-25 Thread john x
Hi! I just run the chat example ,but ,it seems did not work ; the code seems can't reach the line begin(event, request, response) please help me fix that,thanks; john

Re: Logging all data sent to client

2007-07-25 Thread ben short
One other note: since you were using a compression filter as an example, I can see why they didn't do the whole writer thing. A compressed stream cannot use a Writer since the output must be binary. A writer primarily handles line-ending conversion which would break any compression output

Images in ROOT/images are not found

2007-07-25 Thread Edward Mckee
When I try to load images in ROOT/images I get a requested resource (/images/submit.jpg) is not available. error If I move this image to ROOT/image it works. The the file is in the images directory webapps directory is webapps/ ROOT/images/submit.jpg The file is in the images and image

Tomcat with 8 GB memory

2007-07-25 Thread lightbulb432
If you have a gigantic server with something like 8 GB of memory, what would be the best way to run Tomcat 6 on it? One instance, multiple instances, or divide it up into two or more virtualized servers each with one instance? Is Tomcat meant to run as one instance with that much memory, or is

Re: Something other than localhost on OS X

2007-07-25 Thread Colin H
Thanks Hassan - just couldn't get it working - figure there must be some reason that 8080 isn't accessible - the firewall is off though in system preferences. I'm sure it is something extremely simple, but i got sick of trying to find out what it was, so I followed these instructions (roughly)

Re: Logging all data sent to client

2007-07-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ben, ben short wrote: I ripped and altered the code of the Compression Filter servlet example from tomcat 5.5.23. Okay. I haven't seen that example; I was just commenting on your post. There is no LoggingServletWriter, if you look in the

RE: Tomcat5.0.28 character encodingg problem

2007-07-25 Thread Russo, Joe
I want to thank Chris, Tim, and Nathan for your advice. I will try the suggestions and use it to come up with a solution hopefully. Thanks again. Joe -Original Message- From: Nathan Hook [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 2:13 PM To: users@tomcat.apache.org

Re: Tomcat5.0.28 character encodingg problem

2007-07-25 Thread Nathan Hook
Both Chris and Tim are giving great advice. We're actually just trying to internationalize our application for our next major release. Here are the things we've learned. - You have to change the URIEncoding on your Tomcat Connector in your server.xml (as Tim pointed out). We are using

RE: Performance problem on HTTP PUT of large binary data

2007-07-25 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: Performance problem on HTTP PUT of large binary data - From java.io.InputStream javadoc: Reads some number of bytes from the input stream and stores them into the buffer array b. The number of bytes actually read is

Re: mod_jk error detection

2007-07-25 Thread Scott McClanahan
On Wed, 2007-07-25 at 17:00 +0200, Rainer Jung wrote: Hi, good questions. First of all: I just today wrote a new docs page about timeouts. We are soon releasing 1.2.24 which contains this page. You can already look at it under http://people.apache.org/~rjung/mod_jk-dev/docs/ (The