Re: Porting app from Tomcat 5.0.28 to 6.0.26

2010-05-14 Thread Jeff Hubbs
Thanks, Mark - for now I'm trying Tomcat-only pooling (first part of that aforementioned wiki page) just hoping I can get a datasource connection...if that works I may go on to the Hib/c3p0 bit. - Jeff On 5/14/10 3:19 PM, Mark Eggers wrote: I'm not familiar with the earlier versions of Hibern

too man open files?

2010-05-14 Thread Licht Jiang
I run a servlet on tomcat 5.5.27, jvm 1.6.0_10-b33, and fedora 2.6.21.7-2.fc8xen. The service has a problem: after running for a certain time, the servlet becomes unavailable because of "too many open files" exception: 2010-05-13 23:58:14,575 DEBUG - Reload config... 2010-05-13 23:58:14,575 ERROR

Re: Porting app from Tomcat 5.0.28 to 6.0.26

2010-05-14 Thread Mark Eggers
I'm not familiar with the earlier versions of Hibernate, so I can't reliably comment. However, the principles should be the same even if some of the names have changed. If you are relying on Hibernate for database connections and database pooling, then you'll want to put all of that informatio

Re: Restrict http methods

2010-05-14 Thread André Warnier
Mark Thomas wrote: ... TRACE & PUT could be tested safely but it is hard to test DELETE without causing some damage if it is permitted. Well, you could DELETE http://localhost/some-highly-unlikely-url and check if you get a 404, couldn't you ? Although I do remember writing once a URL-check

Re: JAXBContext leaks memory

2010-05-14 Thread Mark Shifman
After playing around I don't think the leak is from JAXBContext. My web app is running under struts 1.3.10. I tested the blank web apps that comes with struts 1.3.10 and it showed a memory leak on undeploying and redeploying. (so did the blank web app for the current struts 2). Using Eclipse MAT

Re: Undeploy task throws error and unwanted html output

2010-05-14 Thread Pankaj Tiwari
Thanks, it worked -Pankaj On Fri, May 14, 2010 at 10:01 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Pankaj Tiwari [mailto:panky.tiw...@gmail.com] > > Subject: Re: Undeploy task throws error and unwanted html output > > > > tomcat.manager.url = http://localhost:8080/m

RE: Undeploy task throws error and unwanted html output

2010-05-14 Thread Caldarale, Charles R
> From: Pankaj Tiwari [mailto:panky.tiw...@gmail.com] > Subject: Re: Undeploy task throws error and unwanted html output > > tomcat.manager.url = http://localhost:8080/manager/html Perhaps if you omit the /html on the end you won't get an HTML response... - Chuck THIS COMMUNICATION MAY CONTA

Re: Undeploy task throws error and unwanted html output

2010-05-14 Thread Pankaj Tiwari
tomcat.manager.url = http://localhost:8080/manager/html Pankaj On Fri, May 14, 2010 at 1:09 PM, Pid wrote: > On 14/05/2010 05:12, Pankaj Tiwari wrote: > > Hi All, > > > > I am using undeploy task to undeploy my application running in tomcat. It > > does the un-deploymen successfully but the re

RE: Porting app from Tomcat 5.0.28 to 6.0.26

2010-05-14 Thread Caldarale, Charles R
> From: Jeff Hubbs [mailto:jhubbsl...@att.net] > Subject: Re: Porting app from Tomcat 5.0.28 to 6.0.26 > > Did Tomcat sprout this ability during the years between > 5.0.28 and 6.0.26 No, Tomcat has done DB connection pooling for ages. > should I abandon c3p0 entirely? Probably not. > this app

RE: Porting app from Tomcat 5.0.28 to 6.0.26

2010-05-14 Thread Caldarale, Charles R
> From: Jeff Hubbs [mailto:jhubbsl...@att.net] > To: Tomcat Users List > Subject: Re: Porting app from Tomcat 5.0.28 to 6.0.26 > > Also, this wiki says " Hibernate ships with the CP30 connection pooling > classes, so as long as the Hibernate jars are in WEB-INF/lib directory > (which they should b

Re: Restrict http methods

