Re: Usage of Tomcat SSL in client-side class

2010-11-17 Thread Moley Harey
Thanks a lot Christopher, my web services are implemented using JAX WS API and I am connecting using REST, I was planning to use Apache Http Commons library for HTTPS as is the one I am using for simple HTTP connections... 2010/11/16 Christopher Schultz ch...@christopherschultz.net -BEGIN

Re: Usage of Tomcat SSL in client-side class

2010-11-17 Thread Moley Harey
Thanks André, I have been checking Apache Http Commons API for connecting through HTTPS in my client-side classes and it seems that protocol is supported well. My doubt regarding if I had to do anything special in the client side was related to the certificate, I have a self generated certificate

String index out of range when compilling a file

2010-11-17 Thread rcabanas
Hello, I'm using a server WPS which has a Admin Console that allows you to upload java files and compile them. When doing that I get the following message: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling

Re: Request count increases drastically in tomcat 6.0.29

2010-11-17 Thread Mark Thomas
On 17/11/2010 06:45, rujin raj wrote: Hi, I am using an application in tomcat 6.0.29 and the java version is 1.6 64 bit. I am facing the problem in my application when the request count is more(this i am watching through Lambda probe). Please give me some idea why this request count is

Re: String index out of range when compilling a file

2010-11-17 Thread Mark Thomas
On 17/11/2010 08:56, rcabanas wrote: Hello, I'm using a server WPS which has a Admin Console that allows you to upload java files and compile them. When doing that I get the following message: That's nice. I don't see a question above but I assume that your post was trying to report what you

RE: the tomcat encoding

2010-11-17 Thread Rob Gregory
Thanks Chris, I originally did struggle with encoding so have probably gone over the top in an attempt to fix the issues I was having. I will review my code following your suggestions. Many Thanks Rob From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: 16 November 2010

Problem with Tomcat windows service when user delete/changed

2010-11-17 Thread Tomislav Petrović
Recently had this problem on customer site. I've been given one windows user to install Tomcat and my application under it. Tomcat service+native has been installed and all worked well. Recently their IT deleted this user and gave me another one for monitoring and support. After the did this

Re: Problem with Tomcat windows service when user delete/changed

2010-11-17 Thread Konstantin Kolinko
2010/11/17 Tomislav Petrović t.petro...@inet.hr: After the did this Tomcat stopped working correctly. Default application and doc are been served (localhost:8080/ and localhost:8080/docs) but no other webapp (mine and several others) is working (getting 404s). I've checked user file

Re: Problem with Tomcat windows service when user delete/changed

2010-11-17 Thread Tomislav Petrović
Konstantin Kolinko said on 17.11.2010 11:22: 2010/11/17 Tomislav Petrovićt.petro...@inet.hr: After the did this Tomcat stopped working correctly. Default application and doc are been served (localhost:8080/ and localhost:8080/docs) but no other webapp (mine and several others) is working

Re: Problem with Tomcat windows service when user delete/changed

2010-11-17 Thread Konstantin Kolinko
2010/11/17 Tomislav Petrović t.petro...@inet.hr: Konstantin Kolinko said on 17.11.2010 11:22: 2010/11/17 Tomislav Petrovićt.petro...@inet.hr: After the did this Tomcat stopped working correctly. Default application and doc are been served (localhost:8080/ and localhost:8080/docs) but no

Dynamic GlobalNamingResources / Shared JDBC connection pools

2010-11-17 Thread Rob Gregory
Tomcat Users, We are trying to migrate a web application from a single context containing multiple JDBC datasources to a web application deployed over multiple contexts but without duplicating the shared datasources. Reading the docs at

Re: Request count increases drastically in tomcat 6.0.29

2010-11-17 Thread rujin raj
MArk, Its request count Screen shot attached. --rujin On 17/11/2010, Mark Thomas ma...@apache.org wrote: On 17/11/2010 06:45, rujin raj wrote: Hi, I am using an application in tomcat 6.0.29 and the java version is 1.6 64 bit. I am facing the problem in my application when the request

