About the problem "Task com.mchange.v2.resourcepool.basicresourcepool$acquiret...@1386abc (in deadlocked PoolThread) failed to complete in maximum time 60000ms. Trying interrupt()."

2009-12-08 Thread Peter Chen
I deployed my application to the Tomcat 5.5.26. I use hibernate for O/RM, and the connection pool is c3p0, the database is MySql 5.0. Several days ago, the Database Server is down, but there are lots of user accessing the Tomcat. After I restarted the Database Server, the Tomcat can't conne

Re: JSSE question

2009-12-08 Thread Bill Barker
"Christopher Schultz" wrote in message news:4b1ecba6.1030...@christopherschultz.net... > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Vadim, > > On 12/7/2009 1:25 PM, Vadim Letitchevski wrote: >> openssl pkcs12 -export -in /etc/pki/tls/certs/localhost.crt -inkey >> /etc/pki/tls/private/l

Re: mod_proxy tomcat6 question

2009-12-08 Thread groupalias v
Thanks Chris. I was beginning to realize that myself. It hit me yesterday that session management (though I have not started to deal with it yet) could cause me problems if the apache mount and the webapp do not match. Also having application code that is apache directory aware is not at all clean.

RE: tomcat, uPortal, error messages and confusion

2009-12-08 Thread Caldarale, Charles R
> From: Egeste [mailto:ege...@egeste.net] > Subject: Re: tomcat, uPortal, error messages and confusion > > I'm unsure whether it's an "ubuntu mangled" version - I installed > tomcat5.5 via apt-get. It's mangled, meaning that files may not be located where they are in the standard Tomcat distribu

RE: JSSE question

2009-12-08 Thread Vadim Letitchevski
Thanks. I will try it. Vadim. -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Tuesday, December 08, 2009 1:57 PM To: Tomcat Users List Cc: Vadim Letitchevski Subject: Re: JSSE question -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vadim, On 12/

Re: Control character in cookie value

2009-12-08 Thread André Warnier
Itay, you seem to ignore selective parts of the answers and tips which you are given, and then rediscover them selectively 3 posts later. itay sahar wrote: Andre, I'm not sure why you worry about the other cookie value. Thank you for your concern, but I don't worry too much. It is not my

Re: Control character in cookie value

2009-12-08 Thread itay sahar
Andre, I'm not sure why you worry about the other cookie value. let me show you an example maybe then you may see something that i'm missing. getCookieMaxAge() is 31536000 cookiePathis /jboss-seam-jpa What can be wrong here ? It works! Are you worry about special character on cookiePath.

Re: mod_proxy tomcat6 question

2009-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vas, On 12/6/2009 5:17 PM, groupalias v wrote: > ProxyPass /test/ ajp://127.0.0.1:8009/A/ [snip] > I am able to call www.example.com/test/jsp/hi.jsp. The problem happens > when I call a servlet like -- www.example.com/test/hello > The

Re: JSSE question

2009-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vadim, On 12/7/2009 1:25 PM, Vadim Letitchevski wrote: > openssl pkcs12 -export -in /etc/pki/tls/certs/localhost.crt -inkey > /etc/pki/tls/private/localhost.key -out mycert.p12 -name tomcat -CAfile > /etc/pki/tls/cacert.pem -caname root -chain > >

Re: Question on META-INF/context.xml

2009-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Run, On 12/8/2009 4:39 PM, pprun wrote: > I will remove docBase and path attributes. Did Eclipse put them in there? > I do use some hard-coded "Repromed" in the css and javascript reference, for > example: > inside /Repromed/login.jsp i used rel=

Re: Feedback on Tomcat Client Deployer

2009-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tero, On 12/8/2009 3:38 PM, Tero Karttunen wrote: > I have something that must be a pretty standard J2EE application > server environment: I am running (at least) three Tomcat instances > sharing a common Catalina home with mod_jk load balancer in fro

RE: Question on META-INF/context.xml

2009-12-08 Thread pprun
Thank you very much for such quick response. I will remove docBase and path attributes. I do use some hard-coded "Repromed" in the css and javascript reference, for example: inside /Repromed/login.jsp i used I tried to replace it with relative URI for example But it becomes a problem when

RE: Question on META-INF/context.xml

