Re: Tomcat Re-direct

2010-10-18 Thread Karl San Gabriel
How about changing TOMCAT_HOME\webapps\ROOT\WEB-INF\web.xml? === description Welcome to Tomcat /description !-- JSPC servlet mappings start -- servlet servlet-nameorg.apache.jsp.index_jsp/servlet-name

Re: Tomcat Re-direct

2010-10-18 Thread Richard da Silva
Thanks for your reply Where is that wt.jsp file? Also, my web-xml file looks like this : web-app xmlns=http://java.sun.com/xml/ns/javaee;    xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;    xsi:schemaLocation=http://java.sun.com/xml/ns/javaee

RE: Tomcat Re-direct

2010-10-18 Thread Rob Gregory
It doesn't need to be a .jsp file, just place a static index.html file into the root webapp with the following content:- !doctype html public -//w3c//dtd html 4.0 transitional//en http://www.w3.org/TR/REC-html40/strict.dtd; html head meta http-equiv=Content-Type content=text/html;

What is the lifecycle of the apache tribes channel?

2010-10-18 Thread Michael Knümann
Hi, I'm using apache tribes for messaging between nodes within a cluster. My implementation bases on the quickstart example that is part of the related documentation. At the moment there is Context Listener that starts the communication during the deployment of the webapp like this:

Common war file and multiple tomcat instances

2010-10-18 Thread shivanic
I have read through the link suggesting not to go for using one physical location of war for multiple instance of tomcat. http://www.mail-archive.com/users@tomcat.apache.org/msg73906.html http://www.mail-archive.com/users@tomcat.apache.org/msg73906.html My question is : If we have a simple

Re: Common war file and multiple tomcat instances

2010-10-18 Thread André Warnier
shivanic wrote: I have read through the link suggesting not to go for using one physical location of war for multiple instance of tomcat. http://www.mail-archive.com/users@tomcat.apache.org/msg73906.html http://www.mail-archive.com/users@tomcat.apache.org/msg73906.html My question is : If we

Re: Tomcat Re-direct

2010-10-18 Thread Pid
On 18/10/2010 06:57, Richard da Silva wrote: Hi all, I have an IDM (Identity Manager) instance running on an Apache Tomcat Server. My Tomact version is : 6.0.18 The current release is 6.0.29. Time to think about an upgrade. The http address which activates my IDM application is in the

Re: Common war file and multiple tomcat instances

2010-10-18 Thread shivanic
The war file is extracted, The application has jsp's and servlets / tag library usage along with DB connectivity. DB Connectivity is done through the resource reference in the conf file that is separate per tomcat instance. awarnier wrote: If the multiple tomcat servers are all configured to

Re: Tomcat performance under low load

2010-10-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vijay, On 10/16/2010 6:42 PM, Vijay Menon wrote: Thanks for the replies. Based on that, we did change the connectors to use executor threads. However, based on profiling the app, it turned out to be a code issue. Glad you solved your problem. Can

Re: Tomcat memory leak error launching web app in NetBeans 6.9.1

2010-10-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, On 10/16/2010 11:11 AM, Martin O'Shea wrote: Definitely seems to be when the web application in question is terminated, rather than Tomcat itself. And all indications are the listener that handles the scheduler. And I've tried another

RE: Tomcat memory leak error launching web app in NetBeans 6.9.1

2010-10-18 Thread Martin O'Shea
You're probably correct and assuming this is to do with Quartz which it seems to be, are you aware of any similar cases or remedies? -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: 18 Oct 2010 13 49 To: Tomcat Users List Subject: Re: Tomcat

Re: Tomcat 6.0.28

2010-10-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian, On 10/17/2010 4:22 AM, Brian Muha wrote: I am looking for help with the GlobalRequestProcessor... As far as I know, this is not a Tomcat class. Can you give us the fully-qualified class name? - -chris -BEGIN PGP SIGNATURE- Version:

Re: Common war file and multiple tomcat instances

2010-10-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Shivanic, On 10/18/2010 5:38 AM, shivanic wrote: I have read through the link suggesting not to go for using one physical location of war for multiple instance of tomcat. http://www.mail-archive.com/users@tomcat.apache.org/msg73906.html Note