2010-05-14 Thread Mark Thomas
On 14/05/2010 16:28, André Warnier wrote: > Leo Donahue - PLANDEVX wrote: > ... > >> >> Yes. I wasn't implementing doPUT or doDELETE and was scratching my >> head trying to figure out how the security scan was able to indicate >> those methods were available. >> > Then it very much looks right no

Re: Restrict http methods

2010-05-14 Thread Hassan Schroeder
On Fri, May 14, 2010 at 8:28 AM, André Warnier wrote: >> trying to figure out how the security scan was able to indicate those >> methods were available. >> > Then it very much looks right now as if it is the scanner which is faulty. A client of mine (at a VeryLargeCo) had to have a "security sc

Re: Porting app from Tomcat 5.0.28 to 6.0.26

2010-05-14 Thread Jeff Hubbs
Also, this wiki says " Hibernate ships with the CP30 connection pooling classes, so as long as the Hibernate jars are in WEB-INF/lib directory (which they should be), they should be available. " Was that also true as of Hibernate 2.1b6? On 5/14/10 9:48 AM, Jeff Hubbs wrote: Thanks, Mark - th

RE: Restrict http methods

2010-05-14 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: Restrict http methods > > So, it does respond 403. > Mark was right. How does he know these things ? Because he writes a bunch of the Tomcat code... and reads nearly all of the rest of it. - Chuck THIS COMMUNICATION MAY CONTAIN CO

Re: Restrict http methods

2010-05-14 Thread André Warnier
Leo Donahue - PLANDEVX wrote: ... Yes. I wasn't implementing doPUT or doDELETE and was scratching my head trying to figure out how the security scan was able to indicate those methods were available. Then it very much looks right now as if it is the scanner which is faulty. Being mainly a

RE: Restrict http methods

2010-05-14 Thread Leo Donahue - PLANDEVX
-Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: Friday, May 14, 2010 5:07 AM To: Tomcat Users List Subject: Re: Restrict http methods Mark Thomas wrote: > On 14/05/2010 09:06, André Warnier wrote: >> Mark Thomas wrote: >>> On 14/05/2010 00:28, André Warnier wrote: >>

Re: Porting app from Tomcat 5.0.28 to 6.0.26

2010-05-14 Thread Jeff Hubbs
Thanks, Mark - this is useful but it also raises more questions for me... This page specifically mentions " Tomcat's database connection pool" - distinct from Hibernate's and I assume distinct from c3p0. Did Tomcat sprout this ability during the years between 5.0.28 and 6.0.26, and if so, sho

Re: Restrict http methods

