Re: Failed to install Tomcat5 service

2007-06-14 Thread hezjing
Hi! The problem is resolved by deleting Tomcat5 service from Windows XP and redo the Tomcat installation: 1) Start | Run and type cmd in the Open: Click OK. 2) Type: sc delete Tomcat5 3) Reboot the system On 6/14/07, hezjing <[EMAIL PROTECTED]> wrote: Hi! I got this error when trying to in

RE: Tomcat 6, SQL Server 2005 JDBC Realm not working

2007-06-14 Thread Propes, Barry L
so in one connection string you have user and in the Realm you're using userName? -Original Message- From: Richard Sayre [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 13, 2007 12:42 PM To: users@tomcat.apache.org Subject: Tomcat 6, SQL Server 2005 JDBC Realm not working I have a web a

RE: Using shared Spring Webapp in Tomcat 6

2007-06-14 Thread Caldarale, Charles R
> From: Kevin Wilhelm [mailto:[EMAIL PROTECTED] > Subject: Using shared Spring Webapp in Tomcat 6 > > For Tomcat 6 there is a folder called "$CATALINAHOME/lib" > that is said to be used for that kind of stuff. No, the $CATALINA_HOME/lib directory is for classes common to all webapps, not any in

Re: sticky sessions not sticking

2007-06-14 Thread Eddie Yee
Hi Filip. It looks like that solved the problem! Thanks for your help! Eddie From: Filip Hanik - Dev Lists <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" To: Tomcat Users List Subject: Re: sticky sessions not sticking Date: Thu, 14 Jun 2007 21:44:59 +0200 change your JVM route to jvmR

Re: Data Sources Overwritten

2007-06-14 Thread Pid
Jeffrey C. Baldwin wrote: P, (our messages crossed, I think) Looks like you've got the context setup in the server.xml AND the external file. You only need one location, comment out the Context definition in server.xml and we'll work on getting the auto-deploy to work from the WAR/webapp.

Re: SSL Tomcat and Apache.

2007-06-14 Thread Filip Hanik - Dev Lists
Jason Lanpher wrote: Hi all, I have a question for all of you network admins out there. I am wondering if it is possible to share an ssl key between both Apache 2.X and Tomcat 5.X if they are connected via mod jk. Is this possible or does each server have to have its own ssl key?

Re: sticky sessions not sticking

2007-06-14 Thread Filip Hanik - Dev Lists
change your JVM route to jvmRoute="worker1", as I believe the jvmRoute value has to match the name of the worker. Filip Eddie Yee wrote: Hi, I am not sure if this is a bug, but it appears that my sticky sessions configuration don't want to stick. I am running two servers with tomcat 5.5.

RE: SSL Tomcat and Apache.

2007-06-14 Thread Arian Abrahantes Quintana
Hi: I am not an expert but just a thought. Apache is proxing to tomcat (I assume that both at the same server) if this comunication is internal, the browser (user) just contact apache thru an enchripted comunication (https) and apache determines what to do, am I right? why do you need the inte

RE: SSL Tomcat and Apache.

2007-06-14 Thread Nathan Hook
You should be able to use the same key for both Apache and Tomcat. However... If you're using Apache to forward all requests to Tomcat via mod_jk then it is my understanding that you do not need SSL for Tomcat. Apache would handle all the the ssl part and then forward a normal request to Tom

SSL Tomcat and Apache.

2007-06-14 Thread Jason Lanpher
Hi all, I have a question for all of you network admins out there. I am wondering if it is possible to share an ssl key between both Apache 2.X and Tomcat 5.X if they are connected via mod jk. Is this possible or does each server have to have its own ssl key? Thanks in adva

RE: Tomcat Server CPU utilization goes upto 400%

2007-06-14 Thread Jayson Enriquez
rofl -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Thursday, June 14, 2007 12:15 PM To: Tomcat Users List Subject: Re: Tomcat Server CPU utilization goes upto 400% man, I need to get a CPU like that, that can actually work 4 times its max capacity :)

