Tomcat 5.5 - Context for "MyApp" in MyApp/META-INF/context.xml is always over-writing conf/[enginename]/[hostname]/MyApp.xml

2011-12-06 Thread Peter Smillie
According to the Tomcat 5.5 documentation page "tomcat-docs/config/context.html#Introduction" when Tomcat is trying to decide on the context for a Web application: Only if a context file does not exist for the application in the $CATALINA_HOME/conf/[enginename]/[hostname]/; in an individual fil

Re: Form Authentication vs. Tomcat Restart

2011-12-06 Thread André Warnier
Jess Holle wrote: When doing a graceful shutdown of Tomcat, the sessions are persisted to disk and then re-read on startup (at least in all reasonably recent versions). Oddly, however, form-based authentication does not seem to survive a graceful restart. Rather one has to log in again. Is

Re: [OT] Recommendations for Amazon EC2 Linux Flavor

2011-12-06 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Francis, On 12/6/11 5:36 PM, Francis GALIEGUE wrote: What are your primary concerns? Well, like most administrators, I'm lazy which means I'd prefer not to have to learn a whole lot of new stuff like package management

Re: [OT] Recommendations for Amazon EC2 Linux Flavor

2011-12-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gavin, On 12/6/11 5:51 PM, Gavin Yue wrote: > Which JVM are you using, default one or installing hotspot? When you say "hotspot" do you mean the Sun/Oracle JVM? I plan on using the Sun/Oracle JVM and not something like OpenJDK -- at least for now. I

Re: How to I add JSTL Lib to Tomcat with Netbeans

2011-12-06 Thread Kiran Badi
Thanks Mark, I have added the jars exactly the way you have given suggestions.but for some reasons <%@ taglib uri="..." %> is not getting created for my pages. Let me try to create a simple test case outside the project and see if it is installed correctly. On 12/6/2011 9:23 AM, Mark Egge

Re: Form Authentication vs. Tomcat Restart

