WebDAV characters bug?

2005-10-03 Thread Roland Rabben
I am using Tomcat 5.5.9 (on Windows XP) and WebDAV to upload files to my server. However it seems to be a bug or limitation in the Tomcat WebDAV that limits the use of some characters I frequently use. Unsupported characters are : ; (semicolon) + (plus) # (pound) I know these are reserved

RE: How to logout after login with JDBCRealm?

2005-10-03 Thread Raghupathy,Gurumoorthy
What type of authentication are you using ? FORM / BASIC ? If Basic then no you cant If form based then ( sesssion.invalidate() ) Guru -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 03 October 2005 03:08 To: Tomcat Users List Subject: How to logout after

http connector secure=true

2005-10-03 Thread Reynir Hubner
Hi, I'm trying to have one connector on tomcat open with secure=true with out it being SSL or https. I just want request.isSecure() return true. This is the setup for the connector : Connector port=9020 maxThreads=150 minSpareThreads=25 maxSpareThreads=75

Getting NoClassDefFound error for Rectangle.class (rt.jar)

2005-10-03 Thread Bob Hall
I'm getting a NoClassDefFoundError in a FOP class, PageViewport. At line 89, the code is attempting to do 'new Rectangle()'. The same code works fine on 3 other systems (2 Windows, and one Linux). It does not work on a Linux box. The two linux boxes have the same version of Java (1.4.2_08-b03)

Re: FAQ? shutdown.bat not killing java process on Windows

2005-10-03 Thread Jon Wingfield
Yep. It's a FAQ, but not in the FAQ. Tomcat not quitting generally means your webapp has started a non-daemon thread which does not exit when the webapp is destroyed. If so, shut them down in a ServletContextListener. If you aren't explicitly creating threads in your webapp then the usual

Re: FAQ? shutdown.bat not killing java process on Windows

2005-10-03 Thread David Delbecq
May i mention also the use of *java.util.Timer in forms other than new **java.util.Timer*(true); If used in any other form, it silently creates a non daemon thread. Jon Wingfield a écrit : Yep. It's a FAQ, but not in the FAQ. Tomcat not quitting generally means your webapp has started a

Re: Getting NoClassDefFound error for Rectangle.class (rt.jar)

2005-10-03 Thread David Delbecq
if it's *java.awt.Rectangle* and the computer you are trying to run fop on does not have graphical environment, maybe you should wonsider using headless java see http://java.sun.com/j2se/1.4.2/docs/guide/awt/AWTChanges.html#headless Bob Hall a écrit : I'm getting a NoClassDefFoundError in a FOP

Re: FAQ? shutdown.bat not killing java process on Windows

2005-10-03 Thread Larry Meadors
So, once you know the threads that are left, what is the cleanest way to kill them? I have had this problem too, but since it was on a *nix platform, and just used 'kill' to get rid of the parent process. Larry On 10/3/05, Jon Wingfield [EMAIL PROTECTED] wrote: Yep. It's a FAQ, but not in the

Re: FAQ? shutdown.bat not killing java process on Windows

2005-10-03 Thread David Delbecq
That's quite a problem ;) Actually your threads should be coded in such a way you may a send a notification in java telling him to finish his job. eg: myNonDaemonThreadICreatedMySelf.stopWorking(); which would set some flag in Thread and then code in your Thread reading the flag knows it has to

Re: FAQ? shutdown.bat not killing java process on Windows

2005-10-03 Thread Larry Meadors
Heh, I'll call IBM and have them do just that. ;-) It happens in their JT400 classes. Larry On 10/3/05, David Delbecq [EMAIL PROTECTED] wrote: That's quite a problem ;) Actually your threads should be coded in such a way you may a send a notification in java telling him to finish his job.

Re: Getting tomcat instance information into webapp

2005-10-03 Thread Kyle
David Kerber wrote: Then how do I isolate the instances of tomcat (and their respective server.xml's? Do I need multiple installations of tomcat on my disk? Start each 'instance' of tomcat with separate CATALINA_BASE env. vars. This enables a different server.xml for each instance

Re: Getting tomcat instance information into webapp

2005-10-03 Thread David Kerber
Thanks for the suggestions, Kyle! I think either one of those suggestions would be workable; I'll have to do some reading and testing to see which I like better. The only reason I wanted them to run on different ports is so that I don't have to change the url's they connect to during this

Why getting this error?

2005-10-03 Thread Ritchie Gillam
Do anyone out there know why I am getting this Tomcat error? SEVERE: Servlet.service() for servlet jsp threw exception javax.faces.el.EvaluationException: java.lang.OutOfMemoryError: PermGen space at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:206) at

