Re: Tomcat app. can no longer connect to MySQL

2010-03-29 Thread Ognjen Blagojevic
Konstantin Kolinko wrote: 2010/3/28 fred basset fredbasset1...@gmail.com: Caused by: org.hibernate.HibernateException: Hibernate Dialect must be explicitly set at org.hibernate.dialect.DialectFactory.determineDialect(DialectFactory.java:57) at

AW: AW: Shutdown hook for correctly unloading drivers

2010-03-29 Thread Steffen Heil
Hi I am thinking about a strategy to iterate over all running threads and interrupt (and if absolutely necessary stop) all threads started by a certain classloader (not sure if it is possible, but I suspect so - might require instrumention though.) Tomcat can already do this. Great.

Re: AW: AW: Shutdown hook for correctly unloading drivers

2010-03-29 Thread Mark Thomas
On 29/03/2010 10:19, Steffen Heil wrote: Hi I am thinking about a strategy to iterate over all running threads and interrupt (and if absolutely necessary stop) all threads started by a certain classloader (not sure if it is possible, but I suspect so - might require instrumention though.)

Re: Proposal : port mod_expires in java as ExpiresFilter Servlet Filter

2010-03-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Cyrille, On 3/26/2010 12:43 PM, Cyrille Le Clerc wrote: I have proposed with bugzilla 48998 a port of Apache mod_expires in Java as ExpiresFilter Servlet Filter. Cool. I detailed a standalone version of this filter on

Re: tomcat PUT not working

2010-03-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 3/28/2010 10:23 AM, André Warnier wrote: For GET and POST requests, both the HTTP RFC and the Servlet Spec provide some answers and describe how it is done. Basically (and roughly), - for a GET (which does not have a body), such request

Re: Win7 calling native code via JNI

2010-03-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Patrick, On 3/27/2010 9:07 PM, Patrick Flaherty wrote: There is only a 32 bit JVM on the machine. The bridge dll has not been recompiled since mid '08. If it was an incompatibility with the Microsoft Runtime Library wouldn't you expect the

Re: Upgrade tomcat 6 to a new point release on windows

2010-03-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dale, On 3/28/2010 11:53 PM, dale77 wrote: what is the procedure for upgrading to the latest point release of tomcat 6 on windows? We are on 6.0.18 running tomcat as a windows service. What is the recommended procedure for upgrade? Does the

Re: tomcat PUT not working

2010-03-29 Thread Michael Wojcik
André Warnier wrote: The area of contention here is whether a HTTP PUT request can or not have parameters, and whether such parameters can or not be encoded as part of the HTTP body of a PUT request (or as part of the URL query string of the request). As far as I can tell, this is a Tomcat

Re: [OT] SecurityManager and Java Policy Files

2010-03-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anyone? On 3/25/2010 4:03 PM, Christopher Schultz wrote: All, This is off-topic in that it doesn't really have anything to do specifically with Tomcat, but I would be willing to bet that readers would be interested in the answer. Besides, the

RE: [OT] SecurityManager and Java Policy Files

2010-03-29 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: [OT] SecurityManager and Java Policy Files Anyone? Sorry, no time to chase it down. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the

Tomcat 6 - slow response times outside of data center

2010-03-29 Thread Ian Hubbard
Hi all, I've got Tomcat 6 running on a few separate internal dedicated test machines in a data center, each with their own separate dedicated SQL servers. The servers themselves don't bat an eye for the tiny load i'm subjecting them to. For testing (using IE 6 or 7) I've been performing the

using tomcat maven plugin

2010-03-29 Thread fachhoch
I am struggling hard to setup datasource in tomact, mine is embedded tomcat through maven plugin , please help me in setting up dataasource for embedded tomcat -- View this message in context: http://old.nabble.com/using-tomcat-maven-plugin-tp28069941p28069941.html Sent from the Tomcat -

Get context path in tc 5.5

2010-03-29 Thread David kerber
In TC 5.5.28, Java 5, how can I find the context path that was called, so I can log it? I have an app that is started under two different contexts, one with the name of the .war file, and another one which is just an alias of the main one. I'm trying to log some events in a

RE: Get context path in tc 5.5

2010-03-29 Thread Caldarale, Charles R
From: David kerber [mailto:dcker...@verizon.net] Subject: Get context path in tc 5.5 In TC 5.5.28, Java 5, how can I find the context path that was called, so I can log it? HttpServletRequest.getContextPath() - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE

Re: Get context path in tc 5.5

