Re: Tomcat and CRL(s) Certification Revocation Lists

2006-05-11 Thread Jack
Hi Jeff, you have the keystore type set as PKCS12 even though the CRL is a PEM format file (and hence not PKCS12 format). PKCS12 contains the private key as well as the cert and public key - which is not applicable for the CRL file so this might be why it is getting confused. You could try remov

Re: Help!Tomcat crashes:Waiting for instance(s) to be deallocated

2006-05-11 Thread Martyn Hiemstra
Hi Starki78 I had this problem when using a singelton class that stored a datasource in it. Everytime I pressed F5 really fast the web server would hang and when I shutdown I got that same message. Apparently when pressing F5 very fast instead of the singelton only using 1 datasource (The one

Tomcat (Base?) directory

2006-05-11 Thread Dirk Moolman
Hi, I am sorry for posting such simple questions to the list, but I am really pushed for time (new servers have to go live), and I have not worked with Tomcat before. I have successfully installed Tomcat, and someone helped me to confirm that it was working by using CATALINA_BASE=/src/www/tomcat/d

loading context.xml from a directory / war

2006-05-11 Thread tv
Hello, I struggle with loading context.xml from a build directory (and war package). On our development server we have a directory with one of our projects, containing the usual structure - doc, src, etc. If the compile works fine, the compiled classes etc. are copied to the build directory, inclu

Multiple browser windows sharing the same session - dirty hack solution

2006-05-11 Thread Peter Hubbard
Quite simply, if you have already logged in to the system, you get kicked out until later. Like so: HttpSession session = request.getSession(true); if (session.getAttribute("details")!=null) { log.warn("Already logged in."); redirect="/errors/alreadyloggedin.jsp"; } else

RE: Tomcat (Base?) directory

2006-05-11 Thread Tim Lucia
Did you include the ROOT/ directory from the old installation's webapps directory? That is where the welcome page lives. Tim -Original Message- From: Dirk Moolman [mailto:[EMAIL PROTECTED] Sent: Thursday, May 11, 2006 4:52 AM To: Tomcat Users List Subject: Tomcat (Base?) directory Hi,

When is init() called?

2006-05-11 Thread Martin Grogan
Hi all, I'm new to the list. I was trying to find out exactly when Tomcat will call a servlets init() method. Is it a) When tomcat is restarted or b) When I restart my web-app context from the Tomcat manager panel. I ask because we run web-apps on a shared hosting server and don't have co

RE: Tomcat (Base?) directory

2006-05-11 Thread Dirk Moolman
-Original Message- From: Tim Lucia [mailto:[EMAIL PROTECTED] Sent: 11 May 2006 01:22 PM >Did you include the ROOT/ directory from the old installation's webapps >directory? That is where the welcome page lives. Yes, I did, thank you - I basically ran a TAR in the parent directory of

RE: Tomcat (Base?) directory

2006-05-11 Thread Dirk Moolman
Could it be because my tar & extract copied the symbolic links of the demoserver as well ? Ie. the conf directory is not a real directory, but a symbolic link to the conf directory of the demo server -Original Message- From: Tim Lucia [mailto:[EMAIL PROTECTED] Sent: 11 May 2006 01

RE: When is init() called?

2006-05-11 Thread Tim Lucia
init() is called when the servlet is instantiated. If you have 1 then it will get called when the web app is (re)started. Otherwise, it will get called when the first request for it is made. To answer you're a) or b) question, it is both a and b. Tim -Original Message- From: Martin Gr

Client-cert authentication across web-applications

2006-05-11 Thread rnilsen
Hi, I have been thinking about replacing the legacy username/password system used today in my web-applications to use autentication with personal certificates via client-cert authentication. The problem is that I need to run multiple instances of the same web-application with different users in ea

RE: Tomcat Shutdown Unexpectedly

2006-05-11 Thread Dan Golob
Hello Vasily, Thanks for the information, but in all honesty I don't think that this is the solution. The links you provided point to several errors that occur, which aren't present on our machines. On our machines the tomcat logs are completely devoid of any reason for the crash, and the Window

JConsole on AIX?

2006-05-11 Thread MERVYN . SANDS
Hi, When using JConsole on AIX (IBM JDK) and selecting the 'MBeans' tab I don't see the 'Catalina' branch in the Tree on the left hand side and therefore can't manage any Tomcat MBeans. I can see JMImplementation, java.lang and java.util.logging and thats it. JConsole works fine on Solaris. Perha

SSL problem in Tomcat

2006-05-11 Thread Gavin Alexander
Hi, I am having a problem getting Tomcat to work properly with SSL. My server.xml file contains the lines shown below, which appear fine to me. Tomcat works fine with html pages, JSPs and servlets until such time as they require SSL, and then I get the following message: Unable to con

Re: Multiple browser windows sharing the same session - dirty hack solution

2006-05-11 Thread David Ron
I think that you first have to define what you mean when you say, "logged in". When a person closes the browser window, have they logged out? How does Tomcat know this? Or, does the logout occur when the session is garbage collected? So, without knowing what "logged in" really means, how ca

Application started/stopped notification

2006-05-11 Thread Asaf Lahav
A web service application I have which is running under tomcat is required to perform an initialization process right after tomcat has loaded my webservice application. How can I get an invocation of some sort that would indicate the application is up and running?   And also, I would lik

Re: Multiple browser windows sharing the same session - dirty hack solution

2006-05-11 Thread Michael Jouravlev
On 5/11/06, Peter Hubbard <[EMAIL PROTECTED]> wrote: how to allow individual browser windows and tabs to have individual session data. Is there a real solution for this, and if so could some kind soul please point me in the right direction? You can't on Firefox, but "one window -> one session"

Re: Application started/stopped notification

2006-05-11 Thread Michael Jouravlev
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/Servlet.html#init(javax.servlet.ServletConfig) http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/Servlet.html#destroy() On 5/11/06, Asaf Lahav <[EMAIL PROTECTED]> wrote: A web service application I have which is running u

[OT] htmlparser

2006-05-11 Thread MW Janssen
Hi, has someone classes (source) for spidering with the use of org.htmlparser? My spider has memory leaks I cant solve... thx in advanced. Maarten -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.392 / Virus Database: 268.5.6/336 - Release Date: 10-5-200

RE: Application started/stopped notification

2006-05-11 Thread Tim Lucia
See also ServletContextListener as that will run on app start/stop regardless of the servlet state. And you don't need a servlet either. Tim -Original Message- From: Michael Jouravlev [mailto:[EMAIL PROTECTED] Sent: Thursday, May 11, 2006 12:10 PM To: Tomcat Users List Subject: Re: Appl

Re: Multiple browser windows sharing the same session - dirty hack solution

2006-05-11 Thread David Rees
On 5/11/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: On 5/11/06, Peter Hubbard <[EMAIL PROTECTED]> wrote: > how > to allow individual browser windows and tabs to have individual session > data. Is there a real solution for this, and if so could some kind soul > please point me in the right di

RE: Application started/stopped notification

2006-05-11 Thread Asaf Lahav
Thanks Michael Asaf Lahav VP R&D, Prima Grid LTD. Cellular: 972-54-4717955 Phone: 972-3-6540255 Fax: 972-3-6540254 -Original Message- From: Michael Jouravlev [mailto:[EMAIL PROTECTED] Sent: Thursday, May 11, 2006 6:10 PM To: Tomcat Users List Subject: Re: Application star

Unable to open the service registry key

2006-05-11 Thread MinhTram
Good afternoon, After spending all day so far on this, I think it's time to consult the experts. I just installed Tomcat 5.1.15 under my Windows 2000 Pro Administrator account, as a service. All seems well until I log into my Ron account and I get the message: "Access is denied. Unable to open

More virtual hosting problems!!

2006-05-11 Thread Rizwan Merchant
Hi all! I have been following the mailing list and it seems this is a common problem amongst many users. But I could not find a solution to my problem, hence this post. Hope someone can help me. I am trying to set up a simple virtual host for the domain www.riz.com on tomcat (listening on p

Re: Multiple browser windows sharing the same session - dirty hack solution

2006-05-11 Thread Paul Singleton
Peter Hubbard wrote: ... I've not found any other ways around this problem, or solutions of how to allow individual browser windows and tabs to have individual session data. One (the only?) sure way to allow multiple sessions to coexist in a browser or PC is to spurn cookies and use only URL re

properties files external to the war

2006-05-11 Thread Jay Wright
I am using tomcat 5.0.28 on Windows XP to deploy a war that is looking for an app.properties file as a classpath resource. But app.properties is not *in* the war. I need to place it on the classpath where the war's classpath resource loaders (Spring, actually) can find it. I thought I cou

Re: More virtual hosting problems!!

2006-05-11 Thread Rizwan Merchant
I got this working now by moving the Context definition from the ROOT.xml to the server.xml under the tag as follows autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> I got rid of the www.riz.com directory under $CATALINA_HOME/conf/Catal

Problem with tomcat translating docBase to absolute path

2006-05-11 Thread Johnson, Tony S.
HI, I have a context.xml file where I specify: But when I look at the context using the admin app I see that Tomcat has translated the docbase to: Document Base: /a/surrey01/vol/vol2/g.glast_ground/docs The problem is that /nfs/slac/g/glast/ground/docs is an NFS directory which is mount

chroot'ing Tomcat and the Brittain BadInputFilterValve

2006-05-11 Thread Mark Petrovic
Good day. After putting this off for too long, I finally got around to experimenting with chroot'ing Tomcat. My travails may help someone going through the same process http://www.petrovic.org/blog/?p=126 Same story for finally deploying the J. Brittain BadInputFilterValve under Tomcat 5.5.12

can I use shell variables in context.xml?

2006-05-11 Thread Nikita Tovstoles
Is the following possible? where $RESOURCE_NAME is set in shell prior to starting Tomcat? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: More virtual hosting problems!!

2006-05-11 Thread Parsons Technical Services
One issue is that the path element can only be set to "" when you use it in the server.xml. Doug - Original Message - From: "Rizwan Merchant" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Thursday, May 11, 2006 1:37 PM Subject: Re: More virtual hosting problems!! I got this w

Arabic Support on tomcat 5.0.28

2006-05-11 Thread Ahmed Talaat
Hi, Any way to submit arabic chars through jsps? I need to get the following code to work.. When i submit arabic characters using the this jsp, tomcat just replaces them with ''. <%@ page language="java" contentType="text/html; charset=cp1256" pageEncoding="cp1256"%> Insert title h

Help with MD5 key generation with tomcat 5

2006-05-11 Thread Devireddy, Nagendra Reddy (STSD)
Hi I am getting the following error after executing this command .. "$JRE"/bin/java -classpath "$CATALINA_HOME"/server/lib/catalina.jar org.apache.catalina.realm.RealmBase -a MD5 nagendra Exception in thread "main" java.lang.NoClassDefFoundError: javax/management/MBeanRegistration at