Classloading scenario

2007-02-20 Thread Angel Todorov
Hi All, I have the following scenario: one webapp, which has some jars in its private WEB-INF\lib dir, and one common jar which I would like to share among several webapps. Hence, I am putting this jar into the shared\lib directory of Tomcat. The problem is that this common lib references classes

Tomcat 5.5: PROPFIND fails with 501 for non-existent resource

2007-02-20 Thread Werner Donné
Hi, I have a servlet, which implements WebDAV, running in Tomcat 5.5. When I issue a PROPFIND to an existent resource within the declared context I get a proper response. However, when the resource doesn't exist but is still within the context, I get a 501 response code. The strange thing is that

Monitoring of Tomcat process

2007-02-20 Thread Virgo Rustianto
Hi there, Currently I am using Tomcat webserver 4.1.2, does any one know how to monitoring Tomcat webserver ? The reason is I facing problem almost everyday Tomcat was down, currently I don't know how to see does tomcat running or down. Normally after startup I can't see anything except customer

Expression Language in JSP and JasperException

2007-02-20 Thread Piotr Kiraga
Hi, When I'm using in JSP: ... Tomcat (5.5.17) throws exception (javax.servlet.ServletException: Unable to find a value for "result" in object of class "com.some.packages.action.LoginActionBean" using operator "."). I've heard that it can be configured in Tomcat, so he could pass through it wi

Re: Expression Language in JSP and JasperException