2010-03-29 Thread David kerber
On 3/29/2010 12:05 PM, Caldarale, Charles R wrote: From: David kerber [mailto:dcker...@verizon.net] Subject: Get context path in tc 5.5 In TC 5.5.28, Java 5, how can I find the context path that was called, so I can log it? HttpServletRequest.getContextPath() - Chuck Thanks; that will

Re: tomcat PUT not working

2010-03-29 Thread André Warnier
Michael, Many thanks for your comments, clarifications and references. I believe that these will help the Tomcat development team in their decision about implementing (or not) the getParameter family of methods on HTTP methods other than GET and POST. I did indeed leave some aspects out of

Re: Tomcat 6 - slow response times outside of data center

2010-03-29 Thread André Warnier
Hi. Just a very preliminary guess : could it be that different DNS lookups are involved in the delays ? Obviously, localhost and IP addresses don't need them, but maybe some of the connections between Tomcat(s) and database server(s) are specified by name instead of IP, and/or use different

RE: using tomcat maven plugin

2010-03-29 Thread Muralidhar Yaragalla
Are u trying to create data source from outside tomcat by program? -Original Message- From: fachhoch [mailto:fachh...@gmail.com] Sent: Monday, March 29, 2010 7:47 PM To: users@tomcat.apache.org Subject: using tomcat maven plugin I am struggling hard to setup datasource in tomact, mine

Re: Get context path in tc 5.5

2010-03-29 Thread Hassan Schroeder
On Mon, Mar 29, 2010 at 9:22 AM, David kerber dcker...@verizon.net wrote: HttpServletRequest.getContextPath()  - Chuck Thanks; that will work once they get into my app's functionality.  Is there anything I can use to get the context path when they first connect When they first connect it's

RE: Get context path in tc 5.5

2010-03-29 Thread Caldarale, Charles R
From: David kerber [mailto:dcker...@verizon.net] Subject: Re: Get context path in tc 5.5 Is there anything I can use to get the context path when they first connect Move to Tomcat 6, so you can use the 2.5 servlet APIs. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR

RE: using tomcat maven plugin

2010-03-29 Thread Caldarale, Charles R
From: fachhoch [mailto:fachh...@gmail.com] Subject: using tomcat maven plugin I am struggling hard to setup datasource in tomact, mine is embedded tomcat through maven plugin , please help me in setting up dataasource for embedded tomcat You could always try answering the questions that

Re: Get context path in tc 5.5

2010-03-29 Thread David kerber
On 3/29/2010 12:22 PM, David kerber wrote: On 3/29/2010 12:05 PM, Caldarale, Charles R wrote: From: David kerber [mailto:dcker...@verizon.net] Subject: Get context path in tc 5.5 In TC 5.5.28, Java 5, how can I find the context path that was called, so I can log it?

Re: Get context path in tc 5.5

2010-03-29 Thread David kerber
On 3/29/2010 12:58 PM, Caldarale, Charles R wrote: From: David kerber [mailto:dcker...@verizon.net] Subject: Re: Get context path in tc 5.5 Is there anything I can use to get the context path when they first connect Move to Tomcat 6, so you can use the 2.5 servlet APIs. I'm working toward

Re: Get context path in tc 5.5

2010-03-29 Thread David kerber
On 3/29/2010 12:55 PM, Hassan Schroeder wrote: On Mon, Mar 29, 2010 at 9:22 AM, David kerberdcker...@verizon.net wrote: HttpServletRequest.getContextPath() - Chuck Thanks; that will work once they get into my app's functionality. Is there anything I can use to get the context path when

Re: Tomcat 6 - slow response times outside of data center

2010-03-29 Thread Ian Hubbard
Hi Andre, Thanks for your response. My initial tests to localhost and then IP:port were in an attempt to eliminate (or at least reduce the chance) of DNS lookups being a factor -- a few years ago that beast had reared its head in relation to SSL, certificate chains, and other fun stuff. In this

Re: [OT] SecurityManager and Java Policy Files

2010-03-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 3/29/2010 10:08 AM, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: [OT] SecurityManager and Java Policy Files Anyone? Sorry, no time to chase it down. I was counting on you,

RE: Tomcat 6 - slow response times outside of data center

2010-03-29 Thread Caldarale, Charles R
From: Ian Hubbard [mailto:sum.of.pri...@gmail.com] Subject: Re: Tomcat 6 - slow response times outside of data center To try to cut down on the number of variables, on the client machine I've tested both with and without hosts file entries. Have you tried a simple tracert to and from each

