Application context configuration datasources

2008-03-27 Thread Charl Gerber
I have 4 Tomcat environments for the same application: two development machines, 1 test and 1 production. Development machines are Windows 2000 and Vista, the others are linux. All 4 machines have Tomcat 6.0.14 installed. I really have problems getting the application properly deployed and

Re: Application context configuration datasources

2008-03-27 Thread Sameer Acharya
Where is your Resource definition ? seems like the Driver class name and url is not defined. -Sameer --- Charl Gerber [EMAIL PROTECTED] wrote: I have 4 Tomcat environments for the same application: two development machines, 1 test and 1 production. Development machines are Windows 2000 and

Re: Application context configuration datasources

2008-03-27 Thread Charl Gerber
server.xml: GlobalNamingResources Resource name=jdbc/mydatasource auth=Container type=javax.sql.DataSource maxActive=16 maxIdle=8 maxWait=1 username=abc password=xyz

url redirection

2008-03-27 Thread Melanie Pfefer
Hi, I have 2 web apps deployed on 2 tomcat servers. How to redirect urls that contains ‘jar’ string from one app to another? http://zeus:8085/web/sec:jar:001 to http://zeus:8086/src/web:sec:jar:001 thanks __ Sent from

errors on reload, fine on restart

2008-03-27 Thread John Pedersen
Hi, I have just got the PayPal NVP stuff working in my app, but getting it to work required adding quite a few jars that came with the download from PayPal. Trouble is, when I try to reload the app, I get a whole list of exceptions listed. If I restart Tomcat, the app runs fine. I have tried

RES: url redirection

2008-03-27 Thread Milanez, Marcus
Hi, I'm not completely sure about what you want, but you can redirect urls according to a given pattern between tomcat instances using jakarta connectors. Is that what you want? You can have further info here http://tomcat.apache.org/connectors-doc/ Yours, Marcus -Mensagem

Re: RES: Application context configuration datasources

2008-03-27 Thread Charl Gerber
You are not supposed to edit server.xml in order to make your pooled connections work. You do when its a connection pool shared by more than one application. How else do you create global resources? Anyway, all solved now. Looks like there was a context.xml from a previous build in the

RES: RES: Application context configuration datasources

