Re: Different behavior between Tomcat service installation & Tomcat console mode

2011-08-01 Thread 刘铎
Are the two tomcat configurations the same? Check the server.xml,web.xml,context.xml and other configuration files of the tomcat. 2011/8/1 Alexandre Terrasson : > Hi guys, > here my problem : > > I have a web application that use a Jdbc driver/connection to connect to a > proprietary application.

RE: HOW TO: re-deploy or undeploy a webapp when additional files are added after initial deployment

2011-08-01 Thread Bob DeRemer
Also - I just looked at my local tomcat 6.0.32 server.xml and it has JreMemoryLeakPreventionListener on the Server element. The implicit disabling of URL caching this is supposed to do must not have an effect on this scenario. As an aside, when I used antiJARLocking + antiResourceLocking on the

Re: Problem with threads in stage Service (Tomcat 7.0.14)

2011-08-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alejandro, On 7/29/2011 11:55 AM, Alejandro Henao González wrote: > public class HTMLEncoder { private static Map mapChar2HTMLEntity; > > private final static char [] characters = { > 'á','ú','ó','é','í','ñ','Á','Ú','Ó','É','Í','°','ü' }; private fi

RE: HOW TO: re-deploy or undeploy a webapp when additional files are added after initial deployment

2011-08-01 Thread Bob DeRemer
Hi Mark, Actually, in the logs it does tell me that ExpandWar deleteDir failed. This is because my "extensions" I have are actually JAR files that we're dynamically loaded so we don't have to restart the webapp. I'm using the addUrl hack, but by casting the main webapp's Thread.currentThread(

Re: Tomocat 6.0.20 Comet END Event *NOT RAISED* when connection is terminated

2011-08-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sudeep, On 8/1/2011 2:47 PM, Sudeep Pradhan wrote: > Stale as in, It gives me response which was suppose to be given for > the previous request (it gives me xml(previous) response instead of > json(current)). That's not what you said before. Can yo

Re: Tomcat 7: Why is JDK needed ?

2011-08-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bobi, On 8/1/2011 7:18 PM, Bobi St wrote: >> The message is correct as stated; when JAVA_HOME is used, it >> *must* point to a JDK. If you want a specific JRE, you must set >> JRE_HOME, not JAVA_HOME. > > Well, if JDK is not needed anymore, why both

Re: Tomcat 7: Why is JDK needed ?

2011-08-01 Thread David Kerber
On 8/1/2011 7:18 PM, Bobi St wrote: --- Caldarale, Charles R schrieb am Mo, 1.8.2011: it is obsolete in a way, because setting JAVA_HOME to JRE gives the message : "NB: JAVA_HOME should point to a JDK not a JRE". The message is correct as stated; when JAVA_HOME is used, it *must* point to a

RE: Tomcat 7: Why is JDK needed ?

2011-08-01 Thread Bobi St
--- Caldarale, Charles R schrieb am Mo, 1.8.2011: > it is obsolete in a way, because setting JAVA_HOME to JRE  > gives the message : "NB: JAVA_HOME should point to a JDK > not a JRE". The message is correct as stated; when JAVA_HOME is used, it *must* point to a JDK.  If you want a specific

Re: APR connector pollTime defaults are strange in tomcat6/7

2011-08-01 Thread Darius D.
My goal with this thread was to rise awareness with APR connector poll time defaults, as some users will not really bother investigating why their servers have such high context switches / timer interrupts. There is no "problem" here as Tomcat is working fine with defaults. There should be no ha

RE: Tomcat 7: Why is JDK needed ?

2011-08-01 Thread Caldarale, Charles R
> From: Bobi St [mailto:temporaryb...@yahoo.de] > Subject: Re: Tomcat 7: Why is JDK needed ? > it is obsolete in a way, because setting JAVA_HOME to JRE > gives the message : "NB: JAVA_HOME should point to a JDK > not a JRE". The message is correct as stated; when JAVA_HOME is used, it *must*

Re: Tomcat 7: Why is JDK needed ?

2011-08-01 Thread Bobi St
Hi, --- Mark Thomas schrieb am Mo, 1.8.2011: On 01/08/2011 22:27, Bobi St wrote: > So we dont need JDK_HOME, and the message Correct. >> Neither the JAVA_HOME nor the JRE_HOME environment variable is defined >> At least one of these environment variable is needed to run this program >

Re: Tomcat 7: Why is JDK needed ?

2011-08-01 Thread Mark Thomas
On 01/08/2011 22:27, Bobi St wrote: > Thanks to all for the replies. > So we dont need JDK_HOME, and the message Correct. >> Neither the JAVA_HOME nor the JRE_HOME environment variable is defined >> At least one of these environment variable is needed to run this program > is obsolete. W

Re: Tomcat 7: Why is JDK needed ?

2011-08-01 Thread Bobi St
Thanks to all for the replies. So we dont need JDK_HOME, and the message > Neither the JAVA_HOME nor the JRE_HOME environment variable is defined > At least one of these environment variable is needed to run this program is obsolete. Best regards, From: Bobi St Date: Thu, 21 Jul 2011 19:5

Re: HOW TO: re-deploy or undeploy a webapp when additional files are added after initial deployment

2011-08-01 Thread Chema
2011/8/1 Bob DeRemer : > Thanks, but I need to do this in a production environment, where we're > deploying/re-deploying a WAR and there is no eclipse IDE.  In addition, I am > dynamically adding extensions to our webapp without having to restart our > webapp, which is what republishing from Ecl

Re: HOW TO: re-deploy or undeploy a webapp when additional files are added after initial deployment

2011-08-01 Thread Mark Thomas
On 01/08/2011 20:32, Bob DeRemer wrote: > Thanks, but I need to do this in a production environment, where > we're deploying/re-deploying a WAR and there is no eclipse IDE. In > addition, I am dynamically adding extensions to our webapp without > having to restart our webapp, which is what repu

RE: HOW TO: re-deploy or undeploy a webapp when additional files are added after initial deployment

2011-08-01 Thread Bob DeRemer
Thanks, but I need to do this in a production environment, where we're deploying/re-deploying a WAR and there is no eclipse IDE. In addition, I am dynamically adding extensions to our webapp without having to restart our webapp, which is what republishing from Eclipse does. -bob -Original

Re: HOW TO: re-deploy or undeploy a webapp when additional files are added after initial deployment

2011-08-01 Thread Chema
> If anyone has any suggestions on how we can add files into the exploded > webapp structure and still perform undeploy/re-deploy of our webapp, I would > greatly appreciate it.  Or, if there's a way to tell tomcat to completely > remove the directory - regardless of additional files/directories

HOW TO: re-deploy or undeploy a webapp when additional files are added after initial deployment

2011-08-01 Thread Bob DeRemer
I'm running Tomcat 6.0.32 on Windows Server 2008 R2. I am running into a problem when managing our webapp via the Tomcat Manager App. Specifically, if I add any files to our WEB-INF/extension directory in the exploded WAR directory after the initial deployment, an undeploy fails to completely

Re: Tomcat 7 and Java 7

2011-08-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew/Trey/Jarnagin, On 8/1/2011 10:25 AM, Jarnagin.Andrew wrote: > I want to use Java 7 features in Servlets with Tomcat 7. I have > tried unsuccessfully to deploy Tomcat 7 with Java 7. I also tried > compile Tomcat 7 with Java 7 and failed as well.

RE: Tomocat 6.0.20 Comet END Event *NOT RAISED* when connection is terminated

2011-08-01 Thread Sudeep Pradhan
Stale as in, It gives me response which was suppose to be given for the previous request (it gives me xml(previous) response instead of json(current)). I am not seeing this behavior for HTTP. It occurs only for HTTPS. *Though the problem of END event not being raise still happens for HTTP even

Re: Tomcat 7 and Java 7

2011-08-01 Thread Mark Thomas
On 01/08/2011 15:25, Jarnagin.Andrew wrote: > I want to use Java 7 features in Servlets with Tomcat 7. I have tried > unsuccessfully to deploy Tomcat 7 with Java 7. Unsuccessful how? > I also tried compile Tomcat 7 with Java 7 and failed as well. Failed how? > It is likely that I am doing somet

Re: html meta http-equiv content-type not work ?

2011-08-01 Thread Marvin Addison
> I think you mean "any attempt to WRITE The RESPONSE". I took some time to verify the effect I described, https://github.com/serac/charset-test. Reading data from the request body coerces the encoding as I claimed. Simply swap the order of the filter-mappings in web.xml and post some unicode da

Tomcat 7 and Java 7

2011-08-01 Thread Jarnagin.Andrew
I want to use Java 7 features in Servlets with Tomcat 7. I have tried unsuccessfully to deploy Tomcat 7 with Java 7. I also tried compile Tomcat 7 with Java 7 and failed as well. It is likely that I am doing something wrong. I want to deploy in Windows XP. I haven't found any news confirming that t

Re: [Tomcat 6.0.29] Why do I have to configure the datasource in the context.xml of the server and in the context.xml of the application?

2011-08-01 Thread Ognjen Blagojevic
Hi AN, On 30.7.2011 22:34, AN wrote: (...) I'm using Liferay (the application is a portlet). I believe that you cannot apply webapp configuration to portlets. It is probably better if you ask your question at Liferay mailing lists. -Ognjen --

Re: Different behavior between Tomcat service installation & Tomcat console mode

2011-08-01 Thread Konstantin Kolinko
2011/8/1 Alexandre Terrasson : > Hi guys, > here my problem : > > I have a web application that use a Jdbc driver/connection to connect to a > proprietary application. > I did my developments and tests on a Tomcat 6.0.32 with scripts startup > (startup.bat) and all works fine. But when I tried to t