2011-12-06 Thread Jess Holle
Okay, I now notice this plainly stated in the documentation for JNDIRealm (which I'm using): The cached user is *not* saved and restored across sessions serialisations. That seems a bit odd... On 12/6/2011 5:12 PM, Jess Holle wrote: When doing a graceful shutdown of Tomcat, the sessions

Form Authentication vs. Tomcat Restart

2011-12-06 Thread Jess Holle
When doing a graceful shutdown of Tomcat, the sessions are persisted to disk and then re-read on startup (at least in all reasonably recent versions). Oddly, however, form-based authentication does not seem to survive a graceful restart. Rather one has to log in again. Is this known? Inten

Re: [OT] Recommendations for Amazon EC2 Linux Flavor

2011-12-06 Thread Gavin Yue
Which JVM are you using, default one or installing hotspot? Thx On Tue, Dec 6, 2011 at 5:42 PM, Jordan Michaels wrote: > I've had good experiences with Tomcat on CentOS using EC2. Pretty simple > to get familiar with if you're already comfortable with CentOS. > > Warm Regards, > Jordan Michaels

Re: [OT] Recommendations for Amazon EC2 Linux Flavor

2011-12-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Francis, On 12/6/11 5:36 PM, Francis GALIEGUE wrote: > What are your primary concerns? Well, like most administrators, I'm lazy which means I'd prefer not to have to learn a whole lot of new stuff like package management eccentricities, etc. I haven

Re: [OT] Recommendations for Amazon EC2 Linux Flavor

2011-12-06 Thread Jordan Michaels
I've had good experiences with Tomcat on CentOS using EC2. Pretty simple to get familiar with if you're already comfortable with CentOS. Warm Regards, Jordan Michaels On 12/06/2011 02:23 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I'm provisioning my fir

Re: [OT] Recommendations for Amazon EC2 Linux Flavor

2011-12-06 Thread Francis GALIEGUE
On Tue, Dec 6, 2011 at 23:23, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > All, > > I'm provisioning my first Amazon EC2 instance and I was wondering if > anyone has any recommendations on the flavor of Linux I choose. > > I am most familiar with the Debian/Ubun

Re: [OT] Recommendations for Amazon EC2 Linux Flavor

2011-12-06 Thread Gavin Yue
Amazon linux belong to RHEL/CentOS family. You could choose the ubuntu image: https://help.ubuntu.com/community/EC2StartersGuide They have official AMI. But someone claimed that Amazon Linus has best performance on EC2, since it is created by Amazon... On Tue, Dec 6, 2011 at 5:23 PM, Christ

[OT] Recommendations for Amazon EC2 Linux Flavor

2011-12-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I'm provisioning my first Amazon EC2 instance and I was wondering if anyone has any recommendations on the flavor of Linux I choose. I am most familiar with the Debian/Ubuntu package management and administration and, of course, Amazon has neith

Re: Character set issue

2011-12-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 12/6/11 3:09 PM, André Warnier wrote: > In fact, does anyone in this Tomcat world really know exactly why > no standardisation committee or group of experts has yet come up > with an RFC for HTTP 2.0 and an RFC for HTML 10.0 (or whatever the

Re: Character set issue

2011-12-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin, On 12/6/11 12:06 PM, Konstantin Kolinko wrote: > 2011/12/6 Christopher Schultz : >> -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 >> >> Konstantin, >> >> On 12/6/11 11:15 AM, Konstantin Kolinko wrote: >>> 1. I do not use valves that call

Re: AJP connection timeout setting/Tomcat 6 vs. 7 questions

2011-12-06 Thread André Warnier
Kari Scott wrote: We are running Tomcat 6. 0.32 with jdk1.6.0_26 on Solaris 10, mod_ajp 1.3 and Apache 2.2.21 on all but one production server which is the same except for it's running Tomcat 7.0.21. I have some questions regarding connection timeout settings. Occasionally, when the site is

Re: MVC or Model2 with Tomcat

2011-12-06 Thread Pid
On 06/12/2011 17:49, Blaxton wrote: > > > > > > From: Pid * > To: Tomcat Users List > Sent: Tuesday, December 6, 2011 8:12:40 PM > Subject: Re: MVC or Model2 with Tomcat > > > > On 6 Dec 2011, at 15:52, Blaxton wrote: >> >> I have added the host directi

AJP connection timeout setting/Tomcat 6 vs. 7 questions

2011-12-06 Thread Kari Scott
We are running Tomcat 6. 0.32 with jdk1.6.0_26 on Solaris 10, mod_ajp 1.3 and Apache 2.2.21 on all but one production server which is the same except for it's running Tomcat 7.0.21. I have some questions regarding connection timeout settings. Occasionally, when the site is busier we see jump

Re: Character set issue

2011-12-06 Thread André Warnier
Christopher Schultz wrote: ... Honestly, the whole world should just set everything to UTF-8 and move on with life :) +5 In fact, does anyone in this Tomcat world really know exactly why no standardisation committee or group of experts has yet come up with an RFC for HTTP 2.0 and an RFC for H

Re: Tomcat 7.0.23 won't start

2011-12-06 Thread Pid
On 06/12/2011 18:20, Jacob Champlin wrote: > Is anyone else having trouble getting 7.0.23 to start up? > > I am trying to migrate from 7.0.22 to 7.0.23 and Tomcat hangs on: > > INFO: Starting Servlet Engine: Apache Tomcat/7.0.23 > > If I use the default server.xml it starts up, but if I use our

Re: Null component

2011-12-06 Thread Pid
On 06/12/2011 19:35, kccc wrote: > > Hi, > > > I'm a new tomcat user and I'm trying to solve this error: > "SEVERE: Null component > Catalina:type=DataSource,path=/myAPP,host=localhost,class=javax.sql.DataSource,name="PGDS/ActivityLogDS" > > My tomcat and java version: > apache-tomcat-6.0.16 U

Re: Tomcat 7 - New attribut aliases in the context configuration item

2011-12-06 Thread Sylvain Laurent
On 6 déc. 2011, at 18:07, Sylvain Goulmy wrote: > Hi Sylvain, > > I have tested your functionnality thanks to the description you give in > your code. > > This is just EXACTLY what i wanted. I can define an external directory, the > ressources are searched in my application and then in the dire

Re: Tomcat 7 - New attribut aliases in the context configuration item

2011-12-06 Thread Sylvain Laurent
Here is the preview of the documentation : http://ci.apache.org/projects/tomcat/tomcat7/docs/config/context.html#Virtual_webapp (this is a nightly snapshot of the tomcat 7 branch) On 6 déc. 2011, at 17:31, Sylvain Goulmy wrote: > Hi Sylvain, > > I have taken the sources from the trunk version

Null component

2011-12-06 Thread kccc
Hi, I'm a new tomcat user and I'm trying to solve this error: "SEVERE: Null component Catalina:type=DataSource,path=/myAPP,host=localhost,class=javax.sql.DataSource,name="PGDS/ActivityLogDS" My tomcat and java version: apache-tomcat-6.0.16 jdk1.6.0_23 In server.xml, I added: …and restarted to

Re: Tomcat 7.0.23 won't start

2011-12-06 Thread Jacob Champlin
Found the answer here: http://www.mail-archive.com/users@tomcat.apache.org/msg94574.html Sorry I missed this, we are experiencing the no Realm locking and will be skipping 7.0.23 . On 12/06/2011 01:20 PM, Jacob Champlin wrote: Is anyone else having trouble getting 7.0.23 to start up? I am t

Tomcat 7.0.23 won't start

2011-12-06 Thread Jacob Champlin
Is anyone else having trouble getting 7.0.23 to start up? I am trying to migrate from 7.0.22 to 7.0.23 and Tomcat hangs on: INFO: Starting Servlet Engine: Apache Tomcat/7.0.23 If I use the default server.xml it starts up, but if I use our custom server.xml it doesn't (See Below). We have been

Re: unpackWARs and antiResourceLocking

2011-12-06 Thread Justin Miller
Thanks for the response. Both 6.0.35 and 7.0.23 exhibit the same behaviour. In 7.0.23, the docBase is changed back to the context path via the ContextName now instead of the context.getPath() but the result is the same. Interestingly enough, there is a comment in the 7.0.23 source on line 750

Re: MVC or Model2 with Tomcat

2011-12-06 Thread Blaxton
From: Pid * To: Tomcat Users List Sent: Tuesday, December 6, 2011 8:12:40 PM Subject: Re: MVC or Model2 with Tomcat On 6 Dec 2011, at 15:52, Blaxton wrote: > > I have added the host directive to server.xml and moved appexmp1 contents to > ROOT director

Re: unpackWARs and antiResourceLocking

2011-12-06 Thread Konstantin Kolinko
2011/12/6 Justin Miller : > Windows 2008 64-bit > Java 1.6.0_16 32-bit > Tomcat 6.0.33 > > Greetings > > I'm having some difficulties with the above environment and setting > unpackWARs = "false" antiResourceLocking = "true" with apps packaged as WAR > files. It appears that Tomcat is attempting to

Re: MVC or Model2 with Tomcat

2011-12-06 Thread Pid *
On 6 Dec 2011, at 15:52, Blaxton wrote: > > I have added the host directive to server.xml and moved appexmp1 contents to > ROOT directory > and now I can access www.mydomain.com/index.jsp with no problem, > however now the servlets are not working. > I can access jsp files, but no servlets, I g

Re: Tomcat 7 - New attribut aliases in the context configuration item

2011-12-06 Thread Sylvain Goulmy
Hi Sylvain, I have tested your functionnality thanks to the description you give in your code. This is just EXACTLY what i wanted. I can define an external directory, the ressources are searched in my application and then in the directory defined in the configuration, and icing on the cake you ca

Re: Character set issue

2011-12-06 Thread Konstantin Kolinko
2011/12/6 Christopher Schultz : > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Konstantin, > > On 12/6/11 11:15 AM, Konstantin Kolinko wrote: >> 1. I do not use valves that call getParameter(), so I have not >> seen the need, but the FormAuthenticator will need the feature? > > ExtendedAcces

Re: Character set issue

2011-12-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin, On 12/6/11 11:15 AM, Konstantin Kolinko wrote: > 1. I do not use valves that call getParameter(), so I have not > seen the need, but the FormAuthenticator will need the feature? ExtendedAccessLogValve can also cause the query string to be

unpackWARs and antiResourceLocking

2011-12-06 Thread Justin Miller
Windows 2008 64-bit Java 1.6.0_16 32-bit Tomcat 6.0.33 Greetings I'm having some difficulties with the above environment and setting unpackWARs = "false" antiResourceLocking = "true" with apps packaged as WAR files. It appears that Tomcat is attempting to copy the WAR from the $CATALINA_HOME

Re: Tomcat 7 - New attribut aliases in the context configuration item

2011-12-06 Thread Sylvain Goulmy
Hi Sylvain, I have taken the sources from the trunk version and i compiled T7. Can you please give me an example of the declaration of the ressource i should do in my context in order to have the benefit of this functionnality ? I don't understand the part of your comment in the bugzilla ticket.

Re: Character set issue

2011-12-06 Thread Konstantin Kolinko
2011/12/6 Christopher Schultz : > On 12/4/11 8:02 PM, Konstantin Kolinko wrote: >> Make sure that content type and charset value in a) Content-Type >> HTTP header sent by server and b) in META tag in HTML text have >> _literally_ the same value. If they both are present and they do >> not match, od