2008-03-27 Thread Milanez, Marcus
I've never used a pool shared by more than one app, so I'm not the best person to offer other options. In this case, you have to stop your server whenever you deploy a new version of your app? -Mensagem original- De: Charl Gerber [mailto:[EMAIL PROTECTED] Enviada em: quinta-feira, 27

Re: RES: url redirection

2008-03-27 Thread Melanie Pfefer
Hi, thanks for your reply. what I want is to redirect http://zeus:8085/web/sec:jar:001 to http://zeus:8086/src/web:sec:jar:001 The first one is on apache the 2nd one is on tomcat thanks again --- Milanez, Marcus [EMAIL PROTECTED] wrote: Hi, I'm not completely sure about what

RE: Solaris 10 Tomcat performance maxes out at 2 threads

2008-03-27 Thread John . Hart
From: Caldarale, Charles R [EMAIL PROTECTED] From: Caldarale, Charles R [EMAIL PROTECTED] From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Solaris 10 Tomcat performance maxes out at 2 threads We see throughput increase when we go from 1 client thread to 2 client threads, but when

Re: RES: RES: Application context configuration datasources

2008-03-27 Thread Charl Gerber
I've never used a pool shared by more than one app, so I'm not the best person to offer other options. I've done it many times had had no problems in sharing resources like this. In this case, you have to stop your server whenever you deploy a new version of your app? No! You create a

Re: Solaris 10 Tomcat performance maxes out at 2 threads

2008-03-27 Thread Rainer Jung
Hi John, [EMAIL PROTECTED] wrote: As it turns out the default behavior of a .Net application is to set a default connection limit of 2?!?!? (I guess this explains why IE and Firefox default to 2 connections). Not being a .Net expert I didn't realize this - but when we did a netstat on the

RE: Solaris 10 Tomcat performance maxes out at 2 threads

2008-03-27 Thread Caldarale, Charles R
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: RE: Solaris 10 Tomcat performance maxes out at 2 threads As it turns out the default behavior of a .Net application is to set a default connection limit of 2?!?!? This is the limit recommended (not required) by the HTTP RFC for

RE: errors on reload, fine on restart

2008-03-27 Thread Katilie, John
John, what version of tomcat are you running. I'm running 6.0.14 I'm not doing anything with paypal but I get the same exception at reploy time and I have not issolated it: {ERROR} startup.ContextConfig Parse error in application web.xml file at jndi:/localhost/WEB-INF/web.xml

Re: errors on reload, fine on restart

2008-03-27 Thread John Pedersen
I am using 6.0.13 - so it looks like swapping to 6.0.14 won't help! On 27/03/2008, Katilie, John [EMAIL PROTECTED] wrote: John, what version of tomcat are you running. I'm running 6.0.14 I'm not doing anything with paypal but I get the same exception at reploy time and I have not issolated

unable to locate package in 5.5 source

2008-03-27 Thread Raminder Singh
Hi Group, We are in process of upgrading from tomcat 5.0 to tomcat 5.5. We build our= tomcat binaries from main source with some updations. During our investigation, we have not been able to find= org.apache.coyote.tomcat5 in Tomcat 5.5 source which is present in= package of Tomcat 5.0

Re: RES: url redirection

2008-03-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Melanie, Melanie Pfefer wrote: | thanks for your reply. what I want is to redirect | | http://zeus:8085/web/sec:jar:001 | | to | | | http://zeus:8086/src/web:sec:jar:001 | | The first one is on apache | the 2nd one is on tomcat If you are

Re: RES: url redirection

2008-03-27 Thread ChrisS
Melanie are you using FreeBSD or OpenBSD? I am going back a bit but I remember using Zeus on OpenBSD. The way I set up clustering recently was through a workers.properties file which I stored in the apache/conf subdirectory. To start with you have to make sure all the prerequisites are in

Re: RES: url redirection

2008-03-27 Thread Melanie Pfefer
Hello Actually I was able to define a rewrite rule in apache: RewriteRule ^/(.*web:jar.*) http://zeus:8086/src/$1 [R=301,L] now http://zeus/web:jar:001 redirects to http://zeus:8086/src/web:jar:001 But if I tried to change the flag to P (proxy) in httpd.conf the apache error file gives:

RE: errors on reload, fine on restart

2008-03-27 Thread Katilie, John
6.0.16 is available and I've been meaning to upgrade to that when I have time. Good luck. jfk -Original Message- From: John Pedersen [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2008 10:27 AM To: Tomcat Users List Subject: Re: errors on reload, fine on restart I am using 6.0.13 -

Re: RES: url redirection

2008-03-27 Thread ChrisS
I worked with Solaris 10's apache and found that I had to download the apache source code eventually and rebuild it myself. I found a few bugs in 2.2.8's configure scripts, what I am using now but I got it to work, if you are up for it I could help out! I never used the P proxy flag in

Memory leak in Tomcat 5.5.16

2008-03-27 Thread Tom Price
Hi, I have a Java application that exposes a web services (SOAP/XML) interface using Apache Tomcat and Axis2 (see detailed background below). When this interface is heavily utilized, the application gradually leaks old space memory until it runs out. I have analyzed the heap usage on a system

Re: RES: url redirection

2008-03-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Melanie, Melanie Pfefer wrote: | Hello | Actually I was able to define a rewrite rule in | apache: | | RewriteRule ^/(.*web:jar.*) http://zeus:8086/src/$1 | [R=301,L] Aah, mod_rewrite: the chainsaw of httpd configuration. I personally think

RE: Checking tomcat metrics in a non-intrusive way

2008-03-27 Thread wicket0123
Hi Charles, Thanks for the reply. JMeter doesn't help me here because the response time includes network time. The reason I'm looking into the tomcat API is because i want a way to query tomcat for the numbers. So, the metrics I am after are: 1) How much time was spend in tomcat? no

Re: Memory leak in Tomcat 5.5.16

2008-03-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tom, Tom Price wrote: | I have analyzed the heap usage on a | system where this memory leak has occurred, and I see that the following | classes take up most of the memory: [snip] | Does anyone know what could trigger the above classes to be

RE: Checking tomcat metrics in a non-intrusive way

2008-03-27 Thread Caldarale, Charles R
From: wicket0123 [mailto:[EMAIL PROTECTED] Subject: RE: Checking tomcat metrics in a non-intrusive way JMeter doesn't help me here because the response time includes network time. Which is exactly why I suggested running JMeter on the same LAN segment, if not the same machine. In such a

Re: Checking tomcat metrics in a non-intrusive way

2008-03-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Wicket, wicket0123 wrote: | Hi Charles, | Thanks for the reply. JMeter doesn't help me here because the response | time includes network time. The reason I'm looking into the tomcat API is | because i want a way to query tomcat for the

RE: Checking tomcat metrics in a non-intrusive way

2008-03-27 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: Checking tomcat metrics in a non-intrusive way Rest assured that reading the system clock is /very/ fast. ;) Well... not always, these days. On multi-socket systems, if the system architecture guarantees that timestamps are

Re: Memory leak in Tomcat 5.5.16

2008-03-27 Thread Filip Hanik - Dev Lists
try to disable the cache in conf/catalina.properties, at the bottom there is a setting you can set to false tomcat.util.buf.StringCache.byte.enabled=true if the problem still exists, use jmap to dump the heap, and analyse the actual dependencies for mem usage Filip Tom Price wrote: Hi, I

