Scenario with Tomcat cluster session management

2013-01-29 Thread Josh Gooding
As usual, I am always working with Tomcat to tweak every ounce of "oomph" out of it and I ran across this scenario in my configuration trials. At present, I have a small 3 server tomcat cluster running 7.0.30 64-bit on CentOS, and jdk6. I want to move the project from having to use kill -9 (for s

Re: LDAP on TOMCAT 7.0.30

2013-01-29 Thread André Warnier
chris derham wrote: Does that mean that Tomcat treats WIA similar to HTTP BASIC (or maybe DIGEST) unless you've approved a particular domain/host? That's interesting. Can you just enter anything you'd like? For instance, can I authenticate to a server that is expecting WIA from a Linux workstatio

Re: Latest-version TomEE 1.5.2-SNAPSHOT (Tomcat 7.0.34?) just died on me, nothing in server logs

2013-01-29 Thread Howard W. Smith, Jr.
On Tue, Jan 29, 2013 at 6:08 PM, Konstantin Kolinko wrote: > 2013/1/30 Caldarale, Charles R : > >> From: Howard W. Smith, Jr. [mailto:smithh032...@gmail.com] > >> Subject: Latest-version TomEE 1.5.2-SNAPSHOT (Tomcat 7.0.34?) just died > on me, nothing in server logs > > > >> Sending this to tomee/

Re: Latest-version TomEE 1.5.2-SNAPSHOT (Tomcat 7.0.34?) just died on me, nothing in server logs

2013-01-29 Thread Howard W. Smith, Jr.
On Tue, Jan 29, 2013 at 6:00 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Howard W. Smith, Jr. [mailto:smithh032...@gmail.com] > > Subject: Re: Latest-version TomEE 1.5.2-SNAPSHOT (Tomcat 7.0.34?) just > died on me, nothing in server logs > > > I was hoping to get a resp

Re: Latest-version TomEE 1.5.2-SNAPSHOT (Tomcat 7.0.34?) just died on me, nothing in server logs

2013-01-29 Thread Konstantin Kolinko
2013/1/30 Caldarale, Charles R : >> From: Howard W. Smith, Jr. [mailto:smithh032...@gmail.com] >> Subject: Latest-version TomEE 1.5.2-SNAPSHOT (Tomcat 7.0.34?) just died on >> me, nothing in server logs > >> Sending this to tomee/openejb and tomcat user mailing lists. > > Cross-posting is really f

RE: Latest-version TomEE 1.5.2-SNAPSHOT (Tomcat 7.0.34?) just died on me, nothing in server logs

2013-01-29 Thread Caldarale, Charles R
> From: Howard W. Smith, Jr. [mailto:smithh032...@gmail.com] > Subject: Re: Latest-version TomEE 1.5.2-SNAPSHOT (Tomcat 7.0.34?) just died > on me, nothing in server logs > I was hoping to get a response from tomcat committers/users, and I > was assuming the same, an Atmosphere issue. The othe

Re: Embedded Tomcat how to use addContext for docBase

2013-01-29 Thread Jimmy Johnson
Ah, Okay, so I should use the addWebapp method to add a path to an external folder? e.g tomcat.addWebapp("/MyWebApp/images", "/tmp/images"); Thanks, Jimmy On Tue, Jan 29, 2013 at 2:06 PM, Konstantin Kolinko wrote: > 2013/1/29 Jimmy Johnson : > > System: Mac OS X 10.8 > > Tomcat Version: 7.0.30

Re: Latest-version TomEE 1.5.2-SNAPSHOT (Tomcat 7.0.34?) just died on me, nothing in server logs

2013-01-29 Thread Howard W. Smith, Jr.
> > Sending this to tomee/openejb and tomcat user mailing lists. > > Cross-posting is really frowned upon. > > > Jan 29, 2013 10:27:25 AM org.apache.catalina.core.StandardWrapperValve > event > > SEVERE: Servlet.service() for servlet [Push Servlet] in context with path > > [/mcmsweb] threw exceptio

RE: Latest-version TomEE 1.5.2-SNAPSHOT (Tomcat 7.0.34?) just died on me, nothing in server logs

2013-01-29 Thread Caldarale, Charles R
> From: Howard W. Smith, Jr. [mailto:smithh032...@gmail.com] > Subject: Latest-version TomEE 1.5.2-SNAPSHOT (Tomcat 7.0.34?) just died on > me, nothing in server logs > Sending this to tomee/openejb and tomcat user mailing lists. Cross-posting is really frowned upon. > Jan 29, 2013 10:27:25 AM

Re: html page can not present an java Applet embedded in the page

2013-01-29 Thread André Warnier
qingtao peng wrote: I have built the apache-tomcat-7.0.32 server on my computer.My operating system is Windows7.I place a html page named DbApplet.html under the directory of DbServlet in the webapps of the apache-tomcat-7.0.32 server .My DbApplet.htm code is as follow :

Re: Embedded Tomcat how to use addContext for docBase

2013-01-29 Thread Konstantin Kolinko
2013/1/29 Jimmy Johnson : > System: Mac OS X 10.8 > Tomcat Version: 7.0.30 > Language: Java > > I'm trying to set up the context in an embedded Tomcat instance to serve > files from a local directory not within the deployed folder. > > In the standard server.xml when using the standard Tomcat confi

Re: LDAP on TOMCAT 7.0.30

2013-01-29 Thread chris derham
> Does that mean that Tomcat treats WIA similar to HTTP BASIC (or maybe > DIGEST) unless you've approved a particular domain/host? That's > interesting. Can you just enter anything you'd like? For instance, can > I authenticate to a server that is expecting WIA from a Linux > workstation just by en

RE: html page can not present an java Applet embedded in the page

2013-01-29 Thread Konstantin Preißer
Hi, > -Original Message- > From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Sent: Tuesday, January 29, 2013 6:38 PM > To: Tomcat Users List > Subject: Re: html page can not present an java Applet embedded in the > page > > Also, Oracle says this only works with Microsoft

Re: JNDI Feedback

2013-01-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Alan, On 1/29/13 12:24 PM, alan.farr...@renfrewshire.gov.uk wrote: > Thanks for feedback. If a SQLException can be returned then I > could probably use that in the Java application to determine if an > exception occurred. Can you provide any guida

Re: html page can not present an java Applet embedded in the page

2013-01-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Gingtao, On 1/29/13 7:45 AM, qingtao peng wrote: > I have built the apache-tomcat-7.0.32 server on my computer.My > operating system is Windows7.I place a html page named > DbApplet.html under the directory of DbServlet in the webapps of > the apac

Re: JNDI Feedback

2013-01-29 Thread Daniel Mikusa
On Jan 29, 2013, at 12:18 PM, alan.farr...@renfrewshire.gov.uk wrote: > Hi, > > As requested, the resource tags from the Context file. Although I was > asked by my boss to change password value to password and username value > to username. > > driverClassName="oracle.jdbc.driver.OracleDriver

Re: JNDI Feedback

2013-01-29 Thread alan . farroll
Hi, Thanks for feedback. If a SQLException can be returned then I could probably use that in the Java application to determine if an exception occurred. Can you provide any guidance? Thank you Regards Alan Farroll Analyst Programmer Finance and Corporate Services Renfrewshire House Cotton S

Re: JNDI Feedback

2013-01-29 Thread alan . farroll
Hi, As requested, the resource tags from the Context file. Although I was asked by my boss to change password value to password and username value to username. Thank you Regards Alan Farroll Analyst Programmer Finance and Corporate Services Renfrewshire House Cotton Street Paisley P

Re: LDAP on TOMCAT 7.0.30

2013-01-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, On 1/29/13 4:19 AM, André Warnier wrote: > Christopher Schultz wrote: >> -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 >> >> André, >> >> On 1/28/13 12:32 PM, André Warnier wrote: >>> Christopher Schultz wrote: -BEGIN PGP SIGNED

Re: JNDI Feedback

2013-01-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Alan, On 1/29/13 11:54 AM, alan.farr...@renfrewshire.gov.uk wrote: > Running Tomcat 7.0.29 on Windows XP Professional Service Pack 3 Ready for a Microsoft upgrade cycle? The clock is ticking... > I have been handed a project developed by a former

Re: JNDI Feedback

2013-01-29 Thread Daniel Mikusa
On Jan 29, 2013, at 11:54 AM, alan.farr...@renfrewshire.gov.uk wrote: > Hello, > > Running Tomcat 7.0.29 on Windows XP Professional Service Pack 3 > > I have been handed a project developed by a former colleague and I am > still learning Java and Tomcat. > > The project has 4 JNDI's set up, 2

Re: Unexpected poller error

2013-01-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Vishal, On 1/29/13 5:34 AM, Vishal-sh Sharma wrote: > Hi Christopher, > > It worked!! Thanks a ton!! > > We were trying to use(compile) the java code in the tcnative > distribution and hence the issue. Everything worked to a T , i.e > the http ca

Re: Destroying resources created with a custom ObjectFactory

2013-01-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Xavier, On 1/29/13 5:35 AM, Xavier Dury wrote: > Ok nevermind, I just found the closeMethod attribute on Resource > (http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Resource_Definitions) Glad > you found that -- it's what I was going

JNDI Feedback

2013-01-29 Thread alan . farroll
Hello, Running Tomcat 7.0.29 on Windows XP Professional Service Pack 3 I have been handed a project developed by a former colleague and I am still learning Java and Tomcat. The project has 4 JNDI's set up, 2 Oracle and 2 SQL Server with validation queries set up for the Oracle databases. I wa

Re: Tomcat6+webapps+log4j

2013-01-29 Thread Mark Eggers
On 1/29/2013 2:40 AM, Tiago Sousa wrote: Em 28/01/2013 18:51, Mark Eggers escreveu: On 1/28/2013 10:06 AM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Tiago, On 1/28/13 11:25 AM, Tiago Sousa wrote: Em 28/01/2013 16:16, Christopher Schultz escreveu: Tiago, On 1

Re: Tomcat6+webapps+log4j

2013-01-29 Thread Tiago Sousa
Em 28/01/2013 18:51, Mark Eggers escreveu: On 1/28/2013 10:06 AM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Tiago, On 1/28/13 11:25 AM, Tiago Sousa wrote: Em 28/01/2013 16:16, Christopher Schultz escreveu: Tiago, On 1/28/13 11:02 AM, Tiago Sousa wrote: Em 28

RE: Unexpected poller error

2013-01-29 Thread Vishal-sh Sharma
Hi Christopher, It worked!! Thanks a ton!! We were trying to use(compile) the java code in the tcnative distribution and hence the issue. Everything worked to a T , i.e the http calls that were failing earlier, when we ignored the java code provided with the native distribution. Thanks once ag

RE: Destroying resources created with a custom ObjectFactory

2013-01-29 Thread Xavier Dury
Ok nevermind, I just found the closeMethod attribute on Resource (http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Resource_Definitions) Thanks, Xavier > From: kal...@hotmail.com > To: users@tomcat.apache.org > Subject: RE: Destroying resources created with a custom ObjectFactory > Dat

RE: Destroying resources created with a custom ObjectFactory

2013-01-29 Thread Xavier Dury
Hi, There seems to be no simple way to destroy jndi resources in tomcat, somebody had a similar problem here (http://fogbugz.atomikos.com/default.asp?community.6.2101.7) and was advised to use tomcat org.apache.catalina.Lifecycle* classes. What I had first in mind was to register a NamespaceCh

Re: LDAP on TOMCAT 7.0.30

2013-01-29 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, On 1/28/13 12:32 PM, André Warnier wrote: Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chris, On 1/28/13 7:47 AM, chris derham wrote: 1) All 3 applications are browser compatibl

RE: Destroying resources created with a custom ObjectFactory

2013-01-29 Thread Xavier Dury
Hi, Here is my context.xml and this is my ObjectFactory: public class CacheManagerFactory implements ObjectFactory { public Object getObjectInstance(Object object, Name jndiName, Context context, Hashtable environment) throws Exception {String configurationFile = null;if (object