2010-05-14 Thread Konstantin Kolinko
2010/5/14 Leo Donahue - PLANDEVX : > What do most people use to restrict PUT and DELETE http methods? > Besides what was already said here, you can always write a Filter and configure it in ${catalina.base}/conf/web.xml -- it will be present in all web application on your Tomcat instance. (In ass

Re: Jmxproxy issue

2010-05-14 Thread Pid
On 14/05/2010 12:49, Honey Bajaj wrote: > > Thanks again for responding, both the servers have exactly similar following > configuration, and I am able to execute > /jmxproxy/?qry=java.lang:type=OperatingSystem query successfully on one (i.e. > getting the output) and for the other server the s

Re: Virtual Machine 100% CPU utilisation

2010-05-14 Thread Pid
On 14/05/2010 10:05, Clarke, Dominic wrote: > Hello, > > When are using Tomcat 5.5.20 on a Windows 2003 SP2 Virtual Machine (for > running Business Objects XI v3.1 front end) we experiencing 100 CPU > utlilisation. However we have found that installing the same set up on > a physical machine caus

Re: Restrict http methods

2010-05-14 Thread André Warnier
Mark Thomas wrote: On 14/05/2010 09:06, André Warnier wrote: Mark Thomas wrote: On 14/05/2010 00:28, André Warnier wrote: Leo, normally in the default config of a webserver, these methods are by default disabled, for the simple reason that there is no "handler" defined for them. That is the

Re: Virtual Machine 100% CPU utilisation

2010-05-14 Thread André Warnier
Hi. Clarke, Dominic wrote: Hello, When are using Tomcat 5.5.20 on a Windows 2003 SP2 Virtual Machine (for running Business Objects XI v3.1 front end) we experiencing 100 CPU utlilisation. However we have found that installing the same set up on a physical machine causes no such problem. Looki

Re: determining if webapp is started or stopped?

2010-05-14 Thread Jamie
Hi Mark Thanks. Got it. public int getState() return 1 if RUNNING. On 2010/05/14 01:46 PM, Mark Thomas wrote: On 14/05/2010 12:35, Jamie wrote: Mark I dont know which API you are looking at, but the Context object here http://tomcat.apache.org/tomcat-6.0-doc/api/index.html has no such fun

RE: Jmxproxy issue

2010-05-14 Thread Honey Bajaj
Thanks again for responding, both the servers have exactly similar following configuration, and I am able to execute /jmxproxy/?qry=java.lang:type=OperatingSystem query successfully on one (i.e. getting the output) and for the other server the search string returns OK - Number of results: 0 A

Re: determining if webapp is started or stopped?

2010-05-14 Thread Mark Thomas
On 14/05/2010 12:35, Jamie wrote: > Mark > > I dont know which API you are looking at, but the Context object here > http://tomcat.apache.org/tomcat-6.0-doc/api/index.html has no such > function. I see getAvailable() which could be relevant, but this is > undocumented. Try looking at the source c

Re: determining if webapp is started or stopped?

2010-05-14 Thread Jamie
Mark I dont know which API you are looking at, but the Context object here http://tomcat.apache.org/tomcat-6.0-doc/api/index.html has no such function. I see getAvailable() which could be relevant, but this is undocumented. Jamie On 2010/05/14 01:25 PM, Mark Thomas wrote: On 14/05/2010 1

Re: determining if webapp is started or stopped?

2010-05-14 Thread Mark Thomas
On 14/05/2010 12:22, Jamie wrote: > Hi Mark > > Yes. I have. I could attach to a listener, but this wont help if the app > was started before my manager app is started. Any other ideas? Several. Look at the methods available. Mark >>> Hi There >>> >>> Is there an easy way to determine if a weba

Re: determining if webapp is started or stopped?

2010-05-14 Thread Jamie
Hi Mark Yes. I have. I could attach to a listener, but this wont help if the app was started before my manager app is started. Any other ideas? Hi There Is there an easy way to determine if a webapp is started or stopped using the Tomcat API? I have a org.apache.catalina.Context object.

Re: determining if webapp is started or stopped?

2010-05-14 Thread Mark Thomas
On 14/05/2010 11:58, Jamie wrote: > Hi There > > Is there an easy way to determine if a webapp is started or stopped > using the Tomcat API? I have a org.apache.catalina.Context object. Have you actually looked at the source code or the API docs? There are a couple of obvious candidates. Mark

Re: Jmxproxy issue

2010-05-14 Thread Konstantin Kolinko
2010/5/14 Pid : > On 14/05/2010 10:59, Honey Bajaj wrote: >> Hi All, >> >> I have enabled manager application on tomcat 5.5.9 added the required >> context and security options. >> I am able to logon to the manager application both the status and jmxproxy >> are accessible but jmxproxy didn't con

Re: Servlet

2010-05-14 Thread Pedro Rodrigo Cardiel
El vie, 14-05-2010 a las 11:42 +0100, Pid escribió: > > Is there any way to create a session when an image is requested so that > > the balancer will always send the same machine? > > What handles the image request? If it's a Servlet, then you can do the > same thing. > > Alternatively you coul

determining if webapp is started or stopped?

2010-05-14 Thread Jamie
Hi There Is there an easy way to determine if a webapp is started or stopped using the Tomcat API? I have a org.apache.catalina.Context object. Thanks Jamie - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org Fo

Re: Servlet

2010-05-14 Thread Pid
On 14/05/2010 11:37, Pedro Rodrigo Cardiel wrote: > El vie, 14-05-2010 a las 12:26 +0200, Mikolaj Rydzewski escribió: > >> Pedro Rodrigo Cardiel wrote: >> Since you have a servlet you have dynamic, not static content. >> Use response.getSession() to create one. >> > > > Ok thanks. > > Is there

Re: Servlet

2010-05-14 Thread Mark Thomas
On 14/05/2010 11:37, Pedro Rodrigo Cardiel wrote: > El vie, 14-05-2010 a las 12:26 +0200, Mikolaj Rydzewski escribió: > >> Pedro Rodrigo Cardiel wrote: >> Since you have a servlet you have dynamic, not static content. >> Use response.getSession() to create one. >> > > > Ok thanks. > > Is there

Re: Servlet

2010-05-14 Thread Pid
On 14/05/2010 11:33, Pedro Rodrigo Cardiel wrote: > El vie, 14-05-2010 a las 10:50 +0100, Pid escribió: >> >> Please provide exact version numbers of Tomcat, HTTPD etc. > > Apache 2.2.14 > mod_jk 1.2.30-httpd-2.2.3 > tomcat 5.5.27 > >> Can you describe what content you are generating in more det

Re: Servlet

2010-05-14 Thread Pedro Rodrigo Cardiel
El vie, 14-05-2010 a las 12:26 +0200, Mikolaj Rydzewski escribió: > Pedro Rodrigo Cardiel wrote: > Since you have a servlet you have dynamic, not static content. > Use response.getSession() to create one. > Ok thanks. Is there any way to create a session when an image is requested so that the

Re: Jmxproxy issue

2010-05-14 Thread Pid
On 14/05/2010 11:27, Honey Bajaj wrote: > Thanks for responding, upgrade is not a possibility at this moment. The same > version is working fine on few other environments and delivering the required > output using jmxproxy but on production its not able to display java.lang > specific queries. A

Re: Servlet

2010-05-14 Thread Pedro Rodrigo Cardiel
El vie, 14-05-2010 a las 10:50 +0100, Pid escribió: > > Please provide exact version numbers of Tomcat, HTTPD etc. Apache 2.2.14 mod_jk 1.2.30-httpd-2.2.3 tomcat 5.5.27 > Can you describe what content you are generating in more detail and how > you are doing it? The headers request:

RE: Jmxproxy issue

2010-05-14 Thread Honey Bajaj
Thanks for responding, upgrade is not a possibility at this moment. The same version is working fine on few other environments and delivering the required output using jmxproxy but on production its not able to display java.lang specific queries. Any pointer towards how to troubleshoot would be

Re: Servlet

2010-05-14 Thread Mikolaj Rydzewski
Pedro Rodrigo Cardiel wrote: Hello, I have a servlet that dynamically built content text / javascript in a balancer with Apache and mod_jk, but this does not generate the JSESSIONID cookie so that the next request is not sent me the same machine and my application does not work. If I create a j

Re: Jmxproxy issue

2010-05-14 Thread Pid
On 14/05/2010 10:59, Honey Bajaj wrote: > Hi All, > > I have enabled manager application on tomcat 5.5.9 added the required context > and security options. > I am able to logon to the manager application both the status and jmxproxy > are accessible but jmxproxy didn't contain any details relat

Jmxproxy issue

2010-05-14 Thread Honey Bajaj
Hi All, I have enabled manager application on tomcat 5.5.9 added the required context and security options. I am able to logon to the manager application both the status and jmxproxy are accessible but jmxproxy didn't contain any details related to java.lang:type (such as java.lang:type=Garbag

Re: Issue with jmxproxy

2010-05-14 Thread Pid
Please post a new message, rather than replying to an existing message and editing the subject/body - which is called 'thread hijacking'. p On 14/05/2010 10:17, Honey Bajaj wrote: > Hi All, > > I have enabled manager application on tomcat 5.5.9 added the required context > and security options

Re: Servlet

2010-05-14 Thread Pid
On 14/05/2010 10:22, Pedro Rodrigo Cardiel wrote: > Hello, > > I have a servlet that dynamically built content text / javascript in a > balancer with Apache and mod_jk, but this does not generate the > JSESSIONID cookie so that the next request is not sent me the same > machine and my application

Re: logging user login and logout

2010-05-14 Thread Pid
On 14/05/2010 10:34, Terry Horner wrote: >> -Original Message- >> From: Shaun Senecal [mailto:ssenecal.w...@gmail.com] >> Sent: Friday, May 14, 2010 8:46 AM >> To: Tomcat Users List; p...@pidster.com >> Subject: Re: logging user login and logout >> >> >> I figured you would say to use a rea

RE: logging user login and logout

2010-05-14 Thread Terry Horner
> -Original Message- > From: Shaun Senecal [mailto:ssenecal.w...@gmail.com] > Sent: Friday, May 14, 2010 8:46 AM > To: Tomcat Users List; p...@pidster.com > Subject: Re: logging user login and logout > > > I figured you would say to use a realm, but I was hoping there was > another way :)

