On Wed Aug 22 04:09:29 CEST 2007 Tomcat Users List
wrote:
Ronald Klop wrote:
> What java version are you running?
>
> Ronald.
>
> On Fri Aug 17 16:00:41 CEST 2007 Tomcat Users List
> wrote:
>> Hi,
>>
>> I have installed Tomcat 5.5.23_1 on FreeBSD 6.2. I have used Servlets
>> a lot in the
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 --sta
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 custo
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 b
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
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, whi
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 w
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
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 U
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 Klo
I am running a 4 core, 8GB, Server 2003 SP1 EE (not R2) machine.
One JRE: 1.5.0_09
Karel
> 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
>
>
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:
http://tomcat.apache.org/tomcat-5.5-
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 soluti
Ronald Klop wrote:
On Wed Aug 22 04:09:29 CEST 2007 Tomcat Users List
wrote:
Ronald Klop wrote:
> What java version are you running?
> > Ronald.
> > On Fri Aug 17 16:00:41 CEST 2007 Tomcat Users List >
wrote:
>> Hi,
>>
>> I have installed Tomcat 5.5.23_1 on FreeBSD 6.2. I have used
Servlets
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 cas
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
> stylesheet
/*
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: Tomcat
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.
Ronal
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 the
On Wed Aug 22 14:47:04 CEST 2007 Tomcat Users List
wrote:
Ronald Klop wrote:
> On Wed Aug 22 04:09:29 CEST 2007 Tomcat Users List
> wrote:
>> Ronald Klop wrote:
>> > What java version are you running?
>> > > Ronald.
>> > > On Fri Aug 17 16:00:41 CEST 2007 Tomcat Users List >
>> wrote:
>>
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. P
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 Apa
> 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 dualco
-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: G
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 s
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]
Enviada em: quarta-feira, 22 de agosto de 2007 10:56
Para: Tomcat Users List
Assunto:
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.
F
>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 U
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]
Enviad
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=diff&rev=524725&r1=524724&r2=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: quarta-feira
-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
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 Optimiz
-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 except
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 you think?
PLEASE DONT!
Leon
>
> -Mensagem original-
> De: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
>
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 /dev/ra
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 wi
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 Tomc
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 2>&1
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
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 anybo
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):
E6:59:10:12:C9:
> 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
> k
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
indepen
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=524725&r2=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 Nabb
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 java.secu
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 over
-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 appli
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 Excepti
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 mai
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.
-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 del
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
-Origi
well, it was the maxbackupindex that was what I was trying to find
out. We already are in the process of deleting the files which are
older than a certain time period...
thanks,
Vivek.
On 8/22/07, Christopher Schultz <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
>
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 sug
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
an
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 cla
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 di
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 S
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 prov
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
>
> A
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
ClassNotFoundEx
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
change
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
y
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 'setRem
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 o
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 t
85 matches
Mail list logo