Re: Request count increases drastically in tomcat 6.0.29

2010-11-17 Thread André Warnier
rujin raj wrote: MArk, Its request count Screen shot attached. --rujin On 17/11/2010, Mark Thomas ma...@apache.org wrote: On 17/11/2010 06:45, rujin raj wrote: Hi, I am using an application in tomcat 6.0.29 and the java version is 1.6 64 bit. I am facing the problem in my application when

RE: Dynamic GlobalNamingResources / Shared JDBC connection pools

2010-11-17 Thread Rob Gregory
Is it possible to just store my existing collection of datasources in some global context? I.e. initCtx = new InitialContext(); Context envCtx = (Context)initCtx.lookup(java:/comp/env); envCtx.bind(datasource_live, objLiveDatasource); envCtx.bind(datasource_test, objTestDatasource); or

Re: Tomcat Going down Frequently

2010-11-17 Thread Amol Puglia
Hello Andre, We are proxying request from apache to tomcat using mod_proxy and mod_proxy_ajp Following is the load balancer configuration in apache. kindly let me know in case you need further details. # Port 80    Listen server_name:80    #Listen 153.88.86.250:80    VirtualHost _default_:80   

Re: Request count increases drastically in tomcat 6.0.29

2010-11-17 Thread André Warnier
Rujin, as it is phrased, your message is not very clear. It is probably a question of language or terminology. I don't know how LambdaProbe displays the information, but - a request is what the browser sends to Tomcat (like GET /index.jsp) - when Tomcat receives the request, it selects an idle

WEB Application need to upload a txt / csv file with 100K records

2010-11-17 Thread Karthik Nanjangude
Hi SPEC : JDK1.5 WEB SERVER : TOMCAT 5.0.20 O/s Linux - Unix DB Oracle 10gAS + PLSQL Logged Session Time An module of our WEB Application need to upload a txt / csv file with 100K records. These Records are to be validated with certain checks in the Business layer..Before the pumped to

Re: WEB Application need to upload a txt / csv file with 100K records

2010-11-17 Thread André Warnier
Karthik Nanjangude wrote: Hi SPEC : JDK1.5 WEB SERVER : TOMCAT 5.0.20 O/s Linux - Unix DB Oracle 10gAS + PLSQL Logged Session Time An module of our WEB Application need to upload a txt / csv file with 100K records. These Records are to be validated with certain checks in the Business

Re: WEB Application need to upload a txt / csv file with 100K records

