Tomcat6 - Context - aliases

2012-04-02 Thread Léa Massiot
Hello, I've been struggling lately with the aliases attribute of the Context element of the context.xml file. I tested a Webapp with Tomcat7 and it appears to work properly. As a Debian user, Tomcat7 is not yet packaged in the current stable release Squeeze so I installed Tomcat6 instead. Result:

Re: Tomcat6 - Context - aliases

2012-04-02 Thread Teppei Yamada
Hi, Can I ask you some questions? 1. What version of Tomcat7 did you test? 2. Where do you place context.xml in Tomcat6? I don't know you are aware that context.xml placed in yourwebapp/META-INF/context.xml is automatically copied to TOMCAT_HOME/conf/Catalina/(hostname(usually

Re: Tomcat6 - Context - aliases

2012-04-02 Thread Konstantin Kolinko
2012/4/2 Léa Massiot lmhe...@orange.fr: I've been struggling lately with the aliases attribute of the Context element of the context.xml file. I tested a Webapp with Tomcat7 and it appears to work properly. As a Debian user, Tomcat7 is not yet packaged in the current stable release Squeeze

Re: Tomcat6 - Context - aliases

2012-04-02 Thread Léa Massiot
Hello, Thank you for your answers. Teppei Yamada wrote 1. What version of Tomcat7 did you test? On a Windows XP machine: Tomcat 7.0.20 On a Debian Squeeze machine: Tomcat 7.0.22 Teppei Yamada wrote 2. Where do you place context.xml in Tomcat6? I don't know you are aware that context.xml

Re: Tomcat 7 Maven plugin: deploy fails with tomcatManager status code:401, ReasonPhrase:Unauthorized

2012-04-02 Thread Olivier Lamy
Hello, I have fixed few things related to deployment in trunk. Could you test with current 2.0-SNAPSHOT ? Thanks -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy 2012/4/2 Matt Munz matt.m.m...@gmail.com: Hi all,  I'm trying to get the

Re: Running Tomcat as a Standalone desktop Application

2012-04-02 Thread DaveNoth
Yes, On a company owned windows server we would control the server setup. (What software is installed and how it is configured) We are planning to distribute to individually owned machines in which we can not control what is installed. They may have software installed that interferes with a

Re: Running Tomcat as a Standalone desktop Application

2012-04-02 Thread Pid
On 02/04/2012 12:37, DaveNoth wrote: Yes, On a company owned windows server we would control the server setup. (What software is installed and how it is configured) We are planning to distribute to individually owned machines in which we can not control what is installed. They may have

Re: Running Tomcat as a Standalone desktop Application

2012-04-02 Thread André Warnier
Pid wrote: On 02/04/2012 12:37, DaveNoth wrote: Yes, On a company owned windows server we would control the server setup. (What software is installed and how it is configured) We are planning to distribute to individually owned machines in which we can not control what is installed. They may

Re: Tomcat6 - Context - aliases

2012-04-02 Thread Daniel Mikusa
- Original Message - Hello, Thank you for your answers. Teppei Yamada wrote 1. What version of Tomcat7 did you test? On a Windows XP machine: Tomcat 7.0.20 On a Debian Squeeze machine: Tomcat 7.0.22 Teppei Yamada wrote 2. Where do you place context.xml in Tomcat6? I

Re: Tomcat6 - Context - aliases

2012-04-02 Thread Léa Massiot
Thank you for your advice. And how did people do to declare aliases before the aliases attribute of the Context element was introduced in Tomcat7? -- View this message in context: http://tomcat.10.n6.nabble.com/Tomcat6-Context-aliases-tp4678430p4679060.html Sent from the Tomcat - User mailing

Re: Running Tomcat as a Standalone desktop Application

2012-04-02 Thread DaveNoth
Thanks André! This is very helpful. We have a new user base that requires our application to run as a stand-alone, disconnected App. Today our App is an Online Web Application running under Websphere. I was also looking to see if anyone is currently deploying a Web Application (Servlet/JSP)

Re: Running Tomcat as a Standalone desktop Application

2012-04-02 Thread David kerber
On 4/2/2012 10:30 AM, DaveNoth wrote: Thanks André! This is very helpful. We have a new user base that requires our application to run as a stand-alone, disconnected App. Today our App is an Online Web Application running under Websphere. I was also looking to see if anyone is currently

Re: Tomcat6 - Context - aliases

2012-04-02 Thread Pid
On 02/04/2012 15:23, Léa Massiot wrote: Thank you for your advice. And how did people do to declare aliases before the aliases attribute of the Context element was introduced in Tomcat7? Either they did not, or they selected an alternative based on their use-case. What is your exact

