How to load a class when tomcat starts

2005-12-09 Thread vineesh kumar
Hi all, I need to load a java class when tomcat starts, which will initializes some configuration files and so i can use the fields in the class throught the environment.How can i do this.? Actually I am working on a distributed application, so the configuration files may change frequently but on

Re: Connecting Tomcat and Apache using mod_jk and jni (deprecated?) or ajp13

2005-12-09 Thread Bill Barker
"Marc Richards" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I have Apache 2.x and Tomcat 5.5 connected using > mod_jk ajp13 workers (win32) and running fine. > However, under heavy load (using jmeter) I start to > get mod_jk errors indicating that the connection is > closed and i

LDAP/LDAPS and Tomcat (Flod Requests against LDAP/LDAPS).

2005-12-09 Thread Farid Izem
Hi all, I'have successfully configured a JNDI Realm i order to filter access on my tomcat based on directory services. I'have deployed a webapps which need authentication against LDAPS Directory service. While testing the webapps, i see a strange behaviour. Since the users credentials are wrong, t

RE: Question related to adding new services dynamically

2005-12-09 Thread Carl Olivier
Hi. Not sure if it is the most "approved" option, but there is a priveleged attribute in the which when set to true (privileged="true") gives the classloader (and your classes) access to the tomcat/catalina internals - thus no need for your "hacking" etc. Just a thought. Regards, Carl -O

Question related to adding new services dynamically

2005-12-09 Thread Koneru, Narendra
Hi, I tried hard but could not find any information regarding the following: The problem is this: * We want to add a new tomcat service (I am referring to a service in server.xml) dynamically to be run on a different port within the same tomcat instance. * We want to do this w

RE: Selective auto-deploy of web-apps?

2005-12-09 Thread JT Neville
Nice idea, have any example code or a pointer to some on the apache/tomcat site. Looking now but don't see anything in the first few pages of a Google search on doing this. =) -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Friday, December 09, 2005 11:47 AM To: Tomc

Re: Selective auto-deploy of web-apps?