How to access AJP Queue through JMX

2008-03-27 Thread srinivasch
Hi, I am trying to find a way to access AJP Queue through JMX or any other way possible. I am using Tomcat 5.5.20 and I have clusters configured. I want to know whether the AJP Queue is full or not. Appreciate if anyone has any idea how to go about. Thanks Sri -- View this message in

Re: unable to locate package in 5.5 source

2008-03-27 Thread Mark Thomas
Raminder Singh wrote We are in process of upgrading from tomcat 5.0 to tomcat 5.5. We build our= tomcat binaries from main source with some updations. During our investigation, we have not been able to find= org.apache.coyote.tomcat5 in Tomcat 5.5 source which is present in= package of Tomcat

Re: RES: url redirection

2008-03-27 Thread Melanie Pfefer
all I want is to redirect from apache to tomcat. That I was able to do using rewrite rule however, I want the redirection to be transparent (no changes in url) so i thought of using P flag. if ur method can do this please share how to do it. thanks --- ChrisS [EMAIL PROTECTED] wrote: I worked

How to access AJP Queue through JMX or any other possible way

2008-03-27 Thread SriSri
Hi, I am trying to find a way to access AJP Queue through JMX. If it is possible with JMX or any other way let me know. I am using Tomcat 5.5.20 and I have clusters configured. I want to know whether the AJP Queue is full or not. Appreciate if anyone has any idea how to go about. Thanks Sri

Re: RES: url redirection

2008-03-27 Thread Rainer Jung
Melanie Pfefer schrieb: all I want is to redirect from apache to tomcat. That I was able to do using rewrite rule however, I want the redirection to be transparent (no changes in url) so i thought of using P flag. We should get terminology straight: - redirect: change the URL and sent a 30X

Re: How to access AJP Queue through JMX or any other possible way

2008-03-27 Thread Rainer Jung
Please stop spaming the list. Sending the same question five times in 90 minutes will most likely annoy everyone and reduce the chance to get an answer to an absolute minimum. Rainer SriSri schrieb: Hi, I am trying to find a way to access AJP Queue through JMX. If it is possible with

Re: How to access AJP Queue through JMX or any other possible way

2008-03-27 Thread SriSri
Well I am trying to post this message from Nabble and its not getting posted per their site message, I been trying to resend the message since 2 hours. I know the pain of spam and I dont intend to spam, was trying to post a genuine query. Thats all. Thanks for your help Sri On Thu, Mar 27, 2008

Re: How to access AJP Queue through JMX or any other possible way

2008-03-27 Thread Rainer Jung
SriSri schrieb: Well I am trying to post this message from Nabble and its not getting posted per their site message, I been trying to resend the message since 2 hours. I know the pain of spam and I dont intend to spam, was trying to post a genuine query. Thats all. Thanks for your help OK. At

Re: RES: url redirection

2008-03-27 Thread ChrisS
Ok so if you are using Two Tomcat nodes and you want to redirect to each of the Nodes in question through an Apache rewrite rule and give the transparency of the same URL. I am not sure you can do this 1. Are you doing this to load balance between the Two Tomcat instances. 2. You aren't

Tomcat mod_jk PNG resized to GIF with IE : too small

2008-03-27 Thread nmset
Hello, I'm having a problem with PNG images served by Tomcat through mod_jk on Apache web server on Linux. When pages are browsed bt Internet Explorer, PNG images are converted to GIF but the GIF images are very small. Here is the result of : # file ./jbb000.png ./jbb000.png: PNG image data,

Vista SP1 -- file.io always writes files as BUILTIN\Administrators

2008-03-27 Thread Pete L
Hi, yes I know the greater question is, why am I running a webserver on Vista... the reason is that I built a powerful Media center PC which doubles as a webserver. Anyway, I upgraded to SP1 at the same time I upgraded to Tomat 6.0.16 -- which fixed some problems I was having configuring

Re: Tomcat mod_jk PNG resized to GIF with IE : too small

2008-03-27 Thread Rainer Jung
[EMAIL PROTECTED] schrieb: Hello, I'm having a problem with PNG images served by Tomcat through mod_jk on Apache web server on Linux. When pages are browsed bt Internet Explorer, PNG images are converted to GIF but the GIF images are very small. Here is the result of : # file ./jbb000.png

Re: How to access AJP Queue through JMX

2008-03-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sri, Two posts is sufficient. Please stop re-porting. Wait, no, only one post is sufficient. srinivasch wrote: |I am trying to find a way to access AJP Queue through JMX or any other | way possible. I am using Tomcat 5.5.20 and I have clusters

Re: Tomcat mod_jk PNG resized to GIF with IE : too small

2008-03-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Set, [EMAIL PROTECTED] wrote: | I'm having a problem with PNG images served by Tomcat through mod_jk on | Apache web server on Linux. | | When pages are browsed bt Internet Explorer, PNG images are converted to GIF | but the GIF images are very