Re: Data Sources Overwritten

2007-06-14 Thread Jeffrey C. Baldwin
A big "THANK YOU" to everyone... I had the developer put the context.xml file into the META-INF directory... I then uploaded the WAR file and the application ran immediately! Thank you again! I don't know if this is something the developer should have known or been doing or something I should ha

sticky sessions not sticking

2007-06-14 Thread Eddie Yee
Hi, I am not sure if this is a bug, but it appears that my sticky sessions configuration don't want to stick. I am running two servers with tomcat 5.5.20 (configured as single servers ie. no session replication) with standard ajp13 connector (8009) and one web server running iPlanet 6 with

Re: Tomcat Server CPU utilization goes upto 400%

2007-06-14 Thread Filip Hanik - Dev Lists
man, I need to get a CPU like that, that can actually work 4 times its max capacity :) Filip - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM

Re: Comet: Unsufficiently synchronized recycling decisions

2007-06-14 Thread Filip Hanik - Dev Lists
The explanation is enough, thank you for the detailed info. yes, having two different flags can make life difficult for us, I will look into it. Filip Reich, Matthias wrote: Filip, thank you for the response. The issue is fairly simple: At some point in time (t1) the CoyoteAdapter.servi

Re: Data Sources Overwritten

2007-06-14 Thread Jeffrey C. Baldwin
Pid wrote: > Chris was indicating that you put a 'META-INF/context.xml' in your war > or webapp directory - which Tomcat will then deploy to the named file > above. AHH... I did misunderstand. I will try creating the WAR with the context file in place. Thanks! > > > >> - Original Mes

Re: Data Sources Overwritten

2007-06-14 Thread Jeffrey C. Baldwin
P, This is everything from server.xml factory org.apache.catalina.users.MemoryUserDatabaseFactory pathname conf/tomcat-users.xml

deploying ant

2007-06-14 Thread bhagya jyothi
  Hi all, AM new to Ant build tool and was jus writing an application.am done with my programme and when i give ant in my present working directory at command prompt its fine.when i give "ant deploy" or ant "deploywar" it's saying Build Successfull but nothing is there under build and deploy.a

Re: Data Sources Overwritten

2007-06-14 Thread Pid
Jeffrey C. Baldwin wrote: Chris, Thank you for the time. However, I'm still not having any luck... What's in your Host definition in server.xml, can you post that too? p Again, I have the entries in server.xml, so if I restart the Tomcat service AFTER deploying the app, all is well. Howev

Re: Data Sources Overwritten

2007-06-14 Thread Pid
Johnny Kewl wrote: Chris, the documentation http://localhost:8080/tomcat-docs/jndi-datasource-examples-howto.html explicitly says... have a look at postgres example, that file should have same name as the war, or the app maybe it can be put into context.xml, but are you sure? The /deploye

Re: Data Sources Overwritten

2007-06-14 Thread Jeffrey C. Baldwin
Also, here is a copy of my server.xml. factory org.apache.catalina.users.MemoryUserDatabaseFactory pathname conf/tomcat-users.xml

Re: Data Sources Overwritten

2007-06-14 Thread Jeffrey C. Baldwin
Chris, Thank you for the time. However, I'm still not having any luck... Again, I have the entries in server.xml, so if I restart the Tomcat service AFTER deploying the app, all is well. However, I want the application developers to be able to deploy their app and not have to, or need to contact

Re: Data Sources Overwritten

2007-06-14 Thread Johnny Kewl
Jeff, look I'm not sure, but it shouldnt do that. Just make absolutely sure that the app is closing those connections, ie giving them back to the pool only reason I can think you get this behaviour. If you dont close them properly... eventually Tomcat will break... it wont have another c

RE: Data Sources Overwritten

