Problem in request.getSession(false); in Tomcat 5.5.14

2007-10-15 Thread Tina G
Settings/Configuration: Tomcat/conf/web.xml has session-timeout set to 30 minutes Application's WEB_INF has web.xml with session-timeout set to 2 minutes Java Class1 On first form submit to the server, create an httpsession using request.getSession(true). SessionId is assigned. Set maxinactive

The requested resource (/manager/) is not available

2007-10-15 Thread Andrew Hole
Hello! I'm getting the following error: description The requested resource (/manager/) is not available when I request URL for manager webapplication. I've manager.xml on ..\conf\Catalina\localhost and manager application on server\webapps\manager. What i'm doing wrong? Thanks a lot.

tomcat and java cache

2007-10-15 Thread loredana loredana
I have a pretty big website that uses java cache from which it retrieves the html. So I have a scheduled job(servlet) that get's some data from a server and stores it in a java cache(Oscache or Ehcache for those who know it). My problem is next: whenever the server (tomcat) is restarted, the

Re: The requested resource (/manager/) is not available

2007-10-15 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool application server --- - Original Message - From: Andrew Hole

Re: The requested resource (/manager/) is not available

2007-10-15 Thread Andrew Hole
Thanks a lot. It worked On 10/15/07, Johnny Kewl [EMAIL PROTECTED] wrote: --- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool application server

Reload web application from my JSP

2007-10-15 Thread Andrew Hole
How can I , inside my JSP, call manager url to reload my web application? I need to call my JSP, because I do more things than reload. Thanks a lot - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail:

Re: tomcat and java cache

2007-10-15 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool application server --- in theory load-on-startup servlet

Re: tomcat and java cache

2007-10-15 Thread Pid
loredana loredana wrote: I have a pretty big website that uses java cache from which it retrieves the html. So I have a scheduled job(servlet) that get's some data from a server and stores it in a java cache(Oscache or Ehcache for those who know it). My problem is next: whenever the server

Re: tomcat and java cache

2007-10-15 Thread Leon Rosenberg
Thats what listener are for, in your case ContextListener. regards Leon On 10/15/07, loredana loredana [EMAIL PROTECTED] wrote: I have a pretty big website that uses java cache from which it retrieves the html. So I have a scheduled job(servlet) that get's some data from a server and stores

Re: Reload web application from my JSP

2007-10-15 Thread Pid
Andrew Hole wrote: How can I , inside my JSP, call manager url to reload my web application? I need to call my JSP, because I do more things than reload. Urgh - not sure you really want to write a web UI that manipulates another web UI. You could look into JMX, Tomcat implements useful API

Re: Reload web application from my JSP

2007-10-15 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool application server --- - Original Message - From: Andrew Hole

Re: Tomcat 5.5.25, SSL and invalid keystore format

2007-10-15 Thread Werner Schalk
Dear Martin, dear list, it is not really working, to be honest. Here is what I did: 1. step: Deletion of the old keystore, generation of a new one: debian:~# rm /tmp/tomcat.keystore debian:~# keytool -genkey -alias tomcat -keyalg RSA -keystore /tmp/tomcat.keystore Enter key store password:

[OT] Replication (was RE: Copying large files around)

2007-10-15 Thread Peter Crowther
[Marked off-topic as this has, indeed, come a long long way from the original question] From: Johnny Kewl [mailto:[EMAIL PROTECTED] but yes if the user could consider replication and the required dB design, much better than moving GB files around. Not always. For example, replication has

mod_jk: Could not init service for worker

2007-10-15 Thread Hans van Zijst
Hi, Since I updated my system last week, mod_jk doesn't work anymore. Tomcat starts up just fine, no errors or warnings. I checked that the AJP1.3 connector runs, it listens on port 8009. Apache runs fine as well, but as soon as I connect to the URL I mapped to Tomcat, I get: [error]

Re: [OT] Replication (was RE: Copying large files around)

2007-10-15 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool application server --- - Original Message - From: Peter Crowther

redirecting old context uris when moving context

2007-10-15 Thread Daniel M Garland
Hi I was formerly hosting a web application at http://somehost/somecontext which I am now hosting at http://somehost so that the context is now ROOT, instead of somecontext. Is there a way of mapping / redirecting 'old' URI from somecontext to the ROOT, so that

Re: redirecting old context uris when moving context

2007-10-15 Thread Moran Ben-David
If you're using apache you could just use mod_rewrite. moran On 10/15/07, Daniel M Garland [EMAIL PROTECTED] wrote: Hi I was formerly hosting a web application at http://somehost/somecontext which I am now hosting at http://somehost so that the context is now ROOT, instead of

[Security] - Important vulnerability disclosed in Apache Tomcat webdav servlet

2007-10-15 Thread Mark Thomas
A vulnerability in the Apache Tomcat webdav servlet was publicly disclosed on full-disclosure yesterday, 14-Oct-2007.[1] The Tomcat security team has evaluated this vulnerability and determined that default installations of Tomcat 6.0.x, 5.5.x and 4.1.x and not affected. In order to be affected

Re: redirecting old context uris when moving context

2007-10-15 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool application server --- - Original Message - From: Daniel M

Re: Issues with eviction configuration

2007-10-15 Thread David Smith
Regarding testOnBorrow, the method signature is below: BasicDataSource.setTestOnBorrow( boolean ) Note this is not an arbitrary string, but specifically true or false. Your config would most likely throw an exception. The validation query must be set via validationQuery. I would strongly

Re: Does mod_jk copy memory b/w apache and tomcat (using linux, ajp13 worker)?

2007-10-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Moran, Moran Ben-David wrote: Nobody uses the jni worker anymore. The jni worker was intended to be an embedded Tomcat instance running from the mod_jk module, and is only supported in very old versions of Tomcat (3.3 IIRC). Is there any

Re: More number of connections got created than maxActive

2007-10-15 Thread David Smith
Can you determine with certainty that this one pool was responsible for all 121 connections? You don't have any other webapps with their own pool hitting the same db? --David Bhaskar wrote: Hi, I am currently using dbcp 1.2.1 with common pool 1.3. Currently i have following settings in

Upgrading context - requires Tomcat restart?

2007-10-15 Thread Gordan Krešić
Hi to all, I'm running multiple webapps on several hosts, usually one webapp per host as root context. Webapps are located in /usr/local/webapps and I provide my custom context files in $CATALINA_HOME/cont/Catalina/[host]/ROOT.xml In /usr/local/webapps I save my applications in folders

Re: Tomcat skips certain exceptions without logging

2007-10-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Prabhu, Prabhu wrote: I am noticing this weird problem, in which tomcat randomly skips logging few exceptions. I am using tomcat 6.0.13. If it's not logging them, how do you know they are occurring? - -chris -BEGIN PGP SIGNATURE- Version:

Re: Problem in request.getSession(false); in Tomcat 5.5.14

2007-10-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tina, Tina G wrote: Session timeout after 2 minutes by tomcat container but on submiting a second form to the server; request.getSession(false); is not returning NULL. Instead a new SessionId gets assigned. Something else must be happening

Re: redirecting old context uris when moving context

2007-10-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Moran, Moran Ben-David wrote: If you're using apache you could just use mod_rewrite. It's much simpler and efficient, if you're using httpd, to do: RedirectMatch /somehost/somecontext(.*) /somehost\1 Why use the complexity of mod_rewrite when

Re: More number of connections got created than maxActive

2007-10-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bhaskar, Bhaskar wrote: Issue is when i restarted tomcat, i seen there were only 6 connections. After 15 minutes, i see there were 121 connections in netstat against oracle port. Can someone please help me understand the DBCP behaviour here?

Re: Upgrading context - requires Tomcat restart?

2007-10-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gordan, Gordan Krešić wrote: Unfortunally, this does not work. After reload, Tomcat still loads old application (that symlink pointed to before upgrade). Question is why and how to force Tomcat to load upgraded application? My guess is that

Re: More number of connections got created than maxActive

2007-10-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Smith wrote: Also, if you have a connection leak, then DBCP will continue to create connections to meet demand, even if the old connections are not closed. Since they are no longer in the pool (since they were never returned), they

Re: Copying large files around

2007-10-15 Thread Mark H. Wood
On Sat, Oct 13, 2007 at 11:02:59AM -0400, Jim Cox wrote: On 10/13/07, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Kerber wrote: Let me give a bit more detail: I am working on a utility function in my webapp that will

Re: Copying large files around

2007-10-15 Thread Mark H. Wood
On Sat, Oct 13, 2007 at 12:41:45PM +0200, Johnny Kewl wrote: OK... now if you on a LAN... thats cool, but for the internet this is not good enough... If you have a look at something like the Opera browser's file transfer it does some cool things, like if you shut down the machine, next time

Re: redirecting old context uris when moving context

2007-10-15 Thread Moran Ben-David
Thanks for that, Chris. I should come clean.. I'm one of those guys with the 'supersition' that Tomcat can't handle http as well as apache (both functionally and performance wise). Glad you're active on the list to dispel these notions. moran On 10/15/07, Christopher Schultz [EMAIL

Re: redirecting old context uris when moving context

2007-10-15 Thread Hassan Schroeder
On 10/15/07, Daniel M Garland [EMAIL PROTECTED] wrote: Is there a way of mapping / redirecting 'old' URI from somecontext to the ROOT See: http://tuckey.org/urlrewrite/ -- Hassan Schroeder [EMAIL PROTECTED]

Weblogic VS. Tomcat

2007-10-15 Thread minky arora
Hi List, I need some advice regarding Tomcat Vs. Weblogic. I am building a website that has an Oracle DB as a back end.I am running scripts on the DB and displaying the results on the website.Users can log in and query the DB as well to get the desired results which could be info about anything

Re: Weblogic VS. Tomcat

2007-10-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Minky, minky arora wrote: My question is: Do I require a server side Datasource for this? Probably. I mean, you could get your data from some service instead of directly from the database. Otherwise, you're going to need a server-side datasource.

Problem: stasrtup Tomcat in Mac os X 10.4.2

2007-10-15 Thread Antonio Rodríguez Anaya
Hi! I have problems to start up Tomcat 5.5 and 6.0. I have downloaded core binary distributions and I have followed the instructions. As a root I have unpacked and moved it to /user/local directory. I have secified the CATALINA_HOME and JAVA_HOME variables. I have set execute permisions

href to .xls file shows raw file

2007-10-15 Thread alla winter
I would appreciate if you would give me a hint, what should I do to make browser to display excell spread sheet when href to .xls file is selected? It displays the raw file insted. a href=/cobra_source/beneficiary_template.xls target=_blankExcel template /a P.S. I am using Tomcat 5.0.28 and jdk

Re: href to .xls file shows raw file

2007-10-15 Thread David Delbecq
alla winter a écrit : I would appreciate if you would give me a hint, what should I do to make browser to display excell spread sheet when href to .xls file is selected? It displays the raw file insted. a href=/cobra_source/beneficiary_template.xls target=_blankExcel template /a P.S. I am

Re: href to .xls file shows raw file

2007-10-15 Thread Len Popp
On 10/15/07, David Delbecq [EMAIL PROTECTED] wrote: alla winter a écrit : I would appreciate if you would give me a hint, what should I do to make browser to display excell spread sheet when href to .xls file is selected? It displays the raw file insted. a

Re: href to .xls file shows raw file

2007-10-15 Thread Steve Ochani
Date sent: Mon, 15 Oct 2007 11:46:27 -0500 From: alla winter [EMAIL PROTECTED] Subject:href to .xls file shows raw file To: users@tomcat.apache.org Send reply to: Tomcat Users List users@tomcat.apache.org I would appreciate if you would give me a hint, what should I do to

Re: Problem: stasrtup Tomcat in Mac os X 10.4.2

2007-10-15 Thread Pid
Antonio Rodríguez Anaya wrote: Hi! I have problems to start up Tomcat 5.5 and 6.0. I have downloaded core binary distributions and I have followed the instructions. As a root I have unpacked and moved it to /user/local directory. I have secified the CATALINA_HOME and JAVA_HOME variables.

Re: href to .xls file shows raw file

2007-10-15 Thread Pid
David Delbecq wrote: alla winter a écrit : I would appreciate if you would give me a hint, what should I do to make browser to display excell spread sheet when href to .xls file is selected? It displays the raw file insted. a href=/cobra_source/beneficiary_template.xls target=_blankExcel

JSR 199 (Jsr199JavaCompiler) compile errors

2007-10-15 Thread Fran Varin
I have a question regarding JSR 199 bridge (class Jsr199JavaCompiler). I have downloaded the most recent version of the source however there appears to be an inconsistency with the version of the classes “JspCompilationContext” and “JspRuntimeContext” that it expects to use. The following methods

Re: Problem: stasrtup Tomcat in Mac os X 10.4.2

2007-10-15 Thread Steve Ochani
Date sent: Mon, 15 Oct 2007 18:46:30 +0200 From: Antonio Rodríguez Anaya [EMAIL PROTECTED] Subject:Problem: stasrtup Tomcat in Mac os X 10.4.2 To: users@tomcat.apache.org Send reply to: Tomcat Users List users@tomcat.apache.org Hi! I have problems to start up Tomcat 5.5 and

Re: href to .xls file shows raw file

2007-10-15 Thread alla winter
I added to web.xml ( on both, server level and application level) the following clause mime-mapping extensionxls/extension mime-typeapplication/vnd.ms-excel/mime-type /mime-mapping and then restarted the server, but still got the same result Am I using the right set up?

RE: Dynamic logging configuration updates in Tomcat

2007-10-15 Thread Adam Gordon
I have no idea if Tomcat supports this -- the logging-related configuration directives in the docs should say if it is directly supported. I didn't see anything in the logging documentation that's indicated either way whether or not this was supported. The JVM theoretically supports it with

Re: href to .xls file shows raw file

2007-10-15 Thread David Smith
Could be caching issue. Try clearing your browser cache and try again. --David alla winter wrote: I added to web.xml ( on both, server level and application level) the following clause mime-mapping extensionxls/extension mime-typeapplication/vnd.ms-excel/mime-type

Re: href to .xls file shows raw file

2007-10-15 Thread Len Popp
I tried this on Tomcat 5.0.28. With Internet Explorer I had to clear the browser cache before it would work. (With Firefox it worked with or without the mime-mapping. Firefox must be finding the program based on the file extension.) -- Len On 10/15/07, alla winter [EMAIL PROTECTED] wrote: I

Re: JSR 199 (Jsr199JavaCompiler) compile errors

2007-10-15 Thread Martin Gainty
where did you d/l the package? M-- - Original Message - From: Fran Varin [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Monday, October 15, 2007 1:29 PM Subject: JSR 199 (Jsr199JavaCompiler) compile errors I have a question regarding JSR 199 bridge (class Jsr199JavaCompiler). I

Re: JSR 199 (Jsr199JavaCompiler) compile errors

2007-10-15 Thread Fran Varin
Thank you for your reply. I d/l'd from the following location: http://repo1.maven.org/maven-java.net/jasper-jsr199/java-sources/ The information was based on this article: http://blogs.sun.com/kchung/entry/speed_up_jsp_compilations_with I have also taken a look at the source for recent

Re: Dynamic logging configuration updates in Tomcat

2007-10-15 Thread Carl Mosca
Adam, Have you tried your code with the embedded Tomcat? (I am not having any success getting a webapp to do logging within embedded Tomcat.) TIA, Carl

CAS Clustering Not Working

2007-10-15 Thread Clifford Bryant
Hi, I followed the instructions in the CAS clustering link. (http://www.ja-sig.org/wiki/display/CASUM/Clustering+CAS) The multicast ping is working. But, the CAS clustering is not working. If I shut down the first server, and browse to the second server, then I am prompted to login again to

Re: href to .xls file shows raw file

2007-10-15 Thread alla winter
the clearing out browser cache worked out well. thanks a lot On 10/15/07, Len Popp [EMAIL PROTECTED] wrote: I tried this on Tomcat 5.0.28. With Internet Explorer I had to clear the browser cache before it would work. (With Firefox it worked with or without the mime-mapping. Firefox must be

Tomcat 6 failing to evaluate EL expressions, Tomcat 6 bug?!!!!

2007-10-15 Thread Tinashe B Chipomho
Looks like my last post was not sucessful, Can someone please tell me this is not a bug in Tomcat 6, its too obvious and to some extend unacceptable I must be doing something wrong. Here is my problem, I have written my own custom component to display a div tag. the JSP is as follows:

Re: Problem: stasrtup Tomcat in Mac os X 10.4.2

2007-10-15 Thread Filip Hanik - Dev Lists
Using JRE_HOME: /usr/bin/java JRE_HOME or JAVA_HOME should point to a directory, not an executable Filip Antonio Rodríguez Anaya wrote: Hi! I have problems to start up Tomcat 5.5 and 6.0. I have downloaded core binary distributions and I have followed the instructions. As a root I

Re: Dynamic logging configuration updates in Tomcat

2007-10-15 Thread Adam Gordon
I've never heard of embedded Tomcat. That said, the whole deal w/ embedded systems is that the API is drastically limited so if logging isn't working, and this may sound like a dumb question but, is it possible that logging just isn't supported? Regardless, space isn't really an issue for us

Re: Tomcat 6 failing to evaluate EL expressions, Tomcat 6 bug?!!!!

2007-10-15 Thread David Smith
I haven't done anything with Tomcat 6 and the #{ ... } el expressions yet, but I know in the past when EL features weren't working, it's been the fault of the version declaration in the web.xml. Did you declare your webapp to be servlet/jsp spec that supports this kind of EL expression? Any

Classloader deadlock during Tomcat startup

2007-10-15 Thread Huy Vo (hvo)
Hi all, I can re-create the following deadlock situation fairly consistently. I am using Tomcat 5.0.28 on Linux using JDK 1.4.2_11. This Tomcat instance is serving a webapp using Struts (1.2.9)/JSP. Setup: - a few browsers connecting to the Tomcat server. In each browser, there are two

Re: Tomcat 6 failing to evaluate EL expressions, Tomcat 6 bug?!!!!

2007-10-15 Thread Tinashe B Chipomho
Yes and this is my web.xml declaration: web-app version=2.5 xmlns=http://java.sun.com/xml/ns/javaee; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation= http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; I cannot even bind my tag to my

Re: Dynamic logging configuration updates in Tomcat

2007-10-15 Thread Carl Mosca
I've never heard of embedded Tomcat. That said, the whole deal w/ embedded systems is that the API is drastically limited so if logging isn't working, and this may sound like a dumb question but, is it possible that logging just isn't supported? Yes, it's possible but not probable based on

Re: redirecting old context uris when moving context

2007-10-15 Thread Nikil Pandey
actually we used tomcat without apache on a high volume system. never had a problem with it. apache maybe much better but im sure lots of people use tomcat as their lone web/appserver. never used redirectmatch but its good to know that such functionality exists. thanks chris - Original

StreamCorruptedException - where to look to fix

2007-10-15 Thread David kerber
Running TC 5.5.15 on Windows server 2003, JRE 1.5.0_12. Where do I start looking to try to fix the exception below? I get this on most startups of Tomcat. I know it's related to reloading sessions that were saved on the previous shutdown, and I've fixed a few serialization errors in my

Tomcat 5.5: org.apache.catalina.startup.HostConfig logs too much

2007-10-15 Thread Mark H. Wood
When Tomcat scans for things to auto-(un)deploy, it has been logging every check it makes, every ten seconds. I realized that I have about 10GB of catalina.out that is mostly this chatter. I'm currently a bit baffled by the logging changes 5.0 - 5.5 - 6.0, so would someone please help me figure

RE: Tomcat connections not closing.

2007-10-15 Thread Roark, Mike
Filip, Thanks for the help. You were right about the default for disableUploadTimeout. I must have been looking at 5.0 docs before, it looks like the default changed between 5.0 and 5.5. So I have now specified all three settings as you have them, and have had no effect. It seems like the

portaluserid cookie name

2007-10-15 Thread Dave.Buttrick
Tom, Due to circumstances beyond my control, we need the change the name of the cookie that you are looking for. its name is now connecteduserid. The value stays the same, and all... So the cookie name is conneteduserid the value is the user's logged in PATID. I set its expiry time to 365

Re: CAS Clustering Not Working

2007-10-15 Thread Filip Hanik - Dev Lists
looks like you are mixing jboss clustering and tomcat clustering at the same time, choose one or the other :) Filip Clifford Bryant wrote: Hi, I followed the instructions in the CAS clustering link. (http://www.ja-sig.org/wiki/display/CASUM/Clustering+CAS) The multicast ping is working.

Re: JSR 199 (Jsr199JavaCompiler) compile errors

2007-10-15 Thread Mark Thomas
Fran Varin wrote: Thank you for your reply. I d/l'd from the following location: http://repo1.maven.org/maven-java.net/jasper-jsr199/java-sources/ The information was based on this article: http://blogs.sun.com/kchung/entry/speed_up_jsp_compilations_with Glassfish != Tomcat There is

Re: Tomcat 5.5: org.apache.catalina.startup.HostConfig logs too much

2007-10-15 Thread Bill Barker
Mark H. Wood [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] When Tomcat scans for things to auto-(un)deploy, it has been logging every check it makes, every ten seconds. I realized that I have about 10GB of catalina.out that is mostly this chatter. I'm currently a bit baffled by

RE: CAS Clustering Not Working

2007-10-15 Thread Clifford Bryant
The CAS Clustering document says to use the JBossCacheTicketRegistry class in the Ticket Cache Replication section. How important is for the time to be in sync on the clustered servers? The Tomcat Clustering/Session Replication document says, Make sure that all nodes have the same time and sync

RE: More number of connections got created than maxActive

2007-10-15 Thread Bhaskar
Yes. I tested it. After stopping tomcat, all connections to oracle went down and only my app was running in tomcat . -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Monday, October 15, 2007 6:59 PM To: Tomcat Users List Subject: Re: More number of connections

RE: Issues with eviction configuration

2007-10-15 Thread Bhaskar
I agree that it is a wrong configuration. Accidentally some one had set this configuration and I haven't seen any exceptions. But seeing the behaviour which I explained. So, I raised this issue. --Bhaskar -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Monday,

Re: Weblogic VS. Tomcat

2007-10-15 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool application server --- - Original Message - From: minky arora