RE: Running Tomcat as a Standalone desktop Application

2012-04-02 Thread Caldarale, Charles R
From: DaveNoth [mailto:david.nothna...@prudential.com] Subject: Re: Running Tomcat as a Standalone desktop Application If no one out there is doing this, I am going to infer it's not a very good idea and look into a rewrite of the code to work under windows as a desktop app. Actually,

Re: Tomcat6 - Context - aliases

2012-04-02 Thread Léa Massiot
Pid * wrote Either they did not, or they selected an alternative based on their use-case. I'm sure they did. You'll see below, my requirements are basic. Pid * wrote What is your exact requirement? - Users upload files to the server running Tomcat. - The Webapp stores these file on the hard

Re: Tomcat6 - Context - aliases

2012-04-02 Thread André Warnier
Léa Massiot wrote: Pid * wrote Either they did not, or they selected an alternative based on their use-case. I'm sure they did. You'll see below, my requirements are basic. Pid * wrote What is your exact requirement? - Users upload files to the server running Tomcat. - The Webapp stores

Re: Tomcat6 - Context - aliases

2012-04-02 Thread Pid
On 02/04/2012 16:14, Léa Massiot wrote: Pid * wrote Either they did not, or they selected an alternative based on their use-case. I'm sure they did. You'll see below, my requirements are basic. Pid * wrote What is your exact requirement? - Users upload files to the server running

RE: Running Tomcat as a Standalone desktop Application

2012-04-02 Thread DaveNoth
Thank you Chuck. Using Tomcat in the embedded form looks like a nice way to go. I see there was on older article on the web which described the type of solution we are looking for in the disconnected deployment of our Web App. http://www.javalobby.org/articles/tomcat2go/ Can you list any of

Re: Running Tomcat as a Standalone desktop Application

2012-04-02 Thread Daniel Mikusa
- Original Message - Thank you Chuck. Using Tomcat in the embedded form looks like a nice way to go. I see there was on older article on the web which described the type of solution we are looking for in the disconnected deployment of our Web App.

Deleting URLClassloader Cached Jars/Classes

2012-04-02 Thread Peter Lavin
Hi all, this may be a general Java question or their may be a specific answer related to Tomcat. I am running a simple webservice which loads classes using a URLClassloader... // start of code snippet ClassLoader previous = Thread.currentThread()

Bash script for monitoring status of the Tomcat server

2012-04-02 Thread Miguel González Castaños
Dear all, Recently we had to restart our standalone Tomcat server because apparently the 150 max threads setting was not enough. I have been googling a bit and it seems it's possible to monitor the performance of the server and also get the numbers when the connection pool or the threads

RE: Bash script for monitoring status of the Tomcat server

2012-04-02 Thread Caldarale, Charles R
From: Miguel González Castaños [mailto:miguel_3_gonza...@yahoo.es] Subject: Bash script for monitoring status of the Tomcat server I would like to run a bash script to monitor these values and warn me if the reach a certain level. Also a tool that generates some graphs would be great.

Re: Bash script for monitoring status of the Tomcat server

2012-04-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 4/2/12 3:28 PM, Caldarale, Charles R wrote: From: Miguel González Castaños [mailto:miguel_3_gonza...@yahoo.es] Subject: Bash script for monitoring status of the Tomcat server I would like to run a bash script to monitor these values

Re: Chasing a SocketTimeoutException with APR

2012-04-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Micheal, On 3/30/12 3:37 AM, Osipov, Michael wrote: Pid * wrote: Can you switch to the NIO connector and see if a similar issue occurs? Not on the production system. We are using APR with SSL, so I did not create Java compatible SSL keys. I

Re: Ant Tasks Question

2012-04-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nick, On 3/29/12 10:07 PM, Nick Williams wrote: This works great for list, deploy, undeploy, stop, start, etc. All of those tasks work. But the jasper/jasper2 tasks are weird. They silently do nothing. Hmm. I've been playing around with the JspC

Re: Implementing mod_headers for response in Tomcat7

2012-04-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Teppei, On 4/1/12 5:15 AM, Teppei Yamada wrote: I wanted to write something similar to apache httpd's mod_headers so I read through Tomcat7.0.26 source code. Then I realized that that could not be achieved without modifying coyote's

Re: [OT] Deleting URLClassloader Cached Jars/Classes

2012-04-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, On 4/2/12 2:05 PM, Peter Lavin wrote: this may be a general Java question or their may be a specific answer related to Tomcat. This is unrelated to Tomcat, since you are using java.net.URLClassLoader. I am running a simple webservice

Re: Running Tomcat as a Standalone desktop Application