2010-11-17 Thread Marian Simpetru
Hi, you can do this using some ajax: First upload the file then in the returning JSP you will have a ajax request that check the status of the process. You can check the validation process, then the actual database insert. The resource checked will return the message (and depending of the

Re: Placing JARs in ..../tomcat/shared/lib causes leaks when stopping apps?

2010-11-17 Thread Mark Shifman
On 11/17/2010 02:43 AM, Mikolaj Rydzewski wrote: On Tue, 16 Nov 2010 22:55:10 -0500, Brian bbprefix-m...@yahoo.com wrote: I have two identical apps running at the same time. I mean, they use exactly the same WAR, but each one runs in a different web domain. [...] You should rather

RE: Placing JARs in ..../tomcat/shared/lib causes leaks when stopping apps?

2010-11-17 Thread Brian
Hi Mikolaj and Mark, Thanks for your help. I do know about aliases, but for some reason a couple of years ago I decided to keep each domain in a different context. And that reason was.hummm..like.. you know what? Either I forgot what the reason was (maybe because I have barely

Re: Request count increases drastically in tomcat 6.0.29

2010-11-17 Thread rujin raj
Warnier, Herewith I given the details: http-443 Current thread count: 1149 Current threads busy: 1148 Max threads: 3000 Max spare threads: 0 Min spare threads: 0 Max time (ms): 896953 Processing time (ms): 166070125 *Request count: 148736* Error count: 527 Received: 687Kb Sent: 143Mb Tomcat

RE: Placing JARs in ..../tomcat/shared/lib causes leaks when stopping apps?

2010-11-17 Thread Caldarale, Charles R
From: Brian [mailto:bbprefix-m...@yahoo.com] Subject: RE: Placing JARs in /tomcat/shared/lib causes leaks when stopping apps? if I don’t remember any valid reason to keep two contexts, I will start using just one! One strong reason to not merge the contexts is to preclude any chance

Re: Request count increases drastically in tomcat 6.0.29

2010-11-17 Thread André Warnier
Hi. Again, I do not know LambdaProbe and I don't know precisely how it names things. But what I believe is this : http-443 Current thread count: 1149 Current threads busy: 1148 Max threads: 3000 Max spare threads: 0 Min spare threads: 0 Max time (ms): 896953 Processing time (ms): 166070125

RE: WEB Application need to upload a txt / csv file with 100K records

2010-11-17 Thread Karthik Nanjangude
Hi but if the browser has to wait more than 3-4 minutes for a server response, the browser will time out on the connection and declare the server dead. I definitely vote for this primary Issue .. :{ Any more suggestions With regards karthik -Original Message- From: André

Re: Problem with Tomcat windows service when user delete/changed

2010-11-17 Thread Tomislav Petrović
Konstantin Kolinko said on 17.11.2010 12:05: 2010/11/17 Tomislav Petrovićt.petro...@inet.hr: Konstantin Kolinko said on 17.11.2010 11:22: 2010/11/17 Tomislav Petrovićt.petro...@inet.hr: After the did this Tomcat stopped working correctly. Default application and doc are been served

Change the class loading of tomcat 6.0.29 to child-first

2010-11-17 Thread Alberto Bugna
Hi I'm running tomcat 6.0.29 on windows vista. I'have deployed a web application under webapps folder. This web application comes with some jar libraries. Unfortunately these libraries conflicts with others libraries installed under tomcat. I deployed under tomcat Mule esb so I have a lot of

Re: Change the class loading of tomcat 6.0.29 to child-first

2010-11-17 Thread Mark Thomas
On 17/11/2010 16:18, Alberto Bugna wrote: Hi I'm running tomcat 6.0.29 on windows vista. I'have deployed a web application under webapps folder. This web application comes with some jar libraries. Unfortunately these libraries conflicts with others libraries installed under tomcat. I

Re: Tomcat Going down Frequently

2010-11-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 11/16/2010 6:24 PM, Pid wrote: On 16/11/2010 21:15, Christopher Schultz wrote: 2. There is no way for a client to check the validity of an HttpSession object before calling getAttribute (or setAttribute for that matter) The HttpSession

Re: Using mod_jk in cluster environment responds HTTP 500

2010-11-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rikslovein, On 11/17/2010 12:14 AM, rikslovein wrote: Thanks for your help and your responses once again. I now solved the problem. The problem was with the jkmanager URL I was using in the code. Glad to hear you found the problem. I think

Re: Usage of Tomcat SSL in client-side class

2010-11-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Moley, On 11/17/2010 3:23 AM, Moley Harey wrote: Thanks a lot Christopher, my web services are implemented using JAX WS API and I am connecting using REST, I was planning to use Apache Http Commons library for HTTPS as is the one I am using for

Re: String index out of range when compilling a file

2010-11-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, On 11/17/2010 3:56 AM, rcabanas wrote: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 java.lang.String.substring(String.java:1937) java.lang.String.substring(String.java:1904)

Re: Dynamic GlobalNamingResources / Shared JDBC connection pools

2010-11-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rob, On 11/17/2010 7:07 AM, Rob Gregory wrote: Is it possible to just store my existing collection of datasources in some global context? I.e. initCtx = new InitialContext(); Context envCtx = (Context)initCtx.lookup(java:/comp/env);

Re: Change the class loading of tomcat 6.0.29 to child-first

2010-11-17 Thread Alberto Bugna
Hi Mark Thanks for responding. Let's make an example. Suppose I have two libraries that implement the same functionality. The only differ for example for the version. Suppose my web app uses that kind of library. I have libV2.jar in the lib folder of the web app, and libV1.jar in the libs

Re: Change the class loading of tomcat 6.0.29 to child-first

2010-11-17 Thread Mark Thomas
On 17/11/2010 16:44, Alberto Bugna wrote: Hi Mark Thanks for responding. Let's make an example. Suppose I have two libraries that implement the same functionality. The only differ for example for the version. Suppose my web app uses that kind of library. I have libV2.jar in the lib

Re: WEB Application need to upload a txt / csv file with 100K records

2010-11-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Karthik, On 11/17/2010 7:41 AM, Karthik Nanjangude wrote: JDK1.5 Upgrade. WEB SERVER : TOMCAT 5.0.20 Upgrade. Logged Session Time An module of our WEB Application need to upload a txt / csv file with 100K records. These Records are to be

Re: Request count increases drastically in tomcat 6.0.29

2010-11-17 Thread Pid
On 17/11/2010 13:51, rujin raj wrote: s it the normal for any application to keeps increasing the request count. Yes, if either the number of users is increasing, or you are counting cumulative requests. p 0x62590808.asc Description: application/pgp-keys signature.asc Description: OpenPGP

RE: After manager says that there was a leak, how to use a profiler?

2010-11-17 Thread Brian
I'm doing it, thanks! -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Tuesday, November 16, 2010 04:27 PM To: Tomcat Users List Subject: RE: After manager says that there was a leak, how to use a profiler? From: Brian

FW: After manager says that there was a leak, how to use a profiler?

2010-11-17 Thread Brian
I will have to swallow my pride with this question. I bet this is a very easy issue, but for some reason I haven't found an answer. I moved my JARs from the .../tomcat/shared/lib directory to the web-inf/lib directory in the app itself, but it seems that the JARs there are not being discovered by

RE: After manager says that there was a leak, how to use a profiler?

2010-11-17 Thread Caldarale, Charles R
From: Brian [mailto:bbprefix-m...@yahoo.com] Subject: FW: After manager says that there was a leak, how to use a profiler? I moved my JARs from the .../tomcat/shared/lib directory to the web-inf/lib directory in the app itself It better be WEB-INF/lib; case matters (even on Windows). it

Re: FW: After manager says that there was a leak, how to use a profiler?

2010-11-17 Thread Pid
On 17/11/2010 20:56, Brian wrote: I will have to swallow my pride with this question. I bet this is a very easy issue, but for some reason I haven't found an answer. I moved my JARs from the .../tomcat/shared/lib directory to the web-inf/lib directory in the app itself, but it seems that the

[OT] How to obtain the id of the current process

2010-11-17 Thread Leon Rosenberg
Hi, I have a ugly issue I'm sure many people on this list already solved. For multiple purposes I need pid's of processes, to stop/start them or ensure they are running. So far nothing spectacular. To obtain the pid I have following util: String[] cmd = { /bin/bash, -c, echo $PPID }; p =

Re: [OT] How to obtain the id of the current process

2010-11-17 Thread Pid
On 17/11/2010 21:30, Leon Rosenberg wrote: Hi, I have a ugly issue I'm sure many people on this list already solved. For multiple purposes I need pid's of processes, to stop/start them or ensure they are running. So far nothing spectacular. To obtain the pid I have following util:

Re: [OT] How to obtain the id of the current process

2010-11-17 Thread André Warnier
I found the following trick somewhere, maybe it works for you : When starting your JVM, use a line like java -Dpid=$$ program.java and in the java program using the statement System.getProperty(pid); If it works, it's cute, and certainly a lot less overhead. Credits :

Tomcat hung

2010-11-17 Thread Robillard, Greg L
I continually get tomcat in this state and can only recover by restarting tomcat from the command line. Here is the stack trace that I gathered while getting into this state, but it does not make any sense to me. Tomcat version apache-tomcat-6.0.26 OS linux Jstack trace on tomcat hang.

Re: [OT] How to obtain the id of the current process

2010-11-17 Thread Leon Rosenberg
Pid, Andre thanx. I will try both approaches. I will try the MX Bean first, this just seems to be more elegant ;) thank you Leon On Wed, Nov 17, 2010 at 10:50 PM, André Warnier a...@ice-sa.com wrote: I found the following trick somewhere, maybe it works for you : When starting your JVM, use a

Re: Tomcat hung

2010-11-17 Thread Pid
On 17/11/2010 21:50, Robillard, Greg L wrote: I continually get tomcat in this state and can only recover by restarting tomcat from the command line. Here is the stack trace that I gathered while getting into this state, but it does not make any sense to me. Production or testing? Are

RE: Tomcat hung

2010-11-17 Thread Caldarale, Charles R
From: Robillard, Greg L [mailto:greg.l.robill...@lmco.com] Subject: Tomcat hung JVM version is 10.0-b19 No idea what JVM that is; strongly suggest you install a real one (e.g., 6u22) and see if the problem goes away. What happens if you run Tomcat directly, not under control of the IDE?

RE: String index out of range when compilling a file

2010-11-17 Thread Noah, Craig [USA]
Specifically, are you sure that your String is not null? -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Wednesday, November 17, 2010 10:42 AM To: Tomcat Users List Subject: Re: String index out of range when compilling a file -BEGIN PGP

Re: [OT] How to obtain the id of the current process

2010-11-17 Thread Konstantin Kolinko
2010/11/18 Leon Rosenberg rosenberg.l...@gmail.com: Is there another method to obtain the process id from within the process? Of Tomcat process, or of something else? You can set $CATALINA_PID in your bin/setenv.sh, and Tomcat's PID will be written to that file. If you need it for something

RE: 7.0.4 problem

2010-11-17 Thread Anthony J. Biacco
I can confirm my thread issue is fixed in trunk (Revision 1036249) using defaults. -Tony --- Manager, IT Operations Format Dynamics, Inc. P: 303-228-7327 F: 303-228-7305 abia...@formatdynamics.com http://www.formatdynamics.com -Original Message- From: Anthony

Re: [OT] How to obtain the id of the current process

2010-11-17 Thread Pid
On 17/11/2010 22:02, Konstantin Kolinko wrote: 2010/11/18 Leon Rosenberg rosenberg.l...@gmail.com: Is there another method to obtain the process id from within the process? Of Tomcat process, or of something else? You can set $CATALINA_PID in your bin/setenv.sh, and Tomcat's PID will be

Re: [OT] How to obtain the id of the current process

2010-11-17 Thread André Warnier
Leon Rosenberg wrote: Pid, Andre thanx. I will try both approaches. I will try the MX Bean first, this just seems to be more elegant ;) Typical Java thinking.. Sure, let's pull in another 15 classes.. Gotta use those GB of RAM for something.. Why do simple when complicated would do just as

Re: [OT] How to obtain the id of the current process

2010-11-17 Thread Konstantin Kolinko
2010/11/18 André Warnier a...@ice-sa.com: I prefer Konstantin's first suggestion. Now the question is : if Tomcat writes it's PID to that file, where does Tomcat get it from ? Look into catalina.sh echo $! $CATALINA_PID (after spawning java as a background process) BTW, from all methods

Re: [OT] How to obtain the id of the current process

2010-11-17 Thread Leon Rosenberg
On Thu, Nov 18, 2010 at 12:00 AM, Konstantin Kolinko knst.koli...@gmail.com wrote: I like the following:  int pid = Integer.parseInt( ( new File(/proc/self)).getCanonicalFile().getName() ); doesn't work on a mac ;-( - To

Re: [OT] How to obtain the id of the current process

2010-11-17 Thread Leon Rosenberg
On Wed, Nov 17, 2010 at 11:41 PM, André Warnier a...@ice-sa.com wrote: Leon Rosenberg wrote: Pid, Andre thanx. I will try both approaches. I will try the MX Bean first, this just seems to be more elegant ;) Typical Java thinking.. Sure, let's pull in another 15 classes.. Gotta use those

