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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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/
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 {
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
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
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)??
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
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
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
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
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
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
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
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
> 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
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
35 matches
Mail list logo