Re: Handling Tomcat crash

2010-10-18 Thread Michael Knümann
In case of out of memory issues you can search for JVM options like -XX:+HeapDumpOnOutOfMemoryError and others. There is also an option for shell scripts to be executed in case of out of memory. regards Michael -Original Message- From: Tarun Gupta

Re: Common war file and multiple tomcat instances

2010-10-18 Thread shivanic
Thanks Chris ! That was informative - Could you please confirm what is the disadvantage of using the path attribute in the configuration file of the application? Regards Shivani Christopher Schultz-2 wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Shivanic, On 10/18/2010 5:38

The request sent by the client was syntactically incorrect ().Hi,

2010-10-18 Thread sachin_nabble
-- View this message in context: http://old.nabble.com/The-request-sent-by-the-client-was-syntactically-incorrect-%28%29.Hi%2C-tp29990181p29990181.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To

Re: Tomcat5.5 MySQL14.12 java.net.SocketException: Broken pipe

2010-10-18 Thread Steve Ryder
It has been 10 days so I am declaring that Jason's suggestion did indeed solve the problem. Thanks Jason. - Original Message - From: Steve Ryder sry...@jsrsys.com To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, October 07, 2010 10:03 AM Subject: Re: Tomcat5.5 MySQL14.12

RE: Tomcat 6.0.28

2010-10-18 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Tomcat 6.0.28 On 10/17/2010 4:22 AM, Brian Muha wrote: I am looking for help with the GlobalRequestProcessor... As far as I know, this is not a Tomcat class. Can you give us the fully-qualified class name?

Re: Tomcat 5.5.25 | Memory leak in Web Application

2010-10-18 Thread Anurag Kapur
Thanks Chris/Mark/Charles/Pid for your help with this. The issue has been fixed after using the JVM argument :- -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true I get a healthy heap utilization graph on the same web application under similar load test conditions as indicated in the

RE: Common war file and multiple tomcat instances

2010-10-18 Thread Caldarale, Charles R
From: shivanic [mailto:shivani.chan...@gmail.com] Subject: Re: Common war file and multiple tomcat instances That was informative Note that you must use expanded .war files, due to the reasons André explained previously. Could you please confirm what is the disadvantage of using the

Re: Maven and Tomcat and Eclipse

2010-10-18 Thread Malcolm Warren
Nobody's answered this, but perhaps this shouldn't really be in this mailing list. I'll try with a maven list. This problem is closed. Thanks Il 17/10/10 16.46, Malcolm Warren ha scritto: Dear All, I've spent three days reading two books about Maven, all of the Maven site, and finally

Re: Tomcat memory leak error launching web app in NetBeans 6.9.1

2010-10-18 Thread Mark Eggers
I saw a mention of this on the Quartz forums. People there seem to think it's a race condition between Quartz's scheduler shutdown and Tomcat's thread memory leak reporting. I wrote a quick Quartz scheduler (1.8.3) application. It does the following: 1. Uses the supplied listener to put a

How to configuration rails upload directory in tomcat?

2010-10-18 Thread Ray Sun
My basic requirement is upload and show image. I use rails on jruby and warble package the project as war on windows. In rails, I set my upload directory as '#{Rails.root}/public/data/users'. And it works on common rails light server like webrick. But after I deployed to tomcat, the 'public'

Re: How to configuration rails upload directory in tomcat?

2010-10-18 Thread Pid
On 18/10/2010 18:11, Ray Sun wrote: My basic requirement is upload and show image. I use rails on jruby and warble package the project as war on windows. In rails, I set my upload directory as '#{Rails.root}/public/data/users'. And it works on common rails light server like webrick. But after

Comet async timeouts in Tomcat 7

2010-10-18 Thread greenstar
Mark Thomas wrote: [March 19, 2010] Hopefully weeks. Filip has the async timeouts left to finish and then we'll need to make sure the Servlet 3.0 TCK passes. With those hurdles out of the way there will be a release. As per http://old.nabble.com/Tomcat-7-tt27962562.html#a27962663

