Re: Tips needed: restarting tomcat without risk of java.net.BindException

2006-11-17 Thread Mikolaj Rydzewski
Bryce Nesbitt wrote: Do we have to wait at least 20 seconds to be sure the port is clear? The easiest thing is to do 'killall -9 java' ;-) I run Tomcat under its own account. And restart script looks like this: #!/bin/sh ~/bin/shutdown.sh sleep 10 killall -9 java ~/bin/startup.sh There's

Configuring a security manager under Windows with Tomcat 5.5

2006-11-17 Thread Ignacio Iborra
Hello. I've been reading the jakarta documentation about how to set a Security Manager in Tomcat 5.5 under Windows, in order to apply the permissions in catalina.policy file. The Jakarta documentation page says that I must start the server with the command: %CATALINA_HOME%\bin\catalina start

Re: Configuring a security manager under Windows with Tomcat 5.5

2006-11-17 Thread Markus Schönhaber
Ignacio Iborra wrote: I've been reading the jakarta documentation about how to set a Security Manager in Tomcat 5.5 under Windows, in order to apply the permissions in catalina.policy file. The Jakarta documentation page says that I must start the server with the command:

Re: Serving up applets

2006-11-17 Thread Martin Gainty
If your client does not absolutely require an applet then you should consider re-factor as jsp/servlet (Struts/Spring/JSF come to mind) Then if you want to access some resource specific function you can accomodate the access via a grant in catalina.policy In either case you will have to

Realtime notification of ThreadPool logFull

2006-11-17 Thread jwboring
I need to be notified when ever a Tomcat v5.5 server is over the threadpool limit. I am already monitoring log4j log messages but the logFull message appears to me to be a System.out log, by-passing log4j (catalina.out text shown below). Nov 17, 2006 12:08:25 PM

FW: Accessing Tomcat Manager failure

2006-11-17 Thread Rusty Mccloud
Regards, Rusty From: Rusty Mccloud Sent: Friday, November 17, 2006 11:22 AM To: 'users@tomcat.apache.org' Subject: Accessing Tomcat Manager failure I have Apache Tomcat 5.0.19 deployed remotely from the Apache installation. I did not do the

RE: Realtime notification of ThreadPool logFull