Servlet

2010-05-14 Thread Pedro Rodrigo Cardiel
Hello, I have a servlet that dynamically built content text / javascript in a balancer with Apache and mod_jk, but this does not generate the JSESSIONID cookie so that the next request is not sent me the same machine and my application does not work. If I create a jsp with a hello world, the JSES

Issue with jmxproxy

2010-05-14 Thread Honey Bajaj
Hi All, I have enabled manager application on tomcat 5.5.9 added the required context and security options. I am able to logon to the manager application both the status and jmxproxy are accessible but jmxproxy didn't contain any details related to java.lang:type (such as java.lang:type=Garbag

Virtual Machine 100% CPU utilisation

2010-05-14 Thread Clarke, Dominic
Hello, When are using Tomcat 5.5.20 on a Windows 2003 SP2 Virtual Machine (for running Business Objects XI v3.1 front end) we experiencing 100 CPU utlilisation. However we have found that installing the same set up on a physical machine causes no such problem. Looking at a few web Bulletin Board

Re: Restrict http methods

2010-05-14 Thread Mark Thomas
On 14/05/2010 09:06, André Warnier wrote: > Mark Thomas wrote: >> On 14/05/2010 00:28, André Warnier wrote: >>> Leo, >>> >>> normally in the default config of a webserver, these methods are by >>> default disabled, for the simple reason that there is no "handler" >>> defined for them. That is the