Tomcat 6.0.29 - Windows Service - JMX

2010-10-18 Thread Leo Donahue - PLANDEVX
http://tomcat.apache.org/tomcat-6.0-doc/monitoring.html Adding JMX to Tomcat 6.0.29 and starting with the startup.bat will add a Tomcat icon and show the process ID, under the Local connection, when launching jvisualvm.exe Adding JMX to Tomcat via the tomcat6w.exe doesn't display the Tomcat

Re: Comet async timeouts in Tomcat 7

2010-10-18 Thread Pid
On 18/10/2010 18:56, greenstar wrote: Mark Thomas wrote: [March 19, 2010] Hopefully weeks. Filip has the async timeouts left to finish and then we'll need to make sure the Servlet 3.0 TCK passes. With those hurdles out of the way there will be a release. As per

Re: Tomcat 6.0.29 - Windows Service - JMX

2010-10-18 Thread Pid
On 18/10/2010 19:11, Leo Donahue - PLANDEVX wrote: http://tomcat.apache.org/tomcat-6.0-doc/monitoring.html Adding JMX to Tomcat 6.0.29 and starting with the startup.bat will add a Tomcat icon and show the process ID, under the Local connection, when launching jvisualvm.exe Adding JMX to

Re: Tomcat 6.0.29 - Windows Service - JMX

2010-10-18 Thread André Warnier
Leo Donahue - PLANDEVX wrote: http://tomcat.apache.org/tomcat-6.0-doc/monitoring.html Adding JMX to Tomcat 6.0.29 and starting with the startup.bat will add a Tomcat icon and show the process ID, under the Local connection, when launching jvisualvm.exe Adding JMX to Tomcat via the

Re: Maven and Tomcat and Eclipse

2010-10-18 Thread Ognjen Blagojevic
Here is how I use it: 1. Eclipse EE with WTP 2. Tomcat installed form .zip archive 3. Tomcat registered in Eclipse at Server view (allows clean deploy, incremental deploy, restart and debug) 4. m2eclipse plug-in (allows pom.xml - Eclipse dependency configuration) It copies jsp files to Tomcat

Re: Tomcat 6.0.29 - Windows Service - JMX

2010-10-18 Thread André Warnier
Leo Donahue - PLANDEVX wrote: -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: Tomcat 6.0.29 - Windows Service - JMX Sorry if I ask, but how are you starting Tomcat in the second case ? as a Service ? Yes. Starting Tomcat in the second case as a windows

Re: Comet async timeouts in Tomcat 7

2010-10-18 Thread greenstar
Pid * wrote: Could you be more precise about what you are asking for? Currently CometEvent.EventType.ERROR (subtype TIMEOUT) and CometEvent.EventType.END are not fired on CometProcessor.event(CometEvent) implementations. Thanks, -Jeremy Norris -- View this message in context:

Re: Tomcat memory leak error launching web app in NetBeans 6.9.1

2010-10-18 Thread Mark Thomas
On 18/10/2010 12:05, Mark Eggers wrote: I saw a mention of this on the Quartz forums. People there seem to think it's a race condition between Quartz's scheduler shutdown and Tomcat's thread memory leak reporting. That is certainly possible. There was a reason I wrote the message This is

Re: Comet async timeouts in Tomcat 7

2010-10-18 Thread Mark Thomas
On 18/10/2010 12:56, greenstar wrote: Mark Thomas wrote: [March 19, 2010] Hopefully weeks. Filip has the async timeouts left to finish and then we'll need to make sure the Servlet 3.0 TCK passes. With those hurdles out of the way there will be a release. As per

Re: Tomcat memory leak error launching web app in NetBeans 6.9.1

2010-10-18 Thread Mark Thomas
On 18/10/2010 16:56, Mark Thomas wrote: On 18/10/2010 12:05, Mark Eggers wrote: I saw a mention of this on the Quartz forums. People there seem to think it's a race condition between Quartz's scheduler shutdown and Tomcat's thread memory leak reporting. That is certainly possible.

Re: Tomcat memory leak error launching web app in NetBeans 6.9.1

