Re: Servlet inter-communication

2006-05-05 Thread Michael Echerer
Samuli Elomaa wrote: > Hi, > Is there any otherway for two servlets in same tomcat to communicate > together except by http requests? Eg. could two servlets use somekind > of shared memory? or send signals to each other? Hi, whatever others suggested, just use the Servlet Spec 2.3+ standard: T

Re: META-INF/context.xml and custom Manager

2006-05-05 Thread Michael Echerer
John D'Emic wrote: > Hey all, > Hi, > > > I have a custom Manager class I'm trying to use for a single webapp. It > seems the way to do this is to have a context.xml file in the exploded > webapp's META-INF directory. I have the following: > Well, META-INF/context.xml is the right place, bu

Re: Tomcat config with APACHE and mutliple VHOST

2006-05-05 Thread Pascal
Yes Apache serves the Static pages and PHP We have 150 Vhost in fact. Some of our best client would like to use jsp/servlet in addition to their existing php/htm file Pascal - Original Message - From: "Parsons Technical Services" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Sa

Re: Limiting the number of connection threads per application

2006-05-05 Thread David Rees
On 5/5/06, Leon Rosenberg <[EMAIL PROTECTED]> wrote: you could send the user to a waiting page, which should automatically retry the action (via http redirect or js redirect) after some amount of time. On the other hand, if the waiting condition is almost permanent your should think about other s

Re: Tomcat config with APACHE and mutliple VHOST

2006-05-05 Thread Parsons Technical Services
Any reason you need Apache? You can do the Vhost with Tomcat alone. Just an option. Doug - Original Message - From: "Pascal" <[EMAIL PROTECTED]> To: Sent: Friday, May 05, 2006 9:03 PM Subject: Tomcat config with APACHE and mutliple VHOST Hello, I not really found revelant info on

Tomcat config with APACHE and mutliple VHOST

2006-05-05 Thread Pascal
Hello, I not really found revelant info on internet about this. Here is what we plan to do. We have currently APACHE and mutli^ple vhost on few shared IP. We'd like to allow to some or all vhost to use jsp/servlet. So we will install TOMCAT and mod_JK Here is our config snapshot apache in /et

Tomcat hang when call HttpURLConnection.connect() in init()

2006-05-05 Thread Stanley_Lee
I try to detect another web application's accessibility in Servlet's init() method: URL url = new URL("http://localhost:8080/xyz";); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.connect(); When application "xyz" is NOT available, above code: - runs fine in standalone J

RE: META-INF/context.xml and custom Manager

