Connection pooling - SQL server

2005-12-08 Thread dhara radha
Hi, I have a problem in connection pooling. Hope you can give some solution for this. I am trying to establish connection pooling in the environment. Tomcat 5.0.28 SQL server 2000 windows 2000 Professional I have jar files in tomcat home\common\lib ===> commons-dbcp-1.2.1 commons-collection-3

How to load a class when tomcat starts

2005-12-08 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 o

RE: Tomcat 4.1 hang - maybe in JK connector

2005-12-08 Thread Richard Mixon
>Can anyone take a look at the thread dump below and give me a clue as to >what cause the CPU to rise to 99% and things to get unresponsive? Sorry the >dump is so large (850 lines) Oh ... This is a Fedora Core 2 Linux box with 1GB of RAM and dual Xeons. Thanks -Richard

install tomcat daemon on linux

2005-12-08 Thread ody quraviharto
hi all, I'm a newbie of tomcat user. I'd like to install tomcat so that it starts as linux starts up. I've read the docs, told me to use jsvc tools. ..here is the problem..I do what it's suppose to do but still no tomcat script on /etc/init.d on my fedora. PLease help me, thx -

Tomcat 4.1 hang - maybe in JK connector

2005-12-08 Thread Richard Mixon
We just finished eliminating some instability in one of our Tomcat server about a month ago. We ended up just needing to specify removeAbandoned true removeAbandonedTimeout 300 in our DBCP data sources. Now a month later we had a hang today. It looks like its in the J

re: Servelts under IIS or Apache integration

2005-12-08 Thread JT Neville
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 the above is for the root folder only? Can anyone confirm?

Re: Selective auto-deploy of web-apps?

2005-12-08 Thread Martin Gainty
Bonjour Michael Have you looked into using Spring Framework lazy-init=true property e.g ? Martin- - Original Message - From: "Michael Hackett" <[EMAIL PROTECTED]> To: Sent: Thursday, December 08, 2005 5:08 PM Subject: Selective auto-deploy of web-apps? I'm trying to come up with a

RE: Selective auto-deploy of web-apps?

2005-12-08 Thread Caldarale, Charles R
> From: Michael Hackett [mailto:[EMAIL PROTECTED] > Subject: Selective auto-deploy of web-apps? > > We want to prompt the user for the database password and > boot the database before launching the real application. What user? > I guess we will have to look at controlling the database > start

Selective auto-deploy of web-apps?

2005-12-08 Thread Michael Hackett
I'm trying to come up with a solution for the following situation: We have a webapp that we need to deploy with an encrypted Derby database. We want to prompt the user for the database password and boot the database before launching the real application. I was thinking of having either: (1) a sepa

Re: Tomcat 5.5.12 and ROOT

2005-12-08 Thread Martin Gainty
Good Afternoon Chuck- I ran into the same problem while implementing a "\" mapping for Tomcat Thanks for the advice Martin- - Original Message - From: "Caldarale, Charles R" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Thursday, December 08, 2005 2:51 PM Subject: RE: Tomcat 5.5.12

Re: Servelts under IIS or Apache integration

2005-12-08 Thread marju jalloh
have you install the connector between tomcat and IIS6? Marju JT Neville <[EMAIL PROTECTED]> wrote: Hello, checked FAQ's, Googled, trial/errored and still unclear how to resolve this. I have a servlett that works in Tomcat over 8080 (in standalone mode) [it's a form that passes informat

RE: Tomcat 5.5.12 and ROOT

2005-12-08 Thread Caldarale, Charles R
> From: Robert Upshall [mailto:[EMAIL PROTECTED] > Subject: Tomcat 5.5.12 and ROOT > > What is the proper way to change "/" to map to my webapp > instead of ROOT? The easiest way is just to name your webapp ROOT, replacing the one under Tomcat's webapps directory. If you're reluctant to do tha

Tomcat 5.5.12 and ROOT

2005-12-08 Thread Robert Upshall
What is the proper way to change "/" to map to my webapp instead of ROOT? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Servelts under IIS or Apache integration

2005-12-08 Thread JT Neville
Hello, checked FAQ's, Googled, trial/errored and still unclear how to resolve this. I have a servlett that works in Tomcat over 8080 (in standalone mode) [it's a form that passes information in XML format to a file], but when I integrated Tomcat into IIS6, the servlett no longer responds when s

docBase error on Tomcat 5.5.12 - RESOLUTION

2005-12-08 Thread Rose, Greg
The response from Charles Caldarale was dead on: 1) The name of the file containing the tag must be .xml, not context.xml (context.xml is used when it's under the META-INF directory). 2) The path attribute is not allowed, unless the tag appears in server.xml, which is strongly discouraged.

RE: docBase error on Tomcat 5.5.12

2005-12-08 Thread Rose, Greg
Thank you for your quick response. I quickly tried renaming the context.xml file to SVOIC.xml and it got rid of the fatal error and just gives me the docBase warning. I will try the additional 2 steps and see if that gets rid of the warning. If I read your response correctly, I will first, crea

RE: docBase error on Tomcat 5.5.12

2005-12-08 Thread Caldarale, Charles R
> From: Rose, Greg [mailto:[EMAIL PROTECTED] > Subject: docBase error on Tomcat 5.5.12 > > I did this by creating a context.xml file with the > information and placed it in the > {tomcat base dir}\conf\Catalina\localhost directory. > The context entry is: > debug="5" reloadable="true" c

RE: Username from basic Auth and Contextinformation Question

2005-12-08 Thread Caldarale, Charles R
> From: Robert Einsle [mailto:[EMAIL PROTECTED] > Subject: Username from basic Auth and Contextinformation Question > > The second is, can i deliver the context-information for my webbapp > inside my war-package? Normaly i configure Contextinformation > (Datasources, Logger...) inside the Conte

RE: Question concerning java.lang.NoClassDefFoundError: javax/servlet/ServletContext

2005-12-08 Thread Armand Rock
Hello, Thanks for your help I got it working by scrapping the custom classloader altogether and calling Class.forName() to retreive an instance of the desired class. Thanks again! -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: December 8, 2005 9:12 AM To: Tomcat User

RE: UnsupportedClassVersionError

2005-12-08 Thread Larry Isaacs
I believe the message: java.lang.UnsupportedClassVersionError: com/sun/tools/javac/Main (Unsupported major.minor version 49.0) indicates that while running with 1.4.2, you are attempting to use a tools.jar from a JDK 1.5.x. The simplest way I know to encounter this is to install Tomcat using th

Re: Question concerning java.lang.NoClassDefFoundError: javax/servlet/ServletContext

2005-12-08 Thread David Smith
Ok. I won't pretend to know all the ramifications to using this ClassFinder class. To my limited understanding, it's a classloader working without knowledge of Tomcat's classloaders and designed to help you reference classes stored outside the webapp. As a test, try removing the ClassFinder

RE: UnsupportedClassVersionError

2005-12-08 Thread Peter Crowther
> -Original Message- > From: e-Denton Subscriber [mailto:[EMAIL PROTECTED] [...] > java.lang.UnsupportedClassVersionError: com/sun/tools/javac/Main > (Unsupported major.minor version 49.0) I suspect the tools.jar in your classpath is from Java 1.5, not Java 1.4. Certainly *something*

AW: Tomcat session serialisation & work directory

2005-12-08 Thread Chaudhuri, Hiran
Hi, Yoav. As requested by Mark I send my reply on this list. My Tomcat version is 4.0.29. I know it is old, therefore I retested the work directory settings with Tomcat 5.5.12 and all that I mention now will be that current release. It seems to me that Tomcat completely ignores the work direct

AW: Username from basic Auth and Contextinformation Question

2005-12-08 Thread Thomas Strauß
Hi, dont know for apache but for context: You can place the context as "context.xml" inside the META-INF directory. The application path will be / the information from the context path attribute is ignored. Mit freundlichen Grüßen Thomas Strauß -Ursprüngliche Nachricht- Von: Robert

Re: Communication between Apache an Tomcat

2005-12-08 Thread Mladen Turk
marju jalloh wrote: JkMount /servlet/* ajp13 This might help: JkMount /*/servlet/* ajp13 Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

docBase error on Tomcat 5.5.12

2005-12-08 Thread Rose, Greg
I have recently upgraded Tomcat from 5.5.9 to 5.5.12. I had no problems after the upgrade while I was using a mySQL database. Once I started using MS SQL Server, I had to add a resource to Tomcat to get it to work. I did this by creating a context.xml file with the information and placed it in t

Re: Communication between Apache an Tomcat

2005-12-08 Thread marju jalloh
Thanks Mirek it helps and save from another 100 hr of googling Byfour marju jalloh <[EMAIL PROTECTED]> wrote: Sorry for the long Httpd.conf file.This is the jk_mod section in the Httpd.config file JkWorkersFile /etc/tomcat4/jk/workers.properties JkLogFile /var/log/apache/mod_jk.l

Re: Communication between Apache an Tomcat

2005-12-08 Thread marju jalloh
Sorry for the long Httpd.conf file.This is the jk_mod section in the Httpd.config file JkWorkersFile /etc/tomcat4/jk/workers.properties JkLogFile /var/log/apache/mod_jk.log JkLogLevel info JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 Options Indexes Follo

Re: Communication between Apache an Tomcat

2005-12-08 Thread marju jalloh
Thanks for your response.This is my http.conf file. ## ## httpd.conf -- Apache HTTP server configuration file ## # # Based upon the NCSA server configuration files originally by Rob McCool. # # This is the main Apache server configuration file. It contains the # configuration di

UnsupportedClassVersionError

2005-12-08 Thread e-Denton Subscriber
Hi, I recently uploaded an updated Struts application to a remote server. Now I get this message (below: UnsupportedClassVersionError). I am using Tomcat 5.0.27. I do have 5.5 on that system, but everything points to 5.0.27 (as far as I can tell). I am running Java 1.4.2_01_b06. I have the same

Re: Communication between Apache an Tomcat

2005-12-08 Thread Mirek Kopriva
Hi, Looks like it's the configuration of mod_jk in apache. Not sure what is wrong (If you'd atach the configuration files it would be easier to help you). But my guess is the problem is setting of JkMount directive. looks like you have: 'JkMount /*.jsp worker' only while you should have: JkMount /y

Communication between Apache an Tomcat

2005-12-08 Thread marju jalloh
Hi everyone, I cannot access my servlet from Apache but I can access my jsp.I am using Apache 1.3.33, jk_mod1.3 en Tomcat 4.1.27 on Linux (Debian Serge).Tomcat is running and I can access all my servlets and jsp via port 8080.Apache is also running.I can access all my jsp via Apache whic

Username from basic Auth and Contextinformation Question

2005-12-08 Thread Robert Einsle
Hy List, i have two questions koncerning Tomcat. I will do the Authentifikation for my Webbapp on the Apache (2.0) with Basic Auth. Is it possible in my Tomcat Application to access the Username (out of the Session?) where the User logged on? The second is, can i deliver the context-informat

Re: Logout for multiple webapps.

2005-12-08 Thread Peter Rossbach
Hmm, I have test SingleSignOn with 5.5.12 and it works for me. Peter Mathew Joseph schrieb: Yes, i am using SingleSignOn valve, but "invalidate()" doesn't looks like clear both sessions. Regards mathew -Original Message- From: Peter Rossbach [mailto:[EMAIL PROTECTED] Sent: Thursd

RE: Logout for multiple webapps.

2005-12-08 Thread Mathew Joseph
Yes, i am using SingleSignOn valve, but "invalidate()" doesn't looks like clear both sessions. Regards mathew -Original Message- From: Peter Rossbach [mailto:[EMAIL PROTECTED] Sent: Thursday, December 08, 2005 1:02 PM To: Tomcat Users List Subject: Re: Logout for multiple webapps. Us

AW: Unable to switch back from https to http

2005-12-08 Thread Tobias Meyer
Most propably you loose your session when redirecting between the protocols. Either because you disabled cookies and do not send the ";jsessionid=aaabbbcccdddeeeff..." in your redirect, or because the cookie is tied to the protocol. (seeing this from a security point of view, this is the right thin