Tomcat + SSL problems!

2005-10-03 Thread Raueber Hotzenplotz
Hello I need my client to communicate with a servlet using secure xmlrpc. Using Apache's SecureWebServer works (got my own TrustManager, HostnameVerifier, selfsigned certificates/keystores for server/client). Accessing Tomcat with a browser (https://localhost:8443) works too (selfsigned

RE: Why getting this error?

2005-10-03 Thread Peter Crowther
From: Ritchie Gillam [mailto:[EMAIL PROTECTED] java.lang.OutOfMemoryError: PermGen space Although your Java virtual machine has enough memory allocated to it, something (probably the number of classes being loaded, or the number of times you're reloading the webapp) is causing the permanent

RE: Why getting this error?

2005-10-03 Thread Ritchie Gillam
Thanks Peter! Can you provide an example please? Is this defined somewhere in the server.xml file? Thanks Ritchie Gillam Programmer Analyst, Information Services, Halifax Regional Municipality Email: [EMAIL PROTECTED] Phone: (902) 490-6167 Fax: (902) 490-6583 [EMAIL PROTECTED] 10/03/05

RE: Why getting this error?

2005-10-03 Thread Peter Crowther
From: Ritchie Gillam [mailto:[EMAIL PROTECTED] Thanks Peter! Can you provide an example please? Is this defined somewhere in the server.xml file? You should be able to set JAVA_OPTS, either within $CATALINA_HOME/bin/catalina (from memory - CHECK! - it's too long since I had to configure

RE: Why getting this error?

2005-10-03 Thread Trung Nguyen
Ritchie, No, it's not in server.xml, It's in $TOMCAT_HOME/bin/catalina.sh, add this line below: JAVA_OPTS=-server -XX:MaxPermSize=256m Hope this help --Trung -Original Message- From: Ritchie Gillam [mailto:[EMAIL PROTECTED] Sent: Monday, October 03, 2005 9:34 AM To:

RE: Why getting this error?

2005-10-03 Thread Ritchie Gillam
Thanks, I will set the JAVA_OPTS variable. Is there a way to see what the Size is now before I change it? Thanks, Ritchie Gillam Programmer Analyst, Information Services, Halifax Regional Municipality Email: [EMAIL PROTECTED] Phone: (902) 490-6167 Fax: (902) 490-6583 [EMAIL PROTECTED]

RE: Why getting this error?

2005-10-03 Thread Trung Nguyen
If you haven't set this variable elsewhere within the box, PermGen defaults to 64MB, otherwise, you can see the size by using ps -avx command --Trung -Original Message- From: Ritchie Gillam [mailto:[EMAIL PROTECTED] Sent: Monday, October 03, 2005 9:48 AM To:

Re: log4j log viewer for tomcat

2005-10-03 Thread Partheeban Boopathy
You can specify your path to write your in log4j.properties file. Parthi On 10/1/05, matador [EMAIL PROTECTED] wrote: win200x tomcat 5.5.9 jdk 1.5.x log4j 1.2.9 (i think) standard log4j setup with logs going into logs dir under tomcat install. does anyone have any recommendations for a

Aliases for JNDI (JDBC) resources?

2005-10-03 Thread Lisa L. Woodring
I would like to create aliases for a JNDI (specifically, a JDBC) resource, such that I can use multiple names to connect to the same database -- and be able to use the same (i.e. only 1) connection pool for that database. I haven't been able to find anything on how/if this is possible. (I would

RE: Why getting this error?

2005-10-03 Thread Ritchie Gillam
This command don't seem to work? Is there another way to see all of the Parameters for the JVM? Ritchie Gillam Programmer Analyst, Information Services, Halifax Regional Municipality Email: [EMAIL PROTECTED] Phone: (902) 490-6167 Fax: (902) 490-6583 [EMAIL PROTECTED] 10/03/05 10:55 am If you

Re: Aliases for JNDI (JDBC) resources?

2005-10-03 Thread David Smith
To be honest, I think touching the server.xml is the only way to do this. Declare it as a global resource in server.xml and then declare a resource link in all the contexts that need access. --David Lisa L. Woodring wrote: I would like to create aliases for a JNDI (specifically, a JDBC)

Script to create tomcat service on windows?

2005-10-03 Thread David Kerber
Does anybody have a script to create a tomcat service on windows 2000? I'm trying to set my system up to run multiple copies of tomcat at the same time (on different ports, obviously), and can't get the service to create properly. Thanks! Dave

RE: Why getting this error?

2005-10-03 Thread Lisa Woodring
I get the java.lang.OutOfMemoryError: PermGen space error periodically when I use Tomcat Manager to deploy my web application (as opposed to re-starting Tomcat). It eventually runs out of memory on the deploy. However, since I only use the manager for development -- I just restart Tomcat when the

RE: Limiting the number of threads Tomcat 4.1 creates

2005-10-03 Thread Bovy, Stephen J
set sparethreads Stephen Bovy Computer Associates 6100 Center Drive Suite 700 Los Angeles, CA 90045 Tel: (310) 957-3930 Fax: (310) 957-3917 e-mail: [EMAIL PROTECTED] -Original Message- From: Rob Shields [mailto:[EMAIL PROTECTED] Sent: Friday, September 30, 2005 2:31 PM To: Tomcat

RE: Script to create tomcat service on windows?

2005-10-03 Thread Caldarale, Charles R
From: David Kerber [mailto:[EMAIL PROTECTED] Subject: Script to create tomcat service on windows? Does anybody have a script to create a tomcat service on windows 2000? Have you tried the service.bat script that's part of the standard download? - Chuck THIS COMMUNICATION MAY CONTAIN

Re: Script to create tomcat service on windows?

2005-10-03 Thread David Kerber
Caldarale, Charles R wrote: From: David Kerber [mailto:[EMAIL PROTECTED] Subject: Script to create tomcat service on windows? Does anybody have a script to create a tomcat service on windows 2000? Have you tried the service.bat script that's part of the standard download? No, I didn't

Re: WebDAV characters bug?

2005-10-03 Thread Mark Thomas
Looks like a bug to me. Create a bugzilla entry for it and I'll try and take a look before the next release. Mark Roland Rabben wrote: I am using Tomcat 5.5.9 (on Windows XP) and WebDAV to upload files to my server. However it seems to be a bug or limitation in the Tomcat WebDAV that limits

Re: http connector secure=true

2005-10-03 Thread Mark Thomas
When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. To many of the list archiving services and mail clients used by list subscribers this makes your new message appear as part of the old

Catalina.out Message

2005-10-03 Thread Partheeban Boopathy
Hi I have two tomcat5.0.27 instance running in different machine(unix box). After i started my server i opened my catalina.out and i can see the difference in catalina.out file. I am not able to see the timestamp and class name(Bold messages) in one of the machine. I am not sure why its

Re: Script to create tomcat service on windows?

2005-10-03 Thread David Kerber
service.bat doesn't seem to be installed with 5.5.9. I searched the entire HD of two different machines which have that it installed, and that file was not found. I did find the html files with the description of service.bat, but not service.bat itself. Caldarale, Charles R wrote: From:

RE: Script to create tomcat service on windows?

2005-10-03 Thread Caldarale, Charles R
From: David Kerber [mailto:[EMAIL PROTECTED] Subject: Re: Script to create tomcat service on windows? service.bat doesn't seem to be installed with 5.5.9. Get the .zip download, not the emasculated .exe version. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE

RE: FAQ? shutdown.bat not killing java process on Windows

2005-10-03 Thread Phillip Qin
Why bother IBM. In my startup script, I clean up any java process: for i in `ps ax --format ppid,pid,cmd |grep java |egrep ^[[:space:]]*1[[:space:]] |tr -s ' ' |cut -f3 -d ` do echo killing $i... kill -9 $i done -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED]

Re: Script to create tomcat service on windows?

2005-10-03 Thread Seak, Teng-Fong
Yup, 5.5 is very different from 5.0 in that those *.bat files aren't needed/included. And 5.5 no longer needs JAVA_HOME environment variable. David Kerber wrote: service.bat doesn't seem to be installed with 5.5.9. I searched the entire HD of two different machines which have that it

Re: What to put into JAVA_HOME on Windows xp

2005-10-03 Thread Seak, Teng-Fong
It's necessary to stop and restart the service when Java home path is changed. Reboot the PC doesn't help either. I had talked about this in a previous mail but seems like it got passed without catching any attention:

Re: FAQ? shutdown.bat not killing java process on Windows

2005-10-03 Thread Charles Fineman
Thanks (to all). I had suspected this but all of the threads that were left over (used eclipse) seemed like system threads. Turns out the culprit was an RMI server object that was being exported by the webapp (you can browbeat me over that in a different thread... I kept it for backwards

RE: FAQ? shutdown.bat not killing java process on Windows

2005-10-03 Thread Caldarale, Charles R
From: Charles Fineman [mailto:[EMAIL PROTECTED] Subject: Re: FAQ? shutdown.bat not killing java process on Windows Is there another mechanism I ought to be using to initialize (arbitrary) resources for my webapp? A context listener might be what you're looking for. See the Lifecycle

ClassCastException while sharing objects accross applications

2005-10-03 Thread Surya Mishra
Hi, I am trying to share an object between 2 applications deployed on the same tomcat server. I have put the object in the ServletContext in my first application. I access the object using ServletContext.getContext(firstApp).getAttribute(object);. The object comes in fine but it won't let me cast

RE: NoSuchElementException in DeltaRequest

2005-10-03 Thread Steve Mactaggart
When do we expect 5.0.30 to be release as final? I need to deploy the fix to production and I'm a not able to deploy beta versions. Steve -Original Message- From: Rainer Jung [mailto:[EMAIL PROTECTED] Sent: Saturday, 10 September 2005 8:41 PM To: Tomcat Users List Subject: Re:

Re: Getting NoClassDefFound error for Rectangle.class (rt.jar)

2005-10-03 Thread Bob Hall
Thanks, David. I'll try that. If that doesn't do the trick I plan to build fop.jar from source on the target machine. - Bob --- David Delbecq [EMAIL PROTECTED] wrote: if it's *java.awt.Rectangle* and the computer you are trying to run fop on does not have graphical environment, maybe you

Re: Script to create tomcat service on windows?

2005-10-03 Thread David Kerber
Do they still work? I want to create a separate tomcat service so I can run two instances at once (on different ports, obviously). Dave Seak, Teng-Fong wrote: Yup, 5.5 is very different from 5.0 in that those *.bat files aren't needed/included. And 5.5 no longer needs JAVA_HOME

JasperException: Unable to compile class for JSP

2005-10-03 Thread Goo GGooo
Hi all, I've got Tomcat 5.5.9 running on SUSE Linux 9.2, followed tutorial at http://www.coreservlets.com/Apache-Tomcat-Tutorial/ and got it up and running, can see the Tomcat mainpage and run all bundled examples. However when I try a trivial example with HTML forms Tomcat barfs: ===

Easy Servlet Question

2005-10-03 Thread Andrew Pierce
Hello. I realize this is about the stupidest question I could ask but, I've scoured the web, etc. and cannot get an easy example of making servlets actually work with Tomcat. I have written a few Hello World servlets and gotten them to work with Resin but I cannot get even the most simple

Re: JasperException: Unable to compile class for JSP

2005-10-03 Thread Goo GGooo
On 10/4/05, Wendy Smoak wrote: From: Goo GGooo [EMAIL PROTECTED] An error occurred at line: 1 in the jsp file: /name.jsp Generated servlet error: UserData cannot be resolved or is not a type === Files webapps/tut/name.jsp and webapps/tut/WEB-INF/classes/UserData.java are attached.

Re: Getting NoClassDefFound error for Rectangle.class (rt.jar)

2005-10-03 Thread Bob Hall
No joy with -Djava.awt.headless=true; looks a rebuild of FOP on the target system... though that *really* does not make sense. - Bob --- Bob Hall [EMAIL PROTECTED] wrote: Thanks, David. I'll try that. If that doesn't do the trick I plan to build fop.jar from source on the target machine.

Re: Easy Servlet Question

2005-10-03 Thread Andrew Pierce
OK. This was a bit of a simple one. Found my answer with the help of a couple of folks on IRC. Please disregard. Andrew Pierce wrote: Hello. I realize this is about the stupidest question I could ask but, I've scoured the web, etc. and cannot get an easy example of making servlets actually

RE: Script to create tomcat service on windows?

2005-10-03 Thread Caldarale, Charles R
From: David Kerber [mailto:[EMAIL PROTECTED] Subject: Re: Script to create tomcat service on windows? Do they still work? Yes, they still work. (It probably would have taken you less time to try it than to e-mail the question.) I've never seen a justifiable explanation of why the scripts