Re: --Jvm option trouble with Windows service

2011-03-15 Thread Mladen Turk
On 03/16/2011 06:17 AM, Olivier Lefevre wrote: I get this: [2011-03-16 06:12:39] [debug] ( javajni.c:195 ) Invalid RuntimeLib 'C:\Java\j2sdk1.6.0\bin\server\jvm.dll' [2011-03-16 06:12:39] [debug] ( javajni.c:197 ) Using Jre JavaHome 'C:\Programme\Java\jre6' [2011-03-16 06:12:39] [debug] ( java

Re: JMX Connection "leak"

2011-03-15 Thread Maimon Oded
Thanks On Sun, Mar 13, 2011 at 11:56 AM, Mark Thomas wrote: > On 13/03/2011 08:33, Maimon Oded wrote: > > Hi, > > I'm using tomcat 6 and HypericHQ for monitoring via JMX. > > I don't know if this is an hyperic issue or not, but i wonder if there is > an > > option to fix it via tomcat/java confi

Re: Tomcat 7 Per Instance Memory Footprint in Hello World App.

2011-03-15 Thread Thomas Freitag
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Noah, On 03/15/2011 07:05 PM, Noah Cutler wrote: > Obviously per instance is a memory hungry solution, albeit highly > convenient. Placing all sites in a single instance is a possibility as > well (and the most resource "friendly"), but I would nee

Re: --Jvm option trouble with Windows service

2011-03-15 Thread Olivier Lefevre
To be absolutely sure I uninstalled both JRE and JDK, manually removing anything left behind, and reinstalled. This time the JRE did not have a server JVM indeed, so maybe another program had copied it. However the JDK has one and if I use it for the Tomcat server and later try to start it (with d

Re: --Jvm option trouble with Windows service

2011-03-15 Thread Olivier Lefevre
On 3/16/2011 2:50 AM, Konstantin Kolinko wrote: What version of JRE are you using? The latest 6u24 one does not have the file. It is 6u24. I did not copy anything. In addition, I already told you that I get the same error if I use the server JVM from the JDK. -- O.L. --

Re: Hard time finding a but on Tomcat 7 (doesn't happen on 6.)

2011-03-15 Thread Peter P. Lupo
I'm still up. lol I'm using spring security, weld, primefaces and JPA (hibernate as provider). So far I have already tested regular JSPs, servlets, JSF (pure and getting values from managed bean), primefaces, weld, spring security and JPA one by one, isolated. I didn't get even 2 of these set up a

Re: Hard time finding a but on Tomcat 7 (doesn't happen on 6.)

2011-03-15 Thread Peter P. Lupo
Oh, yeah, I forgot to mention the logs. They don't show any sign of error. It's getting quite late here and I have to wake up early tomorrow so I will just give it a break and keep testing tomorrow. Thank you for the tips. I'll keep you posted. Regards, Peter P. Lupo http://craftnicely.blogspot.c

RE: Hard time finding a but on Tomcat 7 (doesn't happen on 6.)

2011-03-15 Thread Caldarale, Charles R
> From: Peter P. Lupo [mailto:ppl...@gmail.com] > Subject: Re: Hard time finding a but on Tomcat 7 (doesn't happen on 6.) > I told you, the latest one. So it's 1.44. The problem is that different people have different views of what is "latest". We've had at least one user claiming to have the

Re: Hard time finding a but on Tomcat 7 (doesn't happen on 6.)

2011-03-15 Thread Peter P. Lupo
I told you, the latest one. So it's 1.44. The "exact" message is: Exception in thread ""http-bio-8080"-exec-8" but the number at the end ("8") varies and the number of messages like those varies also. Each new message comes with a higher ending number. So far I was unable to find out any correspon

RE: Hard time finding a but on Tomcat 7 (doesn't happen on 6.)

2011-03-15 Thread Caldarale, Charles R
> From: Peter P. Lupo [mailto:ppl...@gmail.com] > Subject: Re: Hard time finding a but on Tomcat 7 (doesn't happen on 6.) > I'm talking about this Java Mail: > http://www.oracle.com/technetwork/java/javamail/index.html You really, really need to be specific. There are several versions of JavaMa

Re: --Jvm option trouble with Windows service

2011-03-15 Thread Konstantin Kolinko
2011/3/15 Olivier Lefevre : > On 3/15/2011 8:28 PM, Konstantin Kolinko wrote: >>> >>> Saying it does not make so. I assure you that both the JRE and the >>> JDK include the bin/server/jvm.dll. >> >> On Linux yes. On Windows no. Have you looked there? Or you have a 64-bit >> JRE? > > Of course I hav

Re: Populating Oracle v$session.program from Tomcat Context.xml

2011-03-15 Thread Jorge Medina
What is the problem that you are trying to solve? On Mon, Mar 14, 2011 at 4:25 PM, Dan wrote: > On Mon, Mar 14, 2011 at 11:25 AM, Dan wrote: >> On Mon, Mar 14, 2011 at 10:57 AM, chris derham wrote: We have some working tomcat 6 instances that we'd like to identify >>> >>> >>> Can you use t

Re: Hard time finding a but on Tomcat 7 (doesn't happen on 6.)

2011-03-15 Thread Peter P. Lupo
I'm sorry, I was in a hurry because I had to leave, you guys were very responsive and I thought I could give you the info I had at hand. I'm talking about this Java Mail: http://www.oracle.com/technetwork/java/javamail/index.html The messages are being printed on the console. It just prints someth

Re: Hard time finding a but on Tomcat 7 (doesn't happen on 6.)

2011-03-15 Thread Konstantin Kolinko
2011/3/16 Peter P. Lupo : > Hmm... sorry guys, I expected to find other ppl here... lol... this mail.jar > is the official from Oracle. I got it there and I also tried the version > before the actual one. lol. Clairvoyants? There are several versions of JavaMail specifications out there, and a num

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-15 Thread Brian Braun
I don't know yet which project are you talking about, but why haven't you decided to migrate to JSF 2.0 or Spring MVC, instead of staying with Struts? My needs are mostly to create apps faster, specially in the GUI. The forms, the validation, the old basic HTML... I spend too much time doing that,

Re: Hard time finding a but on Tomcat 7 (doesn't happen on 6.)

2011-03-15 Thread Peter P. Lupo
Hmm... sorry guys, I expected to find other ppl here... lol... this mail.jar is the official from Oracle. I got it there and I also tried the version before the actual one. It does not happen on the examples. I don't know what triggers it but something has changed from tomcat 6 to tomcat 7 that pr

RE: Hard time finding a but on Tomcat 7 (doesn't happen on 6.)

2011-03-15 Thread Caldarale, Charles R
> From: Peter P. Lupo [mailto:ppl...@gmail.com] > Subject: Hard time finding a but on Tomcat 7 (doesn't happen on 6.) > I'm trying to add mail.jar (Java Mail) to my app's lib (the problem > also happens with tomcat's lib). As asked earlier: 1) Where did you get this mail.jar? 2) What's in it?

Re: Hard time finding a but on Tomcat 7 (doesn't happen on 6.)

2011-03-15 Thread Mark Thomas
On 15/03/2011 22:57, Peter P. Lupo wrote: > I'm trying to add mail.jar (Java Mail) to my app's lib (the problem also > happens with tomcat's lib). It is quite simple. If I do it, I start getting > "Exception in thread http-bio-8080" error and it keeps printing it like in a > loop. The problem start

Re: Tomcat 7 Per Instance Memory Footprint in Hello World App.

2011-03-15 Thread Noah Cutler
Chris, thanks for the excellent feedback; thus far this list exceeds Stackoverflow by orders of magnitude ;--) Re: ease of implementation, yes, a single instance with multiple virtual hosts is the way to go (similar setup to apache virtual hosts). However, some of the LAMP stack apps will have le

Hard time finding a but on Tomcat 7 (doesn't happen on 6.)

2011-03-15 Thread Peter P. Lupo
I'm trying to add mail.jar (Java Mail) to my app's lib (the problem also happens with tomcat's lib). It is quite simple. If I do it, I start getting "Exception in thread http-bio-8080" error and it keeps printing it like in a loop. The problem starts as soon as I make a request to a servlet or to a

Re: What is the right way to redirect http to https with tomcat 7 ?

2011-03-15 Thread János Löbb
Filip, Works like charm. Thanks a lot, János On Mar 14, 2011, at 7:29 PM, Filip Hanik - Dev Lists wrote: > On 3/14/2011 3:46 PM, János Löbb wrote: >> Hi, >> >> I set up ssl using the JAVA_HOME/bin/keytool on OSX 10.6.6 - JSSE type >> configuration with a self-signed certificate. Modified se

Re: Tomcat 7 Per Instance Memory Footprint in Hello World App.

2011-03-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Noah, On 3/15/2011 2:05 PM, Noah Cutler wrote: > Obviously per instance is a memory hungry solution, albeit highly > convenient. Placing all sites in a single instance is a possibility as > well (and the most resource "friendly"), but I would need to

Re: Tomcat 7 Per Instance Memory Footprint in Hello World App.

2011-03-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Noah, On 3/15/2011 3:27 AM, Noah Cutler wrote: > So, given that a running 32-bit JVM on Linux will require at least 1GB > RAM, total memory usage will not be JVM footprint * num instances, but > rather, JVM footprint + num instances? Not necessarily.

Re: Problem with keystore location on Unix

2011-03-15 Thread Olivier Lefevre
On 3/15/2011 8:34 PM, Konstantin Kolinko wrote: "/tomcat.jks" is a relative path on Windows, but absolute one on Linux. OK. I thought Tomcat would always interpret it as a relative path. Try with "${catalina.home}/tomcat.jks" Yes, that works on both systems, so it is the safe option. Thank

Re: --Jvm option trouble with Windows service

2011-03-15 Thread Olivier Lefevre
On 3/15/2011 8:28 PM, Konstantin Kolinko wrote: Saying it does not make so. I assure you that both the JRE and the JDK include the bin/server/jvm.dll. On Linux yes. On Windows no. Have you looked there? Or you have a 64-bit JRE? Of course I have looked there! And no I don't have a 64bit JRE.

Re: Problem with keystore location on Unix

2011-03-15 Thread Konstantin Kolinko
2011/3/15 Olivier Lefevre : > In the HTTPS Connector element of my server.xml I have > keystoreFile="/tomcat.jks". This works fine on Windows > but fails on Linux with "java.io.FileNotFoundException: > /tomcat.jks (No such file or directory)". "/tomcat.jks" is a relative path on Windows, but absol

Re: --Jvm option trouble with Windows service

2011-03-15 Thread Konstantin Kolinko
2011/3/15 Olivier Lefevre : > On 3/15/2011 7:44 PM, Konstantin Kolinko wrote: >> >> Windows versions of JDK do have server JVM, while JREs do not. > > Saying it does not make so. I assure you that both the JRE and the > JDK include the bin/server/jvm.dll. > On Linux yes. On Windows no. Have you lo

Problem with keystore location on Unix

2011-03-15 Thread Olivier Lefevre
In the HTTPS Connector element of my server.xml I have keystoreFile="/tomcat.jks". This works fine on Windows but fails on Linux with "java.io.FileNotFoundException: /tomcat.jks (No such file or directory)". Of course $CATALINA_HOME/tomcat.jks exists and is readable. Any idea? Tomcat was started a

Re: --Jvm option trouble with Windows service

2011-03-15 Thread Olivier Lefevre
On 3/15/2011 7:44 PM, Konstantin Kolinko wrote: Windows versions of JDK do have server JVM, while JREs do not. Saying it does not make so. I assure you that both the JRE and the JDK include the bin/server/jvm.dll. In any case this is a red herring because repointing --Jvm to the JDK sever jvm.

Re: --Jvm option trouble with Windows service

2011-03-15 Thread Konstantin Kolinko
2011/3/15 Olivier Lefevre : > On 3/15/2011 4:56 PM, Caldarale, Charles R wrote: >> >> You have a *server* JVM installed on Windows XP?  Want to verify that? > > Like I said, $JAVA_HOME/bin/server/jvm.dll is there. I did nothing > special: I just ran the installer. > --Jvm "C:\Programme\Java\jre6\b

RE: Typical setting for

2011-03-15 Thread Jason Pringle
> -Original Message- > From: Mark Thomas [mailto:ma...@apache.org] > Sent: Tuesday, March 15, 2011 3:02 AM > To: Tomcat Users List > Subject: Re: Typical setting for > > On 15/03/2011 06:06, Jason Pringle wrote: > > Clearly what is there is correct, since it takes some extra effort to > em

Re: Tomcat 7 Per Instance Memory Footprint in Hello World App.

2011-03-15 Thread Noah Cutler
Thomas, perfect, hours of searching Stackoverflow et al resolved in a single mailing list thread ;--) I will play around with various configs (per instance and multi-host per instance) in my local devel to get an idea of no-load resource usage; then, as you say, give some % more to avoid OOMEs in

Re: --Jvm option trouble with Windows service

2011-03-15 Thread Olivier Lefevre
On 3/15/2011 4:56 PM, Caldarale, Charles R wrote: You have a *server* JVM installed on Windows XP? Want to verify that? Like I said, $JAVA_HOME/bin/server/jvm.dll is there. I did nothing special: I just ran the installer. If --StartPath is omitted Tomcat attempts to start in the local direct

Re: Not able to get webapp context to work in Tomcat6

2011-03-15 Thread Dharamshila Khandelwal
Thank you Mark and Thomas! I was able to get that to work. I didn't realize the syntax as I am upgrading from Tomcat 5 to Tomcat 6. On Tue, Mar 15, 2011 at 11:21 AM, Thomas Freitag wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi Dharamshila, > > On 15.03.11 um 11:10, Dharamshila

RE: --Jvm option trouble with Windows service

2011-03-15 Thread Caldarale, Charles R
> From: Olivier Lefevre [mailto:lefev...@yahoo.com] > Subject: --Jvm option trouble with Windows service > --Jvm "C:\Programme\Java\jre6\bin\server\jvm.dll" > If instead --Jvm is set to auto all works well. Why? The DLL > exists, is readable/executable by all and I am doing this under > an accou

Re: Read JSR 045 SMAP Files Produced by Jasper

2011-03-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark and Eric, On 3/15/2011 5:14 AM, Mark Thomas wrote: > On 14/03/2011 20:53, Eric Sheridan wrote: >> SmapParser parser = new SmapParser(inputStream); >> Smap smap = parser.parse(); >> int jspLineNumber = smap.getJspLineNumber(javaLineNumber); >> >>

--Jvm option trouble with Windows service

2011-03-15 Thread Olivier Lefevre
My Tomcat service (since 7.0.8) would die with "Commons Daemon procrun stdout initializedError occurred during initialization of VM Unable to load native library" when I tried to start it. I finally traced got fed up with starting it from the command line and traced it down to this option that is

RE: [OT] Followup on 32-bit versus 64-bit performance discussion(s)

2011-03-15 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: [OT] Followup on 32-bit versus 64-bit performance discussion(s) > A Java int is defined to be 32-bits. Why would it have to be word-length > on the stack? Is that documented anywhere, or does it just end up being > t

RE: [OT] Followup on 32-bit versus 64-bit performance discussion(s)

2011-03-15 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: [OT] Followup on 32-bit versus 64-bit performance discussion(s) So, back to the original question: will a 32-bit JVM on a 64-bit OS give me a bigger heap potential than a 32-bit JVM on a 32-bit OS? Depends entirely on t

Re: Not able to get webapp context to work in Tomcat6

2011-03-15 Thread Thomas Freitag
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Dharamshila, On 15.03.11 um 11:10, Dharamshila Khandelwal wrote: > I have my webapps's context define in > $CATALINA_HOME/conf/Catalina/localhost. > The application is not reading the datasource, I get the following error in > catalina logs: > > U

Re: Not able to get webapp context to work in Tomcat6

2011-03-15 Thread Mark Thomas
On 15/03/2011 15:10, Dharamshila Khandelwal wrote: > Hi, > > I have my webapps's context define in > $CATALINA_HOME/conf/Catalina/localhost. > The application is not reading the datasource, I get the following error in > catalina logs: That'll be because you are trying to use Tomcat 5.0.x syntax

Not able to get webapp context to work in Tomcat6

2011-03-15 Thread Dharamshila Khandelwal
Hi, I have my webapps's context define in $CATALINA_HOME/conf/Catalina/localhost. The application is not reading the datasource, I get the following error in catalina logs: Unhandled SQL Exception: org.apache.tomcat.dbcp.dbcp.SQLNestedException: *Cannot create JDBC driver of class '' for connect

Re: Typical setting for

2011-03-15 Thread Mark Thomas
On 15/03/2011 15:01, Christopher Schultz wrote: > For instance, I guess the hostnames are stored in a Map keyed on > lowercase hostname, and each request does a lookup in that Map to > determine the host that will handle the request. If the result is null, > you choose the defaulHost. Nope. It isn

Re: Typical setting for

2011-03-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 3/15/2011 6:02 AM, Mark Thomas wrote: > On 15/03/2011 06:06, Jason Pringle wrote: >> Clearly what is there is correct, since it takes some extra effort to embed >> a Host header into the HTTP request if you don't have a DNS entry (messing >

Re: [OT] Followup on 32-bit versus 64-bit performance discussion(s)

2011-03-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 3/14/2011 11:20 PM, Caldarale, Charles R wrote: >> From: Leon Rosenberg [mailto:rosenberg.l...@gmail.com] >> Subject: Re: [OT] Followup on 32-bit versus 64-bit performance discussion(s) > >> I'm sorry, I probably missed something, but why

Re: [OT] Followup on 32-bit versus 64-bit performance discussion(s)

2011-03-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 3/15/2011 9:02 AM, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Subject: Re: [OT] Followup on 32-bit versus 64-bit performance discussion(s) > >> A 32-bit process, using 32-bit pointers,

RE: [OT] Followup on 32-bit versus 64-bit performance discussion(s)

2011-03-15 Thread Caldarale, Charles R
> From: peter.crowth...@googlemail.com [mailto:peter.crowth...@googlemail.com] > On Behalf Of Peter Crowther > Subject: Re: [OT] Followup on 32-bit versus 64-bit performance discussion(s) > > Also, a Java int, when allocated on the stack, must take up the same number > > of bits as a pointer. >

Re: [OT] Followup on 32-bit versus 64-bit performance discussion(s)

2011-03-15 Thread Peter Crowther
On 15 March 2011 13:02, Caldarale, Charles R wrote: > Also, a Java int, when allocated on the stack, must take up the same number > of bits as a pointer. > > That's an interesting space/time trade-off (I presume it's to prevent excess arithmetic on stack value accesses). I wonder whether it's sti

RE: [OT] Followup on 32-bit versus 64-bit performance discussion(s)

2011-03-15 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: [OT] Followup on 32-bit versus 64-bit performance discussion(s) > A 32-bit process, using 32-bit pointers, will enjoy a 2x speedup for > those types of data. Also, a Java int, when allocated on the stack, must take

Experiences on ISAPI redirecct fails with Dotnet 4 - can anyone confirm

2011-03-15 Thread Thomas Strauß
Hi, we have received a customer report, that the ISAPI redirect filter failed on an Windows 2003, IIS6.0 x64 when dotnet 4.0 is installed on the same site. The redirector was not able to catch the request prior to dotnet 4 and no pages were served (Server returned status 404) Switching

Re: [OT] Followup on 32-bit versus 64-bit performance discussion(s)

2011-03-15 Thread Peter Crowther
On 15 March 2011 07:36, Leon Rosenberg wrote: > So a 64bit cpu has a 32bit mode, or how would a 32bit OS shrink the > transmit size? I mean the registers stay the same? Frequently, the bottleneck with realistic loads is access to main memory (or, not quite equivalently, on-die cache size). Ass

Re: Typical setting for

2011-03-15 Thread Mark Thomas
On 15/03/2011 06:06, Jason Pringle wrote: > Clearly what is there is correct, since it takes some extra effort to embed a > Host header into the HTTP request if you don't have a DNS entry (messing with > /etc/hosts would be one way). But that last bit of info for how Tomcat > actually makes use

Re: Populating Oracle v$session.program from Tomcat Context.xml

2011-03-15 Thread chris derham
> > We have some working tomcat 6 instances that we'd like to identify > > > >> As David said, this does work with the thin driver, but I need the > > >> service/load balancing functionality from OCI. Any more suggestions > > >> are welcome! > You didn't say what connection pool you are usi

Re: Read JSR 045 SMAP Files Produced by Jasper

2011-03-15 Thread Mark Thomas
On 14/03/2011 20:53, Eric Sheridan wrote: > SmapParser parser = new SmapParser(inputStream); > Smap smap = parser.parse(); > int jspLineNumber = smap.getJspLineNumber(javaLineNumber); > > Does any such code exist? If so, would you mind pointing me to > it? If not, any alternative solutions to look

Re: Tomcat 7 Per Instance Memory Footprint in Hello World App.

2011-03-15 Thread Thomas Freitag
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Noah, On 14.03.11 um 21:27, Noah Cutler wrote: > So, given that a running 32-bit JVM on Linux will require at least 1GB > RAM, total memory usage will not be JVM footprint * num instances, but > rather, JVM footprint + num instances? Actually, the

[SECURITY] CVE-2011-1088 Apache Tomcat security constraint bypass

2011-03-15 Thread Mark Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 CVE-2011-1088 Apache Tomcat security constraint bypass Severity: Important Vendor: The Apache Software Foundation Versions Affected: - - Tomcat 7.0.0 to 7.0.10 - - Earlier versions are not affected Description: When a web application was started, @

Re: [OT] Followup on 32-bit versus 64-bit performance discussion(s)

2011-03-15 Thread Leon Rosenberg
On Tue, Mar 15, 2011 at 4:20 AM, Caldarale, Charles R wrote: >> From: Leon Rosenberg [mailto:rosenberg.l...@gmail.com] >> Subject: Re: [OT] Followup on 32-bit versus 64-bit performance discussion(s) > >> I'm sorry, I probably missed something, but why should 64 bit app on >> 64 bit os on 64 bit cp

Re: Tomcat 7 Per Instance Memory Footprint in Hello World App.

2011-03-15 Thread Noah Cutler
Thomas, excellent, informative. So, given that a running 32-bit JVM on Linux will require at least 1GB RAM, total memory usage will not be JVM footprint * num instances, but rather, JVM footprint + num instances? The use case is transferring 20 client sites from LAMP stack to JVM + Tomcat 7 + MyS