Re: Advice about Tomcat on x86_64 architecture..

2007-07-10 Thread prt
Thank you all for your help, The second reason to use more than on tomcat is so i can stop one and the others still work. I compiled the mod_jk module on the server. In catalina.sh i set JAVA_OPTS to -server -Xms1g -Xmx1g -Xincgc I did test for maximum thread by run jsp with this code,

Re: how to set chunk size?

2007-07-10 Thread lior grinfeld
Thanks Bill, I already wrote a servlet that send chunked data, but since i saw in tomcat document that tomcat support it, i thought it is something i can configure . any way if my client support chunks i saw with wireshark that chunks size are 2000 byte with default servlet , looks to me like

Re: core_output_filter error for apache/tomcat JK connector

2007-07-10 Thread Rainer Jung
Your workers.properties don't look complete, for instance there is no worker.list in there, so all your worker definitions will not be functional. Have a look at the various timeouts mod_jk provides, especially connect_timeout and reply_timeout. You could also use apaches builtin server-status

Re: Context.xml error

2007-07-10 Thread Artur Rataj
On 7/9/07, Caldarale, Charles R [EMAIL PROTECTED] wrote: What are you actually trying to accomplish? I have a web app that has servlets on /library/*, and want tomcat to also display some directory listing under /files or something like that. Artur

Re: How to replace jar which was already loaded?

2007-07-10 Thread Johnny Kewl
This is the kind of thing tomcat cant really do for you and it depends very much on the sophistication needed. One dirty trick, is to change the web.xml file slightly, when TC gets a little quiet time it will reload the whole web app, ie when its able to shed all classes dont really

Re: How to replace jar which was already loaded?

2007-07-10 Thread Manivannan Palanichamy
Try manager url, http://localhost:8080/manager/reload?path=/app_name (app_name is your web application name. ). it will reload the specific application alone. You will be prompted for manager login, which you have already configured in tomcat/conf/tomcat-users.xml -- Manivannan.Palanichamy (@)

Re: How to replace jar which was already loaded?

2007-07-10 Thread David Delbecq
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html -- reloadable Set to true if you want Catalina to monitor classes in /WEB-INF/classes/ and /WEB-INF/lib for changes, and automatically reload the web application if a change is detected. This feature is very useful during application

Re: How do I develop a Valve?

2007-07-10 Thread Johnny Kewl
Joseph, I looked at this once and remember seeing a good article somewhere, sure if you google for Tomcat and valve you will find it. The best way is actually to download the source code and just copy an existing one that is close to what you looking for, you will then also pick up on all the

Duplicate jsessionid in cookies

2007-07-10 Thread LASSIEGE Hugo
Hi, I trace the request between client and server and I see that the jsessionid is set twice. Here is the trace : Request : POST /appli/server/servlet/appliservlet HTTP/1.1 Content-Type: text/xml; charset=ISO-8859-1 connection: keep-alive Cache-Control: no-cache

Re: How to use connection pool with tomcat 1.2.9

2007-07-10 Thread David Smith
There are configuration and coding examples on the tomcat website at http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html Take a look at that and post a follow up if you still have questions. --David Nhut Thai Le wrote: Hi Chris, Thanks for the info about the struts

Mod_JK 1.2.23 error 200

2007-07-10 Thread Phi-Long LE
folks, I currently try to load my application using OpenSTA by simulating 1000 virtual users. having a quick look within mod_jk.log, it seems that I have a problem with my load balancer... connections dropped ?? My configuration: apache 2.0.59 /mod_jk 1.2.23/tomcat 5.0.28 _LOG [Tue

Re: Mod_JK 1.2.23 error 200

2007-07-10 Thread Rainer Jung
It looks like OpenSTA uses a timeout and your responses are to slow. Add %D to your apache access log format to learn about response times. Most likely OpenSTA will tell you about timeouts too. The messages are only infos, the system works in principle, but a lot of client abort messages might

Re: core_output_filter error for apache/tomcat JK connector

2007-07-10 Thread nageshsrao
i think i goofed up while uploading the workers.properties. here is the one i just picked from the server. site is hung up means even the first page ( the login page) doesn't get displayed on the browser. it just goes on and on.. - we can not connect to apache during this behaviour -

Re: weird problem

2007-07-10 Thread David Delbecq
Hi, javax.xml.parsers.FactoryConfigurationError loads a implementation of xml parsers using a J2SE discovery mecanism. This discovery mecanism uses hints provided in .jars META-INF/ folder. Since you exploded your jar of XercesImpl, this JAR does not take part anymore in the discovery mecanism

Re: Advice about Tomcat on x86_64 architecture..

2007-07-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Titi, Titi Wangsa wrote: we have 3 instances on the same hardware we did this due to a memory/thread constraint correct me if i'm mistaken, but i've read that the more memory you allocate for you Heap, the less thread you have, we want a lot of

Re: How to use connection pool with tomcat 1.2.9

2007-07-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thai, Nhut Thai Le wrote: Thanks for the info about the struts 1.3. If you didnt say that, i would pack everything up and deploy on a school server for my demo next week. So now I gotta change back to container-managed dataSource. You can

RE: Context.xml error

2007-07-10 Thread Caldarale, Charles R
From: Artur Rataj [mailto:[EMAIL PROTECTED] Subject: Re: Context.xml error I have a web app that has servlets on /library/*, and want tomcat to also display some directory listing under /files or something like that. Directory listings are handled by the DefaultServlet, normally

RE: Spring+hibernate business logic accross multiple webapps

2007-07-10 Thread Nelson, Tracy M.
| From: axelspin [mailto:[EMAIL PROTECTED] | Sent: Monday, 09 July, 2007 13:12 | | But how about performance.. | | is it better to have multiple instances of hibernate sessionFactory | Objects | (one each web app) or to use an http call for each db query? | | Maybe transactions are handled

RE: Realm problems - security issues?

2007-07-10 Thread Propes, Barry L
sounds like the update hosed the SQL driver. -Original Message- From: Søren Blidorf [mailto:[EMAIL PROTECTED] Sent: Friday, July 06, 2007 6:12 AM To: Tomcat Users List; Struts Users Mailing List Subject: Realm problems - security issues? Hi. I am having trouble setting up my

RE: Configure customized deny page for tomcat JDBCRealm authorization

2007-07-10 Thread Propes, Barry L
throwable maybe? Like the following: error-page exception-typejava.lang.Throwable/exception-type location/chngctrl/error_server.htm/location /error-page-- error-page error-code404/error-code location/chngctrl/404error.jsp/location /error-page

customized error page for tomcat depending on code

2007-07-10 Thread Propes, Barry L
someone else posted a similar topic the other day, but I didn't want to thread-hijack so I started this new topic. Anyone know of the error code number for an Exhausted ResultSet error? Or does it just fall under the generic 500 error series? i.e. like a page not found is 404 or forbidden

How many jsessionid's is valid in my webapp

2007-07-10 Thread Søren Blidorf
Hi. Is there a why to tell how many jsessionid's is valid in my webapp. I want to use it to display the number of online users? Also is there a way to connect the username from my realm to the jsessionid so that I can display online users? BR Soren, DK

RE: customized error page for tomcat depending on code

2007-07-10 Thread Propes, Barry L
actually it seems there's no specific number for it, just under the 500 umbrella. However, is there a way to make the root cause of an error - along with its exception class -- as part of an error exception type attribute in the web.xml file? i.e. error-page

RE: customized error page for tomcat depending on code

2007-07-10 Thread Caldarale, Charles R
From: Propes, Barry L [mailto:[EMAIL PROTECTED] Subject: RE: customized error page for tomcat depending on code error-page exception-typejava.sql.SQLException.Exhausted ResultsSet/exception-type location/chngctrl/500error.jsp/location /error-page You don't really have a

RE: How many jsessionid's is valid in my webapp

2007-07-10 Thread Caldarale, Charles R
From: Søren Blidorf [mailto:[EMAIL PROTECTED] Subject: How many jsessionid's is valid in my webapp Is there a why to tell how many jsessionid's is valid in my webapp. Not sure what you mean by valid here; would active be a better term? I want to use it to display the number of online

filtering early

2007-07-10 Thread Christopher Vitale
Hello, I'd like to create a filter very, very early in the processing pipeline. I'm running tomcat 5.5.23 with jre 1.5.0. If a request comes in looking like this: POST /path;jsessionid= HTTP/1.1 cookie: JSESSIONID= . a=be=f I'd like to manipulate this request before the

SV: How many jsessionid's is valid in my webapp

2007-07-10 Thread Søren Blidorf
Hi Chuck Yes active is probably a better term. I will take a look at HttpSessionListener. Any code examples will be greatly appreciated Soren -Oprindelig meddelelse- Fra: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sendt: 10. juli 2007 19:35 Til: Tomcat Users List Emne: RE: How

RE: customized error page for tomcat depending on code

2007-07-10 Thread Propes, Barry L
I believe the webapp catches it prior to that, Chuck. And FYI, I tried it with a space and without. You would think that I'd get a malformed XML error upon startup, wouldn't you? Well, I didn't. -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, July

Re: Duplicate jsessionid in cookies

2007-07-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hugo, LASSIEGE Hugo wrote: I trace the request between client and server and I see that the jsessionid is set twice. Here is the trace : Request : POST /appli/server/servlet/appliservlet HTTP/1.1 [snip] Response : HTTP/1.1 200 OK [snip]

Re: filtering early

2007-07-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vitale, Christopher Vitale wrote: I'd like to create a filter very, very early in the processing pipeline. I'm running tomcat 5.5.23 with jre 1.5.0. If a request comes in looking like this: POST /path;jsessionid= HTTP/1.1 cookie:

RE: customized error page for tomcat depending on code

2007-07-10 Thread Caldarale, Charles R
From: Propes, Barry L [mailto:[EMAIL PROTECTED] Subject: RE: customized error page for tomcat depending on code I believe the webapp catches it prior to that, Chuck. If the webapp catches the exception, then how could you expect Tomcat to process it? And FYI, I tried it with a space and

RE: How many jsessionid's is valid in my webapp

2007-07-10 Thread Caldarale, Charles R
From: Søren Blidorf [mailto:[EMAIL PROTECTED] Subject: SV: How many jsessionid's is valid in my webapp I will take a look at HttpSessionListener. Any code examples will be greatly appreciated The Tomcat 6.0 distribution includes this one:

RE: customized error page for tomcat depending on code

2007-07-10 Thread Propes, Barry L
that last part...if it's nothing more, which doesn't surprise me, then yeah, I'll need to come up with another solution outside of catching that particular 500 error within the server.xml file. basically, Tomcat would catch it with the class name in there correctly, but would simply ignore it

RE: customized error page for tomcat depending on code

2007-07-10 Thread Propes, Barry L
Chuck, I ended up taking care of it within the servlet/jsp. Not a new page, and maybe not the most elegant thing in the world, but it does the job. --- catch(Exception SQex){ SQex.printStackTrace(); log(SQL exception:, SQex); if (SQex!=null) { out.println(pbrspan

Re: Changing tomcat version

2007-07-10 Thread Jacob Rhoden
Hi, I am by no means an expert, however generally I too have had problems running the latest versions of tomcat using Java 1.6.0. I am not sure of the reason but using Java 1.6.0_02 makes most problems go away. (I am guessing the tomcat 6 distro is compiled with java 1.6?) Try this to get

Re: filtering early

2007-07-10 Thread Bill Barker
As you've noted, this happens too early for a Valve as well. It takes place in the CoyoteAdapter, which is where the Connector hands off the request to the Servlet-Engine for processing. As it happens, in a Filter or Valve you can call request.isRequestedSessionIdFromURL() to check if the

Jasper Gobbling exceptions

2007-07-10 Thread Berglas, Anthony
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 shown on both the form and Tomcat standard output, which is

Re: weird problem

2007-07-10 Thread kz
You are right. If I remove xercesImpl.jar from the class path then it works also. But there is another observation which is weird. Its that if I have my application anywhere on C: drive then it works. It also works if I have it on D:\Program Files\. If I have it on D:\ then it gives this error.