2006-11-17 Thread Nelson, Tracy
| From: jwboring [mailto:[EMAIL PROTECTED] | Sent: Friday, 17 November, 2006 10:39 | | I need to be notified when ever a Tomcat v5.5 server is over the | threadpool | limit. I am already monitoring log4j log messages but the logFull message | appears to me to be a System.out log, by-passing log4j

resin to tomcat conversion question

2006-11-17 Thread John McCoy
We are finishing our conversion from running RHEL 3 and resin to RHEL 4and Tomcat5. Most things have gone well, some memory tuning was needed of course. However our firewall admin has noticed that the server is making constant queries to w3.org and Sun Clearly at the top of many documents is

Re: Accessing Tomcat Manager failure

2006-11-17 Thread Martin Gainty
inside your $CATALINA_HOME/conf/server.xml display for us your UserDatabase entry here is mine as an example Resource name=UserDatabase auth=Container pathname=conf/tomcat-users.xml / M- This e-mail communication and any attachments may contain confidential and privileged

Re: Filters, Security, Tomcat and Configuration

2006-11-17 Thread James Crosson
Thanks for your kind reply. I am having a bear of a time figuring out why I can't compile my filter. It is giving me the simple java error: com\x\view\filters\AccountFilter2.java:20: cannot find symbol symbol : method getURI() location: interface javax.servlet.http.HttpServletRequest

How to use logging in Tomcat correctly (declare Logger Static or not) ?

2006-11-17 Thread Mon Cab
Good day I am having a hard time understanding how to use commons logging on Tomcat. The struts.apache.org suggest the following usage (presumably for business objects) (taken from: http://struts.apache.org/1.x/userGuide/building_controller.html ) package com.foo;

Re: Filters, Security, Tomcat and Configuration

2006-11-17 Thread Gregor Schneider
Actually I doubt that you've got the file servlet-api.jar in your classpath - it wouldn't come up with such an error-message than. You might want to use an antscript to compile your servlet, here's a snippet from mine: target name=compile depends=init description=compile servlet

Re: Filters, Security, Tomcat and Configuration

2006-11-17 Thread James Crosson
Thanks so much for your help. The reason for the error is beacuse the method is called getRequestURI. I figured it out shortly after posting. Sorry to post too much. James On 11/17/06, Gregor Schneider [EMAIL PROTECTED] wrote: Actually I doubt that you've got the file servlet-api.jar in your

Web Application is unloaded from the server question

2006-11-17 Thread John Cruz
First of all, I'm new to Tomcat so forgive me if this question was already posted. I did not find the answer in the archives. I'm using Tomcat 5.5.20 (Standalone) JVM 1.5 from Sun, on a Red Hat Linux Box OS version 2.6 on i386 box. I was under the assumption that when a session timeouts, the

Re: Accessing Tomcat Manager failure

2006-11-17 Thread Gregor Schneider
Please post the file $CATALINA_HOME/conf/server.xml so that we can see where how the ressource for your authorization is defined. Greg -- what's puzzlin' you, is the nature of my game - To start a new topic, e-mail:

Re: Filters, Security, Tomcat and Configuration

2006-11-17 Thread Gregor Schneider
ooops - must have overlooked that one... maybe one hint: try to use a free ide with automatic method-completion, i.e. eclipse (http://www.eclipse.org), and you'll get around those problems in the future cheers greg -- what's puzzlin' you, is the nature of my game

RE: Web Application is unloaded from the server question

2006-11-17 Thread Caldarale, Charles R
From: John Cruz [mailto:[EMAIL PROTECTED] Subject: Web Application is unloaded from the server question I was under the assumption that when a session timeouts, the specific Web Application is unloaded from the server; thus, reducing the runtime memory footprint of the tomcat server.

Re: Filters, Security, Tomcat and Configuration

2006-11-17 Thread Martin Gainty
http://www.docjar.com/docs/api/javax/servlet/http/HttpServletRequest.html try getRequestURI (instead of getURI) HTH, M- This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the

problems with connector

2006-11-17 Thread Enrico Donelli
Hi all, I'm having some problems with the mod_jk connector. In mod_jk logs file I have a lot of lines like [Fri Nov 17 23:07:18 2006] [12236:7072] [error] jk_child_init::mod_jk.c (2406): Attachning shm:/etc/apache2/logs/jk-runtime-status errno=2 and from time to time the connector completely

Applet - Servlet Communication Losing Session ID Crossing Firewall

2006-11-17 Thread Rick Strong
RE Tomcat 5, applet, servlet, firewall, other security. Hi All, Somewhat new to Applet/Servlet work, and in need of some assistance. My app has an applet front end and a servlet back end. The user first contacts the servlet, which writes an HTTP response back including an APPLET tag, passing

Re: problems with connector

2006-11-17 Thread Rainer Jung
Please give details on your mod_jk version and concerning your configuration (mod_jk config inside httpd.conf and workers.properties). Errno 2 looks line not such file or directory. So does /etc/apache2/logs/jk-runtime-status exist as a file and is the apache user allowed to write into it. Does

Re: Applet - Servlet Communication Losing Session ID Crossing Firewall

2006-11-17 Thread Rainer Jung
No solution, but: 1) Enable Tomcats access log to check, whether the request contains the path parameter (validate your hypotheses) 2) Send a request like it should look like from the same browser, but not via the applet, instead directly via the address bar and check the access log again. 3)

Re: Applet - Servlet Communication Losing Session ID Crossing Firewall

2006-11-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rainer and Rick, Rainer Jung wrote: This way you can make sure, your problem really comes from the missing URL part, if your applet really tried to send it and if it gets stripped from any kind of request. It is possible that Rick is getting his

Starting Tomcat

2006-11-17 Thread David Schulberg
Hi, Can run Tomcat as a windows service. Want to be able to run startup.bat but when I run it the output is: F:\apache-tomcat-5.5.20\binstartup Using CATALINA_BASE: F:\apache-tomcat-5.5.20 Using CATALINA_HOME: F:\apache-tomcat-5.5.20 Using CATALINA_TMPDIR:

Re: org.apache.jasper.JasperException: useBean class attribute List is invalid.

2006-11-17 Thread Bill Barker
Lijin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Please help me in the following problem occuring in my project. One of our project is running currectly in the Tomcat 4 version with one old version of Jasper report. Now we our requirment is that, we have to trasfer it to

Re: How to use logging in Tomcat correctly (declare Logger Static or not) ?

2006-11-17 Thread Bill Barker
Mon Cab [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Good day I am having a hard time understanding how to use commons logging on Tomcat. The struts.apache.org suggest the following usage (presumably for business objects) (taken from:

Re: How to use logging in Tomcat correctly (declare Logger Static or not) ?

2006-11-17 Thread Mon Cab
Thanks Bill This helps a lot. I'm using Log4j, so this is good news. Also, I wont be putting any of my classes in $CATALINA_HOME/shared/lib or $CATALINA_HOME/common/lib. Thanks again. --- Bill Barker [EMAIL PROTECTED] wrote: Mon Cab [EMAIL PROTECTED] wrote in message news:[EMAIL

RE: Starting Tomcat

2006-11-17 Thread Caldarale, Charles R
From: David Schulberg [mailto:[EMAIL PROTECTED] Subject: Starting Tomcat Can run Tomcat as a windows service. Want to be able to run startup.bat but when I run it the output is: snip and nothing happens. This should open up a 2nd command prompt window, which will persist until

Re: JkMountFile not working

2006-11-17 Thread Gilberto E. Espinoza
Hi Mladen: I built mod_jk from the svn trunk and I keep having the same problem. I will follow Rainer's suggestion and open a bug report. Thanks, Gilberto Mladen Turk wrote: Gilberto E. Espinoza wrote: I changed the file tonight and checked that the modified time was tonight's. The