RE: After manager says that there was a leak, how to use a profiler?

2010-11-17 Thread Brian
Hi Chuck, -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Wednesday, November 17, 2010 04:02 PM To: Tomcat Users List Subject: RE: After manager says that there was a leak, how to use a profiler? From: Brian [mailto:bbprefix-m...@yahoo.com]

RE: FW: After manager says that there was a leak, how to use a profiler?

2010-11-17 Thread Brian
-Original Message- From: Pid [mailto:p...@pidster.com] Sent: Wednesday, November 17, 2010 04:02 PM To: Tomcat Users List Subject: Re: FW: After manager says that there was a leak, how to use a profiler? On 17/11/2010 20:56, Brian wrote: I will have to swallow my pride with this

RE: FW: After manager says that there was a leak, how to use a profiler?

2010-11-17 Thread Caldarale, Charles R
From: Brian [mailto:bbprefix-m...@yahoo.com] Subject: RE: FW: After manager says that there was a leak, how to use a profiler? It seems that the JARs inside ...WEB-INF/lib are not being discovered or used. Hence the request to see your catalina.properties - which looks fine. What's in

RE: FW: After manager says that there was a leak, how to use a profiler?

2010-11-17 Thread Brian
-Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Wednesday, November 17, 2010 06:46 PM To: Tomcat Users List Subject: RE: FW: After manager says that there was a leak, how to use a profiler? From: Brian [mailto:bbprefix-m...@yahoo.com]