2009-12-08 Thread Caldarale, Charles R
> From: pprun [mailto:runping_hu...@hotmail.com] > Subject: Question on META-INF/context.xml > > Inside I specified META-INF/context.xml as following: > > > element is in META-INF/context.xml > I don't know how to convert Repromed.war to ROOT.war. Usually, all you have to do is change the na

Question on META-INF/context.xml

2009-12-08 Thread pprun
Hi, I am a novice to tomcat. I created WAR project in Eclipse called "Repromed". Inside I specified META-INF/context.xml as following: WEB-INF/web.xml META-INF/context.xml During the implementation, I was requested to deploy this

Feedback on Tomcat Client Deployer

2009-12-08 Thread Tero Karttunen
I have something that must be a pretty standard J2EE application server environment: I am running (at least) three Tomcat instances sharing a common Catalina home with mod_jk load balancer in front. I have not set up clustering, because my GWT-based applications maintain state information client-si

Re: Understanding url-patterns

2009-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 12/8/2009 1:54 PM, André Warnier wrote: > Independently of the other answers, just 2 notes : > > 1) probably the reason why nobody wants to give you another answer than > to read the specs, is that when you will have read the specs about th

Re: tomcat, uPortal, error messages and confusion

2009-12-08 Thread Egeste
I'm unsure whether it's an "ubuntu mangled" version - I installed tomcat5.5 via apt-get. uname -a: Linux *** 2.6.18-92.1.18.el5.028stab060.8PAE #1 SMP Mon Feb 9 22:32:30 MSK 2009 i686 GNU/Linux Here is my server.xml: http://pastebin.ca/1707274 webapps/uPortal/META-INF/context.xml:

Re: Understanding url-patterns

2009-12-08 Thread André Warnier
Jonathan Mast wrote: I actually spent an hour and half trying to find the Servlet 2.5 specs and researching this question in general. The only thing on Sun's site for Servlet 2.5 was the Javadocs, not the actual specs. In fact I even found other people who had the same issue of not being able t

Re: Understanding url-patterns

2009-12-08 Thread Kris Schneider
On Tue, Dec 8, 2009 at 1:32 PM, Jonathan Mast wrote: > I actually spent an hour and half trying to find the Servlet 2.5 specs and > researching this question in general.  The only thing on Sun's site for > Servlet 2.5 was the Javadocs, not the actual specs.  In fact I even found > other people who

Re: Understanding url-patterns

2009-12-08 Thread Hassan Schroeder
On Tue, Dec 8, 2009 at 10:32 AM, Jonathan Mast wrote: > I actually spent an hour and half trying to find the Servlet 2.5 specs and > researching this question in general.  The only thing on Sun's site for > Servlet 2.5 was the Javadocs, not the actual specs.  In fact I even found > other people wh

Re: Understanding url-patterns

2009-12-08 Thread Jonathan Mast
I actually spent an hour and half trying to find the Servlet 2.5 specs and researching this question in general. The only thing on Sun's site for Servlet 2.5 was the Javadocs, not the actual specs. In fact I even found other people who had the same issue of not being able to find the Specs as a P

Re: tomcat server start up without looking dependency jars

2009-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ahmed, On 12/5/2009 7:17 AM, ahmed kasim wrote: > I have few jars which need to get loaded only when the war file is > getting loaded or when the request comes, to be more clear I have > some jar which is having connection to DB, if I specify in my

Re: Control character in cookie value

2009-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Itay, On 12/4/2009 7:41 PM, itay sahar wrote: > I'm using seam on tomcat 6.0.20 and encounter problem in my security module. > > Basically, i try to add cookie with base64 encoding of the username which is > email address. > The encoding works and no

Re: Understanding url-patterns

2009-12-08 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jonathan, On 12/8/2009 11:48 AM, Jonathan Mast wrote: Are URL Patterns ending in a wild card allowed by the Servlet Spec? You could check. You've been on this list long enough to know that the spec itself is available

Re: Understanding url-patterns

2009-12-08 Thread André Warnier
Jonathan Mast wrote: Are URL Patterns ending in a wild card allowed by the Servlet Spec? I have this pattern setup with the intention of binding every url that begins with "foo" to a serlvet MultiFooService /foo* But http://localhost/foo1, ...foo2, ...foo gives me a 404 Only http://l

Re: Understanding url-patterns

2009-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jonathan, On 12/8/2009 11:48 AM, Jonathan Mast wrote: > Are URL Patterns ending in a wild card allowed by the Servlet Spec? You could check. You've been on this list long enough to know that the spec itself is available and quite readable. Maybe it's