2007-06-14 Thread wxcd sxdez
> the war, or the app maybe it can be put into context.xml, but are you > > sure? Sure it should be done in this way ! So, you don't need to restart your entire server when you need to add/ change the datasource configuration. Context.xml is part of your webapp, and not of your tomcat.

Re: Data Sources Overwritten

2007-06-14 Thread Johnny Kewl
Chris, the documentation http://localhost:8080/tomcat-docs/jndi-datasource-examples-howto.html explicitly says... have a look at postgres example, that file should have same name as the war, or the app maybe it can be put into context.xml, but are you sure? - Original Message -

Re: Data Sources Overwritten

2007-06-14 Thread Johnny Kewl
Ha, this is kinda cool. When you use the admin manager it makes the file for you OK, so now either go into netbeans and paste that file mrs.xml under META-INF That will give you a pool for JUST YOUR WEB app. OR copy the contents and stick it in server.xml That will give you a PO

Re: Data Sources Overwritten

2007-06-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeffrey, Jeffrey C. Baldwin wrote: > I appreciate all the input guys. I put everything into server.xml and > the application is working great. You should put that setup into META-INF/context.xml in your webapp directory (or your WAR file) instead of

Re: Data Sources Overwritten

2007-06-14 Thread Jeffrey C. Baldwin
I appreciate all the input guys. I put everything into server.xml and the application is working great. One small problem though... if I undeploy the app, then deploy it again... I get the same database problem, UNTIL I restart the TomCat service itself. Once I restart Tomcat, all is well.. So,

Re: Data Sources Overwritten

2007-06-14 Thread Johnny Kewl
Jeff, I dont use JNDI for dbs, got my own, but its sounds like you just not configuring some xml somewhere... On your system have a look at this link... http://localhost:8080/tomcat-docs/jndi-datasource-examples-howto.html As I said, no expert, but you can see that in the server.xml, thats where

Re: Data Sources Overwritten

2007-06-14 Thread Jeffrey C. Baldwin
David, Where do I put this context.xml file? I noticed that when I deploy the app using manager, then configure the data sources using the admin tool... that a file names mrs.xml (mrs is the name of the application I am deploying) is created (/usr/local/tomcat/conf/Catalina/localhost), it contain

Re: How do I match the database Resource in the Context depending on the development environment ?

2007-06-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Scott, Scott Marshall wrote: > I'm using Tomcat 5.5, and am setting up Connection pools for the > database, using the context.xml file from the META-INF directory. > > We do / will have a multi region series of dev environments (local, > dev, UAT,

How do I match the database Resource in the Context depending on the development environment ?

2007-06-14 Thread Scott Marshall
Hi all I'm using Tomcat 5.5, and am setting up Connection pools for the database, using the context.xml file from the META-INF directory. We do / will have a multi region series of dev environments (local, dev, UAT, PAT, Live etc) as the code gets developed. Each Resource will point to a di

mod_jk along side mod_dir -- How to get PHP to be seen as a default page

2007-06-14 Thread Dan D.
Hello, First, my apologies for inadvertently hijacking a previous thread. Long time reader, first time poster. Won't happen again. Now, First the versions: Apache : 1.3.33 Tomcat: 6.0.13 mod_jk: 1.2.23 I am currently working on upgrading our environment to a newer version of Tomcat and mod_j

Re: Data Sources Overwritten

2007-06-14 Thread David Smith
Best bet is to configure it manually in the context.xml for the webapp. I've never had good luck with the administration webapp in the very few times I've tried to use it. You describe tomcat as over-writing the config submitted via the admin webapp. It's more likely the admin webapp is chan

Data Sources Overwritten

2007-06-14 Thread Jeffrey C. Baldwin
(Tomcat 5.0.28 running on CentOS 4.4 using Java 1.4.2_14-b05) Hello All, I have a problem with my understanding of data sources within Tomcat. I have an application (MRS). I deploy MRS using the Tomcat Manager. I then open up Tomcat Administration and I see MRS under: Tomcat Server - Service

