RE: stopping a tomcat web application

2006-09-05 Thread asaf.lahav
I'm looking for java code to stop a specific web application running on my tomcat. Not the entire tomcat. -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Monday, September 04, 2006 3:02 PM To: Tomcat Users List Subject: Re: stopping a tomcat web application You

Re: stopping a tomcat web application

2006-09-05 Thread Mikolaj Rydzewski
asaf.lahav wrote: I'm looking for java code to stop a specific web application running on my tomcat. Not the entire tomcat. You can stop a tomcat webapp using JMX and MBeans. But your original question was how to stop webapp from ServletContextListener during its startup. -- Mikolaj

logging does not work in my webapp

2006-09-05 Thread David Delbecq
Hello, using tomcat, the logging does not work in my webapp. I am out of idea, so if someone can suggest me something more to test to get my logs. Here is the situation. I followed instructions on ow to setup tomcat for log4j (that is basically adds the commons-logging and log4j jars in

RE: stopping a tomcat web application

2006-09-05 Thread asaf.lahav
Wouldn't it be possible to use JMX in the servletContextListener? Is there any alternative? -Original Message- From: Mikolaj Rydzewski [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 05, 2006 10:13 AM To: Tomcat Users List Subject: Re: stopping a tomcat web application asaf.lahav

Re: logging does not work in my webapp

2006-09-05 Thread Boris Unckel
Hello David, my answers are inline: Original-Nachricht Datum: Tue, 05 Sep 2006 10:46:07 +0200 Von: David Delbecq [EMAIL PROTECTED] An: users@tomcat.apache.org Betreff: logging does not work in my webapp Hello, using tomcat, the logging does not work in my webapp. I am out of

Re: logging does not work in my webapp

2006-09-05 Thread David Delbecq
First, problem solved. It appear a 3rd party library include in my webapp was doing a manual configuration of log4j, resetting the root logger and sending logs to some file in the middle of nowhere. Thanks for information. Am just curious, you tell me to put my commons-logging and log4j in my

How send svg content to browser as response

2006-09-05 Thread prad
Hi, Am processing some svg files on server side and after processing i need to send the svg as response...I set the mime type as image/svg+xml and tried the below code public void doGet(HttpServletRequest request, HttpServletResponse response) throws

RE: How send svg content to browser as response

2006-09-05 Thread Peter Crowther
From: prad [mailto:[EMAIL PROTECTED] Am processing some svg files on server side and after processing i need to send the svg as response...I set the mime type as image/svg+xml and tried the below code public void doGet(HttpServletRequest request,

Re: How send svg content to browser as response

2006-09-05 Thread Markus Schönhaber
prad wrote: Am processing some svg files on server side and after processing i need to send the svg as response...I set the mime type as image/svg+xml and tried the below code What has this servlet... public void doGet(HttpServletRequest request, HttpServletResponse

Re: How send svg content to browser as response

2006-09-05 Thread Giorgio Clavelli
If you are targeting firefox's svg implementation. Have a read at this first: http://jwatt.org/svg/authoring/ On 9/5/06, Markus Schönhaber [EMAIL PROTECTED] wrote: prad wrote: Am processing some svg files on server side and after processing i need to send the svg as response...I set the mime

HTTP 304 - IF_MODIFIED_SINCE

2006-09-05 Thread benshort
Hi, How do I get the IF_MODIFIED_SINCE header from the HttpServletRequest object? When I use the HttpServletRequest.getHeaderNames() method and iterate through the enumeration I get the following headers only. accept referer accept-language accept-encoding user-agent host connection cookie

Re: logging does not work in my webapp

2006-09-05 Thread Boris Unckel
Hi, Original-Nachricht Datum: Tue, 05 Sep 2006 11:50:34 +0200 Von: David Delbecq [EMAIL PROTECTED] An: Tomcat Users List users@tomcat.apache.org Betreff: Re: logging does not work in my webapp First, problem solved. It appear a 3rd party library include in my webapp was doing

Re: logging does not work in my webapp

2006-09-05 Thread David Delbecq
Thanks for this clarification :) Boris Unckel a écrit : Hi, Original-Nachricht Datum: Tue, 05 Sep 2006 11:50:34 +0200 Von: David Delbecq [EMAIL PROTECTED] An: Tomcat Users List users@tomcat.apache.org Betreff: Re: logging does not work in my webapp First, problem

Re: HTTP 304 - IF_MODIFIED_SINCE

2006-09-05 Thread Markus Schönhaber
benshort wrote: How do I get the IF_MODIFIED_SINCE header from the HttpServletRequest object? When I use the HttpServletRequest.getHeaderNames() method and iterate through the enumeration I get the following headers only. accept referer accept-language accept-encoding user-agent host

Re: HTTP 304 - IF_MODIFIED_SINCE

2006-09-05 Thread ben short
I have tried with firefox and ie6. May i ask what you are using? Ben On 9/5/06, Markus Schönhaber [EMAIL PROTECTED] wrote: benshort wrote: How do I get the IF_MODIFIED_SINCE header from the HttpServletRequest object? When I use the HttpServletRequest.getHeaderNames() method and iterate

Re: HTTP 304 - IF_MODIFIED_SINCE

2006-09-05 Thread Markus Schönhaber
ben short wrote: I have tried with firefox and ie6. May i ask what you are using? Firefox. May I ask what you are using (i. e. Tomcat version)? You didn't answer my question: Does your browser send an If-Modified-Since Request-Header? On Tomcat 5.5.17 calling this JSP *twice* will cause IE 6

Re: stopping a tomcat web application

2006-09-05 Thread Mikolaj Rydzewski
asaf.lahav wrote: Wouldn't it be possible to use JMX in the servletContextListener? Is there any alternative? Read Peter Crowther's post. -- Mikolaj Rydzewski [EMAIL PROTECTED]http://ceti.pl/~miki/ PGP KeyID: 8b12ab02 There are three kinds of people: men,

Re: HTTP 304 - IF_MODIFIED_SINCE

2006-09-05 Thread ben short
Markus, Im using Tomcat 5.5.17. I assumed that my browser would send the If-Modified-Since Request-Header and have tried your jsp page and it does. What I am doing is serving images from a database. Here is what I am doing in my spring controller... protected ModelAndView

Re: HTTP 304 - IF_MODIFIED_SINCE

2006-09-05 Thread ben short
Markus, I have fixed the problem. I needed to set the contenttype and the contentlength on the HttpServletResponse. Now i see the if-modified-sice header on the second request. Thanks for your input. Regards Ben On 9/5/06, ben short [EMAIL PROTECTED] wrote: Markus, Im using Tomcat 5.5.17.

Re: HTTP 304 - IF_MODIFIED_SINCE

2006-09-05 Thread Markus Schönhaber
ben short wrote: Im using Tomcat 5.5.17. I assumed that my browser would send the If-Modified-Since Request-Header and have tried your jsp page and it does. OK, this shows three things: 1. It's much less helpful to assume things than to find out for sure. If you're interested in the exact

Re: HTTP 304 - IF_MODIFIED_SINCE

2006-09-05 Thread ben short
Ok, I admit I was a bit fast going to the mailing list and I should of done more research. Yes you are right, I am trying not to serve resources again if they havent changed. From what I have read I need to set the Last-Modified header on the HttpServletResponse. The client will then send a

How to disable PUT and DELETE methods in Tomcat 4.1.27?

2006-09-05 Thread Emre Ersoz
Dear all, I am a newbie to the list. I did some research on the topic, but couldn't get any idea. I found on 5.5.X http://tomcat.apache.org/tomcat-5.5-doc/default-servlet.html On web.xml file you can add following parameter for this purpose: readonly Is this context read only, so HTTP

How to force each session to authenticate

2006-09-05 Thread Elise Atkins
I am using jboss and I trying to change the default caching behavior for username/passwords. I would like to force each session to reauthenticate. The first time the user logs in, the my login module is called and it goes through login commit as expected. The user's credentials are cached.

Low performance with Tomcat APR

2006-09-05 Thread José Manuel Molina Pascual
Hello, I just installed Tomcat APR on a SUSE 9 and found that the performance has fallen dramatically (I fact, performance with APR it's half than without it). I followed the instructions of the Tomcat Documentation. I suppose that this must be some configuration issue. I'm using Apache

Re: Low performance with Tomcat APR

2006-09-05 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Which kernel are you using? 2.6 or 2.4? Andrew On 05/09/2006, at 3:34 PM, José Manuel Molina Pascual wrote: Hello, I just installed Tomcat APR on a SUSE 9 and found that the performance has fallen dramatically (I fact, performance with APR it's

Re: Low performance with Tomcat APR

2006-09-05 Thread Filip Hanik - Dev Lists
if (your max nr of open connections) Connector.maxThreads ) then the regular connector is better, and will always be as it is using blocking IO else APR will scale better, as it can keep a larger set of keep alive connections open end Your biggest gain on the APR connector is if you are

Re: Low performance with Tomcat APR

2006-09-05 Thread José Manuel Molina Pascual
I'm using 2.6 On 9/5/06, Andrew Miehs [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Which kernel are you using? 2.6 or 2.4? Andrew On 05/09/2006, at 3:34 PM, José Manuel Molina Pascual wrote: Hello, I just installed Tomcat APR on a SUSE 9 and found that the

Apache Tomcat Connector

2006-09-05 Thread Jim Weir
To all, My JK connector is working but I can't figure out how to forward to Tomcat. How do I know? In my Catalina log file it says, INFO: JK2: ajp13 listening on /0.0.0.0:8009 I tried many modifications to the httpd-vhosts.conf below and can generate an error in the mod_jk.log by

Implementing own Loader

2006-09-05 Thread Leon Rosenberg
Hi, I'm trying to implement an own Loader wraped around the WebappLoader. My goal is to modify the classloader and to substitute all created servlets by own proxies. However, I started creating an own loader and proxying requests to the WebappLoader but failed :-) My context.xml contains:

Re: How to disable HTTP/100 Continue on Tomcat

2006-09-05 Thread Bruno Vilardo
Hello Bill, Thanks a lot for the info. I could not find this Paramenter. We are trying to configure in TomCat the Http 1.0 instead of http1.1 which sends the 100/Continue. To do this we have edited the server.xml and commented the http1.1 and uncommented the http1.0 option. But we are still

RE: stopping a tomcat web application

2006-09-05 Thread asaf.lahav
I did... It doesn't answer my question... -Original Message- From: Mikolaj Rydzewski [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 05, 2006 1:33 PM To: Tomcat Users List Subject: Re: stopping a tomcat web application asaf.lahav wrote: Wouldn't it be possible to use JMX in the

localhost and external requests behave differently

2006-09-05 Thread Greg Campbell
Hi, I'm new to Tomcat and cannot find the answer to the following question (if I'm missing something, I'd kindly appreciate a pointer into the documentation): I've got Tomcat set up with a server.xml file that (in part) looks like: Engine name=Catalina defaultHost=my.server.com

RE: Why cannot I put JSVC into a shell script to run

2006-09-05 Thread Patrick Wang
Thanks for the reply, The linux is Fedora 4.0, tomcat 5.0.28, java is 1.5.0_07. I did check the Catalina.err, it looks like it cannot find the Bootstrap class, which is specified by the classpath directory. Here is the full script I used. echo JAVA_HOME: $JAVA_HOME echo CATALINA_HOME:

Re: Low performance with Tomcat APR

2006-09-05 Thread Mladen Turk
José Manuel Molina Pascual wrote: Hello, I just installed Tomcat APR on a SUSE 9 and found that the performance has fallen dramatically (I fact, performance with APR it's half than without it). I followed the instructions of the Tomcat Documentation. Great. I suppose that this must be

ManagerBase EOFException

2006-09-05 Thread nadjim . chetbani
Hello, I am using Tomcat 5.0, I am having the following error during tomcat restarting: [0] 05-sept.-2006:16:48:27 ERROR org.apache.catalina.session.ManagerBase:481 : IOException lors du chargement des sessions persistantes: java.io.EOFException java.io.EOFException at

Tomcat 5.5.16 Auto-Deploy Change Breaking Some WebApps

2006-09-05 Thread admin
In the changelog for Tomcat 5.5.16 (http://tomcat.apache.org/tomcat-5.5-doc/changelog.html), I read this: Deploy folders which don't have a WEB-INF, and return an error when a context file does not contain a Context element (remm) This is breaking a number of WebApps. In the past, a WebApp

Access to the requested resource has been denied

2006-09-05 Thread ubergoonz
Hi, I am a newbie to tomcat. I am having problem aith HTTP 403 Access to the requested resource has been denied to the manager application. I have failed the authentication once and althought I have shutdown and startup again. I still keep getting the error message? I think i am being

RE: Access to the requested resource has been denied

2006-09-05 Thread Propes, Barry L
i don't think you have it set correctly. check your tomcat-users.xml file to see how it's configured. -Original Message- From: ubergoonz [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 05, 2006 12:12 PM To: users@tomcat.apache.org Subject: Access to the requested resource has been

Re: Implementing own Loader

2006-09-05 Thread Leon Rosenberg
ok, now i added Lifecycle to the implemented interfaces and am proxing the method calls to webapp loader... success is still another thing: SEVERE: Error deploying configuration descriptor moskitodemo.xml java.lang.NullPointerException at

RE: Apache Tomcat Connector

2006-09-05 Thread Jim Weir
From: Jim Weir [EMAIL PROTECTED] Reply-To: Tomcat Users List users@tomcat.apache.org To: users@tomcat.apache.org Subject: Apache Tomcat Connector Date: Tue, 05 Sep 2006 10:20:36 -0400 To all, My JK connector is working but I can't figure out how to forward to Tomcat. How do I know? In my

mod_jk garbled

2006-09-05 Thread Tom
I have downloaded mod_jk.so from the Tomcat site and when I attempt to use it via the LoadModule directive in Apache I get an error that is explained as follows: Q. What's that message about 'garbled DSO ?' A. It's related to Apache EAPI, the message 'mod_jk.so is garbled - perhaps this is

RE: Performance issue between http and https

2006-09-05 Thread Duong BaTien
In the previous subject: Session dropped from https to http i got the following suggestion but did not get further opinion on the performance argument. On Mon, 2006-08-28 at 17:45 +0200, Andrés González wrote: What is the reason to mix http and https? Why don't you serve all your pages with

Re: mod_jk garbled

2006-09-05 Thread David Smith
These messages might also occur when using modules built for other versions of Apache httpd. Are you sure your mod_jk.so module is for Apache httpd 2.2? -David Tom wrote: I have downloaded mod_jk.so from the Tomcat site and when I attempt to use it via the LoadModule directive in Apache I

undeploy application

2006-09-05 Thread bhavik shah
If I undeploy the application from tomcat 5.5 what will happen?? is it going to uninstall or what?what is undeploy mean for tomcat 5.5

Re: undeploy application

2006-09-05 Thread David Smith
Undeploy in the manager means delete the entire folder under webapps belonging to a particular. web app. I would think 'stop' is the preferred button when you only want to make it unavailable. -- David bhavik shah wrote: If I undeploy the application from tomcat 5.5 what will happen?? is it

max memory..

2006-09-05 Thread Asensio, Rodrigo
Hello guys tomcat 5517 java 1508 win 2003 server I have available 4 gb of ram memory into the server. My tomcat is running with 1024 mb right now. Before start to optimize my functions :D , can I move to 2048mb without any problem ? memory settings has always to be pow of 2 ? thanks Rodrigo

RE: blank pages ME TOO!

2006-09-05 Thread Paul Hamer
Hi, I've had either the same or a similar problem: about 2 weeks ago, my IIS6 + mod_jk1.2.15 + Tomcat5.5.15 suddenly begins serving blank pages on the main site ! Couldn't find anything strange in any logs (iis, mod_jk tomcat). Accessing Tomcat directly (port 8080) also returned blank pages!

Re: max memory..

2006-09-05 Thread Leon Rosenberg
are you using a 64bit version? If yes than the answer is yes. Otherwise its probably no :-) regards Leon On 9/5/06, Asensio, Rodrigo [EMAIL PROTECTED] wrote: Hello guys tomcat 5517 java 1508 win 2003 server I have available 4 gb of ram memory into the server. My tomcat is running with 1024

Re: max memory..

2006-09-05 Thread Nikita Tovstoles
There would be no adverse effect on garbage collection (i.e. longer GC times) when moving from max heap of 1gb to 4gb? -nikita Leon Rosenberg wrote: are you using a 64bit version? If yes than the answer is yes. Otherwise its probably no :-) regards Leon On 9/5/06, Asensio, Rodrigo [EMAIL

Re: max memory..

2006-09-05 Thread Boris Unckel
Hello, can I move to 2048mb without any problem ? Leon Rosenberg wrote: are you using a 64bit version? If yes than the answer is yes. Otherwise its probably no :-) Is this really just a 32 vs 64bit decision? What about garbage collection cycles? What about more than one instance of tomcat for

Repost (was: Re: Q: about status gathering per Request/Connector)

2006-09-05 Thread Alexander Lazic
Hi, please can anybody say if I'am on the right way. Thanks Alex On Mon 21.08.2006 19:04, Alexander Lazic wrote: Hi, a colleague have add a new thread in the Ajp13Connector Ajp13Processor to gather some stats: (Runtime.getRuntime().freeMemory() 10) + VMfree +

Re: max memory..

2006-09-05 Thread Andrew Miehs
I discovered no difference in performance between running 1 tomcat, or 4 tomcats on the one machine - same performance. The machine was a 4x Opteron 870 with 8GB RAM, running Java 1.5.6 32bit. Andrew Boris Unckel wrote: Hello, can I move to 2048mb without any problem ? Leon Rosenberg

Re: max memory..

2006-09-05 Thread Leon Rosenberg
Boris, search the archives, Chrales once gava a detailed answer on this topic. Short version: until you have 8 processors you shouldn't worry about the garbage collector. If you have 8 you should set the number of garbage collection threads accordingly. leon On 9/5/06, Boris Unckel [EMAIL

disable directory listing per webapp

2006-09-05 Thread Sunitha Kumar \(sunithak\)
Title: Blank Candirectory listing be disabled per webapp using the webapp's WEB-INF/web.xml? Looking at tomcat documentation, they refer to servlet specification. Anybody have examples how this can be done? thnx -sunitha

Re: localhost and external requests behave differently

2006-09-05 Thread Greg Campbell
To follow up on this, it turned out to be some sort of port issue. If I turn the firewall off on the Linux server, the external URL responds fine (like the localhost URL). When I lock it back down and leave only the following ports open: 80 443 (https) 8080 8082 8443 8009 8005 22 (ssh, should

Problems with Tomcat 5.0.28 and Netbeans 5.0

2006-09-05 Thread Carlos Puero C.
Hi everybody, I got a problem... And I'd like your help I use NetBeans 5.0 with Tomcat 5.0.28 and MySQL 5.0.21, I try to crate a connection pool from Tomcat to Mysql, I followed all the steps that I've found on similar forums, and my frustration is that appears an error: No Suitable Driver...

Re: mod_jk garbled

2006-09-05 Thread Tom
I downloaded mod_jk-apache-2.0.46-linux-i686.so http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/linux/jk-1.2.18/mod_jk-apache-2.0.46-linux-i686.so from http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/linux/jk-1.2.18/ into /usr/lib/httpd/modules and

Re: max memory..

2006-09-05 Thread anjan bacchu
can I move to 2048mb without any problem ? SURE, YES 4 GB RAM -- did you tune the BOOT.INI setting to use the /3GB setting so that the user process address space goes to 3 GB(from 2 GB default) ? related things for performance : are you using the APR extension ? how about tweaking the

Re: RE: Why cannot I put JSVC into a shell script to run

2006-09-05 Thread Warren Pace
Pat, This looks to be more a scripting issue than a tomcat or jsvc issue. May I mail you a skeleton script as an attachment off the list? I've not used Fedora for a couple of years so I can't remember the directory layout (where to find rc.status, etc) but you can modify the script to

Re: How to disable PUT and DELETE methods in Tomcat 4.1.27?

2006-09-05 Thread Mark Thomas
Emre Ersoz wrote: Dear Is this context read only, so HTTP commands like PUT and DELETE are rejected? [true] What about 4.1.X ? Do we have solution? Yes. The same one. Take a look at conf/web.xml Mark - To start a new

Re: How to force each session to authenticate

2006-09-05 Thread Mark Thomas
Elise Atkins wrote: I am using jboss and I trying to change the default caching behavior for username/passwords. I would like to force each session to reauthenticate. The first time the user logs in, the my login module is called and it goes through login commit as expected. The user's

Re: Tomcat 5.5.16 Auto-Deploy Change Breaking Some WebApps

2006-09-05 Thread Mark Thomas
[EMAIL PROTECTED] wrote: Is there any way to get more information on what the developers were thinking here, and how to get the old behavior back? Unfortunately, many of our users have relied on this long-standing rule, and their WebApps no longer work. The rule is stated here: Don't set

Re: Implementing own Loader

2006-09-05 Thread Mark Thomas
Leon Rosenberg wrote: ok, now i added Lifecycle to the implemented interfaces and am proxing the method calls to webapp loader... success is still another thing: Looks like the associated container hasn't been set. In your shoes I would get a debugger out and step through the initialisation of

Re: Performance issue between http and https

2006-09-05 Thread Mark Thomas
Duong BaTien wrote: In the previous subject: Session dropped from https to http i got the following suggestion but did not get further opinion on the performance argument. When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing

Re: Performance issue between http and https

2006-09-05 Thread Duong BaTien
Sorry. I will remember this. BaTien On Tue, 2006-09-05 at 21:14 -0400, Mark Thomas wrote: Duong BaTien wrote: In the previous subject: Session dropped from https to http i got the following suggestion but did not get further opinion on the performance argument. When starting a new

RE: Performance issue between http and https

2006-09-05 Thread Richard Mixon
Duong, Hopefully someone can give you more specifics. FWIW we moved one site to straight HTTPS a couple of years back and have seen no ill-effects, and none of the frustration we had experience trying to switch back and forth between the two. I am sure there is some performance hit - that's why

Re: How send svg content to browser as response

2006-09-05 Thread prad
Hi , Am sorry...Actually i was wrong...While posting i made a mistake Here it is... public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {