Re: issue:reading the environment variable HYPERION_HOME

2008-03-28 Thread Nilesh Yadav
also i am using the tomcat5.0.28 On 3/29/08, Nilesh Yadav <[EMAIL PROTECTED]> wrote: > thanx for the reply; > > but can you please elaborate how can i use this? :->>Use the Java > tab of the tomcat6w.exe program in Tomcat's bin directory. > > > On 3/28/08, Mark Thomas <[EMAIL PROTECTED]> wrote

Re: issue:reading the environment variable HYPERION_HOME

2008-03-28 Thread Nilesh Yadav
thanx for the reply; but can you please elaborate how can i use this? :->>Use the Java tab of the tomcat6w.exe program in Tomcat's bin directory. On 3/28/08, Mark Thomas <[EMAIL PROTECTED]> wrote: > Nilesh Yadav wrote: > > how it is behaving like this??even though the env.var is set in the >

Re: Checking tomcat metrics in a non-intrusive way

2008-03-28 Thread Martin Gainty
Tom- Concering AccessLogValve: I did'nt see any specific mention of connection metrics (counts etc..) But I did see some time deltas for the request %T RequestProcessingTimeInSeconds http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/catalin a/valves/AccessLogValve.html Looks as

Re: [OT] Re: Top mail servers

2008-03-28 Thread Andrew Miehs
On 28/03/2008, at 10:40 PM, Srivastava, Abhay wrote: Hi Andrew, I dn't have experience with either of them. SO which one do you suggest should be a good selection to start with ? I prefer postfix - simple and fast and its what I know. My users don't be reading the mails right now. But, y

Re: Securing Tomcat on FC8

2008-03-28 Thread Steve Ochani
Date sent: Fri, 28 Mar 2008 16:07:26 -0400 From: "Hyatt, Gordon" <[EMAIL PROTECTED]> Subject:Securing Tomcat on FC8 To: users@tomcat.apache.org Send reply to: Tomcat Users List > I've just finished reading the Tomcat Secu

Re: [OT] RE: IE causes an ORA-00936 error, but not Firefox?