2007-02-20 Thread David Smith
Does com.some.packages.action.LoginActionBean have a public method getResult()? The test below effectively translates to: if (actionBean.getResult() != null) { // some stuff to do } --David Piotr Kiraga wrote: > Hi, > > When I'm using in JSP: > ... > Tomcat (5.5.17) throws excep

RE: Problem seting up Tomcat SSL

2007-02-20 Thread PATTUS, Jean-Philippe
You should launch tomcat with this java option -Djavax.net.debug=ssl, you will have probably more details about the problem -Message d'origine- De : Anthony Liu [mailto:[EMAIL PROTECTED] Envoyé : mardi 20 février 2007 02:01 À : users@tomcat.apache.org Objet : Problem seting up Tomcat SSL

Re: Monitoring of Tomcat process

2007-02-20 Thread Leon Rosenberg
write a small programm (10 lines of code) which makes a http request via urlconnection or http-client from jakarta/commons and tries to get an url from your application once a minute. If this fails it can send you an email or sms (another 10 lines) regards leon On 2/20/07, Virgo Rustianto <[EMAI

Re: where to store user-generated files?

2007-02-20 Thread John Pedersen
Thanks for the reply. Can you provide any more details as to how to go about this. I have googled quite a bit - I would have thought that this is quite a common requirement, but I don't see references to it. I should mention that some of the files are images that the users upload, and need to be

RE: where to store user-generated files?

2007-02-20 Thread Peter Crowther
> From: John Pedersen [mailto:[EMAIL PROTECTED] > Maybe I am asking too much ( I chose a long time ago not to store > images and large files in the db - just store names and urls - maybe > this was a poor choice.) A lot depends on your environment. For small projects I tend to store in database

Re: Can't find classes in jar files in WEB-INF

2007-02-20 Thread aladdin
Have we given up here? Do I need to have the packages in separate jars? On Monday 19 February 2007 08:02, David Smith wrote: > You don't need to tell tomcat to look in WEB-INF/lib/*.jar. Tomcat does > that automatically per spec. I'm guessing there is something wrong with > the way your jar was

Re: [OT] mod_jk -> tomcat sending delay

2007-02-20 Thread nuka
Hello, I am facing to a similar exception in tomcat: ERROR [org.apache.jk.common.HandlerRequest] Error decoding request java.net.SocketTimeoutException: Read timed out having a timeout for Tomcat AJP connector = 1 minute. It seems that this timeout has a good value, but I still get this kind o

Re: Expression Language in JSP and JasperException

2007-02-20 Thread Piotr Kiraga
Does com.some.packages.action.LoginActionBean have a public method getResult()? The test below effectively translates to: if (actionBean.getResult() != null) { // some stuff to do } The problem is that there could be a class that has no property with name result. In another case t

Re: Classloading scenario

2007-02-20 Thread Boris Unckel
Hello, Angel Todorov wrote: I have the following scenario: one webapp, which has some jars in its private WEB-INF\lib dir, and one common jar which I would like to share among several webapps. Hence, I am putting this jar into the shared\lib directory of Tomcat. The problem is that this common l

Re: Expression Language in JSP and JasperException

2007-02-20 Thread David Smith
Piotr Kiraga wrote: Does com.some.packages.action.LoginActionBean have a public method getResult()? The test below effectively translates to: if (actionBean.getResult() != null) { // some stuff to do } The problem is that there could be a class that has no property with name resu

Re: Classloading scenario

2007-02-20 Thread Angel Todorov
Hi Boris, This doesn't work for me -> i would like to share classes between webapps in order for them to have a common classloader. In this way i can pass object references between two webapps. In tomcat there is no concept of EAR packaging, and EAR classloading isolation in general. I don't agre

mod_jk configuration for production

2007-02-20 Thread nuka
Hello, I am facing to a problem concerning apache-tomcat configuration via mod_jk for our production environment. We are usingApache: 2.0.55, Tomcat 5.0, mod_jk 1.2.15. Our first problem has been raised some weeks ago when the clients received http 404 errors. mod_jk logs have shown errors

RE: Classloading scenario

2007-02-20 Thread Peter Crowther
> From: Angel Todorov [mailto:[EMAIL PROTECTED] > This doesn't work for me -> i would like to share classes between > webapps in order for them to have a common classloader. In this way i > can pass object references between two webapps. Then you'll have to put the jar you want *and all the class

Re: Can't find classes in jar files in WEB-INF

2007-02-20 Thread David Smith
No just got busy with work. Given what you provided in your last post, it seems to come down to permissions or something overlooked. Are you running the security manager? Have you checked file permissions? Did you restart tomcat (or at least restart the webapp) after building the .jar fi

RE: Monitoring of Tomcat process

2007-02-20 Thread Jean-Sebastien Pilon
You could write a script that wget's the applications home page for a few iterations and that checks that the process is running and restart it if no answer. You could also use nagios with the check_http or with nrpe to check the processes on the app server. See nagios.org on this one, this is qui

Re: Can't find classes in jar files in WEB-INF

2007-02-20 Thread Williams, Allen
> No just got busy with work. Given what you provided in your last > post, it seems to come down to permissions or something overlooked. > Are you running the security manager? I don't think so. I'm rather new to this (this is the first webapp I've attempted to deploy), but I don't see anyt

RE: Problem seting up Tomcat SSL

2007-02-20 Thread Zhan, Jimmy
Hi Anthony, I'm not sure what's your meaning of "Turning the SSLEngine on or off". But, after you change the server.xml, you need restart tomcat. I use tomcat5.5.17, there is a log file under logs of tomcat home dir, named as catalina.-mm-yy.log, before restart tomcat, remove t

RE: Monitoring of Tomcat process

2007-02-20 Thread ScottAnders
If you just want to check that the process is running on the machine, here's a sample bash script that I worked up: #!/bin/bash # This script makes sure certain processes are running and emails support if they aren't # What process to check for PROCESS=tomcat # The command to run COMMAND=$(ps

RE: where to store user-generated files?

2007-02-20 Thread Williams, Allen
I have the same requirement, and had made the same decision (to use file store as opposed to the database). This is probably a dumb question, but: I looked at bodington- are you referring to a course or to downloading their system and going through their code to see how they did it? TIA. Subje

Re: Installing Tomcat 6.0.9 on Sun Solaris

2007-02-20 Thread Daniel Gresh
Caldarale, Charles R wrote: From: Daniel Gresh [mailto:[EMAIL PROTECTED] Subject: Re: Installing Tomcat 6.0.9 on Sun Solaris When I try to setup a $CATALINA_BASE by moving the aforementioned directories to $HOME/dtomcat, I get the error I posted in my original message. The real question

Fw: Tomcat & Cobertura

2007-02-20 Thread dhay
bump! Can anyone explain what are the differences between tomcat5.exe and startup.bat? cheers, David - Forwarded by David Hay/Lex/Lexmark on 02/20/2007 11:12 AM - [EMAIL PROTECTED]

RE: Tomcat & Cobertura

2007-02-20 Thread Sheets, Jerald
Startup.bat calls catalina.bat which calls tomcat5.exe --jms -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 20, 2007 11:14 AM To: Tomcat Users List Subject: Fw: Tomcat & Cobertura bump! Can anyone explain what are the differences between t

RE: where to store user-generated files?

2007-02-20 Thread Peter Crowther
> From: Williams, Allen [mailto:[EMAIL PROTECTED] > This is probably a dumb question, but: I looked at > bodington- are you referring to a course or to downloading > their system and going > through their code to see how they did it? I'm referring to going through their code - *if* you can face

RE: Tomcat & Cobertura

2007-02-20 Thread Caldarale, Charles R
> From: Sheets, Jerald [mailto:[EMAIL PROTECTED] > Subject: RE: Tomcat & Cobertura > > Startup.bat calls catalina.bat which calls tomcat5.exe You apparently haven't actually looked at the scripts. The catalina.bat script does not use tomcat5.exe; it starts up Tomcat with the standard Java launc

Re: Tomcat 5.5: PROPFIND fails with 501 for non-existent resource

2007-02-20 Thread Werner Donné
Hi, It was caused by a context mix-up by myself. My apologies for the post. Regards, Werner. -- Werner Donné -- Re Engelbeekstraat 8 B-3300 Tienen tel: (+32) 486 425803 e-mail: [EMAIL PROTECTED] - To start a new topic, e-m

RE: Tomcat & Cobertura

2007-02-20 Thread dhay
Thanks...any idea of what would cause this issue? cheers, David "Sheets, Jerald" <[EMAIL PROTECTED]

RE: Tomcat & Cobertura

2007-02-20 Thread dhay
Okso back to my original question! ;-) Any idea what's hidden in tomcat5.exe that is different from running startup.bat, and prevents Cobertura from recognizing when the server is shutdown? cheers, David x54680

RE: where to store user-generated files?

2007-02-20 Thread Williams, Allen
Well, all things considered, that was one of the most entertaining emails I've read today! Thanks for the info, too. Do you know of any reference that addresses this, how to map the external directories and use them in a secure fashion? -Original Message- From: Peter Crowther [mailto:[

RE: Installing Tomcat 6.0.9 on Sun Solaris

2007-02-20 Thread Nelson, Tracy M.
| From: Daniel Gresh [mailto:[EMAIL PROTECTED] | Sent: Monday, 19 February, 2007 15:43 | | I cannot run "tar xvfz jsvc.tar.gz", as the | -z argument is not being recognized. The directions said GNU TAR was | needed, so I searched the web for that, but I came to a confusing site | that said somethi

RE: Tomcat & Cobertura

2007-02-20 Thread Sheets, Jerald
Most likely something to do with Windows support/pathing, etc. We don't run Windows Tomcat, so I can't answer your question in that respect. Our load prevents us from using Windows in production. --jms -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday,

Re: Tomcat & Cobertura

2007-02-20 Thread David Delbecq
I took a look at tomcat.exe, it is a renamed service wrapper from common daemon (http://jakarta.apache.org/commons/daemon/procrun.html) It is invoked with //IS// parameter to install the service. Parameters that are given to this installation command are memorized 'somewhere' and used to run the se

RE: Installing Tomcat 6.0.9 on Sun Solaris

2007-02-20 Thread Daniel Gresh
Oh I see. I did gunzip the file and run tar on it. The reason I was confused though is because the instructions on the Tomcat site said I need to run autoconf from the jsvc-src directory, but I could not find any autoconf file anywhere. Therefore, I figured I unzipped it wrong or something. I'm ru

RE: Tomcat & Cobertura

2007-02-20 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Subject: RE: Tomcat & Cobertura > > Any idea what's hidden in tomcat5.exe that is different from > running startup.bat, and prevents Cobertura from recognizing > when the server is shutdown? The service launcher (tomcat5.exe) has more control

RE: Installing Tomcat 6.0.9 on Sun Solaris

2007-02-20 Thread Caldarale, Charles R
> From: Daniel Gresh [mailto:[EMAIL PROTECTED] > Subject: RE: Installing Tomcat 6.0.9 on Sun Solaris > > The reason I was confused though is because the instructions > on the Tomcat site said I need to run autoconf from the jsvc-src > directory, but I could not find any autoconf file anywhere. >

RE: Installing Tomcat 6.0.9 on Sun Solaris

2007-02-20 Thread Daniel Gresh
Oh I see, thanks a lot. On Tue, 2007-02-20 at 14:44, Caldarale, Charles R wrote: > > From: Daniel Gresh [mailto:[EMAIL PROTECTED] > > Subject: RE: Installing Tomcat 6.0.9 on Sun Solaris > > > > The reason I was confused though is because the instructions > > on the Tomcat site said I need to ru

Re: Expression Language in JSP and JasperException

2007-02-20 Thread Piotr Kiraga
> The problem is that there could be a class that has no property with > name result. In another case there could be another class (bean) that > has such property (than of course it works fine, but at first case > Tomcat throws exception). > Maybe but let's keep debugging simple. The expressi

Re: Found a product for running Tomcat off CDROM -have anybody tried it?

2007-02-20 Thread Stephen Souness
Interesting that the Stunnix website appears to make no mention of who is actually behind it the product. Also interesting that you have posted a very similar message to a python mailing list, subject: "Found a product for running Python-based websites off CDROM -have anybody tried it?" -- S

Re: Tomcat & Cobertura

2007-02-20 Thread David Delbecq
>From sun java doc: Registers a new virtual-machine shutdown hook. The Java virtual machine shuts down in response to two kinds of events: The program exits normally, when the last non-daemon thread exits or when the exit (equivalently, System.exit) method is invoked, or The virtual machine is t

Re: Expression Language in JSP and JasperException

2007-02-20 Thread David Smith
Ok forgive me now, but this is getting confusing. Where does result come into this picture? Were you expecting actionBean to be an instance of a different class? You aren't offering a lot to go on here. --David Piotr Kiraga wrote: > The problem is that there could be a class that has

RE: Tomcat & Cobertura

2007-02-20 Thread dhay
Hi Chuck, Digging through the Cobertura code, it looks like it's making the following call: Runtime.getRuntime().addShutdownHook(new Thread(saveTimer)); it's run() method simply has the call to save the project data. This should be "guaranteed" to run (with the usual limitations of sudden

Persisting Sessions to Database for Fault-Tolerance

2007-02-20 Thread Nathan Hook
I posted this question/idea to a forum and received no responses. I am hoping to get some thoughtful discussion/ideas from this mailing list... The company I am working for is trying to get our application to "Enterprise Strength" and have been working on server failover issues. I've never ha

Mod_jk & mod_rewrite on same app

2007-02-20 Thread romain . bourgue
Hi, I have a webapp "/app" installed on 2 Tomcat servers : one server is production "t1" and the other, "t2", is development. How can I, from a single apache (httpd) server, in a single virtualhost, redirect /app to /app on t1 and /app_dev to /app on t2 ? I tried the following but /app is t

Re: Classloading scenario

2007-02-20 Thread Luis Rivera
Hi, In my experience, since I have to use the JNI, I am forced to use the shared space for some classes. The only way I made it work is to place everything that is referenced by the classes in the shared space, in the shared space. The classes in WEB-INF/.. have no problems accessing the shared

Re: Persisting Sessions to Database for Fault-Tolerance

2007-02-20 Thread Hassan Schroeder
On 2/20/07, Nathan Hook <[EMAIL PROTECTED]> wrote: The company I am working for is trying to get our application to "Enterprise Strength" and have been working on server failover issues. As of right now I'm not a fan of the current clustering solution that is offered by tomcat Because? --

Re: mod_jk configuration for production

2007-02-20 Thread Rainer Jung
What's your idea why you configured a socket timeout of 2? nuka schrieb: > Hello, > > I am facing to a problem concerning apache-tomcat configuration via mod_jk > for our production environment. We are using Apache: 2.0.55, Tomcat 5.0, > mod_jk 1.2.15. > > Our first problem has been raised some

[OT] RE: Found a product for running Tomcat off CDROM -have anybody tried it?

2007-02-20 Thread Jason Pyeron
But it could be a useful spam. As I read it and said to myself, "oh, maybe we could use that here" and then discovered that it does not allow use to use MySQL w/JDK and did not mention which version of tomcat it was. Then the costs, we don't mind paying costs, but not 3/4k$ to a fly by night. Oh

Re: Mod_jk & mod_rewrite on same app

2007-02-20 Thread Rainer Jung
Have a look at: http://tomcat.apache.org/connectors-doc/reference/apache.html especially the directive JkWorkerIndicator. If you combine SetHandler jakarta-servlet (this tells apache to let mod_jk handle the request) with setting the environment variable whose name ist set via JkWorkerIndicato

Re: [OT] mod_jk configuration for production

2007-02-20 Thread nuka
This configuration was done some time ago by someone else. I don't believe there is a specific reason for this parameter configuration. I believe that this should be a default dev configuration. Rainer Jung-3 wrote: > > What's your idea why you configured a socket timeout of 2? > > nuka sch

overlapped parameters between sessions

2007-02-20 Thread WILLIAM PARRA
Hi, I'm currently using a Tomcat 4 container for our web applications (jsp's, servlets). When passing parameters with get metod, with many users (about 200); some parameters, are overlapped between sessions. There is a special configuration in Tomcat when i work with sessions?? The Tomcat v

Re: [OT] mod_jk configuration for production

2007-02-20 Thread Rainer Jung
Then start reading on http://tomcat.apache.org/connectors-doc/reference/workers.html what your configuration means. You will notice, that a value of 2 for the socket_timeout does not really make any sense. Regards, Rainer nuka schrieb: > This configuration was done some time ago by someone els

RE: overlapped parameters between sessions

2007-02-20 Thread Caldarale, Charles R
> From: WILLIAM PARRA [mailto:[EMAIL PROTECTED] > Subject: overlapped parameters between sessions > > When passing parameters with get metod, with many > users (about 200); some parameters, are overlapped > between sessions. If you're speaking of parameters taken from a URL, they are relative t

RE: overlapped parameters between sessions

2007-02-20 Thread Propes, Barry L [GCG-NAOT]
starting to wonder if that's maybe happening to me some, too, though I've not confirmed it any of the logs yet. -Original Message- From: WILLIAM PARRA [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 20, 2007 4:00 PM To: Tomcat Users List Subject: overlapped parameters between sessions

Re: request.getParameter() in JSP misinterpreting foreign characters

2007-02-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ramez, Ramez Ghazzaoui wrote: > Thank you guys. Sounds like I need to either write or find a method that > converts strings to UTF-8. I'll try this tomorrow. Generally, java.net.URLEncoder.encode(yourString, "UTF-8") will do this for you quite well.

Re: overlapped parameters between sessions

2007-02-20 Thread WILLIAM PARRA
Hi, I pass an parameter to identify the type user. With this parameter, i define if show one page.. or other. Some times the parameter requested, was changed. In which I can be failing? Excuse me for my bad english level. William Enrique Parra Alba Ingeniero De Sistemas Universidad Peda

RE: overlapped parameters between sessions

2007-02-20 Thread Caldarale, Charles R
> From: WILLIAM PARRA [mailto:[EMAIL PROTECTED] > Subject: Re: overlapped parameters between sessions > > I pass an parameter to identify the type user. With this > parameter, i define if show one page.. or other. Some times > the parameter requested, was changed. Do you ever store the par

Re: Expression Language in JSP and JasperException

2007-02-20 Thread Eric Haszlakiewicz
On Tue, Feb 20, 2007 at 03:23:32PM -0500, David Smith wrote: > Ok forgive me now, but this is getting confusing. Where does > result come into this picture? Were you expecting actionBean to be an > instance of a different class? You aren't offering a lot to go on here. That's what it sou