Re: Restrict http methods

2010-05-14 Thread André Warnier
Mark Thomas wrote: On 14/05/2010 00:28, André Warnier wrote: Leo, normally in the default config of a webserver, these methods are by default disabled, for the simple reason that there is no "handler" defined for them. That is the case for Apache httpd, and I suppose for Tomcat. Nope. The de

Re: logging user login and logout

2010-05-14 Thread Shaun Senecal
I figured you would say to use a realm, but I was hoping there was another way :) I'm using OpenSSO, which requires the use of its own Realm. I will see if I can extend it to add the login auditing and still have everything work. Using Tomcat 6, sorry I forgot to mention that. I will take a loo

Re: Restrict http methods

2010-05-14 Thread Mark Thomas
On 14/05/2010 00:28, André Warnier wrote: > Leo, > > normally in the default config of a webserver, these methods are by > default disabled, for the simple reason that there is no "handler" > defined for them. That is the case for Apache httpd, and I suppose for > Tomcat. Nope. The default servl

Re: Undeploy task throws error and unwanted html output

2010-05-14 Thread Pid
On 14/05/2010 05:12, Pankaj Tiwari wrote: > Hi All, > > I am using undeploy task to undeploy my application running in tomcat. It > does the un-deploymen successfully but the result is a lot of HTML code with > error. > The issue posted here is exactly what I am facing > http://stackoverflow.com/q

Re: logging user login and logout

2010-05-14 Thread Pid
On 14/05/2010 08:22, Shaun Senecal wrote: > Is there already an existing way to log user login and logout events? > Can it be extended? I need to provide an audit trail, including login > activity, in a database. > > I was thinking I might need to implement an HttpSessionListener which > does the

logging user login and logout

2010-05-14 Thread Shaun Senecal
Is there already an existing way to log user login and logout events? Can it be extended? I need to provide an audit trail, including login activity, in a database. I was thinking I might need to implement an HttpSessionListener which does the logging on session creation/deletion, but then I wasn