TOMCAT SSL SLES 10

2008-03-27 Thread Angel Camacho Villan
hi, i need install ssl, how i can do this?

Re: TOMCAT SSL SLES 10

2008-03-27 Thread Mark Thomas
Angel Camacho Villan wrote: hi, i need install ssl, how i can do this? It helps if you say which version of Tomcat you are using. For all versions, you just need to read the documentation. If you are using Tomcat 6.0.x then the page you want is

Re: Checking tomcat metrics in a non-intrusive way

2008-03-27 Thread wicket0123
It matters to us because we are talking about response time of under 10ms for 500 concurrent users. Our internal application metrics are in the nano-seconds. If the container adds a lot of overhead, we may want to switch to other containers. For scalability testing, our testing is done in a

Re: Tomcat does not start

2008-03-27 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=8839 Posted on behalf of a User Only one thing we have to do, to copy the file name msvcr71.dll from you jre directory installation (ex: C:\Program Files\Java\jre1.6.0_03\bin) to the bin folder of tomcat´s intallation (ex: C:\Archivos de

RE: Memory leak in Tomcat 5.5.16

2008-03-27 Thread Tom Price
Christopher, Christopher Schultz wrote: Have you been able to compare the numbers of those objects after, say, 100 requests with the same object counts after, say, 1 requests? It /is/ possible that Tomcat is leaking memory per connection, but very unlikely given that thousands of servers

Re: Checking tomcat metrics in a non-intrusive way

2008-03-27 Thread Alan Chaney
In the real world what network connections will exist between you and your real clients? How many ports do you have on your server? How fast are they? How big are the pages being requested? Including images, css files etc? If you have 500 concurrent users will you have 500 times the traffic

Re: Vista SP1 -- file.io always writes files as BUILTIN\Administrators

2008-03-27 Thread Hassan Schroeder
On Thu, Mar 27, 2008 at 3:47 PM, Pete L [EMAIL PROTECTED] wrote: Hi, yes I know the greater question is, why am I running a webserver on Vista... the reason is that I built a powerful Media center PC which doubles as a webserver. Any ideas? In the absence of any experience with Vista,

RE: Tomcat load balanced with Apache HTTP Server and mod_jk

2008-03-27 Thread frannack Guimard
Rainer, I'm trying your solution of using apachectl graceful. The only problem is that it needs to be executed as root. I tried to write a perl cgi script to change automatically my worker.properties which works fine, but then, if I tried to run the apachectl command from inside the cgi

problems with apache mod-rewrite and modjk

2008-03-27 Thread Randy Paries
Hello, i am running apache-tomcat-5.5.15 on a FC4 box First i need to explain a little how my site is set up.. We have 1000's of users that have their own document directory So for example a users URL is http://www.mydomain.com/randy their document root is /home/users/r/randy as another

Shutdown Hook in Tomcat 5.5.26

2008-03-27 Thread Ho Fat Tsang
Dear all tomcat expert, I am falling a scenario which my shutdown hook has not been executed when the tomcat stop normally. I.e. through the SHUTDOWN script / SHUTDOWN command / NT services shutdown. Tomcat looks everything when shutdown but nothing related to shutdown hook has been called.

Tomcat tutorial

2008-03-27 Thread Sam Wun
Hi, I am new to Tomcat. Is there any Tomcat tutorial (eg. example of projects) I can download from the web? Thanks S Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.

Re: Tomcat tutorial

2008-03-27 Thread Patrick Fong
I find developerworks.ibm.com a good source of example projects. tomcat.apache.org has a couple, but not as good as others. On Fri, Mar 28, 2008 at 2:32 PM, Sam Wun [EMAIL PROTECTED] wrote: Hi, I am new to Tomcat. Is there any Tomcat tutorial (eg. example of projects) I can download from

Re: Tomcat tutorial

2008-03-27 Thread Sam Wun
- Original Message From: Patrick Fong [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, March 28, 2008 2:53:49 PM Subject: Re: Tomcat tutorial I find developerworks.ibm.com a good source of example projects. Thanks for the info. But I can't open this

Re: Tomcat tutorial

2008-03-27 Thread Patrick Fong
try ibm.com/developerworks On Fri, Mar 28, 2008 at 3:17 PM, Sam Wun [EMAIL PROTECTED] wrote: - Original Message From: Patrick Fong [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, March 28, 2008 2:53:49 PM Subject: Re: Tomcat tutorial I find

Re: Tomcat tutorial

2008-03-27 Thread Sam Wun
- Original Message From: Patrick Fong [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, March 28, 2008 3:25:46 PM Subject: Re: Tomcat tutorial try ibm.com/developerworks Hi, this works for me. But where should I go into in order to download tomcat