Defining application Global properties.

2005-01-03 Thread haim
I would like to set up some application global properties. I would like those properties to be available application width, and should be loaded as soon as the application loads no mater witch page was visit. I guess I have few options for that , which one do you think is the best practice? 1.

Re: Context for User development accounts??

2005-01-03 Thread QM
On Mon, Jan 03, 2005 at 12:43:45PM -0800, Dwayne Ghant wrote: : I have configured tomcat to read : all user account on a local machine and it worked, : but if I don't put a context in the : server.xml file for "/~username," : then how does it get loaded and sence it seems : to be loading automatica

Re: heap size params on linux

2005-01-03 Thread QM
On Mon, Jan 03, 2005 at 01:38:04PM -0600, Stephen Charles Huey wrote: : Our script for installing Tomcat as a service on Windows is down below. : We're moving to Linux, so I'm wondering where we specify the heap size : parameters (-Xmx and -Xms) for the Tomcat on Linux. Would the correct : place

Re: web.xml servlet mappings, url pattern and CGI.PATH_INFO (tomcat 4.1.31)

2005-01-03 Thread Parsons Technical Services
I am sure there is a better option out there but if no one else weighs in, here are a couple of thoughts. As for the wild card I know there are several threads addressing the do and don't of this. Although I think you have figured them out through trial and error. As for one way to approach th

Re: can't run tomcat with jsvc

2005-01-03 Thread Parsons Technical Services
Can you start it using the startup script? Doug - Original Message - From: "Haluk Durmus" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Monday, January 03, 2005 9:19 AM Subject: Re: can't run tomcat with jsvc Wolfgang Hackl wrote: Please verify that no http server (apache, squid et

web.xml servlet mappings, url pattern and CGI.PATH_INFO (tomcat 4.1.31)

2005-01-03 Thread Jack Eidsness
I am new to the J2EE world, so hopefully I will not use terms incorrectly. Due to circumstances beyond my control, coldfusion has been retrofitted into a J2EE web application and I have recently taken on the task of trying to make previously existing cfm code work as part of a tomcat installatio

Context for User development accounts??

2005-01-03 Thread Dwayne Ghant
I must have missed this answer in my readings some where. I have an easy question concerning the context container. I have configured tomcat to read all user account on a local machine and it worked, but if I don't put a context in the server.xml file for "/~username," then how does it get loaded a

Re: heap size params on linux

2005-01-03 Thread Ben Souther
You don't want to use the 'set' statement in catalina.sh. Here's an exerpt from mine: # # $Id: catalina.sh,v 1.13.2.2 2004/11/17 20:06:34 yoavs Exp $ #- JAVA_OPTS="-Xms128m -Xmx128m" Then just go to the HTML Man

Re: heap size params on linux

2005-01-03 Thread Rodrigo Schmidt
I think that any option you want to pass to the jvm can be placed in JAVA_OPTS, like this: set JAVA_OPTS = "-Xmx1536m -Xms1536m -server" I do that and it works fine. Rodrigo Stephen Charles Huey wrote: I see that JAVA_OPTS is mentioned in there quite a few times, so where exactly can I put set J

Re: heap size params on linux

2005-01-03 Thread Stephen Charles Huey
I see that JAVA_OPTS is mentioned in there quite a few times, so where exactly can I put set JAVA_OPTS=-Xmx1536m? Also, do I need to do both the initial and max in one line? E.g. set JAVA_OPTS= -Xmx1536m -Xms1536m (with nothing on the end of the line?) Does the -server option go with JAVA_OPTS

Re: heap size params on linux

2005-01-03 Thread Ben Souther
I do it from catalina.sh >From the header comments. 22 # JAVA_OPTS (Optional) Java runtime options used when the "start", 23 # "stop", or "run" command is executed. 24 # On Mon, 2005-01-03 at 14:38, Stephen Charles Huey wrote: > Our script for installing Tomcat as a se

heap size params on linux

2005-01-03 Thread Stephen Charles Huey
Our script for installing Tomcat as a service on Windows is down below. We're moving to Linux, so I'm wondering where we specify the heap size parameters (-Xmx and -Xms) for the Tomcat on Linux. Would the correct place be in the startup.sh file? Thanks! D:\tomcat\bin\tomcat.exe -install "Apach