2010-10-18 Thread Pid
On 18/10/2010 18:19, Martin O'Shea wrote: Thanks Mark. Your test seems to bear out the issue I'm having. For information: I have my own ServletContextListener which has a contextDestroyed method as follows: @Override public void contextDestroyed(ServletContextEvent contextEvent) {

Re: Tomcat memory leak error launching web app in NetBeans 6.9.1

2010-10-18 Thread Pid
On 18/10/2010 23:02, Mark Thomas wrote: On 18/10/2010 16:56, Mark Thomas wrote: On 18/10/2010 12:05, Mark Eggers wrote: I saw a mention of this on the Quartz forums. People there seem to think it's a race condition between Quartz's scheduler shutdown and Tomcat's thread memory leak

Re: Tomcat memory leak error launching web app in NetBeans 6.9.1

2010-10-18 Thread Mark Eggers
That's what I've read and from the code it's the default. I'm hacking together a listener that rolls the entire chain from scratch rather than depending on the Quartz-supplied listener. I'll add some debugging logging and see what happens. I might also try just creating the SchedulerFactory

Re: Tomcat memory leak error launching web app in NetBeans 6.9.1

2010-10-18 Thread Mark Eggers
Once again, I apologize for the wall of text. However, most of it is pretty quick and dirty code, so it should be easy to skim. I'm guessing the end result is harmless? It does seem like a race condition. Everything seems to work fine until shutdown. When DEBUG is set in logging, you get the

Re: How to configuration rails upload directory in tomcat?

2010-10-18 Thread Ray Sun
Thanks all your response, let me clarify: Here's my development environment: OS: Windows 7 6.1 x86 Tomcat: Apache Tomcat/6.0.26 Java: jdk1.6.0_21-b07 Jruby: jruby 1.5.1 (ruby 1.8.7 patchlevel 249) (2010-07-28 6586) (Java HotSpot(TM) Client VM 1.6.0_21) [x86-java] Here's my development step: 1.

Splitting Content Across Multiple Domains

2010-10-18 Thread Ðavîd Låndïs
I am considering creating another Host in my Tomcat server and creating another .war file with static content for that additional host. So the links to static content generated by my primary application will point to the domain name of this new host. Here are the two hostnames for example:

How to write the web.xml file in WAR package

2010-10-18 Thread ganu MailList
I need transmit one java project to the WAR package then put it under the tomcat. But I donot know how to write web.xml of this project rightly. I had written onem but error. Tomcat cannot start this servlet. Can anyone teach me how to modify it? Following is web.xml file.

Struts 2 help with Tomcat 6

2010-10-18 Thread Josh Gooding
Hello all, I'm trying to get Struts 2.2.1 working with Tomcat 6.0.29. I'm a total newbie to struts. Apache's documentation says copy the struts.jar file into the /lib directory. Since Struts 2.2.1 has no struts.jar file, does anyone happen to know which file(s) is/are supposed to be moved to

Re: Struts 2 help with Tomcat 6

2010-10-18 Thread Jason Britton
This gives a little more detail than whatever you're currently looking at http://struts.apache.org/2.2.1/docs/create-struts-2-web-application-with-artifacts-in-web-inf-lib-and-use-ant-to-build-the-application.html On Mon, Oct 18, 2010 at 7:07 PM, Josh Gooding josh.good...@gmail.comwrote:

Confidential Login

2010-10-18 Thread Simon Funnell
Hi, I have not been able to implement the following so I was wondering if it was possible or would I need a custom Realm/Authenticator implementation? I have some content that is restricted by role but not over a secure connection, however, if a user tries to access the content and is

APR Features

2010-10-18 Thread Simon Funnell
Hi, I wanted to know if it was worth using the sendfile features for small static files or is the APR already optimised for serving static content? I basically have a jsp that makes a choice between serving up a static (.html) and custom version of the page dependant on whether the user is

RE: Tomcat Re-direct

2010-10-18 Thread Richard da Silva
Hi Rob, thanks for your reply. I already have a file   index.html in my ROOTS webapps folder. Should I modify this file, by adding that code you gave me? Or should I create another file named index.html,  which would contain that code you gave me? The index-html file I have