RE: Problem closing datasource when used as JNDI resource

2009-08-25 Thread Mohammed Bin Mahmood
Sorry Chris I meant to address Mark in my previous mail. Thanks, Mohammed. -Original Message- From: Mohammed Bin Mahmood [mailto:moham...@sustainlane.com] Sent: Wednesday, August 26, 2009 9:32 AM To: 'Tomcat Users List' Subject: RE: Problem closing datasource when used as JNDI resource

RE: Problem closing datasource when used as JNDI resource

2009-08-25 Thread Mohammed Bin Mahmood
Hi Chris, Yes, that is a listener for the context, where as I am using a listener for a server. Any how if you see the archive, my first mail gives the reference of the same thread. I guess I have to live with that (Server life cycle listener) :-( Thanks again, Mohammed. -Original Message--

Db connection issue due to firewall

2009-08-25 Thread chandra ganta
Hello, We use a db datasource for one of our applications. The issue is that there is a firewall between tomcat server 5.5 & db server (ORACLE 9i), that cuts pool connections after 1 hour of ideal time. We've tried several configuration using : validationQuery testOnBorrow testOnReturn testWhil

Re: SSL with multiple Tomcat instances

2009-08-25 Thread Crypto Sal
Don, No problem. You're seeing valid output and yes a Root certificate is self-signed. As per the TLS protocol, it's optional and doesn't need to be there for things to function. What's strange is it's the same output as the "webadvisor" instance, outside of the FQDN entries of course. When

Re: tomcat-users.xml on Tomcat6

2009-08-25 Thread Zaki Akhmad
On Tue, Aug 25, 2009 at 2:28 PM, André Warnier wrote: > > That does not look like a login error, it looks like a "server error". > What does the Tomcat log say ? Here's the log: [1]/var/log/tomcat6/localhost.2009-08-***. [2]/var/log/tomcat6/catalina.2009-08-. -- Zaki Akhmad [1] Aug

Re: Tomcat cluster fails and generates tons of logs

2009-08-25 Thread CS Wong
ok, we'll try this out then. One question about the regression, would it occur if the 2 nodes are in different Solaris containers (both having different IPs) but on the same physical host? Thanks a lot! Wong On Wed, Aug 26, 2009 at 10:39 AM, Filip Hanik - Dev Lists < devli...@hanik.com> wrote:

Re: Tomcat cluster fails and generates tons of logs

2009-08-25 Thread Filip Hanik - Dev Lists
hi Wong, yes, that one does implement a higher level of thread safety, and most likely would resolve your problem. With 6.0.20, there is a regression where tomcat nodes on the same host wont discover each other https://issues.apache.org/bugzilla/show_bug.cgi?id=47308 Filip On 08/25/2009 07:22

Re: processing precedence for mod_jk config?

2009-08-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, On 8/25/2009 9:37 PM, Chris Cheshire wrote: > However, even with a directory deny rule in apache conf to block the > web-inf and meta-inf directories, requests to it are still getting > passed to tomcat. That's because they aren't being treate

processing precedence for mod_jk config?

2009-08-25 Thread Chris Cheshire
Hi, I have been working on a web-app that has been running under tomcat 6 alone for a while. I am now configuring Apache to do some rewrite rules with domains and then forward on to tomcat, which is working. However, even with a directory deny rule in apache conf to block the web-inf and meta-inf

Re: Tomcat cluster fails and generates tons of logs

2009-08-25 Thread CS Wong
A brief look through "svn log http://svn.apache.org/repos/asf/tomcat/trunk/java/org/apache/catalina/ha/session/DeltaRequest.java"; turns up this: r618823 | fhanik | 2008-02-06 07:29:56 +0800 (Wed, 06 Feb 2008) | 3 lines Remov

Re: Multiple data centers and redundency?

2009-08-25 Thread Andre-John Mas
On 25-Aug-2009, at 20:52, Hassan Schroeder wrote: On Tue, Aug 25, 2009 at 5:38 PM, Andre-John Mas wrote: ... The architecture would involve a DNS server perodically giving out a DNS address for one DNS server and then an address for the other. Huh? Teaches me to proof read. The DNS s

Re: Multiple data centers and redundency?

2009-08-25 Thread Hassan Schroeder
On Tue, Aug 25, 2009 at 5:38 PM, Andre-John Mas wrote: > ... The architecture would involve > a DNS server perodically giving out a DNS address for one DNS server and > then an address for the other. Huh? > I see there is clustering available with Tomcat, but I don't see how this > works across

Re: Tomcat cluster fails and generates tons of logs

2009-08-25 Thread CS Wong
Thanks, Filip. I'm running 6.0.14 right now. Would you have any idea whether any changes in the code since then would have fixed something like this? I can try to push for an upgrade to 6.0.20 but the app owners would probably want to know whether it would be fixed for sure since they have to go th

Re: Multiple data centers and redundency?

2009-08-25 Thread Andre-John Mas
Hi, I have just been given some more information. The architecture would involve a DNS server perodically giving out a DNS address for one DNS server and then an address for the other. Each data centre would have multiple hosts, each running multiple tomcats. The load balancer would take

Multiple data centers and redundency?

2009-08-25 Thread Andre-John Mas
Hi, I have been asked to look into a solution that would involve a few different data centres each with their own set of load balanced Tomcat servers. The requirement is for the users not to lose their session if one data center goes down. I have never had to work on something this large

Trying to configure mod_jk

2009-08-25 Thread Troy Bull
Greetings I have been trying to get this to work for hours and I am stuck. I am trying to configure mod_jk and it works to a point, that is up until the back end app does a redirect, the redirected url is passed all the way back to the browser, then the browser goes directly against the app se

Re: Idea to simplify deployments

2009-08-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sebastian, On 8/25/2009 2:20 PM, Sebastian Hennebrueder wrote: > My proposal is to just allow adding a simple text file into the lib > folder of WAR or EAR archives instead of adding jar files. This file > describes which libs, the application server

Re: Tomcat 301 redirect

2009-08-25 Thread Hassan Schroeder
On Tue, Aug 25, 2009 at 11:26 AM, Murtuza wrote: > > I only want to re-link old uri to home page and any request which does not > exist to error page. I added > >         >                404 >                /404.jsp >         > > to web.xml and used below code which I found after google but > req

Re: Tomcat 301 redirect

2009-08-25 Thread Murtuza
I only want to re-link old uri to home page and any request which does not exist to error page. I added 404 /404.jsp to web.xml and used below code which I found after google but request.getRequestURI() returns 404.jsp rather then the old-page.h

Idea to simplify deployments

2009-08-25 Thread Sebastian Hennebrueder
Hello, The deployment approach currently used for web application and enterprise application is slightly annoying. If I deploy five applications to a servlet engine, I will package the same libs 5 times and copy them to my server. Packing them into the shared library folder of the applicatio

Re: Tomcat 301 redirect

2009-08-25 Thread Hassan Schroeder
On Tue, Aug 25, 2009 at 10:59 AM, Murtuza wrote: > > I have my application running on tomcat 5.5, it only has static pages. I > removed some page from my application and want to redirect any request to > deleted resource to homepage. Can someone point me how this can be done. A custom 404 page wou

Tomcat 301 redirect

2009-08-25 Thread Murtuza
I have my application running on tomcat 5.5, it only has static pages. I removed some page from my application and want to redirect any request to deleted resource to homepage. Can someone point me how this can be done. -- View this message in context: http://www.nabble.com/Tomcat-301-redirect-t

Re: Tomcat cluster fails and generates tons of logs

2009-08-25 Thread Filip Hanik - Dev Lists
I've taken a look at the code. The fix for this is easy, but it doesn't explain why it happens. This is a concurrency issue, but if you're not running the latest tomcat version, then it could already have been fixed. best Filip On 08/25/2009 01:55 AM, CS Wong wrote: Hi Michael, The logs are

RE: SSL with multiple Tomcat instances

2009-08-25 Thread Don Prezioso
Sal, Thanks so much for the reply. I think the server.xml reference is correct. Here is the connector segment from that instance: We are using 8443 instead of 443 and have iptables set up to reroute any outside traffic that comes in on 443 to 8443. The other instance uses 172.18.19.15 and

Re: Tomcat 4 start up as (/sbin/service)

2009-08-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sunil, On 8/25/2009 1:24 AM, sunil chandran wrote: > Now can i stop tomcat service and take a backup of tomcat 4 > directory. Then install the new tomcat4.1.40 in the same location. > That way i need not change the directory location in any files to

Re: Virtual Hosts and manager application.

2009-08-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Wesley, On 8/24/2009 5:20 PM, Wesley Acheson wrote: > Off topic is it wrong to reply to two emails like this in one mail (for > threading purposes?) While not "wrong", it is kind of confusing. There's no particular reason not to reply to messages ind

Re: Tomcat cluster fails and generates tons of logs

2009-08-25 Thread Filip Hanik - Dev Lists
what version of Tomcat, and we will get it fixed On 08/25/2009 12:22 AM, CS Wong wrote: Periodically, I'm getting problems with my Tomcat 6 cluster (2 nodes). One of the nodes would just go haywire and generate a ton of logs repeating the following: Aug 25, 2009 11:44:10 AM org.apache.catalina.

Re: JNDI-Datasource: what happens if the database is not ready when Tomcat starts?

2009-08-25 Thread Mikolaj Rydzewski
Fred Janon wrote: I am looking into using the JNDI/Datasource facility in Tomcat 5.5 to connect to a mySQL 5.0 database on a Windows 2003 server. Both Tomcat and mySQL run as services. What happens if the Tomcat service starts before mySQL? Does Tomcat wait for a while for the DB to be ready? Doe

JNDI-Datasource: what happens if the database is not ready when Tomcat starts?

2009-08-25 Thread Fred Janon
Hi, I am looking into using the JNDI/Datasource facility in Tomcat 5.5 to connect to a mySQL 5.0 database on a Windows 2003 server. Both Tomcat and mySQL run as services. What happens if the Tomcat service starts before mySQL? Does Tomcat wait for a while for the DB to be ready? Does it launch the

Re: Problem closing datasource when used as JNDI resource

2009-08-25 Thread Mark Shifman
Since you don't seem to be able to google yourself, here is the link. http://www.mail-archive.com/users@tomcat.apache.org/msg65149.html Mohammed Bin Mahmood wrote: > Hi Chris, > > You mentioned about the published filter that can close datasource. I wonder > if you have any idea about that. > Is

Jakarta Connector 1.2.28 with Windows Server 2008 32bit, IIS 7.0

2009-08-25 Thread Michael Wall
Michael Wall Nordic Edge AB Mobile: +46 (0)70 250 83 20 Business card: www.nordicedge.se/mwall Visit us on the web at: www.nordicedge.se __ -- Forwarded message -- From: Michael Wall Date: Tue, Aug 25, 2009 at 1:05 PM Subject: Jaka

Tomcat integration with Ldap

2009-08-25 Thread Varsha NRao (HCL Financial Services)
Hello, I am trying to configure a JNDI Realm in my tomcat server and access the URL given in the examples http://localhost:8080/jsp-examples/security/protected/ The user Id and password I am entering is getting authenticated , but I am still not able to login, I get redirected to the error pa

Re: Tomcat cluster fails and generates tons of logs

2009-08-25 Thread CS Wong
Hi Michael, The logs are the bit that went haywire. The applications at this point still work but often, there's not enough time to troubleshoot much else. The logs can increase by 5-6GB in a matter of an hour or so and hence, we often just kill the service (normal shutdown.sh doesn't respond any m

Embedded tomcat not displaying page content

2009-08-25 Thread prashant.prasannakumaran
Hi All, I've the following configuration: 1. Embedded tomcat (catalina-5.5.9.jar) 2. JSF pages (jsf-api-1.1.01.jar) 3. Java 6 My server starts up fine and listens on the configured port number. However, when i request for a page, it displays a blank html page as following I used to run th

Re: Tomcat cluster fails and generates tons of logs

2009-08-25 Thread Michael Ludwig
CS Wong schrieb: Periodically, I'm getting problems with my Tomcat 6 cluster (2 nodes). One of the nodes would just go haywire Could you elaborate on what "going haywire" means? Below, you write: [The NoSuchElementException is] the only thing that it shows. The other node in the cluster is s

Re: tomcat-users.xml on Tomcat6

2009-08-25 Thread André Warnier
Zaki Akhmad wrote: Hello, I've failed login on manager webapp and host-manager webapp. I've add the manager and admin role on tomcat-users.xml [/etc/tomcat6/tomcat-users.xml]. The status is HTTP Status 500. That does not look like a login error, it looks like a "server error". What does the To

Re: tomcat-users.xml on Tomcat6

2009-08-25 Thread Michael Ludwig
Zaki Akhmad schrieb: I've failed login on manager webapp and host-manager webapp. I've add the manager and admin role on tomcat-users.xml [/etc/tomcat6/tomcat-users.xml]. The status is HTTP Status 500. What's the message in the error log? Did you restart Tomcat? Did you read the doc concerni