RE: [OT] SecurityManager and Java Policy Files

2010-03-29 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: [OT] SecurityManager and Java Policy Files I was counting on you, Chuck! ;) I've kept the message, and would like to research it for my own edification. We're about done with a release cycle here, so I'm hoping

Re: tomcat PUT not working

2010-03-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael, On 3/28/2010 6:28 PM, Michael Wojcik wrote: André Warnier wrote: For all these reasons, currently Tomcat does not support the getParameters() family of methods, when the request method is PUT. This is a Tomcat limitation, not an HTTP

Re: Proposal : port mod_expires in java as ExpiresFilter Servlet Filter

2010-03-29 Thread Cyrille Le Clerc
Thanks for your fast feedbacks Christopher, I updated the patch proposed on Bugzilla 48998 to include your advice to limit the number of null checks. The implementation I found is slightly different than your proposal but the idea remain the same. Please note that I only modified the patch and

Re: Tomcat 6 - slow response times outside of data center

2010-03-29 Thread Ian Hubbard
Hi Chuck, Thank you very much for chiming in! (Your contributions over the years, along with the other regulars, are the backbone of the list!). Tracert/ping/pathping all give the impression of a well performing network, with response times 1ms being typical between the various nodes. Looking

getOutputStream() has already been called for this response

2010-03-29 Thread Me Self
Hello When I include a servlet inside a tagfile then it works: jsp:include page=/controller/ But if a try to do the same in a tag that subclasses SimpleTagSupport then tomcat throws the exception mentioned in the subject:     @Override     public void doTag() throws IOException, JspException {

Solved: access to localhost:8080 fails

2010-03-29 Thread Krishanu Biswas
Hello Harry, You are right. When i took the issue to our IT, they asked me to run a script on my comp that solved the problem. This script has probably tweaked the firewall to allow localhost to run. Feeling good that the problem stands solved that I can continue with my work now but the magic

RE: [OT] SecurityManager and Java Policy Files

2010-03-29 Thread Terence M. Bandoian
Hi, Chris- I don't remember the question exactly but in my experience I've had to grant permissions to all relevant jars that are not within a webapp and to the webapp. (Hopefully, this is at least in the right ballpark for your question.) -Terence Subject: RE: [OT] SecurityManager and

RE: Connecting to a Database

2010-03-29 Thread Propes, Barry L
And after doing this, and getting my DataSourceRealm to work properly, now I can't get the Tomcat manager app to work properly now...it references my JNDI realm reference (DataSourceRealm actually) and throws an exception. Even if I delete it out of my context.xml file (the reference) and delete

RE: Connecting to a Database

2010-03-29 Thread Caldarale, Charles R
From: Propes, Barry L [mailto:barry.l.pro...@citi.com] Subject: RE: Connecting to a Database And after doing this Doing which? now I can't get the Tomcat manager app to work properly now...it references my JNDI realm reference (DataSourceRealm actually) and throws an exception. Where is

RE: Connecting to a Database

2010-03-29 Thread Leo Donahue - PLANDEVX
If I set the DataSourceRealm in my context.xml file of my webapps/webappfldr/META-INF/ will it not allow for a later reference separately in the Tomcat manager app? Barry, I thought having a context.xml in META-INF/ was the most specific place to define a context for a webapp, in the

Problems with ImageIO custom service providers with Tomcat = 6.0.24

2010-03-29 Thread Simone Giannecchini
Ciao, long story short, in an OS geospatial project that we maintain we are experiencing problems when deploying on Tomcat = 6.0.24 due to the latest permgen fixes ( I guess). It looks like that ImageIO additional service providers are not loaded anymore at runtime via the standard jar

Re: Problems with ImageIO custom service providers with Tomcat = 6.0.24

2010-03-29 Thread Mark Thomas
On 30/03/2010 00:21, Simone Giannecchini wrote: Ciao, long story short, in an OS geospatial project that we maintain we are experiencing problems when deploying on Tomcat = 6.0.24 due to the latest permgen fixes ( I guess). Define problems. What? When? It looks like that ImageIO additional

Re: [OT] SecurityManager and Java Policy Files

2010-03-29 Thread Konstantin Kolinko
2010/3/25 Christopher Schultz ch...@christopherschultz.net: I will try to be brief in my answers below, so please excuse some apparent harshness. (...) In the Tomcat SecurityManager docs (http://tomcat.apache.org/tomcat-6.0-doc/security-manager-howto.html), most of the grants in the policy