2008-03-28 Thread Nicholas Sushkin
Here's another thought: "ORA-00936: missing expression" means that your Oracle SQL is malformed. If invalid browser input can cause a malformed SQL, you're potentially exposing yourself to a SQL injection attack (http://en.wikipedia.org/wiki/SQL_injection). Try to make sure that your SQL is co

Re: Checking tomcat metrics in a non-intrusive way

2008-03-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Wicket, wicket0123 wrote: | Since we cannot control anything that happens after a request leaves the | server, we want every request to be processed within 25 millisecods. The | order of execution is very simple: | | 1. Client send ad request with s

Re: TOMCAT SSL SLES 10

2008-03-28 Thread Mark Thomas
Angel Camacho Villan wrote: i use tomcat5 and i have troubles with the certificate Please read the articles linked from http://wiki.apache.org/tomcat/FAQ/Tomcat_User Mark - To start a new topic, e-mail: users@tomcat.apache

Re: TOMCAT SSL SLES 10

2008-03-28 Thread Angel Camacho Villan
i use tomcat5 and i have troubles with the certificate 2008/3/27, Mark Thomas <[EMAIL PROTECTED]>: > > 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

Re: Checking tomcat metrics in a non-intrusive way

2008-03-28 Thread wicket0123
First, thank you all for the responses. They are all good. Rainer, I'm actually doing something similar to what you suggested. I wrote a script that queries the server using JMX proxy for the metrics I want. I do this every second. My concern is that it is too intrusive since i'm doing it eve

RE: [OT] Re: Top mail servers

2008-03-28 Thread Srivastava, Abhay
Hi Andrew, I dn't have experience with either of them. SO which one do you suggest should be a good selection to start with ? My users don't be reading the mails right now. But, yes I don't want to restrict that functionality. Abhay Srivastava Reference Architecture Shared Services and Arc

Re: Unable to read shell environment variables

2008-03-28 Thread Mark Thomas
Patrick Lee wrote: Does anyone know if this has been fixed in a newer 6 release or if someone is already looking at it? I have just fixed trunk and proposed this fix for 6.0.x. http://svn.apache.org/viewvc?rev=642391&view=rev A fix has also been proposed for 5.5.x http://people.apache.org/~mar

[OT] Re: Top mail servers

2008-03-28 Thread Andrew Miehs
On 28/03/2008, at 8:47 PM, Srivastava, Abhay wrote: Thanks a lot Guys. So is "Exim" better than "Sendmail" in terms of robustness and faster service? It very much depends on what you want to do. I am a big postfix fan - exim is supposedly also great. qmail is also very good. But these are o

TC 4.1.36 stopped logging

2008-03-28 Thread Propes, Barry L
not sure why, but my main log file that logs exceptions for some reason looks like the examples log file...my connections monitoring tool shows about 25 connections, which really shouldn't be happening at all (theoretically). Not sure why that is happening, either, though it's tough to tell whe

Re: Securing Tomcat on FC8

2008-03-28 Thread Mark H. Wood
Aside from packet-mangling the port numbers between the interface(s) and Tomcat's sockets, there are two other ways to use "privileged" ports but not run Tomcat with special privilege: 1. Run behind something like Apache HTTPD, which already does the privilege separation for you. This is a h

RE: jk2 vs mod_jk and mod_proxy_balancer

2008-03-28 Thread frannack Guimard
Rainer, Thank you, I didn't know about those new OSes :) I'm using fedora 8 for now. I tried to use sudo adding the http user in the sudoers list, but even though my cgi perl script launches the sudo apachectl graceful command, I get the following error message in the apache error.logs file:

Securing Tomcat on FC8

2008-03-28 Thread Hyatt, Gordon
I've just finished reading the Tomcat Security chapter of O'Reilly's Tomcat, The Definitive Guide that covers Tomcat 4 and have been left with many questions. First, a little background: I've setup a new web server on FC8 x86_64 running Sun Java 1.6.0_05 and tomcat 5.5.26. I'm very familiar with

RE: Top mail servers

2008-03-28 Thread Srivastava, Abhay
Has anyone tried Apache James ? It's a java mail server. Abhay Srivastava Reference Architecture Shared Services and Architecture | Smith Barney Technology | CitiGroup GWM (212) 657 - 4617 -Original Message- From: Srivastava, Abhay [GWM] Sent: Friday, March 28, 2008 3:48 PM To: Tomcat

Re: Configuring Apache 2.2 + Tomcat 6.0 + JK2 in windows server 2003

2008-03-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 BeasC, BeasC wrote: | I am trying to install a new JSP server on a Windows Server 2003 station and | I have no previous experience dealing with servers before. I would like to | get some help as I have been reading several tutorials but they all see

RE: Top mail servers

2008-03-28 Thread Srivastava, Abhay
Thanks a lot Guys. So is "Exim" better than "Sendmail" in terms of robustness and faster service? Abhay Srivastava Reference Architecture Shared Services and Architecture | Smith Barney Technology | CitiGroup GWM (212) 657 - 4617 -Original Message- From: Mark H. Wood [mailto:[EMAIL PRO

Configuring Apache 2.2 + Tomcat 6.0 + JK2 in windows server 2003

2008-03-28 Thread BeasC
Hello all, I am trying to install a new JSP server on a Windows Server 2003 station and I have no previous experience dealing with servers before. I would like to get some help as I have been reading several tutorials but they all seem to differ in how to deal with the mod_jk2 connector. So far

Re: jk2 vs mod_jk and mod_proxy_balancer

2008-03-28 Thread Rainer Jung
frannack Guimard schrieb: Rainer, Thank you for your input. I send you another e-mail but it looks like you didn't get. I tried to use apachectl graceful after updating my worker.properties files. The only problem is that it must be done as root (because of the port 80). So my cgi perl script

RE: Setting catalina.properties options with embedded Tomcat

2008-03-28 Thread Tom Price
Rainer Jung wrote: > Then it's easy, the StringCache class gets it as a system property. So > you simply set it as a system property from your own code, before > embedded Tomcat gets it. Values are "false" or "true". Great, thanks. ---

RE: jk2 vs mod_jk and mod_proxy_balancer

2008-03-28 Thread frannack Guimard
Rainer, Thank you for your input. I send you another e-mail but it looks like you didn't get. I tried to use apachectl graceful after updating my worker.properties files. The only problem is that it must be done as root (because of the port 80). So my cgi perl script running in apache to autom

Re: Setting catalina.properties options with embedded Tomcat

2008-03-28 Thread Rainer Jung
Tom Price schrieb: Rainer, Rainer Jung wrote: What do you try to set via catalina.properties? Thanks for the information. I'm trying to set: tomcat.util.buf.StringCache.byte.enabled=false Then it's easy, the StringCache class gets it as a system property. So you simply set it as a system

Re: [OT] RE: IE causes an ORA-00936 error, but not Firefox?

2008-03-28 Thread Brian Munroe
[snip very helpful suggestions] Holy crap guys! This is awesome, I've never had this much response from the users@ (and be it an off-topic too!) Once I get the code in hand, that's when the fun will begin! thanks everyone -- brian --

Re: Top mail servers

2008-03-28 Thread Mark H. Wood
Another happy multiple Exim user here. I migrated from Smail, and also operated an MMDF descendant called PMDF for several years, so that may explain my preference. I would suggest investigating several different MUAs and deciding which one best balances the capability you need with the pain of c

RE: [OT] RE: IE causes an ORA-00936 error, but not Firefox?

2008-03-28 Thread Propes, Barry L
see if you can do an out.print from within the JSP of the results sets. -Original Message- From: Peter Crowther [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2008 12:28 PM To: 'Tomcat Users List' Subject: [OT] RE: IE causes an ORA-00936 error, but not Firefox? [Marked off-topic as t

RE: IE causes an ORA-00936 error, but not Firefox?

2008-03-28 Thread Propes, Barry L
is javascript within the JSP anywhere altering the "missing expression"? -Original Message- From: Brian Munroe [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2008 12:15 PM To: Tomcat Users List Subject: IE causes an ORA-00936 error, but not Firefox? Ok, here is a weird one. I don't

Re: what's your best way to redeploy webapp with least amount of downtime?

2008-03-28 Thread Mark Thomas
Zemian Deng wrote: Hi Mark, How do you "- disable worker1" and still let Tomcat1 to process remaining requests? I guess I am not sure what "worker1" is, where to disable that. Can you explain little more on this? I was assuming you were using httpd and mod_jk or mod_proxy_ajp to do the load ba

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

2008-03-28 Thread David Smith
Sorry, can't help you on that one. I use NetBeans all the time but never the visual editing componet. Good luck with the project. -David [EMAIL PROTECTED] wrote: Yes, I don't have any control over this resizing. The web app is created visually in Netbeans, I looked into a lot of config par

RE: Setting catalina.properties options with embedded Tomcat

2008-03-28 Thread Tom Price
Rainer, Rainer Jung wrote: > What do you try to set via catalina.properties? Thanks for the information. I'm trying to set: tomcat.util.buf.StringCache.byte.enabled=false Thanks, Tom. - To start a new topic, e-mail: users@tom

Re: IE causes an ORA-00936 error, but not Firefox?

2008-03-28 Thread Frank W. Zammetti
It *might* be enough, if you at least know what parameters are being used, to look in Firebug or some similar tool to see what's being transmitted across the wire... if you're lucky it's something obvious and visible there and you won't have to hunt it down further back on the server. -- Frank W.

Re: Setting catalina.properties options with embedded Tomcat

2008-03-28 Thread Rainer Jung
Hi, Tom Price schrieb: Hi, I run Tomcat 5.5.16 embedded within a Java application, and currently do not have a file called catalina.properties in the installation. I would like to change an option which is normally in that file, so my question is how do I do that? I've tried creating a "conf"

Re: IE causes an ORA-00936 error, but not Firefox?

2008-03-28 Thread Brian Munroe
On Fri, Mar 28, 2008 at 10:27 AM, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > My first guess (and that's all it is, a guess!) is that you're trying to > insert something coming from the client into a SQL query and for whatever > reason it's being transmitted differently from IE than FF and is

[OT] RE: IE causes an ORA-00936 error, but not Firefox?

2008-03-28 Thread Peter Crowther
[Marked off-topic as this is almost certainly an application, not Tomcat, issue] > From: Brian Munroe [mailto:[EMAIL PROTECTED] > I don't have access to the JSPs at > the moment (I believe it is a model I application - JSP only) so I > can't look at the code - just functional testing for now. > >

Re: IE causes an ORA-00936 error, but not Firefox?

2008-03-28 Thread Frank W. Zammetti
My first guess (and that's all it is, a guess!) is that you're trying to insert something coming from the client into a SQL query and for whatever reason it's being transmitted differently from IE than FF and is somehow breaking the query. I'd suggest looking at the query that's being executed in

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

2008-03-28 Thread nmset
Yes, I don't have any control over this resizing. The web app is created visually in Netbeans, I looked into a lot of config parameters but could not see where to turn this resizing off. Thanks anyway. Message d'origine >Date: Fri, 28 Mar 2008 09:03:25 -0400 >De: David Smith <[EMAIL PR

IE causes an ORA-00936 error, but not Firefox?

2008-03-28 Thread Brian Munroe
Ok, here is a weird one. I don't believe it is related to Tomcat specifically, but I'd like to tap the community and see if someone else has ever experienced this issue. I am troubleshooting an app, which was originally designed using Firefox. Now that we are testing with IE (IE 6 and 7), we are

Re: Top mail servers

2008-03-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Abhay, Srivastava, Abhay wrote: | Sendmail | Postfix There's also exim (typically installed on Debian Linux and related distros) and qmail. In spite of qmail's many non-standard configuration, installation, and operation choices, it's a lean, mean,

Re: Force All Requests to a single servlet

2008-03-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jim, Jim Willeke wrote: | Almost works. | | The only issue I have is when a URL like: | http://willeke.com:9080/wikildap/Wiki.jsp?page=UsefullCommandsForEdirectory | | The redirect is to: | http://ldapwiki.willeke.com/Wiki.jsp Sounds like you are no

RE: Top mail servers

2008-03-28 Thread Peter Crowther
> From: Alan Chaney [mailto:[EMAIL PROTECTED] > Exim is supposed to be significantly easier to > configure than sendmail. [Beware: opinion ahead!] This is not difficult. Untangling the Gordian knot, blindfold and with no sharp objects in reach, is easier than getting a correct sendmail.cf... mo

Setting catalina.properties options with embedded Tomcat

2008-03-28 Thread Tom Price
Hi, I run Tomcat 5.5.16 embedded within a Java application, and currently do not have a file called catalina.properties in the installation. I would like to change an option which is normally in that file, so my question is how do I do that? I've tried creating a "conf" directory under my main "

Re: Top mail servers

2008-03-28 Thread Alan Chaney
Have you looked at exim? (www.exim.org). sendmail is rather dated. I have no experience of postfix. I have set up two mailservers with exim. The documentation is thorough, but setting up a public production mailserver is not for the faint-hearted. Exim is supposed to be significantly easier to

Re: jk2 vs mod_jk and mod_proxy_balancer

2008-03-28 Thread Rainer Jung
frannack Guimard schrieb: Hello, I just looked at mod_jk2. I was looking for a way to add programmatically a worker to the balancer with mod_jk or mod_proxy_balancer, but couldn't find a way. And then I saw in the mod_jk2 documentation: 1. Edit workers2.properties. Add a new channel. If you wa

Re: what's your best way to redeploy webapp with least amount of downtime?

2008-03-28 Thread Zemian Deng
Hi Mark, How do you "- disable worker1" and still let Tomcat1 to process remaining requests? I guess I am not sure what "worker1" is, where to disable that. Can you explain little more on this? Yes, I have heard of LambdaProbe. I will check this out in more detail later. Thanks for sharing. -Z O

tomcat6 vs tomcat5 peformance

2008-03-28 Thread Zemian Deng
Hello, I did a load test on a single, static html (13K of text, few small images, and a stylesheet) request on both default setup of tocmat6.0.14 and tomcat5.5.23, and the result shown tomcat5.5 is twice as fast as the tomcat6! Is this a known fact? How should I tune tomcat6 to catch up with tomc

jk2 vs mod_jk and mod_proxy_balancer

2008-03-28 Thread frannack Guimard
Hello, I just looked at mod_jk2. I was looking for a way to add programmatically a worker to the balancer with mod_jk or mod_proxy_balancer, but couldn't find a way. And then I saw in the mod_jk2 documentation: 1. Edit workers2.properties. Add a new channel. If you want, also add a worker.ajp e

Re: problems with apache mod-rewrite and modjk

2008-03-28 Thread Rainer Jung
sorry, i should have mentioned that i am using apache 2 and mod_jk. apache 2 is taking care of all the images and static content. so currently http://www.mydomain.com/randy works cause there is an index.html in that users dir /home/users/r/randy/index.html. what i was trying to figure out was ho

Re: Force All Requests to a single servlet

2008-03-28 Thread Jim Willeke
Tomcat 5.5 Ok, I deployed to: /tomcat9080/webapps/ROOT/WEB-INF web.xml index.jsp Redirect com.willeke.web.Redirect Redirect /* Almost works. The only issue I have is when a URL like: http://willeke.com:9080/wikildap/Wiki.jsp?page=UsefullCom

Re: Tomcat JNDI datasource

2008-03-28 Thread David Smith
Just had a brainstorm while responding on another post. The docs for 5.0.30 should describe defining a resource in terms of a element and a element. The resource as setup below is only correct for version 5.5.x and later. --David Tom Henricksen wrote: I have an application in Tomca

Re: Tomcat JNDI datasource

2008-03-28 Thread David Smith
It does have merit to keep associated jars together except in those rare occasions where the jar has to be in the classloader heirarchy at a place visible to both tomcat's internal code and the webapp's. In that case it has to be in common/lib and not in any descendant classloader. To do what

Top mail servers

2008-03-28 Thread Srivastava, Abhay
Folks, I am in the process of hosting a site on Tomcat on Ubuntu. I will be also running a mail server. As per your experience which are the top mail servers? While googling I came to know these names : Sendmail Postfix I would appreciate if you can give your inputs. Thanks, abhay

Re: Tomcat JNDI datasource

2008-03-28 Thread Howard Watson
If the app still had errors with the .jar file in the webapps own \WEB-INF\lib then something else is broken (called a test). Since his webapp docBase is outside the Tomcat directory structure there is merit with having associated .jar files in that docBase. And in instances where there are mult

Re: Tomcat JNDI datasource

2008-03-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Smith wrote: | |> | | docBase="C:/Java/eclipse-europa/europa-workspace/bop-med/web" |> | path="/bop-med" reloadable="true" |> | workDir="work\Catalina\localhost\bop-med"> |> |> Bad boy: take out the docBase and path attribut

Re: Tomcat JNDI datasource

2008-03-28 Thread David Smith
Bad suggestion. It should exist in one and only one place. That place is common/lib for tc 5.0, 5.5 so it's visible to both tomcat's internal code and the webapp. --David Howard Watson wrote: Hi. Did you try putting your .jar files in \WEB-INF\lib of you webapp? "Tom Henricksen" <[EMA

Re: Checking tomcat metrics in a non-intrusive way

2008-03-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, Peter Crowther wrote: |> If I ping www.google.com from my home computer, I get a 14.593ms |> average roundtrip time. | | Lucky you. It's rare I see under 200. Google must have a shipping container full of servers somewhere in my neighborhood

Re: Tomcat JNDI datasource

2008-03-28 Thread David Smith
| Bad boy: take out the docBase and path attributes. At best, they will be ignored. At worse, they will confuse both you /and/ Tomcat. Feel free to leave workDir in there, though it is not required. Unless you /need/ to specify it, you should take that out and let Tomcat do what it

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

2008-03-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Saleem, Saleem Edah-Tally wrote: | It seems to me it's a problem with Tomcat or mod_jk. I do no do convert any | images myself on the fly. The PNG images gets converted if the request comes | from IE. Then who is converting images from PNG to GIF?

Re: Tomcat JNDI datasource

2008-03-28 Thread Howard Watson
Hi. Did you try putting your .jar files in \WEB-INF\lib of you webapp? >>> "Tom Henricksen" <[EMAIL PROTECTED]> 3/28/2008 8:08 AM >>> I have an application in Tomcat 5.0.30 that we are trying to get to use JDBC through JNDI. I am trying to follow along with akarta-tomcat-5.0.30/webapps/tomcat-do

Re: Tomcat JNDI datasource

2008-03-28 Thread David Smith
Your root cause seems to indicate it's having some trouble possibly with the url: Caused by: java.lang.NullPointerException at java.util.StringTokenizer.(StringTokenizer.java:146) at com.ibm.db2.jcc.DB2Driver.acceptsURL(DB2Driver.java:245) at java.sql.DriverManag

Re: Tomcat JNDI datasource

2008-03-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tom, Tom Henricksen wrote: | org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver | of class '' for connect URL 'null' Aah, yes. The old "connect URL 'null'" problem. This is always a problem with some nitpicky detail in your conf

RE: Checking tomcat metrics in a non-intrusive way

2008-03-28 Thread Peter Crowther
> From: Christopher Schultz [mailto:[EMAIL PROTECTED] > wicket0123 wrote: > | JMeter reports that for 500 concurrent users making request to our > | application, the average response time was 1 second. That already > | broke our SLA which is 15 milliseconds. I presume you've already done such obv

Re: Tomcat JNDI datasource

2008-03-28 Thread karthikn
Hi try this InitialContext ic = new InitialContext(); DataSource ODS = (javax.sql.DataSource) ic.lookup("java:comp/env/jdbc/medical"); Connection conn = ODS.getConnection(); It works for me in Oracle 10G on TC with regards Karthik I have an application in Tomcat 5.0.30 that we are t

Re: RESIDENTIAL MEMORY 100%

2008-03-28 Thread karthikn
Hi Sorry for the dely, thx for the prompt reply I wouldn't investigate this on a production system, anyway. Don't you have a test environment that you can play with? We do have Test setup similar in all respects to that of Live Production system, Reports on test setup working good and on

RE: Force All Requests to a single servlet

2008-03-28 Thread Caldarale, Charles R
> From: Jim Willeke [mailto:[EMAIL PROTECTED] > Subject: Force All Requests to a single servlet > > I want to intercept all the requests to the 9080 port and analyze the > incoming URL and redirect to the new location(s). You didn't bother to tell us what version of Tomcat you're using, so the l

Re: Force All Requests to a single servlet

2008-03-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jim, Jim Willeke wrote: | I have moved a sever from port 9080 to using another tomcat instance | (on port 80) and have renamed the sites. | | I want to intercept all the requests to the 9080 port and analyze the | incoming URL and redirect to the new

RE: Memory leak in Tomcat 5.5.16

2008-03-28 Thread hai_vu
I use Netbeans 6 with its built-in profiler (all free) to track down memory usage issues, and other performance problems in Java apps in general and Tomcat in particular. Hai Vu "Tom Price" <[EMAIL PROTECTED]> 27/03/2008 07:59 PM Please respond to "Tomcat Users List" To "Tomcat Users List

Re: Checking tomcat metrics in a non-intrusive way

2008-03-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Wicket, wicket0123 wrote: | If the container adds a lot of overhead, we may want to | switch to other containers. The only container I know that people claim to have less overhead is Jetty. You will have the same problem instrumenting /that/ as well

Tomcat JNDI datasource

2008-03-28 Thread Tom Henricksen
I have an application in Tomcat 5.0.30 that we are trying to get to use JDBC through JNDI. I am trying to follow along with akarta-tomcat-5.0.30/webapps/tomcat-docs/jndi-datasource-examples-howto. html. I have setup the context.xml

Re: Tomcat tutorial

2008-03-28 Thread Howard Watson
Hi. You might find these useful too: http://java.sun.com/products/jsp/docs.html http://www.coreservlets.com/ >>> Sam Wun <[EMAIL PROTECTED]> 3/27/2008 9:32 PM >>> Hi, I am new to Tomcat. Is there any Tomcat tutorial (eg. example of projects) I can download from the web? Thanks S _

Force All Requests to a single servlet

2008-03-28 Thread Jim Willeke
I have moved a sever from port 9080 to using another tomcat instance (on port 80) and have renamed the sites. I want to intercept all the requests to the 9080 port and analyze the incoming URL and redirect to the new location(s). I can write the servlet, but have not figured out how to force ever

Re: what's your best way to redeploy webapp with least amount of downtime?

2008-03-28 Thread Mark Thomas
Zemian Deng wrote: Can you share your story of how you solve your redeployment problem to keep max availability of your webapp? 1. Write stateless apps and where you can't, use sticky sessions and clustering. 2. When upgrading. I: - disable worker1 - wait for all requests on Tomcat 1 to co

Re: RESIDENTIAL MEMORY 100%

2008-03-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Karthik, karthikn wrote: | a)shutdown.sh refuses to work and displays ... | | Using CATALINA_BASE: /infinet/karthik/TOMCAT5523 | Using CATALINA_HOME: /infinet/karthik/TOMCAT5523 | Using CATALINA_TMPDIR: /infinet/karthik/TOMCAT5523/temp | Using J

Re: Shutdown Hook in Tomcat 5.5.26

2008-03-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Twinsen, Ho Fat Tsang wrote: | public class TestThread extend Thread | { | public void run() | { |System.out.println("Invoking shutdown"); | } | } | | The hook is executed ONLY when i press CTRL+C using console but it is

what's your best way to redeploy webapp with least amount of downtime?

2008-03-28 Thread Zemian Deng
Hello list, I have two instances of Tomcat running the same webapp behind a load balancer. My current redeployment method is just simply shut one instance down(undeploy), replace warfile, deploy latest war back online, and then proceed to the seond instance. This works most of the time, but for t

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

2008-03-28 Thread SriSri
Hi Rainer, Thanks for your prompt response. I understand from your response that TOMCAT JMX doesnt provide me a way to access the AJP Queue. Does linux environment provide a way. Though your alternate suggestion is helpful I am trying to gather as much info I can. Thanks Sri On Thu, Mar 27, 200

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

2008-03-28 Thread David Smith
What I'm seeing is some weird scaling stuff being injected into the response being sent back to IE browsers: style="width:100px;height:100px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader (src='/pngproblem/resources/jpp000.png;jsessionid=..', sizingMethod='scale')" src="/pngpro

Re: problems with apache mod-rewrite and modjk

2008-03-28 Thread Randy Paries
On Fri, Mar 28, 2008 at 3:39 AM, Rainer Jung <[EMAIL PROTECTED]> wrote: > Hello Randy, > > Randy Paries schrieb: > > > 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 thei

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

2008-03-28 Thread Peter Crowther
> From: Pete L [mailto:[EMAIL PROTECTED] > Windows permissions are so lame! Personally, I prefer NTFS permissions to old-school UNIX ;-). More flexibility. And I'm no Windows fan! > Any ideas? Thanks! Process Monitor (http://technet.microsoft.com/en-gb/sysinternals/bb896645.aspx) is your fr

Re: issue:reading the environment variable HYPERION_HOME

2008-03-28 Thread Mark Thomas
Nilesh Yadav wrote: how it is behaving like this??even though the env.var is set in the profile but application failed to recognise/take it. When running as a service, lots if stuff in the profile is ignored. Mapped drives and environment variables are the most obvious. can anyone suggest m

issue:reading the environment variable HYPERION_HOME

2008-03-28 Thread Nilesh Yadav
hi all; environmental situation: I am working on the hyperion portal HS9; here on this server Two tomcats(both of :5.0.28) are present; one is used to run this portal & another one is used to run the 6 java applications present(publish) on this portal those are devloped by using the Sun java Api

Re: problems with apache mod-rewrite and modjk

2008-03-28 Thread Rainer Jung
Hello Randy, Randy Paries schrieb: 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

Re: RESIDENTIAL MEMORY 100%

2008-03-28 Thread karthikn
Hi Sorry for the dely, thx for the prompt reply I did setup the JMX / Jconsole as specified, Few more issues to get clarified 1) export JAVA_OPTS="-Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=8999

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

2008-03-28 Thread Rainer Jung
Saleem Edah-Tally schrieb: It seems to me it's a problem with Tomcat or mod_jk. I do no do convert any images myself on the fly. The PNG images gets converted if the request comes from IE. You can have a sample at pngproblem.nmset.info IE displays PNG correctly if served by an Apache web serv

Re: Checking tomcat metrics in a non-intrusive way

2008-03-28 Thread Rainer Jung
wicket0123 schrieb: I want to check tomcat response time for requests when I run, say 500 concurrent users, on the server. I use the default setttings for tomcat which means my maxThreads = 40. I have read from some articles suggesting to use JMX Console to monitor tomcat. But, then i read fro

Re: Memory leak in Tomcat 5.5.16

2008-03-28 Thread Mark Thomas
Tom Price I'm trying to find a tool that will show me which objects are holding onto references to these Tomcat objects, but haven't had much success so far - any suggestions gratefully received. Not free, but I use YourKit and get on very well with it. Mark -

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

2008-03-28 Thread Saleem Edah-Tally
It seems to me it's a problem with Tomcat or mod_jk. I do no do convert any images myself on the fly. The PNG images gets converted if the request comes from IE. You can have a sample at pngproblem.nmset.info IE displays PNG correctly if served by an Apache web server directly, as at opencim10