On Wed Aug 22 04:09:29 CEST 2007 Tomcat Users List users@tomcat.apache.org
wrote:
Ronald Klop wrote:
What java version are you running?
Ronald.
On Fri Aug 17 16:00:41 CEST 2007 Tomcat Users List
users@tomcat.apache.org wrote:
Hi,
I have installed Tomcat 5.5.23_1 on FreeBSD 6.2. I
In what context?? over the network?, over the web?, on the server?
There is a portion of the shell script used in a Linux implementation
for Tomcat 5.5 that checks for the running process:
if start-stop-daemon --test --start --pidfile $CATALINA_PID \
--user $TOMCAT5_USER
Rainer Jung wrote:
Markus Schönhaber wrote:
Just to confirm that I don't get it wrong again: it is to be expected
that the value of RANDFILE is ignored in my case since im using tcnative
1.10?
That's my expectation too.
Fine, thanks.
Regards
mks
Do you know some Windows script to delete Tomcat logs after 5 days?
Thanks a lot
I also didn't understand exactly what you mean, but 'JDBCRealm'... implies
using a database, so the simple way is to redirect and use a web form to change
it, which is easy enough. If you don't want to use a web form then its an
entirely different story, I assume some sort of extension or
Exists some way to implement Single Sign On without source code changes?
Could you tell me a little bit about Single Sign On?
Thanks a lot
http://tomcat.apache.org/tomcat-5.5-doc/config/host.html#Single%20Sign%20On
Gregor
--
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371
Andrew Hole wrote:
Exists some way to implement Single Sign On without source code changes?
Could you tell me a little bit about Single Sign On?
Thanks a lot
In many environments, but particularly in portal environments, it is
desireable to have a user challenged to authenticate themselves
Single sign on using valve is interesting, but is it possible use him if I
have different application running in different tomcat instances?
I think that only works with different applications under same tomcat
instance.
Thank you
On 8/22/07, Pid [EMAIL PROTECTED] wrote:
Andrew Hole wrote:
Thanks for this info,...
How do I implement this tip?
#18. Use the -server JVM option. This enables the server JVM, which JIT
compiles bytecode much earlier, and with stronger optimizations. Startup
and first calls will be slower due to JIT compilation taking more time,
but subsequent ones will
Andrew Hole wrote:
Single sign on using valve is interesting, but is it possible use him if I
have different application running in different tomcat instances?
I think that only works with different applications under same tomcat
instance.
Thank you
You might want to take a look at the
It depends on which operating system you're using and how you've
installed Tomcat.
Can you tell us which it is?
On Wed, 2007-08-22 at 07:19, Karel V Sedlacek wrote:
Thanks for this info,...
How do I implement this tip?
#18. Use the -server JVM option. This enables the server JVM, which
In looking at the docs:
http://tomcat.apache.org/tomcat-5.5-doc/config/realm.html
there is no Attribute for userCredExpireCol. How do I configure the
JDBCRealm to look at an expiration column ?
-Steve
On 8/22/07, Peter Stavrinides [EMAIL PROTECTED] wrote:
I also didn't understand exactly what
as far as i know this option is outdated, hence the vm automatically
goes into server mode if it detects a server class machine (=2GB RAM,
2 processors (which also includes ht or dualcore)
leon
maybe wrong though
On 8/22/07, Ben Souther [EMAIL PROTECTED] wrote:
It depends on which operating
On Wed Aug 22 10:58:13 CEST 2007 Tomcat Users List users@tomcat.apache.org
wrote:
Do you know some Windows script to delete Tomcat logs after 5 days?
Thanks a lot
Windows has a scheduler. Put 'DEL c:\Tomcat\logs\*.*' in it every 5 days.
Ronald.
If you are running tomcat under windows services, you can select which
JVM you want to use through bin/tomcatXw.exe.
-Mensagem original-
De: Karel V Sedlacek [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 22 de agosto de 2007 08:19
Para: Tomcat Users List
Assunto: Re: 20 Tips for
AFAIK, this won't work on Windows unless you stop tomcat before and
restart tomcat after. Windows keeps the log file open and will do
strange things if you take the file out from underneath it. I believe
log4j has options to support what the OP wants through log rotation.
--David
Ronald
Hi Steven
You are limited as to what logic the realm performs automatically,
checking for expired passwords requires some manual work on your side.
You might want to look at implementing a JAASRealm, and your own login
module:
See the bottom of this page:
You might want to truncate, 'not delete', instead.
David Smith wrote:
AFAIK, this won't work on Windows unless you stop tomcat before and
restart tomcat after. Windows keeps the log file open and will do
strange things if you take the file out from underneath it. I believe
log4j has options
hello
after to test my project in tomcat 5.5.23 and jdk 5 update 12
in network(intranet-only until now with 2 clients) i see that this is fast,
after of a some time i can see a wonderful exception
related with java heap exception thrown by the tomcat
after to search in google, i found the
Ronald Klop wrote:
On Wed Aug 22 04:09:29 CEST 2007 Tomcat Users List
users@tomcat.apache.org wrote:
Ronald Klop wrote:
What java version are you running?
Ronald.
On Fri Aug 17 16:00:41 CEST 2007 Tomcat Users List
users@tomcat.apache.org wrote:
Hi,
I have installed Tomcat 5.5.23_1 on
Well, i see two performance bottlenecks in your description
1) You gave a max memory to your tomcat jvm that is above what your
server supports. You shouldn't give jvm more memory thant what is really
available without swapping (that is 512M minus all that is used by other
applications in your
I have two ways of running my webapp. One is your basic webapp where tomcat
answers the responses directly. The second runs security software the
forwards the requests to another tomcat instance. This second version was
mandated by our clients.
The second version is brand new to us and I'm now
So now I'm trying to see if there's a way to mangle these urls dynamically
on the security server instead so that I can use the same JSP for
everything. I tried using a filter, but that works ONLY for the actual
request itself. Filters evidently don't see requests for images or
stylesheets,
/*
Shouldn't that get everything? I have a debug at the beginning of doFilter
that prints out the request and I only get the original one, nothing for the
images and stuff.
-Original Message-
From: Ben Souther [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 22, 2007 9:03 AM
To:
See the table in this page. On Windows on i586 java always defaults to client
runtime. (amd64 or ia-64 are different)
http://java.sun.com/docs/hotspot/gc5.0/ergo5.html
If you can set JAVA_OPTS=-server java starts with it. Print
System.getProperties() and you can see what runtime is used.
Hi,
I'm a little confused about Apache Tomcat. When installed (Win XP) do I get
both the Apache HTTP server and the Tomcat?
I needed the Apache HTTP server for some PHP development tests. And did try
to install it on may machine, but it didn't work. Now I realise that I have
Apache Tomcat on
On Wed Aug 22 14:47:04 CEST 2007 Tomcat Users List users@tomcat.apache.org
wrote:
Ronald Klop wrote:
On Wed Aug 22 04:09:29 CEST 2007 Tomcat Users List
users@tomcat.apache.org wrote:
Ronald Klop wrote:
What java version are you running?
Ronald.
On Fri Aug 17 16:00:41 CEST 2007
OK, let me give this a whirl.
Karel
At 09:20 AM 8/22/2007, you wrote:
See the table in this page. On Windows on i586 java always defaults to
client runtime. (amd64 or ia-64 are different)
http://java.sun.com/docs/hotspot/gc5.0/ergo5.html
If you can set JAVA_OPTS=-server java starts with it.
you do need Apache Httpd to serve PHP, Tomcat doesn't do it.
but there is no problem running both httpd and Tomcat on the same machine
Filip
hano wrote:
Hi,
I'm a little confused about Apache Tomcat. When installed (Win XP) do I get
both the Apache HTTP server and the Tomcat?
I needed the
From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Subject: Re: 20 Tips for Using Tomcat in Production
as far as i know this option is outdated, hence the vm automatically
goes into server mode if it detects a server class machine (=2GB RAM,
2 processors (which also includes ht or dualcore)
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Karel,
Karel V Sedlacek wrote:
I am running a 4 core, 8GB, Server 2003 SP1 EE (not R2) machine.
One JRE: 1.5.0_09
Oh, it's a Windows machine. Are those ever called servers? ;)
(Just kidding.)
- -chris
-BEGIN PGP SIGNATURE-
Version:
Thank you, we are running Windows,... will check the Service properties.
At 09:55 AM 8/22/2007, you wrote:
From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Subject: Re: 20 Tips for Using Tomcat in Production
as far as i know this option is outdated, hence the vm automatically
goes into
On Wed, Aug 22, 2007 07:00, Andrew Hole [EMAIL PROTECTED]
wrote:
Single sign on using valve is interesting, but is it possible use him if I
have different application running in different tomcat instances?
I think that only works with different applications under same tomcat
instance.
For
Oh, it's a Windows machine. Are those ever called servers? ;)
Well, I'm a Unix guy, so that's not what I call them. :)
-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 22, 2007 10:15 AM
To: Tomcat Users List
Subject: Re: [OT] 20 Tips for
Marcus,
I'm not sure I understand...
Karel
At 10:21 AM 8/22/2007, you wrote:
Another tip that could be considered is the use of Tomcat Native
Libraries (http://tomcat.heanet.ie/native/) , what do you think?
-Mensagem original-
De: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
On Aug 21, 2007, at 11:26 AM, Markus Schönhaber wrote:
Rainer Jung wrote:
There's an addition in tcnative 1.1.10:
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jni/native/
src/ssl.c?view=diffrev=524725r1=524724r2=524725
Hi Karel,
Take a look at http://tomcat.apache.org/tomcat-5.5-doc/apr.html, which
describes native libraries. We started using it sometime ago and we
noticed better response times in or application.
-Mensagem original-
De: Karel Sedlacek [mailto:[EMAIL PROTECTED]
Enviada em:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Stephen,
Stephen More wrote:
On 8/21/07, Christopher Schultz [EMAIL PROTECTED] wrote:
Stephen More wrote:
Has anyone written or know of a JDBCRealm that supports an expired password
?
Do you mean that you want expired-password-users to be
hi David
thanks so much for the information
2)Some part of your web application is not releasing the memory it uses.
i dont think so, i am working with Hibernate and jdbcTemplate(when i work
with jasperreports) and i use c3p0
but to clear some doubt, i see this
Also look at JProbe, or
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ash,
dr_pompeii wrote:
after to test my project in tomcat 5.5.23 and jdk 5 update 12
in network(intranet-only until now with 2 clients) i see that this is fast,
after of a some time i can see a wonderful exception
related with java heap exception
Jim Jagielski wrote:
Well, the comment doesn't seem to match what the code is doing :)
OK, this statement of yours might relativize the impression of dumbness
I have given here a little bit. Or maybe not ;-)
I'm guessing that the problem the patch was trying to solve was
due to the
Hello Christopher
thanks for the reply
This sounds like a memory leak.
it could be, but
Are you sure that you always close your connections, statements, and
ResultSets in finally blocks (or are using a library that does this)?
This is sometimes the cause of memory leaks.
i work with
On Aug 22, 2007, at 11:32 AM, Markus Schönhaber wrote:
2. If tcnative 1.1.10 is used, set the environment variable RANDFILE
to point to some random source which can be accessed without danger of
blocking (for example /dev/urandom) or create a static random file in
the home dir of the user
I have a script that checks to make sure that Tomcat is listening on the
appropriate port.
#!/bin/bash
...
main() {
...
chktomcat tomcat1
chktomcat tomcat2
...
}
...
chktomcat() {
netstat -a | grep $1 /dev/null 21
RC=$?
if (( RC == 0 ))
I think I'll stick to the recommendations that I sort of understand...
Thanks
Karel
At 11:22 AM 8/22/2007, you wrote:
On 8/22/07, Milanez, Marcus [EMAIL PROTECTED] wrote:
Another tip that could be considered is the use of Tomcat Native
Libraries (http://tomcat.heanet.ie/native/) , what do
Hi
I have recently upgraded from Tomcat 5.5 to 6.0 and from Java 1.5
to 6.
I use Log4J for all my web application logging and have discovered
that after the upgrade, any exceptions thrown in the web application
are not logged to my web application log, but to the top-level Tomcat
log.
Does
I followed the instructions from
http://tomcat.apache.org/tomcat-5.0-doc/ssl-howto.html and I have executed
the following:
keytool -genkey -alias tomcat -keyalg RSA
When I run:
keytool -list
I have the tomcat cert:
tomcat, Aug 22, 2007, keyEntry,
Certificate fingerprint (MD5):
From: bajistaman [mailto:[EMAIL PROTECTED]
Subject: Tomcat 5 + Red Hat Linux. Exception trying to load keystore
But when I start tomcat I get the following Exception
[ERROR] 22/08/2007 08:29:35,704]
[org.apache.tomcat.util.net.jsse.JSSESocketFactory] Exception
trying to load
keystore
What's wrong? Problems with native libraries?
-Mensagem original-
De: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 22 de agosto de 2007 12:23
Para: Tomcat Users List
Assunto: Re: 20 Tips for Using Tomcat in Production
On 8/22/07, Milanez, Marcus [EMAIL PROTECTED]
if you want a global log4j (instead of tomcat's own framework)
http://tomcat.apache.org/tomcat-6.0-doc/logging.html
then you will need to be tomcat-juli.jar and tomcat-juli-adapters.jar
as described in the docs,
let me know if you need more clarification
Filip
Ashley Hollands wrote:
Hi
I have
From: Milanez, Marcus [mailto:[EMAIL PROTECTED]
Subject: RES: 20 Tips for Using Tomcat in Production
What's wrong? Problems with native libraries?
Makes the environment much more complex and is platform-specific,
eliminating one of Tomcat's highly desirable attributes - platform
On Aug 21, 2007, at 10:02 AM, Rainer Jung wrote:
Followup to self:
There's an addition in tcnative 1.1.10:
Looks like this went through further refactoring in:
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jni/native/
src/ssl.c?r1=524725r2=525163
I just checked HEAD on trunk
Thanks, but we are already using the one that we got from sun's web site, any
other clue?
Johann
--
View this message in context:
http://www.nabble.com/Tomcat-5-%2B-Red-Hat-Linux.-Exception-trying-to-load-keystore-tf4312574.html#a12279431
Sent from the Tomcat - User mailing list archive at
Hi,
I'm trying to run tomcat with jsvc. I did all the things in the manual, and
now I'm trying to run it with:
./bin/jsvc -cp ./bin/bootstrap.jar \
-outfile ./logs/catalina.out -errfile ./logs/catalina.err \
org.apache.catalina.startup.Bootstrap
And I get this in catalina.err:
From: bajistaman [mailto:[EMAIL PROTECTED]
Subject: RE: Tomcat 5 + Red Hat Linux. Exception trying to
load keystore
Thanks, but we are already using the one that we got from
sun's web site
You might think you are, but the stack trace shows you definitely are
not:
at
You are right, when I look up the services I can see that Tomcat is running
using the JVM that you have told me:
/usr/lib/jvm/java/bin/java -Djava.awt.headless=true
-Dcatalina.ext.dirs=/usr/...
I changed that from the tomcat5.conf file:
# tomcat5 service configuration file
# you could also
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Johann,
bajistaman wrote:
But probably as I'm executing Tomcat as a service the service def should be
the one that is pointing to the wrong JVM.
Any idea how the change the service def?
To somewhat reiterate Chuck's comment: you are working
Thanks for the reply Filip
if you want a global log4j (instead of tomcat's own framework)...
I have configured Tomcat to use Log4J at the top-level using
the documentation you recommend no problem, but it doesn't solve
my problem.
What I want is for the Exception to get logged at the web
Ashley Hollands wrote:
Thanks for the reply Filip
if you want a global log4j (instead of tomcat's own framework)...
I have configured Tomcat to use Log4J at the top-level using
the documentation you recommend no problem, but it doesn't solve
my problem.
What I want is for the
Ok, I'll keep away from this forum the packaged tomcat questions. When I get
the real one I'll be back.
Thanks,
Johann
--
View this message in context:
http://www.nabble.com/Tomcat-5-%2B-Red-Hat-Linux.-Exception-trying-to-load-keystore-tf4312574.html#a12280051
Sent from the Tomcat - User
I did build the extra JAR files as described in the documentation.
Whether I am using Log4J at the Tomcat level, or using Tomcat's
default logging, I do get log messages in my web app log. For
example if I add the following to my web app log4j.properties:
log4j.logger.com.mycompany=INFO
it logs
Is there a way to delete tomcat logs which are older than 5 days?
On 8/22/07, Peter Stavrinides [EMAIL PROTECTED] wrote:
You might want to truncate, 'not delete', instead.
David Smith wrote:
AFAIK, this won't work on Windows unless you stop tomcat before and
restart tomcat after. Windows
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Vivek,
Vivek Mohan wrote:
Is there a way to delete tomcat logs which are older than 5 days?
You could configure Tomcat to use log4j instead of juli and use a
DailyRollingFileAppender -- it will generate a new file every day and
you can simply
it will only log to the webapp.log if your application catches the
exception, then issues a log.error(msg,exception) (tomcat will do the
same assuming it was correctly configured)
if you provide a sample war, I can validate it for you
Filip
Ashley Hollands wrote:
I did build the extra JAR
What is confusing me is that I never had to catch the exception and
log it from within my application in Tomcat 4, 5 or 5.5 - it just appeared
in the web app log automatically.
Is there no way to configure Log4J/Tomcat 6 to do the same thing without
having to do as you suggest?
Ashley
Ashley Hollands wrote:
What is confusing me is that I never had to catch the exception and
log it from within my application in Tomcat 4, 5 or 5.5 - it just appeared
in the web app log automatically.
Is there no way to configure Log4J/Tomcat 6 to do the same thing without
having to do as you
OK - I'll run through the steps from scratch again and see if I have
more joy this time.
By the way, I have been using Tribes in my application and it works
really well. I did have a problem initially as I was sending a class
that did not exist in Tomcat's classpath, only in the web application
Ashley Hollands wrote:
OK - I'll run through the steps from scratch again and see if I have
more joy this time.
let me know how it goes, I can help out more.
By the way, I have been using Tribes in my application and it works
really well. I did have a problem initially as I was sending a
Download the http server from Apache
In Response To:
Hi,
I'm a little confused about Apache Tomcat. When installed (Win XP) do I get
both the Apache HTTP server and the Tomcat?
I needed the Apache HTTP server for some PHP development tests. And did try
to install it on may machine, but it
There wasn't any trace at all - I added my own logging to tell me
that one server had sent the message, but on the other server
there was no sign of why it wasn't being delivered to the ChannelListener
until I turned on debug logging and then it reported the
ClassNotFoundException, but not at the
On 8/22/07, Christopher Schultz [EMAIL PROTECTED] wrote:
1. Checks to see if the Session exists and has a Principal.
2. Checks to see if the Session contains my User object.
If not, it loads the User object and performs the real login
(as opposed to the basic authentication provided by
Ole Ersoy schrieb:
I'm trying to run tomcat with jsvc. I did all the things in the manual, and
now I'm trying to run it with:
./bin/jsvc -cp ./bin/bootstrap.jar \
-outfile ./logs/catalina.out -errfile ./logs/catalina.err \
org.apache.catalina.startup.Bootstrap
And I
Ashley Hollands wrote:
There wasn't any trace at all - I added my own logging to tell me
that one server had sent the message, but on the other server
there was no sign of why it wasn't being delivered to the ChannelListener
until I turned on debug logging and then it reported the
Well, just as a matter of corollary of the soluction everybody was right
because even if I had the Sun Jvm installed, the red hat tomcat5 service was
getting the JAVA_HOME env entry from the one defined in the file
/etc/sysconfig/tomcat5 and not from /etc/tomcat5/tomcat5.conf, so if you
changed
People in the list,
I would like to specify derby home to the JVM so that the JVM can
pickup the database.I added one line in catalina.bat. I added the last
line to JAVA_OPTS as shown below:
set JAVA_OPTS=%JAVA_OPTS%
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
basically, if you have classes outside of the scope of Tribes classloader,
you are better off just sending a byte[] and do the
serialization/deserialization
Yes - that is basically how I dealt with it in the end.
By the way, I have followed the Log4J instructions again (they don't say
that
Hi,
I use Tomcat's JDBC realm for security. However, I want to use a very
customized login form (like remember me option or javascript based modal
login form). How can I make these work?
I cant access j_security_check servlet directly from a page or from a
servlet.
Is there a method like
Yes, it should.
Are you running tomcat behind Apache HTTPD or another web server to
serve up static content?
On Wed, 2007-08-22 at 09:17, Hehl, Thomas wrote:
/*
Shouldn't that get everything? I have a debug at the beginning of doFilter
that prints out the request and I only get the
Hi Markus,
Thank you for the suggestion. I tried that as well, but I still get the same
message. I think there is something funky going on with Fedora, as described
here:
http://i-hacker.blogspot.com/2007/01/cannot-find-daemon-loader-issue-with.html
I also tried what they did, but still no
Hi,
I use Apache as the load balancer and configured mod_jk to work in
failover mode. The master and slave run on separate machines.
To test how the failover works, I shut down the master machine, then I
access my application. But it takes about one minute for me to see the
first page. I
81 matches
Mail list logo