RE: Comet: Unsufficiently synchronized recycling decisions

2007-06-14 Thread Reich, Matthias
Filip, thank you for the response. The issue is fairly simple: At some point in time (t1) the CoyoteAdapter.service (or the CoyoteAdapter.event) method calls request.isComet(). If the CometEvent has not been closed at (t1), this method returns true and request and response are not recycled. A

Re: global/separate classloader for each web-app

2007-06-14 Thread Hamster
On 12/06/07, David Delbecq <[EMAIL PROTECTED]> wrote: [..] 1) revise war build process to force inclusion of libs 2) have a server lifecyclelistener that, before loading of a webapp, copy the concerned classes to the WEB-INF/lib ? Copy seems easier than play with classloader... Here is my so

Re: Erratic HTTP response behavior

2007-06-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, The OP has plainly said that they are not using chunked encoding. :( - -chris Martin Gainty wrote: > if you are setting Transfer-encoding to 'chunked' as in > response.setHeader( "Transfer-Encoding", "chunked"); > then read and follow these

Using shared Spring Webapp in Tomcat 6

2007-06-14 Thread Kevin Wilhelm
Hello, I am about to finalize some early state Spring web application (just the persistence and logic part). I am using Hibernate to retrieve data from a database. I created the whole logic using the Spring framework; at the top there is a Session Facade providing access to all the services. A

Re: Tomcat 6, SQL Server 2005 JDBC Realm not working

2007-06-14 Thread Richard Sayre
It turns out I had to RTFM. "Quick Start: 3. Place a copy of the JDBC driver you will be using inside the $CATALINA_HOME/lib directory. Note that only JAR files are recognized!" I only had it in my Web App lib folder On 6/14/07, Richard Sayre <[EMAIL PROTECTED]> wrote: I just tried the exac

Re: Tomcat 6, SQL Server 2005 JDBC Realm not working

2007-06-14 Thread Richard Sayre
I just tried the exact same thing with the jTDS driver and I got the same error: 14-Jun-2007 10:49:02 AM org.apache.catalina.realm.JDBCRealm authenticate SEVERE: Exception performing authentication java.sql.SQLException: net.sourceforge.jtds.jdbc.Driver at org.apache.catalina.realm.JDBC

Re:[OT] Tomcat Server CPU utilization goes upto 400%

2007-06-14 Thread PTS
Sumit, Since this is not a Tomcat issue I tagged it as OT. Is the data query different for each user? If no, setup a separate thread on startup to do the query and process it as far as you can. I was able to create a String that was the body of the page, then each request that came in simply

RE: Tomcat Server CPU utilization goes upto 400%

2007-06-14 Thread Sumit Gaikaiwari
Hi Doug, The requirements of this application were as mentioned in the previous mail. Can I have any work around on the issue? What things you tried when you had same situation? Regards, Sumit Gaikaiwari -Original Message- From: PTS [mailto:[EMAIL PROTECTED] Sent: Thursday, June 14, 2

Fw: Problem with Session replication in Tomcat 5.5.16

2007-06-14 Thread Mahesh
Hi, I have installed two tomcat 5.5.16 instances on different linux machines. I have clusttered the both machines using session replication. After configuring the instances and i have restarted the machines but i got the warning.as below. IOException in replication worker, unable to drain chann

Re: JSVC with JDK 6 on Intel Xenon x86_64

2007-06-14 Thread ben short
Thanks Bil, I install the amd64 jdk and it all works ok now. I was thrown my the name, thinking that it was for the amd platform only. On 6/14/07, Bill Barker <[EMAIL PROTECTED]> wrote: Easiest is to symlink amd64 to i386. Second easiest is to edit Makefile and change the CPU variable to be i

swallowOutput option in tomcat 6

2007-06-14 Thread Prabhu
How to get swallowOutput option working in tomcat 6. I am not able to get this from the context documentation. -- Regards, Prabhu - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED