Re: Tomcat 5.5.30 and Spring Framework

2011-03-11 Thread Aureliusz R.
Borut, thanks again. You were correct, it was lazy initialization. Pretty much at this point I got the spring part working. I've encountered yet another issue with mapping requests from apache2 web server to tomcat. It seems to have something to do with SSL, as I don't have this issue for http.

RE: [OT] Migrated from 6.0.29 to 7.0.10, Now I get "INFO: TLD skipped. URI: http://struts.apache.org/tags-bean is already defined"

2011-03-11 Thread Martin Gainty
TC6 AnnotationProcessor has been replaced completely by Marks new InstanceManager class for TC7 without the refactor your struts embedded-jsp-plugin will gack in TC7 I've refactored struts2 embedded-plugin src to work with marks code..collecting annotations from Fields from the servlet paramete

Re: why does tomcat6 delete xml files from ../tomcat6/conf/Catalina/localhost directory?

2011-03-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Eric, On 3/10/2011 4:02 PM, Robinson, Eric wrote: >>> The only filesystem involved is the local ext3 one that >> tomcat lives on. >>> I can stop and start tomcat as many times as I want and >> everything is >>> fine. But when I reboot the server, t

Re: why does tomcat6 delete xml files from ../tomcat6/conf/Catalina/localhost directory?

2011-03-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Eric, On 3/10/2011 9:33 AM, Robinson, Eric wrote: They are deleted as part of the autoDeploy process when Tomcat detects that the associated directory or WAR file is deleted. Turn off autoDeploy or stop deleting your WARs/directories.

Re: [OT] Migrated from 6.0.29 to 7.0.10, Now I get "INFO: TLD skipped. URI: http://struts.apache.org/tags-bean is already defined"

2011-03-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian, On 3/9/2011 3:42 PM, Brian Braun wrote: > Actually, I had already unzipped my .war file and inspected every file > inside, and arrived to that conclution: The only place where the TLD files > are also present is the JARs that correspond to Stru

Re: Options for setting context path

2011-03-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 3/10/2011 2:11 PM, Caldarale, Charles R wrote: >> From: Ari King [mailto:ari.brandeis.k...@gmail.com] >> Subject: Options for setting context path > >> What options do I have for setting the context path, aside >> from naming the war file

Re: JSP class size increase in Tomcat 7

2011-03-11 Thread Jess Holle
On 3/11/2011 4:25 PM, Christopher Schultz wrote: I'm interested in how you were able to do this. The 65k limitation is for a single method, not the entire JSP. Yes, JSPs compile into a single jspService method but when taglibs are used, each use generates its own method which then gets called and

Re: StackOverFlowError in Tomcat 6.0.29

2011-03-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ashish, On 3/10/2011 6:52 AM, Ashish Kumar Dash wrote: > Hi Friends, > Did any one met *StackOverFlowError *in Tomcat 6.0.29. > Please follow the bug Link : * > https://issues.apache.org/bugzilla/show_bug.cgi?id=50883* > > Seeking for y

Re: JSP class size increase in Tomcat 7

2011-03-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jess, On 3/11/2011 7:04 AM, Jess Holle wrote: > On 3/11/2011 3:22 AM, Mark Thomas wrote: >> The obvious difference is that Tomcat 6 compilation targets Java 5 >> whereas Tomcat 7 targets Java 6. For a simple test JSP: >> Tomcat 6 (1.5) - 3,488 >> Tomc

Re: Chunked encoding not terminated with native library

2011-03-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 3/11/2011 4:45 PM, André Warnier wrote: > Chris wrote: >> 1. Yes, tomcat is sending the header: "Transfer-Encoding: chunked" >> 2. I've also tried using close() instead of flush() and I've seen the >> same chunked encoding. >> 3. The nginx r

Re: Chunked encoding not terminated with native library

2011-03-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, On 3/11/2011 10:19 AM, Chris wrote: > 1. Yes, tomcat is sending the header: "Transfer-Encoding: chunked" Okay. Does that happen even for HTTP 1.0? Is so, that looks like a spec violation to me. > 2. I've also tried using close() instead of fl

Re: Chunked encoding not terminated with native library

2011-03-11 Thread André Warnier
Chris wrote: 1. Yes, tomcat is sending the header: "Transfer-Encoding: chunked" 2. I've also tried using close() instead of flush() and I've seen the same chunked encoding. 3. The nginx reverse proxying with the HttpProxyModule only supports HTTP/1.0 according to the "Synopsis" section here: ht

Re: Performance 5.5 vs 6 vs 7

2011-03-11 Thread Tony Anecito
Hi David, I recently ran performance tests against version 7 and during that whole process discovered at best for a single instance of Tomcat 7 running on a 6 core AMD 2.8Ghz processor the best I could get running the client on the server and using loopback network (Localhost) was around 32K

Re: Performance 5.5 vs 6 vs 7

2011-03-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 3/11/2011 3:02 PM, David kerber wrote: > How might I expect the performance of 7 to compare to a late rev of 5.5 > or 6.0.x, running under JRE 6? Specifically, my application has lots of > small, simple requests, and the app does nothing bu

Re: JVM crash tomcat

2011-03-11 Thread Jordan Michaels
Try updating your JVM to the latest version. Seems like this is a bug that was recently fixed. http://download.java.net/jdk6/6u25/promoted/b01/changes/JDK6u25.b01.list.html Issue: 7009268 3-Medium Defect PPC: guarantee(middle - slop \> start) failed: need enough space to divide up -Jordan

Performance 5.5 vs 6 vs 7

2011-03-11 Thread David kerber
How might I expect the performance of 7 to compare to a late rev of 5.5 or 6.0.x, running under JRE 6? Specifically, my application has lots of small, simple requests, and the app does nothing but de-obfuscate (it's not really sophisticated enough to call it encryption) the data and save it to

RE: tomcat http connector errors

2011-03-11 Thread Caldarale, Charles R
> From: Ashish Kumar Dash [mailto:dashashishku...@gmail.com] > Subject: Re: tomcat http connector errors > $ kill -3 PID also will print a Thread Dump on your catalina.out As mentioned in the previously posted FAQ reference. > http://wiki.apache.org/tomcat/HowTo#How_do_I_obtain_a_thread_dump_of

Re: tomcat http connector errors

2011-03-11 Thread Ashish Kumar Dash
*$ kill -3 PID* also will print a Thread Dump on your *catalina.out* On Fri, Mar 11, 2011 at 7:47 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Kobi Biton [mailto:comns.k...@gmail.com] > > Subject: Re: tomcat http connector errors > > > since I am the Operation guy not s

Re: [ANN] Apache Tomcat 7.0.11 released

2011-03-11 Thread David Calavera
Hi Mark, could you remember to release the maven artifacts, I've seen the last version released was 7.0.8. Thank you! On Fri, Mar 11, 2011 at 4:59 PM, Mark Thomas wrote: > The Apache Tomcat team announces the immediate availability of Apache > Tomcat 7.0.11 > > Apache Tomcat 7.0.11 is primaril

Re: Typical setting for

2011-03-11 Thread Mark Thomas
On 11/03/2011 18:07, Jason Pringle wrote: > What are the advantages or requirements (if any) for using a value other than > localhost, if not using virtual hosts? And if I read the docs correctly, any > value used must be either a valid IP or resolvable via DNS? You can call it DefaultHost if y

RE: Typical setting for

2011-03-11 Thread Caldarale, Charles R
> From: Jason Pringle [mailto:jason.prin...@amdocs.com] > Subject: Typical setting for > What are the advantages or requirements (if any) for using a > value other than localhost, if not using virtual hosts? None whatsoever. The character string "localhost" here has nothing to do with the IP

Typical setting for

2011-03-11 Thread Jason Pringle
Tomcat 7.0.6 (soon to upgrade to 7.0.latest) Fedora 11 JDK 1.6.0_23 We are not using virtual hosts for our tomcat instances, but in some cases run more than one instance on a machine (listening on different ports). We follow the typical pattern of a single CATALINA_HOME with distinct CATALINA

Re: Fastest way to upgrade from 7.0.10 to 7.0.11?

2011-03-11 Thread Mark Thomas
On 11/03/2011 17:21, Caldarale, Charles R wrote: >> From: Brian Braun [mailto:brianbr...@gmail.com] >> Subject: Fastest way to upgrade from 7.0.10 to 7.0.11? > >> I wouldn't like to uninstall the whole software and install 7.0.11 from >> scratch. I would like to stop it, replace some files (some

RE: Fastest way to upgrade from 7.0.10 to 7.0.11?

2011-03-11 Thread Caldarale, Charles R
> From: Brian Braun [mailto:brianbr...@gmail.com] > Subject: Fastest way to upgrade from 7.0.10 to 7.0.11? > I wouldn't like to uninstall the whole software and install 7.0.11 from > scratch. I would like to stop it, replace some files (some JARs, I guess), > and start it again. Wrong approach.

Fastest way to upgrade from 7.0.10 to 7.0.11?

2011-03-11 Thread Brian Braun
Hi, I had just spent the whole day upgrading from Tomcat 6.0.X to 7.0.10 and finished doing it, when I received the news about a vulnerability not solved in that version, and the need to release vr.7.0.11. I wouldn't like to uninstall the whole software and install 7.0.11 from scratch. I would lik

RE: antlib.xml could not be found

2011-03-11 Thread Marseld Dedgjonaj
Thank you very mutch. I have tried it before with http://localhost:8080/manager but I was missing a "/" You guys helped me a lot. Best regards, Marseld Gjeni Punë të Mirë dhe të Mirë për Punë... Vizitoni: http://www.punaime.al/";>www.punaime.al http://www.punaime.al/";>http://www.ikub.

[ANN] Apache Tomcat 7.0.11 released

2011-03-11 Thread Mark Thomas
The Apache Tomcat team announces the immediate availability of Apache Tomcat 7.0.11 Apache Tomcat 7.0.11 is primarily a security fix release with a small number of additional bug fixes compared to 7.0.10. Please refer to the change log for the list of changes: http://tomcat.apache.org/tomcat-7.0-

Re: antlib.xml could not be found

2011-03-11 Thread Mark Thomas
> Setting project property: url -> http://localhost:8080/manager/html And there is the problem. You want: http://localhost:8080/manager/ not http://localhost:8080/manager/html when working with Ant. Mark - To unsubscribe, e-mail

RE: antlib.xml could not be found

2011-03-11 Thread Marseld Dedgjonaj
Thank you Christopher. I will read your suggestion and try to run "ant reload" again. I am using Tomcat 6. And the whole error is this: Adding reference: ant.PropertyHelper Detected Java version: 1.6 in: /usr/lib64/jvm/java-1.6.0-sun-1.6.0/jre Detected OS: Linux Adding reference: ant.ComponentH

Re: Tomcat 5.5.30 and Spring Framework

2011-03-11 Thread Borut Hadžialić
Do not put anything in $TOMCAT_HOME/conf/web.xml - leave that file as it is when you unpack a fresh Tomcat distribution. Why the servlet is not being loaded? - not 100% about this, but I would first check if it is maybe being lazy loaded/initialized. After your tomcat starts up, try to browse htt

Re: antlib.xml could not be found

2011-03-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marseldi, On 3/11/2011 9:27 AM, Marseld Dedgjonaj wrote: > I am new to Tomcat and more detailed help would be more valuable to me. Welcome. > I am trying to use Ant to reload a tomcat application. I write the build.xml > file based on "Managing Appl

Chunked encoding extensions

2011-03-11 Thread chris
Hi folks I am looking information on how to extend the tomcat chunked encoding functionality. >From looking at the code I have found ChunkedInputFilter.java and ChunkedOutputFilter.java, these appear to be the filters responsible. From what I can see they are invoked depending on whether the re

Re: Is it possible to configure 2 SSL connectors on one Tomcat instance?

2011-03-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nikko, On 3/9/2011 2:26 AM, Nikko Nikko wrote: > Thanks for the answers! I have one IP and wildcard certificate which > I signed using local CA. I want to have different trust stores for > client certificate authorization. It is a small PoC/demo and

Re: Chunked encoding not terminated with native library

2011-03-11 Thread Chris
1. Yes, tomcat is sending the header: "Transfer-Encoding: chunked" 2. I've also tried using close() instead of flush() and I've seen the same chunked encoding. 3. The nginx reverse proxying with the HttpProxyModule only supports HTTP/1.0 according to the "Synopsis" section here: http://wiki.nginx

Re: Tomcat 5.5.30 and Spring Framework

2011-03-11 Thread Aureliusz R.
Borut, your instructions were spot on. I was able to track down my docBase folder (it was specified in $TOMCAT_HOME/conf/servlet.xml , and I verified that it's the correct location by adding some context parameters to the web.xml in my docBase, and then retrieving them from a JSP. Now I have anot

Re: Is it possible to configure 2 SSL connectors on one Tomcat instance?

2011-03-11 Thread Nikko Nikko
Thanks for the detailed answers. I should find another solution. Nikko. 2011/3/9 Ognjen Blagojevic > Nikko, > > > On 9.3.2011 8:26, Nikko Nikko wrote: > >> Thanks for the answers! I have one IP and wildcard certificate which I >> signed using local CA. I want to have different trust stores f

Re: Chunked encoding not terminated with native library

2011-03-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, On 3/10/2011 12:37 PM, Chris wrote: > As I mentioned below, the "0\r\n\r\n" was not being sent to nginx, although > it was being sent to curl. The difference was that nginx was doing a GET > HTTP/1.0, while curl was using HTTP/1.1. If I conf

RE: why does tomcat6 delete xml files from ../tomcat6/conf/Catalina/localhost directory?

2011-03-11 Thread joe.k
I have similar experience, Tomcat 6.0.30 is deleting my ROOT.xml inside conf directory. As Mark said here, it's because of the autoDeploy, BUT WHY it is like that ? I have 2 constraints: 1. ROOT.xml is important, it contains the Context for the webapp (and it cannot be inside war !!) 2. I need a

antlib.xml could not be found

2011-03-11 Thread Marseld Dedgjonaj
Hello everybody, I am new to Tomcat and more detailed help would be more valuable to me. I am trying to use Ant to reload a tomcat application. I write the build.xml file based on "Managing Applications with Ant" section of the "Professional Apache Tomcat" book. If it helps I am using: Fedora

Re: Chunked encoding not terminated with native library

2011-03-11 Thread Chris
I should also mention that I'm doing Servlet 3.0 async requests: AsyncContext context= req.startAsync(); ... context.complete(); I've also tried using AJP instead of HTTP between tomcat and nginx, and I see similar behaviour; tomcat doesn't terminate the reply when using APR. Anyone have any ide

RE: tomcat http connector errors

2011-03-11 Thread Caldarale, Charles R
> From: Kobi Biton [mailto:comns.k...@gmail.com] > Subject: Re: tomcat http connector errors > since I am the Operation guy not sure what you mean by > thread dump ? jstack it is ? or other method? jstack will work. http://wiki.apache.org/tomcat/HowTo#How_do_I_obtain_a_thread_dump_of_my_running

java.io.NotSerializableException: org.apache.catalina.realm.GenericPrincipal

2011-03-11 Thread Ronald Klop
Hi, https://issues.apache.org/bugzilla/show_bug.cgi?id=47502 Because this issue is fixed I re-enabled using the security-constraint in web.xml to protect some pages in stead of using my own workaround. But now I get a somewhat similar exception. This is running Tomcat 6.0.32 (directly from yo

Re: JSP class size increase in Tomcat 7

2011-03-11 Thread Jess Holle
On 3/11/2011 3:22 AM, Mark Thomas wrote: The obvious difference is that Tomcat 6 compilation targets Java 5 whereas Tomcat 7 targets Java 6. For a simple test JSP: Tomcat 6 (1.5) - 3,488 Tomcat 7 (1.5) - 3,530 +1% Tomcat 7 (1.6) - 3,668 +6% The 1% will be a combination of: - Tomcat 7 uses versio

Re: tomcat http connector errors

2011-03-11 Thread Kobi Biton
hi mark, Thanks the reply since I am the Operation guy not sure what you mean by thread dump ? jstack it is ? or other method? Kobi. On Fri, Mar 11, 2011 at 11:24 AM, Mark Thomas wrote: > On 11/03/2011 08:23, Kobi Biton wrote: > > > So my question is how can I troubleshoot the issue further

antlib.xml could not be found

2011-03-11 Thread Marseld Dedgjonaj
Hello everybody, I am new to Tomcat and more detailed help would be more valuable to me. I am trying to use Ant to reload a tomcat application. I write the build.xml file based on "Managing Applications with Ant" section of the "Professional Apache Tomcat" book. If it helps I am using: Fedora

Re: tomcat http connector errors

2011-03-11 Thread Mark Thomas
On 11/03/2011 08:23, Kobi Biton wrote: > So my question is how can I troubleshoot the issue further ? I'd start by taking a thread dump to see what is going on. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org

Re: JSP class size increase in Tomcat 7

2011-03-11 Thread Mark Thomas
On 11/03/2011 04:50, Bob Hall wrote: > > --- On Thu, 3/10/11 at 8:43 PM, Jess Holle wrote: > Yes, both Java 6 Update 24. >>> Just to verify, are both instances Tomcat running in >> the same JVM mode (-client or -server)? (That >> shouldn't affect the .class file size, but just >> checking.

tomcat http connector errors

2011-03-11 Thread Kobi Biton
hi folks, I am running tomcat 5.5.26 , openJDK 64BIT 1.6.0-b09 , CentoOS 5.5 64bit , my site is request pattern is high and short req/s , I have a load balancer in-front of my tomcat servers , the load balancer uses a Curl simple http request to the tomcat connector on port 8080 (simple http ge