Re: its never too soon to start a new career

2010-11-17 Thread kcole
If you only new. --Original Message-- From: Ed _ To: tbott9...@aol.com ReplyTo: Tomcat Users List Subject: its never too soon to start a new career Sent: Nov 17, 2010 10:15 PM http://bit.ly/ctw5IG Sent from my Verizon Wireless BlackBerry

RE: FW: After manager says that there was a leak, how to use a profiler?

2010-11-17 Thread Brian
I have notices several weird things: - Sometimes it runs, sometimes it doesn't - When I'm in Eclipse, if I already started the Tomcat server and it is running, if I ask to run it again, it does without any error messages in the log It looks like if it was a syncronization issue. Something like

configuring the tomcat-6 to support list of user certificates

2010-11-17 Thread shashidhar v
Hi, Can anyone give some idea to configure the tomcat-6.0.18 to enable SSL ( https ) and also to support the list of user certificates to access a sample web application I have the user certificate and also the CA certficate , I have checked the docs of tomcat but i was not clear to configure it

Re: Problem in accessing jsp:useBean

2010-11-17 Thread Rekha Ravi Pai
users-digest-h...@tomcat.apache.org wrote: users Digest 15 Nov 2010 11:40:18 - Issue 10062 Topics (messages 219005 through 219016): Re: Tomcat 6.0.29 using more and more RAM until it collapses? 219005 by: Andr Warnier 219010 by: Mark Thomas Re: 7.0.4

Re: Problem in accessing jsp:useBean

2010-11-17 Thread Karl San Gabriel
*Your code: %@ page import = beans.*, java.sql.*% jsp:useBean id=verify scope=session class=PasswordEncryptService /* I think the value for class should be beans.PasswordEncryptService. Class should be package.class. That's what I remember. or

RE: FW: After manager says that there was a leak, how to use a profiler?

2010-11-17 Thread Brian
Solved: I had several contexts in my server, in each one was already a WAR created days ago. I forgot about all these old WARs. Since I took off my JARs from the shared/lib directory, all these old WARs could not work because they didn't include the JARs inside. So basically I was trying to run