Re: MVC or Model2 with Tomcat

2011-12-06 Thread Blaxton
From: André Warnier To: Tomcat Users List Sent: Monday, December 5, 2011 4:13:33 AM Subject: Re: MVC or Model2 with Tomcat Blaxton wrote: > > > > >  From: André Warnier > To: Tomcat Users List > Sent: Monday, December

Re: Character set issue

2011-12-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin, On 12/5/11 6:53 PM, Konstantin Kolinko wrote: > Note, that there is standard "SetCharacterEncodingFilter" in Tomcat > 7. (In 7.0 it is in o.a.c.filters package, in 6.0 and 5.5 it is > examples webapp). I see that you've moved that out of

Re: Character set issue

2011-12-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin, On 12/4/11 8:02 PM, Konstantin Kolinko wrote: > Make sure that content type and charset value in a) Content-Type > HTTP header sent by server and b) in META tag in HTML text have > _literally_ the same value. If they both are present and t

Re: SSL configuration on apache tomcat 6 - Oracle EL5

2011-12-06 Thread Daniel Mikusa
On Tue, 2011-12-06 at 06:50 -0800, Oladapo Moshood wrote: > Thank you Daniel for your response. I do not see "libssl" listed, please > see output: > > [root@opt01 native]# ldd .libs/libtcnative-1.so > linux-gate.so.1 => (0x00b3b000) > libapr-1.so.0 => /usr/local/apr/lib/libapr-1.s