RE: Tomcat 5.0.28 running Windows 2003 Server CPU to 100%

2005-01-03 Thread Mike Curwen
Every so often in our development environment, we'll have a page that goes off in an infinite loop. No problem, we'll just stop the browser, and fix the page and click refresh. But meanwhile, that first page is still spinning away, gobbling up CPU. I once saw code on tomcat-user that allowed

RE: Tomcat 5.0.28 running Windows 2003 Server CPU to 100%

2005-01-03 Thread George Sexton
I think it's something in Tomcat personally. I have had a customer report this with our Application, which when run under Tomcat on Unix will run for weeks at a time. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 _ From: David Bilodeau [mailto:[E

Tomcat 5.0.28 running Windows 2003 Server CPU to 100%

2005-01-03 Thread David Bilodeau
Can anyone point me to a thread discussing the following configuration or something similar, where the discussion relates to the CPU running up to 100%?   Windows 2003 Server Standard Edition running IIS 6.0 Tomcat 5.0.28 installed and running (as a service) SQL Server 2000 SP3 connected to

Disable PUT and DELETE HTTP methods

2005-01-03 Thread Mark Anderson
Last month, someone asked how to disable the HTTP methods PUT and DELETE. (I wasn't on this list at that time, so I can't reply in a threadly manner.) I wrote a valve to accomplish that. I won't clutter this list with my code, but I will say that I simply wrote a class that extends org.apache.

Re: How Do I Install A Valve

2005-01-03 Thread Mark Anderson
Thanks for the advice. I had originally put my class in org.apache.catalina.valves to avoid any problems with access to protected fields and methods. After reading your reply, I studied the Tomcat classes and determined that there would be no problems. So, I have moved my class to my own pac

Re: using Thread object in Tomcat

2005-01-03 Thread David Boyer
Rather than creating a class that extends Thread you should create a class that implements Runnable and construct a new Thread using your Runnable. You'd extend Thread if you were adding some extended functionality to the Thread class, otherwise use Runnable. >>>[EMAIL PROTECTED] 01/03 10:11 a

using Thread object in Tomcat