2005-12-09 Thread David Smith
Or IMHO, use a request filter to check for the database and then redirect the use to a "not available" or "out of order" page. This can easily happen before any processing starts and the servlet need not be any the wiser. --David Michael Hackett wrote: Quoting "Caldarale, Charles R" <[EMAI

RE: Selective auto-deploy of web-apps?

2005-12-09 Thread Michael Hackett
Quoting "Caldarale, Charles R" <[EMAIL PROTECTED]>: > > From: Michael Hackett [mailto:[EMAIL PROTECTED] > > Subject: Re: Selective auto-deploy of web-apps? > > > > Anyway, I appreciate the attempt, but I don't think that solves my > > problem of controlling the startup of a webapp or servlet fro

RE(4): Servelts under IIS or Apache integration

2005-12-09 Thread JT Neville
Fixed it. =) Thanks all. Two things: /virtual_directory/servletname/*=main Is the correct format (along with the *.jsp line) And the isapi_redirect reg file can be used to set the location of the uiworkermap.properties so you need to edit that one and not the global one in the main Tomcat dire

Connecting Tomcat and Apache using mod_jk and jni (deprecated?) or ajp13

2005-12-09 Thread Marc Richards
I have Apache 2.x and Tomcat 5.5 connected using mod_jk ajp13 workers (win32) and running fine. However, under heavy load (using jmeter) I start to get mod_jk errors indicating that the connection is closed and is unable to be reopened. This essentially results in a dead server for a while. The

RE(3): Servelts under IIS or Apache integration

2005-12-09 Thread JT Neville
Didn't work. Any pointers to documentation on this kind of thing (servlet path mapping etc...) anywhere? I've built up a fresh install dev server to test from but I ran into the same error so at least I know it's definitely related to the IIS - Tomcat handoff. -Original Message- From: ma

jk 1.2.15

2005-12-09 Thread Kurt McKain
I'm trying to implement JK 1.2.15 on a Windows Server 2003 box. I'm receiving the following errors in my isapi_redirect.log file. It appears that Tomcat is processing the data, but the data is following to make it back to IIS. [Fri Dec 09 12:30:20 2005] [2948:3184] [error] jk_isapi_plugin.c (

RE: Selective auto-deploy of web-apps?

2005-12-09 Thread Caldarale, Charles R
> From: Michael Hackett [mailto:[EMAIL PROTECTED] > Subject: Re: Selective auto-deploy of web-apps? > > Anyway, I appreciate the attempt, but I don't think that solves my > problem of controlling the startup of a webapp or servlet from another > webapp or servlet. I don't understand why you thin

RE: Tomcat 4.1 hang - maybe in JK connector

2005-12-09 Thread Richard Mixon
I did a bit more research and found the two areas of concern. Would appreciate any comments or insights into how to resolve this. 1) First there were 37 waiting threads in the thread pool. There were and additional 22 that were in Object.wait on a "read" in the JK code. There was one that was "wa

How to reload jsp using ant in Tomcat 5.5?

2005-12-09 Thread Guillermo Sobrino
Hello, I'm using Tomcat 5.5 on wich I deploy a web application with ant using: where install.home/component.name-component.version is a local directory wich contains a typical structure with JSP's and a WEB-INF directory wich includes lib and classes directories. I get

Re: Why only one Connector per Service?

2005-12-09 Thread Vinny
Thank guys for the replies, sorry for the brief loss of faith. :) It would be nice to include this possible setup in the docs. On 12/9/05, Carl Olivier <[EMAIL PROTECTED]> wrote: > Oh, and just to be a little more explicit :) > > You can of course have the same IP of various ports. > > If you do

Re: What's the difference between .zip and .exe from download site?

2005-12-09 Thread Seak, Teng-Fong
Caldarale, Charles R wrote: From: Seak, Teng-Fong [mailto:[EMAIL PROTECTED] I only knew that those batches/scripts are mostly for startup and shutdown tomcat. Which files could help debugging easier? Frequently, there's output in the console window that is quite useful when debugg

Re: Internationalization Problem with Tomcat 5.5.9

2005-12-09 Thread Seak, Teng-Fong
I couldn't tell if there's any change since I don't know. Actually, you didn't tell if you're really making JSP or servlet. And you've just mentioned that you're using taglibrary. Maybe take a look at the tag library first to see if you've wrongly used something. Re-read the documentatio

Re: Selective auto-deploy of web-apps?

2005-12-09 Thread Michael Hackett
> From: "Caldarale, Charles R" <[EMAIL PROTECTED]> > > > From: Michael Hackett [mailto:[EMAIL PROTECTED] > > > > We want to prompt the user for the database password and > > boot the database before launching the real application. > > What user? The user of the web app. In this case, there wil

RE: Why only one Connector per Service?

2005-12-09 Thread Carl Olivier
Oh, and just to be a little more explicit :) You can of course have the same IP of various ports. If you do not specify address the connector will listen on all available Ips on the specified port (which I think is where the confusion came in), so: Hope that helps. Regards, Carl ---

RE: Why only one Connector per Service?

2005-12-09 Thread Carl Olivier
Hi. You can specify an address/port configuration per connector (yes you can have multiple) for a single service. E.g. As long as each BIND event for that service is unique per connector (on an address/port basis) you are fine. Remember that all Hosts within that Engine/Service will be acce

RE: Tomcat 4.1 hang - maybe in JK connector

2005-12-09 Thread Richard Mixon
Mirek, Thank you for the response and confirming that the problem is between Tomcat and Apache. I will check the connections settings for both Tomcat and Apache and see if I can monitor what's going on between them. As far as your JDBC problem, I do not have much to offer. This customer's configu

Why only one Connector per Service?

2005-12-09 Thread Vinny
I am curious as to the reason there is only one connector for each service? I have a machine with 3 IP addresses. 1 IP is being used by another program running on port 80. That leaves me with 2 IPs that I can use for tomcat. The standalone virtual host method that I have used in the past seems to a

Different DataSources for different 's

2005-12-09 Thread Arnaud Vandyck
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I have strange behaviour with DataSources and Realms. I define a global datasource jdbc/A, a global Realm (R-A) that looks at users with datasource jdbc/A The host H-A is configured and trusted webapps look for passwords in R-A. I also can m

Re: Multiple thread pools in Tomcat 5.5

2005-12-09 Thread David Kerber
Mikolaj Rydzewski wrote: Kirk Gray wrote: This e-mail is intended only for the personal and confidential use of the recipient(s) named above. It may include Blackboard confidential and proprietary information, and is not for redistribution. I wonder if you'll bue sued because this email is

Re: Multiple thread pools in Tomcat 5.5

2005-12-09 Thread Mikolaj Rydzewski
Kirk Gray wrote: This e-mail is intended only for the personal and confidential use of the recipient(s) named above. It may include Blackboard confidential and proprietary information, and is not for redistribution. I wonder if you'll bue sued because this email is being redistributed all ov

Multiple thread pools in Tomcat 5.5

2005-12-09 Thread Kirk Gray
Can anyone tell me if Tomcat 5.5 supports custom thread pools like WebLogic, and if not, whether there are plans for future support of this feature? This e-mail is intended only for the personal and confidential use of the recipient(s) named above. It may include Blackboard confidential and

serving content outside webapp

2005-12-09 Thread Balint Domokos
Hello, I have a content management system running on Tomcat, and I have to serve different static content for authorized users. Currently I have a download webapp, which is using the default servlet to serve this static content. The content directories are linked to the base dir of the download w

Strange behaviour with url rewrite when cookies are allowed

2005-12-09 Thread Jan Behrens
Hi List, I have a legacy webapp that I am slowly migrating to Struts. It makes heavy use of storing / retrieving objects in the session and does not rewrite all URL (yet) to allow for session handling when cookies are turned off. The app runs fine on my dev machine (TC 5.0.28 with SDK 1.4.2_09

Re: Communication between Apache an Tomcat

2005-12-09 Thread Mladen Turk
Mirek Kopriva wrote: What if you do JkMount /* ajp13 This way you should be able to access everything. Right, but then you will not be able to use Apache for delivering static content, server-status, jkstatus, use mod_rewrite, etc. Anyhow, the best practice is to map the application not everyt

Re: Communication between Apache an Tomcat

2005-12-09 Thread Mirek Kopriva
What if you do JkMount /* ajp13 This way you should be able to access everything. Mirek On 12/8/05, Mladen Turk <[EMAIL PROTECTED]> wrote: > > marju jalloh wrote: > > > > JkMount /servlet/* ajp13 > > > > This might help: > JkMount /*/servlet/* ajp13 > > Regards, > Mladen. > > -

Re: Tomcat Security

2005-12-09 Thread Luis Correia
Hi to you all ! I've to check if the security settings of a Tomcat server are appropriated. Can anyone please tell me where should I start? Is there a security check list ? Please fell free to send me any documentation that you think it might help. I also have to analyse the security settings of

Re: Tomcat 4.1 hang - maybe in JK connector

2005-12-09 Thread Mirek Kopriva
Hi, We are solving similar problem right now. Setting the removeAbandoned increased the period between the stucking to 7 hours) What is your network configuration? Is there a firewall or something between tomcat and apache? We are getting stucked in communication between the jdbc driver in the tom

Strange logs during in memory replication

2005-12-09 Thread Rafal Zawadzki
Hi. I set up clustering with in memory session replication. The fragment of my config is (tomcat 5.5.12): At http://tomcat.apache.org/tomcat-5.5-doc/changelog.html I read, that in 5.5.13 there were many bugfixes connected with clu

re: Servelts under IIS or Apache integration

2005-12-09 Thread marju jalloh
try */servlet/*=main JT Neville <[EMAIL PROTECTED]> wrote: Anyone clarify this for me? Using IIS and Tomcat, I created this file: uiworkermap.properties with this text in it (as suggested by Reynir - http://www.reynir.net/java/greinar/nr/52) /*jsp=main /servlet/*=main I expect