2006-05-05 Thread John D'Emic
Tried it in common/lib and shared/lib to no avail... -Original Message- From: Marc Farrow [mailto:[EMAIL PROTECTED] Sent: Friday, May 05, 2006 4:29 PM To: Tomcat Users List Subject: Re: META-INF/context.xml and custom Manager server/lib doesn't seem like the correct place for it, but I a

Re: META-INF/context.xml and custom Manager

2006-05-05 Thread Marc Farrow
server/lib doesn't seem like the correct place for it, but I am just guessing here. Just for kicks try common/lib or shared/lib. On 5/5/06, John D'Emic <[EMAIL PROTECTED]> wrote: Its in ose.jar in server/lib. From looking at the tomcat logs, it don't see any exceptions trying to load it or any

RE: META-INF/context.xml and custom Manager

2006-05-05 Thread John D'Emic
Its in ose.jar in server/lib. From looking at the tomcat logs, it don't see any exceptions trying to load it or anything like that. I additionally can see tomcat reading the jar from the filesystem successfully. The tomcat manager entry for my webapp shows this: Name: Catalina:type=Manager,path=

Re: META-INF/context.xml and custom Manager

2006-05-05 Thread Marc Farrow
Where is this class located? net.badcurrent.ose.tomcat.manager.CustomManager Maybe it needs to be somewhere else. Just a guess. On 5/5/06, John D'Emic <[EMAIL PROTECTED]> wrote: Hey all, I have a custom Manager class I'm trying to use for a single webapp. It seems the way to do this is

META-INF/context.xml and custom Manager

2006-05-05 Thread John D'Emic
Hey all, I have a custom Manager class I'm trying to use for a single webapp. It seems the way to do this is to have a context.xml file in the exploded webapp's META-INF directory. I have the following: The webapp loads fine, but from looking at http://localhost:80

Re: Tomcat: The Definitive Guide Question

2006-05-05 Thread Michael Echerer
Marc Farrow wrote: > Tomcat 4 and Tomcat 5 changed a bit in the way they handle and load > contexts. I wouldn't suggest getting a Tomcat 4 book for a Tomcat 5 > server. SAMS has a Tomcat 5 Unleashed which is pretty good, but I don't > think it covers Tomcat 5.5. I read "Professional Tomcat 5" (Wr

SSL enabled and trying to open the port 8443 wit h the browser and nothing happend

2006-05-05 Thread josemanuel lopez
Hi I enable SSL in Tomcat, creating a key creaded with keytool and I updated my server.xml removing the comments on the port 8443 to enable it's access. But when I call in my browser "localhost:8443" the browser receives a file and gives me option t save it or open it with ...??? But any S

Re: problem with connection pooling tomcat 5.0

2006-05-05 Thread Sreenivasulu R Gaddam
I am not aware of such option in the tomcat. But you can try with the removeAbandonedTimeout set to '0' and maxActive set 1. That's equalent to disabling pooling. Another option is to use the DriverManager instead of datasource to get the connection. In this case, you have your own connection hand

Re: Tomcat: The Definitive Guide Question

2006-05-05 Thread Marc Farrow
Tomcat 4 and Tomcat 5 changed a bit in the way they handle and load contexts. I wouldn't suggest getting a Tomcat 4 book for a Tomcat 5 server. SAMS has a Tomcat 5 Unleashed which is pretty good, but I don't think it covers Tomcat 5.5. On 5/5/06, Scott Purcell <[EMAIL PROTECTED]> wrote: Hello

Tomcat: The Definitive Guide Question

2006-05-05 Thread Scott Purcell
Hello, I am running Tomcat 5.5 and figured its about time to grab a book so I can understand the product better. The one that received good reviews appears to be the OReilly Definitive Guide. But it covers 4.0 Tomcat. Is there a 5.0 Oreilly book coming out? Or does this current book covering 4

RE: Install Guide (JAVA PATH)

2006-05-05 Thread Dirk Moolman
Yes, I think you are right :-) I ran the following, and found the older version of Java first in the path: `which java` -version java version "1.4.2" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2) Classic VM (build 1.4.2, J2RE 1.4.2 IBM build cxia321420-20040626 (JIT enabled: j

RE: Install Guide

2006-05-05 Thread Dirk Moolman
Sorry, I tried 8081, but also 8080 (as in a previous mail), but both won't connect. Once Tomcat is installed and the deamon started up, can I automatically connect to this port (8080), to a default page, or do I still have some configuration to do before I can make the connection ?Is this what

RE: Install Guide

2006-05-05 Thread Chris Berthold
Also as far as JDK5 goes you could type in: which java to make sure that it was pulling up the JDK5 version. If not (you get /usr/bin/java or path to the ibm or gcj version), you needed to put it first in your path. Most *unix platforms use /etc/profile. Go down to the line that says export PATH

Tomcat and CRL(s) Certification Revocation Lists

2006-05-05 Thread Jack
Hi, I have already gotten Tomcat to work with a (single) CRL, and as it was a bit of a struggle have placed some info for those trying to do this at [1]. The document is far from perfect, and any comments are welcome. Now to the questions: 1. Is it possible to swap out the CRL (ie overwrite it w

RE: Install Guide

2006-05-05 Thread Chris Berthold
8080 not 8081 Chris Berthold IT Systems Analyst Commercial Refrigerator Door Company 941 . 371 . 8110 x 205 -Original Message- From: Dirk Moolman [mailto:[EMAIL PROTECTED] Sent: Friday, May 05, 2006 10:14 AM To: Tomcat Users List Subject: RE: Install Guide Thank you for everyone's respo

RE: Install Guide

2006-05-05 Thread Dirk Moolman
Thank you for everyone's responses.I tried downloading and installing the JDK 5 Update 6 version, but it still would not run, after following the install steps on the tomcat.apache.org website (gave me the same message as before in the catalina log) ["This release of Apache Tomcat was packaged

Re: Limiting the number of connection threads per application

2006-05-05 Thread Filip Hanik - Dev Lists
create a filter Ken Dombeck wrote: We have 2 applications installed inside the same Tomcat 5.0 instance app1 and app2. URL app1.url.com is for app1 and app2.url.com is for app2. Both URLs have the same ip address but still hit port 80. The maxThreads for the connector is set to 100. The probl

RE: Site Configuration on 5.5.15

2006-05-05 Thread Chris Berthold
No you won't run into any issues. You can do Virtual Host Based direction of your sites. The localhost can be setup for your admin console and such and you can create www.theuniquepear.com to point to a different root. In server.xml another entry like so. The application base can be whatever yo

Encounter NullPointer Exception when access db: cannot figure out what's wrong

2006-05-05 Thread Kyle Wu
hi guys, I am Kyle. I encountered NullPointerException timely when running my webapp using Tomcat5.5.10, since it seems a little complicated, please be patient to hear my description below. :-) 0. I use MySQL as db server, database configuration was correctly implemented. 1. I

Site Configuration on 5.5.15

2006-05-05 Thread Scott Purcell
I am running Tomcat 5.5.15 on a PC running Windows XP. I have been battling this problem for 6 months, and could use some help. I purchased a URL for my web site. I created the site in a folder under the root document called "unique". As I was building the site, I would hit the site like so: h

Re: mod_jk : "connection aborted or network problems", but apache and tomcat are on the same machine??

2006-05-05 Thread Francis Galiegue
Some more information... Maybe unrelated but I also get this message, this time in the Apache error log: mod_jk: Error flushing! It seems completely unrelated with the mod_jk error messages however. There's probably something rotten in my configuration but I don't see what it could be... Config

Re: tomact 4.31 X11 problem on Solaris 10

2006-05-05 Thread Leon Rosenberg
do you have X installed on your solaris machine? If not you should specify awt property as headless. regards leon On 5/5/06, Vdk khar <[EMAIL PROTECTED]> wrote: Hi all I am running tomcat 4.* on solaris 10 Same setup is on RHEL 4 I have tesed jsp program on Linux In that i am opening applet

Re: problem with connection pooling tomcat 5.0

2006-05-05 Thread Hans Sowa
Thanks a lot. I have a further question. Do you know how I can create a JNDI DataResource without connection-pooling? Thanks in advance. On 5/5/06, Sreenivasulu R Gaddam <[EMAIL PROTECTED]> wrote: Most probably this is the problem with your database jobs or stored procedures, which are leavin

working JOTM/XAPool/MySQL config with Tomcat 5.5?

2006-05-05 Thread Nikita Tovstoles
I have been struggling trying to get JOTM/XAPool 1.5 to do the following as part of webapp running in Tomcat 5.5 (talking to MySQL 5): 1. Validate connections: if MySQL server kills all jdbc connections, and *later* the webapp asks for a JDBC cxn, the db pool should reestablish and return a wo

Re: Limiting the number of connection threads per application

2006-05-05 Thread Leon Rosenberg
you could send the user to a waiting page, which should automatically retry the action (via http redirect or js redirect) after some amount of time. On the other hand, if the waiting condition is almost permanent your should think about other solutions... regards Leon On 5/4/06, Ken Dombeck <[EM

Re: Install Guide

2006-05-05 Thread Gaƫl Lams
Hi, I am trying to install Tomcat (version 5.5.17) on SLES9 for the first time. Is there an installation guide I can follow that will help me with the installation and setup ? Tomcat 5.5 is designed to run on J2SE 5.0 and later and uses the Eclipse JDT Java compiler for compiling JSP pages.

SSO between 2 Tomcats

2006-05-05 Thread Andrea Prandini
I have two tomcat 5.5 with different application deployed. All the applications are in SSO on the same Tomcat using the standard Tomcat SSO valve. I would ask if there is a method to accomplish this feature with Tomcat standard tools or I have to check for a 3rd party SSO module. Thanks Andrew

access to content out of webapps directory

2006-05-05 Thread Manos Moschous
Hi, I run a tomcat (last version) on a linux platform. The tomcat is located at /opt/web and it runs as user root I want to access some images which are located to /home/images/foo So, i make a link (foo_link) to /opt/web/webapps/links/foo_link that links to /home/images/foo which contains the

User Web Applications

2006-05-05 Thread Robert Frank
Hmm, looks like I wasn't clear enough about what's happening. In the mean time, I had to switch to tomcat version5.5, as the latest cocoon wouldn't run with the FC4 tomcat5.0 rpm package installed. I'm running tomcat5.5 on FC4 (linux) with java 1.5 (from SUN). I'm trying to set up the standal