Understanding url-patterns

2009-12-08 Thread Jonathan Mast
Are URL Patterns ending in a wild card allowed by the Servlet Spec? I have this pattern setup with the intention of binding every url that begins with "foo" to a serlvet MultiFooService /foo* But http://localhost/foo1, ...foo2, ...foo gives me a 404 Only http://localhost/foo* actually

Re: the Tomcat generates more than one session id with the same http request, please help me

2009-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mike, On 12/8/2009 2:02 AM, Looijmans, Mike wrote: > Seems like a propietary way of storing the session ID Actually, it's well-defined by the servlet specification. >> -Original Message- From: Peter Chen >> But I don't know the part >> "get

Re: Apache Tomcat Windows Installer Insecure Password Vulnerability

2009-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 12/7/2009 5:23 AM, Pid wrote: > On 07/12/2009 04:53, Saw Chee Hong wrote: >> Currently mytomcat version was 5.0.27. I have check the >> ‘tomcat-users.xml’ file and it doesn’t consist the ‘admin’ user in >> the file. > > Then you are not at r

Re: How To Get MBean Server of Apache Tomcat.

2009-12-08 Thread Cyrille Le Clerc
Hello Ben, You are right, Tomcat, with these standard JVM JMX parameters, creates a new MBeanServer that is not the platform mbean server and that does not contain the JVM Mbeans (1). I didn't take the time to figure out wether it was the JVM or Tomcat behavior. On production, we use Hyp

Re: Logging with Log4J

2009-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bart, On 12/5/2009 7:55 AM, Bart Vandewoestyne wrote: >>> log4j.appender.myAppender.File=testbart.log >> >> I would have done: >> log4j.appender.myAppender.File=/var/log/tomcat/mywebapp.log >> >> Make sure that the user running Tomcat has rights to wr

Re: mysterious SQLException: Access denied for user

2009-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lloyd, Moving this discussion on-list. On 12/4/2009 7:35 PM, DIGLLOYD INC wrote: > I have been running a server just fine for 16 month. It is > running Tomcat 6.0.20, using the following JDBCRealm: Before we continue, let's just say up front that us

Re: Tomcat Crashes out of continuous servicing of stuck request

2009-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nishant, Mailing the list is fine: there's no need to mail me separately. On 12/6/2009 11:19 PM, Hadole, Nishant IN BOM SISL wrote: > Tomcat crashes means, the free memory starts declining dramatically > to zero, and server stops responding to new r

Re: How To Get MBean Server of Apache Tomcat.

2009-12-08 Thread Ben Katz
Hi Cyrille, Thanks for you reply. I have actually done what you suggested but that does not relate to the problem. To better Illustrate I will give this example: If I run the code below from a servlet in Tomcat I will get a list of domains: String[] domains = ManagementFactory.getPlatfor

Re: How To Get MBean Server of Apache Tomcat.

2009-12-08 Thread Cyrille Le Clerc
Hello Ben, Tomcat relies on the out-of-the-box feature of the JVM to make the MBeanServer accessible to other processes (possibly located on other servers). You have to add the following parameters to the Tomcat startup command line : -Dcom.sun.management.jmxremote \ -Dcom.sun.ma

Re: How To Get MBean Server of Apache Tomcat.

2009-12-08 Thread Ben Katz
Hi, I use ManagementFactory.getPlatformMBeanServer() from within Apache Tomcat and from a regular JAR file (outside the scope of apache). I think (And correct me if im wrong) I'm getting different MBean Servers. My question is - How Do I reach the Tomcat mbean server from outside or alternatively,

RE: the Tomcat generates more than one session id with the same http request, please help me

2009-12-08 Thread Looijmans, Mike
The reason is that "other" browsers use a media player component that reconnects to the server. The "session" is linked to the browser instance. As a result, the session is lost when the mediaplayer connects to get the audio data. Whap happens in "other" browsers is the equivalent of storing a bo

RE: the Tomcat generates more than one session id with the same http request, please help me

2009-12-08 Thread Peter Chen
I show these three audio files on the JSP page, just as following show. The script I used to show these audio files is like this: document.write(''); document.write('Re: directory path
File Send wrote: Hi Team, I have started using Tomcat 5.5.27 recently and now I would like to integrate with Axis for web service development.However, I could see many web-inf and lib folders so I am confused where I should keep my library files. I thought of using this location C:\Documents a