2012-04-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, On 4/2/12 10:30 AM, DaveNoth wrote: We have a new user base that requires our application to run as a stand-alone, disconnected App. Today our App is an Online Web Application running under Websphere. I was also looking to see if anyone is

Re: Tomcat6 - Context - aliases

2012-04-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Léa, On 4/2/12 6:45 AM, Léa Massiot wrote: Konstantin Kolinko wrote Install Tomcat 7. Read RUNNING.txt for a start. I prefer not to. As I wrote, Tomcat7 is not packaged yet in Debian stable Squeeze. Nor will it. Debian has a fairly

Re: Ant Tasks Question

2012-04-02 Thread Konstantin Kolinko
2012/4/3 Christopher Schultz ch...@christopherschultz.net: On 3/29/12 10:07 PM, Nick Williams wrote: This works great for list, deploy, undeploy, stop, start, etc. All of those tasks work. But the jasper/jasper2 tasks are weird. They silently do nothing. Hmm. I've been playing around with

Re: [OT] Deleting URLClassloader Cached Jars/Classes

2012-04-02 Thread Konstantin Kolinko
2012/4/3 Christopher Schultz ch...@christopherschultz.net: Is there a way to empty this cache, or disable caching all together? Not without implementing your own ClassLoader. You could read the code for WebappClassLoader to see how it's done in there. +1. You need your own class loader. I

RE: Ant Tasks Question

2012-04-02 Thread Nick Williams
-Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Monday, April 02, 2012 3:31 PM To: Tomcat Users List Subject: Re: Ant Tasks Question -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nick, On 3/29/12 10:07 PM, Nick Williams wrote: This works great

RE: Ant Tasks Question

2012-04-02 Thread Nick Williams
-Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: Monday, April 02, 2012 4:24 PM To: Tomcat Users List Subject: Re: Ant Tasks Question 2012/4/3 Christopher Schultz ch...@christopherschultz.net: On 3/29/12 10:07 PM, Nick Williams wrote: This works great

Re: Ant Tasks Question

2012-04-02 Thread Konstantin Kolinko
2012/4/3 Nick Williams nicholas.willi...@puresafety.com: The point of namespaces (in Ant specifically and XML in general) /is/ to avoid naming conflicts with like-named tasks. Conflicts in XML file syntax. Is it more than that? Does Ant use different class loader instances for each of

Re: [OT] Deleting URLClassloader Cached Jars/Classes

2012-04-02 Thread Pid
On 02/04/2012 22:33, Konstantin Kolinko wrote: 2012/4/3 Christopher Schultz ch...@christopherschultz.net: Is there a way to empty this cache, or disable caching all together? Not without implementing your own ClassLoader. You could read the code for WebappClassLoader to see how it's done in

RE: Bash script for monitoring status of the Tomcat server

2012-04-02 Thread Darryl Lewis
Try JavaMelody. It does a lot of monitoring straight out of the 'box'. For there, it is a small step to use wget to screen scrape values from Melody and send emails once they exceed a threshold. -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent:

Carriage Return being added to Java Options in Tomcat Configuration Tomcat 7.0.26

2012-04-02 Thread Debbie Shapiro
Hello - I'm seeing some strange behavior and I don't quite understand why this keeps recurring. In the Java Options on the Java tab of the Tomcat Configuration, a carriage return keeps being added, even though I am removing it. I have tried hitting apply and OK and just OK. Doesn't seem to make

RE: Carriage Return being added to Java Options in Tomcat Configuration Tomcat 7.0.26

2012-04-02 Thread Debbie Shapiro
I think I found the problem. Somehow it wasn't recognizing my java installation. It's fixed now, I think. :) Please create a HelpStar ticket for any requests for assistance. This will help us better track your request. http://helpstarhttp://helpstar/ Debbie Shapiro Data Warehouse Manager

Re: Tomcat 7 Maven plugin: deploy fails with tomcatManager status code:401, ReasonPhrase:Unauthorized

2012-04-02 Thread Matt Munz
Olivier, After switching to 2.0-SNAPSHOT, I am still getting errors :( First I got an error saying that the tomcat7 prefix was not found. [1] Then I tried mvn tomcat:deploy -Dusername=Administrator -Dpassword=a and I got a 403 response from the manager. [1] [ERROR] No plugin found for

Re: Chasing a SocketTimeoutException with APR

2012-04-02 Thread Felix Schumacher
Christopher Schultz ch...@christopherschultz.net schrieb: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Micheal, On 3/30/12 3:37 AM, Osipov, Michael wrote: Pid * wrote: Can you switch to the NIO connector and see if a similar issue occurs? Not on the production system. We are using APR