Re: SSL configuration on apache tomcat 6 - Oracle EL5

2011-12-06 Thread Oladapo Moshood
Thank you Daniel for your response. I do not see "libssl" listed, please see output: [root@opt01 native]# ldd .libs/libtcnative-1.so linux-gate.so.1 => (0x00b3b000) libapr-1.so.0 => /usr/local/apr/lib/libapr-1.so.0 (0x00288000) librt.so.1 => /lib/i686/nosegneg/librt.so.1 (

Re: SSL configuration on apache tomcat 6 - Oracle EL5

2011-12-06 Thread Daniel Mikusa
On Tue, 2011-12-06 at 01:10 -0800, Oladapo Moshood wrote: > I think yes because I specified the library path. Or how can I confirm your > question on my server. see below what I have in the path > > [root@opt01 apr-httpd]# ll > total 16 > drwxr-xr-x 2 root root 4096 Dec 2 12:27 bin > drwxr-xr-x 2

Re: SSL configuration on apache tomcat 6 - Oracle EL5

2011-12-06 Thread Daniel Mikusa
On Mon, 2011-12-05 at 23:51 -0800, Oladapo Moshood wrote: > Dan, > > This is what I actually have in my Oracle EL5. The other information I sent > on apache-tomcat-7 was done on my redhat 6 to see if the error i'm getting > is a bug in apache-tomcat-6, but got the same error. > > Here is how i in

RE: Apache HTTPD <-> Tomcat, Passing Errors

2011-12-06 Thread Thom Hehl
How about a re-direct to a page that Apache will handle. You could re-direct to http://blah.com/invalid.page or some such or even a valid page. -Original Message- From: Jonathan Rosenberg [mailto:shmol...@gmail.com] Sent: Monday, December 05, 2011 3:42 PM To: Tomcat Users List Subject: Ap

RE: Tomcat filter-mapping dispatcher forward

2011-12-06 Thread Hodchenkov, Paul
Hi all, It was caching issue with my IDE... It works fine now :) Sorry for the inconvenience. -Original Message- From: Kris Schneider [mailto:kschnei...@gmail.com] Sent: Monday, December 05, 2011 10:59 PM To: Tomcat Users List Subject: Re: Tomcat filter-mapping dispatcher forward On Mon,

Re: SSL configuration on apache tomcat 6 - Oracle EL5

2011-12-06 Thread Oladapo Moshood
I think yes because I specified the library path. Or how can I confirm your question on my server. see below what I have in the path [root@opt01 apr-httpd]# ll total 16 drwxr-xr-x 2 root root 4096 Dec 2 12:27 bin drwxr-xr-x 2 root root 4096 Dec 2 12:27 build-1 drwxr-xr-x 3 root root 4096 Dec 2

[ANN] Apache Tomcat 6.0.35 released

2011-12-06 Thread jean-frederic clere
The Apache Tomcat team announces the immediate availability of Apache Tomcat 6.0.35 stable. Apache Tomcat 6.0.35 is primarily a security and bug fix release. All users of older versions of the Tomcat 6.0 family should upgrade to 6.0.35. Note that is version has 4 zip binaries: a generic one a

Re: SSL configuration on apache tomcat 6 - Oracle EL5

2011-12-06 Thread Pid *
On 6 Dec 2011, at 07:51, Oladapo Moshood wrote: > Dan, > > This is what I actually have in my Oracle EL5. The other information I sent > on apache-tomcat-7 was done on my redhat 6 to see if the error i'm getting > is a bug in apache-tomcat-6, but got the same error. > > Here is how i installed it