2005-01-03 Thread Mark
Hi, I'd like to check if it a good way to implement user's notifications using Thread object? What I would like to do is to have a singleton object (extends Thread) that will "wake up" every minute and do something( let's say go to data base, take to another 3rd-party system, etc) and once the co

Fwd: java.io.UnsupportedEncodingException

2005-01-03 Thread Mhd Raghid Sandouq
Hi, The ISP here is using tomcat 5.0.19, after uploading my war files when trying to brows my JSP pages i got this error message java.io.UnsupportedEncodingException but if I test them on tomcat 5.0.24 they pass regards, - To uns

RE: Speed issues with SQL Server 2000 and JTDS

2005-01-03 Thread David Boyer
You could try using something like jProfiler to see where the bottleneck is. I don't see anything unusual in your code example, although it looks like the only thing it does is create the connection. I use jTDS and it works fine without doing anything exceptional. >>>[EMAIL PROTECTED] 01/

RE: Speed issues with SQL Server 2000 and JTDS

2005-01-03 Thread Charles P. Killmer
This is some representative code that is being very slow. import java.sql.*; public class SomeClass { public Connection conn; public int ID; public String Name; public String Address; public String City; public String OtherStuff; public SomeClass() throws Exception { try {

Re: java.lang.NullPointerException in tomcat 5.5.4

2005-01-03 Thread Mark Thomas
1. Please don't post the same message multiple times. 2. Please don't hijack another thread - it plays havoc with thread-aware mail clients. You need to start a new thread and then your message may get answered. Mark ssk 2001 wrote: Hi I installed tomcat 5.5.4 ,jdk1.5 and beanfactory 1.0.1. When

Re: can't run tomcat with jsvc

2005-01-03 Thread Haluk Durmus
Wolfgang Hackl wrote: Please verify that no http server (apache, squid etc.) is running --> only one process may use a port. No Service is runing on port 80. [EMAIL PROTECTED]:~# netstat -ltun Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address

RE: Speed issues with SQL Server 2000 and JTDS

2005-01-03 Thread Randall Svancara
I have been using JTDS with SQL Server 2000 in conjunction with Tomcat without any problems. Perhaps if you post some your database connection code, someone could provide you with assistance. You might also try posting to the JTDS Mailing list. Are you using Database Connection Pooling (DBCP)??

Re: can't run tomcat with jsvc

2005-01-03 Thread Wolfgang Hackl
Haluk Durmus wrote: Thanks, I had the same problem on my Debian after a distribution upgrade from Woody with kernel 2.4.18 to Sarge and kernel 2.6.8. I traced the jsvc call with strace -f. So I got the following messages: [pid 11313] capset(0x19980330, 0, {CAP_SETGID|CAP_SETUID|CAP_NET_BIND_SER

Re: can't run tomcat with jsvc

2005-01-03 Thread Haluk Durmus
Thanks, I had the same problem on my Debian after a distribution upgrade from Woody with kernel 2.4.18 to Sarge and kernel 2.6.8. I traced the jsvc call with strace -f. So I got the following messages: [pid 11313] capset(0x19980330, 0, {CAP_SETGID|CAP_SETUID|CAP_NET_BIND_SERVICE, CAP_SETGID|CA

java.lang.NullPointerException in tomcat 5.5.4

2005-01-03 Thread ssk 2001
Hi I installed tomcat 5.5.4 ,jdk1.5 and beanfactory 1.0.1. When run the application it gave the error which is shown below , Pls can anyone help it solve this.. HTTP STATUS ERROR 500 - type Exception report message description The server encountered an inter

Re: Re: JSP compilation problem

2005-01-03 Thread Ryan Stewart
As QM mentioned, Tomcat 5.0 doesn't support Java 5.0 "out of the box", so to speak. I believe there's a patch you need to make them play nicely. Tomcat 5.5, as he pointed out, is very tight with Java 5.0. -Original Message- From: "Frank W. Zammetti"<[EMAIL PROTECTED]> To: "Tomcat Users L

Re: can't run tomcat with jsvc

2005-01-03 Thread Wolfgang Hackl
Haluk Durmus wrote: I wan't to use Tomcat 5.5.6 as our default Webserver on port 80. That's why I start it with "jsvc", that should give the chance to run on prots <1024 for nonroot-user. but get Error-Message in log file: [...] jsvc.exec error: syscall failed in set_caps jsvc.exec error: Service

global variables inside a Tomcat JSP-Servlet app.

2005-01-03 Thread Ben Bookey
Dear List, I hope someone can give some hints to a none java/TC -specialist. We have a jsp-servlet app, which has some important app variables inside the web.xml. Because the validation for these parameters is quite complex we have a single public class with public static setters and getters ava

Re: can't run tomcat with jsvc

2005-01-03 Thread Haluk Durmus
Thanks for your response :) Here is the output of strace: execve("./Tomcat5.sh", ["./Tomcat5.sh", "start"], [/* 47 vars */]) = 0 brk(0) = 0x80f access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/opt/wx/2.5/lib/i686/libtermcap.so.2", O_RDONLY) = -1 ENOENT (No such

Re: kaffe and tomcat 5.5.4

2005-01-03 Thread David Goodenough
On Monday 03 January 2005 04:57, Ryan Harris wrote: > I'm running tomcat 5.54 on the "free" kaffe vm instead of Sun's JDK. > When I start tomcat with the startup.sh script as root, everything runs > perfectly. However I'm having trouble launching the process with JSVC. > Does anybody know if JSVC c

Re: kaffe and tomcat 5.5.4

2005-01-03 Thread David Goodenough
> If anyone has any helpful information, I would be most grateful. > It is disappointing that Tomcat 5.5.4 runs perfectly on Kaffe only to be > stopped by limitations in the commons-daemon... Perhaps there is > another way to run tomcat 5.54 on port 80 as an unprivileged user in > linux? You cou

Logging exceptions per webapp in Tomcat 5.5

2005-01-03 Thread Svein Olav Bjerkeset
After having read about how to setup logging in Tomcat 5.5 (http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html), I have managed to set up Log4j to work with Tomcat 5.5. However, when I set up indivdual logs for my webapps, only output generated from log statements in the code (Log4j st