Re: XML Parse problem in a webapp context.xml

2007-01-26 Thread Pete
Mark, I stated in the original message that the conf/web.xml is unmodified and the problem only happens with certain contents in the META-INF/context.xml after it gets moved from the app into conf/Catalina/localhost directory. -P - Original Message From: Mark Thomas <[EMAIL PROTECTED]

Re: Tomcat as root and security issues

2007-01-26 Thread Jere Retzer
jsvc works well for this but I haven't been able to figure out if it invokes java security, ideally using the catalina.policy. Does anyone know? >>> "Christopher Schultz" <[EMAIL PROTECTED]> 1/26/2007 11:24 AM >>> -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gaurav, Also look at "jsvc", which

About Tomcat's configure

2007-01-26 Thread 悠 妮
Hello All, I have two questions about configure: The first one is that, when I use Tomcat5.0 + Jdk1.5 and start server, I have the error "JAVA_HOME should point to a JDK not a JRE". But I do set the JDK dir to JAVA_HOME. If I use Tomcat5.0 + Jdk1.4, it does work. The second question, when I

FileNotFoundException: When Trying to Use Commons Digester

2007-01-26 Thread James Dekker
Hello there, I am using the Apache Commons Digester as a way to load up and marshal XML config files. Am using Tomcat 5.5.9 and JDK 1.5. I have an init servlet which loads an xml file config file (holding information to two more XML config files). I get the following exception at runtime: IN

Re: 503 Error Servlet is currently unavailable

2007-01-26 Thread Bill Barker
"Christopher Schultz" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Kristen, > > [EMAIL PROTECTED] wrote: >> I am developing a GWT application for Tomcat 4.0.5. I'm getting a 503 >> error: > > Ouch! If you really are "developing

Re: XML Parse problem in a webapp context.xml

2007-01-26 Thread Mark Thomas
Pete wrote: > SEVERE: Parse error in default web.xml This may be the real cause. Check that conf/web.xml is valid Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

resource is unavailable and file extension

2007-01-26 Thread Carl Hagenmaier
I am setting up a Tomcat to develop some new applications. I have a number of files in the application base directory. After starting Tomcat, some of the files are available, but some return a resource is not available message. It seems to have something to do with the file extension; I can a

RE: invalid LOC header (bad signature) when running in servlet only

2007-01-26 Thread Caldarale, Charles R
> From: Claude Warren Jr [mailto:[EMAIL PROTECTED] > Subject: invalid LOC header (bad signature) when running in > servlet only > > Why does this only occur in the servlet environment and > not in the stand alone environment even when reading the > file from the same location? What mechanism d

RE: Tomcat randomly hangs - new info

2007-01-26 Thread Caldarale, Charles R
> From: Brian Cross [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat randomly hangs - new info > > 7010.198: [Full GC > [PSYoungGen: 157504K->157504K(206656K)] > [PSOldGen: 699071K->699071K(699072K)] > 856575K->856575K(905728K) > [PSPermGen: 115222K->115222K(115520K)], > 1.1215690 secs] You're si

Re: [OT] httpd.conf - Capturing 500 errors in the log.

2007-01-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Shekar, This is off-topic for the Tomcat mailing list. You should post this question on an Apache httpd mailing list. - -chris Shekar Tippur wrote: > Hello, > > Is there any way to configure httpd.conf file to capture only 500 > errors? > > I have

Re: Tomcat randomly hangs - new info

2007-01-26 Thread Brian Cross
Well after turning on vebose garbage collect I found out what the "hang" really is. For some reason the garbage collector gets in a state where it tries to do a full GC but cannot for some unknown reason. Here is what the verbose gc looks like on the hang: 7007.950: [Full GC [PSYoungGen: 157

RE: Could not connect to SMTP host: localhost, port: 25

2007-01-26 Thread Caldarale, Charles R
> From: Matthew Mchale [mailto:[EMAIL PROTECTED] > Subject: Could not connect to SMTP host: localhost, port: 25 > > It appears to be related to system resources in some way Are you running out of connections (sockets), or possibly file descriptors? Is everything that's being opened also being

invalid LOC header (bad signature) when running in servlet only

2007-01-26 Thread Claude Warren Jr
>> Subject: invalid LOC header (bad signature) when running in >> servlet only >> >> message = invalid LOC header (bad signature) >> > > This is an indication of a corrupted .zip file. ZIP files can be read > either sequentially or via the table of contents at the end of the file;

Re: 503 Error Servlet is currently unavailable

2007-01-26 Thread kristen-thorson
> > The only > > information I have been able to find so far is that there should be more > > information in one of the logs, but I can't find any additional information in > > any of the logs I've found. > > Yup, more info should have appeared in one or more log files. Are you on > MS Windows or

Could not connect to SMTP host: localhost, port: 25

2007-01-26 Thread Matthew Mchale
A team, of which I am a member, is in the process of moving several applications from Websphere App server to Tomcat. I've had an email function in my application for a long while with no trouble. Now, I have an intermittent problem occurring when I try to use JavaMail to send email. It works some

httpd.conf - Capturing 500 errors in the log.

2007-01-26 Thread Shekar Tippur
Hello, Is there any way to configure httpd.conf file to capture only 500 errors? I have put in the following entries in httpd.conf file: LogFormat "%500t %500U %500q %500h %500u \"%500r\" %500s \"%500{Cookie}i\" \"%500{Referer}i\" \"%500{User-agent}i\"" logging500errors CustomLog logs/apache/ac

Interest in a Nullsoft Installer for Apache Tomcat JK 1.2.20 Web Server Connector on IIS?

2007-01-26 Thread Eric Walker
I've read from the archives that there has not been an MSI installer released for the last several version of the Tomcat JK server connector for IIS because there is not an InstallShield license available to the maintainers. 1. Has anyone attempted to rewrite the installer using the Nullsoft Inst

Re: How to locate a configuration file on disk at runtime

2007-01-26 Thread David Kerber
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, David Kerber wrote: Previously, I had been using the java Preferences class, which stores things in a way that is transparent to the java program (in the registry on windows, elsewhere on other OS's). IMH

Re: XML Parse problem in a webapp context.xml

2007-01-26 Thread Pete
Thanks Robert, makes sense, although I started with: The doc for resource (http://tomcat.apache.org/tomcat-6.0-doc/config/context.html#Resource%20Definitions) lists the valid attributes. The JNDI Howto lists others not defined in the above list (http://tomcat.apache.org/tomcat-6.0-doc/jndi

Re: How to locate a configuration file on disk at runtime

2007-01-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, David Kerber wrote: > Previously, I had been using the java Preferences class, which stores > things in a way that is transparent to the java program (in the > registry on windows, elsewhere on other OS's). IMHO, the Java Preferences class is a

Re: session hijacking again

2007-01-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, John Caron wrote: > Our application is serving large amounts of scientific data over HTTP. > The user needs to login to access the data. We would like to use session > ids to reduce the login overhead. We cant afford the overhead of HTTPS > encr

Re: 503 Error Servlet is currently unavailable

2007-01-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kristen, [EMAIL PROTECTED] wrote: > I am developing a GWT application for Tomcat 4.0.5. I'm getting a 503 error: Ouch! If you really are "developing" -- i.e. starting from scratch -- then you should really use a more up-to-date Tomcat. Even /I'm/ not

Re: Tomcat randomly hangs

2007-01-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian, Brian Cross wrote: > Good idea, I have not tested the memory. The only tool I found was > memtest86 but it looks like you need access to the machine to use it. Memtest86 is really the way to go. > Unfortunately the machine is in another stat

Re: How to locate a configuration file on disk at runtime

2007-01-26 Thread David Kerber
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, David Kerber wrote: This is a followup to my question about startup parameters. After digging around a bit, it looks like my best bet is to use the Properties class to read my settings from a disk file at start

Re: Tomcat as root and security issues

2007-01-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gaurav, Also look at "jsvc", which will allow you to run Tomcat as non-root and still use port 80. - -chris Mikolaj Rydzewski wrote: > Gaurav Kushwaha wrote: >> I read somewhere that if I want to run Tomcat standalone on port 80, I >> will >> have t

RE: XML Parse problem in a webapp context.xml

2007-01-26 Thread Robert Harper
There are probably required elements that are not present. The DTD/XLS could specify elements as being required and you can get an error during validation in processing the Resource tag. You may not be able to create an empty resource element or there are attributes that are required. Try modifying

Re: Session timeout during method execution

2007-01-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Muneendra, Muneendra wrote: > Lets says, my Web Application session timeout period is 5 minutes. > I made a Http request to server and corresponding Servlet requires more than > 5 minutes lets say 10 minutes to complete the business logic. Your brows

Re: How to locate a configuration file on disk at runtime

2007-01-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, David Kerber wrote: > This is a followup to my question about startup parameters. After > digging around a bit, it looks like my best bet is to use the Properties > class to read my settings from a disk file at startup. That's generally how th

Re: Storing webapp startup parameters

2007-01-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, David Kerber wrote: > Christopher Schultz wrote: >> Take a look at in the web.xml: i think you can just put it >> there and not put anything in server.xml, which would be better, I think. >> > Doesn't seem to work - my app isn't finding the

Re: Tomcat randomly hangs

2007-01-26 Thread Leon Rosenberg
brian, another option would be to try to reproduce this behaviour on another , similar, machine. Tried it? Leon On 1/26/07, Brian Cross <[EMAIL PROTECTED]> wrote: Good idea, I have not tested the memory. The only tool I found was memtest86 but it looks like you need access to the machine to u

XML Parse problem in a webapp context.xml

2007-01-26 Thread Pete
Hello all, I've searched high and low before posting tried every test I could think of before posting here... This problem seems too simple to be a bug, but can't find a method of resolving it. I decided to skip the port of our application (ran fine on WAS 6 - JVM 1.5) that was that originated

Re: Tomcat randomly hangs

2007-01-26 Thread Brian Cross
Well I tried this and it seems to hose the whole system. After re-logging as root with the new .bashrc all I got was this for any command I tried: cat: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory luckily I had another root sessi

session hijacking again

2007-01-26 Thread John Caron
Hello: Our application is serving large amounts of scientific data over HTTP. The user needs to login to access the data. We would like to use session ids to reduce the login overhead. We cant afford the overhead of HTTPS encryption of teh data (3 times slower ?). We realize this makes us vuln

RE: HTTP PUT - HOW TO CONFIG?

2007-01-26 Thread Robert Harper
The problem is that the default servlet is handling the request(s) unless you have some other servlet do it. By default, the doPut() will check to see if the readonly property has been changed to false. If it has not, default behavior, it will return the forbidden error. If you change this to false

RE: HTTP PUT - HOW TO CONFIG?

2007-01-26 Thread Zhan, Jimmy
Hi, I got some progress. I used a Python program to send a HTTP PUT request to my tomcat server. The Python allow my pick any local file to upload to tomcat server box. And I got response back from tomcat with error code 403(Forbidden). I'm thing, tomcat can handler the HTTP PUT, b

503 Error Servlet is currently unavailable

2007-01-26 Thread kristen-thorson
I am developing a GWT application for Tomcat 4.0.5. I'm getting a 503 error: - Apache Tomcat/4.0.5 - HTTP Status 503 - Servlet com.sms.web.server.CompanyListImpl is currently unavailable type Status report message Servlet com.sms.web.server.CompanyListImpl is currently unavailabl

RE: authentication using active directory

2007-01-26 Thread Propes, Barry L [GCG-NAOT]
you have to use the usernames and passwords as j_username and j_password. You didn't try to change that did you? -Original Message- From: Deepan [mailto:[EMAIL PROTECTED] Sent: Friday, January 26, 2007 1:22 AM To: Tomcat Users List Subject: authentication using active directory Hi, I a

Re: IE Issues with JSPWiki & JCIFS!!

2007-01-26 Thread Gregor Schneider
Chris, please take a look at what Christopher wrote - I guess this is the best guess. Your web.xml looks ok so far. Besides, I'd appreciate if you'd post your comments to the user-list only rather than to my personal email. Cheers Greg -- what's puzzlin' you, is the nature of my game gpgp-fp:

RE: Tomcat randomly hangs

2007-01-26 Thread Peter Crowther
> From: Brian Cross [mailto:[EMAIL PROTECTED] > The only tool I found was > memtest86 but it looks like you need access to the machine to > use it. > Unfortunately the machine is in another state and I just > manage it via > ssh. I will see if I can find any other tools that I can run > vi

Re: HTTP PUT - HOW TO CONFIG?

2007-01-26 Thread David Delbecq
Just map your own servlet to /incoming/*, have this servlet react to 'PUT' by storing the content of request into a file. This is not more difficult than writing any other servlet. You can then upload files using PUT http://server:port/myWebapp/incoming/path/where/to/store/document.pdf and commo

Re: Tomcat randomly hangs

2007-01-26 Thread Brian Cross
Good idea, I have not tested the memory. The only tool I found was memtest86 but it looks like you need access to the machine to use it. Unfortunately the machine is in another state and I just manage it via ssh. I will see if I can find any other tools that I can run via ssh. Thanks. Leo

RE: HTTP PUT - HOW TO CONFIG?

2007-01-26 Thread Zhan, Jimmy
Hi, Thanks for your response. I'm not sure about "Jakarta Commons FileUpload". But, by the HTTP/1.1, In HTTP/HTTPS PUT method, The URI is named by the client, means, clients want Upload a file and put it on server and name it as URI. So, can't by URI t

Re: Tomcat randomly hangs

2007-01-26 Thread Brian Cross
I have not tried this since it said this applied only to 2.4 kernels, but I am willing to try anything at this point, thanks! Zsolt Koppany wrote: Did you try: export LD_ASSUME_KERNEL=2.2.5 or export LD_ASSUME_KERNEL=2.4.1 tomcat start Zsolt -Original Message- From: Brian Cross

Re: mod_jk -> tomcat sending delay

2007-01-26 Thread Rainer Jung
Hi Marcin, Thank you for your careful analysis. Your connectionTimeout on the tomcat side is way too low. This timeout is meant for cutting connections after a longer idle time. It should coincide with the connection_pool_timeout of mod_jk (although tomcat uses milliseconds and mod_jk seconds

Re: SSL Configuration works but half the way + logs

2007-01-26 Thread Markus Schönhaber
Jose Rafael Romero Miret wrote: > I configured tomcat as standalone server and now i want to configure > ssl. I did that as the book I have said and also like the documentation > in the website tells me. > > after the configuration i get this: > http://localhost:443/ gives me tomcat website. > ht

Re: Tomcat as root and security issues

2007-01-26 Thread David Smith
Or the commons daemon project's jsvc which can launch as root long enough to grab port 80 and then shift to an unprivileged user for normal runtime operations. --David Peter Crowther wrote: >>From: Gaurav Kushwaha [mailto:[EMAIL PROTECTED] >>I read somewhere that if I want to run Tomcat standal

Re: Tomcat as root and security issues

2007-01-26 Thread Markus Schönhaber
Gaurav Kushwaha wrote: > I read somewhere that if I want to run Tomcat standalone on port 80, I will > have to run it as root and that this is potentially unsafe. That's in no way Tomcat-specific. On Unix-like systems an application needs root privileges to be able to bind to ports with numbers

Re: SSL Configuration works but half the way + logs

2007-01-26 Thread Mark Thomas
Jose Rafael Romero Miret wrote: > port="443" minProcessors="5" maxProcessors="75" algorithm="RSA" >enableLookups="true" disableUploadTimeout="true" >acceptCount="100" debug="4" scheme="https" secure="true" >clientAuth="want" sslProtocol="TLS" > keystoreFile="c:/keyst

Re: JSP include issue when pre-compiling using Ant/Tomcat

2007-01-26 Thread Mark Thomas
Martin Lambert wrote: > For point 3, I'm not sure whether you're referring to the Sun JSP coding > conventions document or the Tomcat documentation for the Jasper Ant Task > (http://tomcat.apache.org/tomcat-5.5-doc/jasper-howto.html#Web%20Application%20Compilation). > I have no problem with the

Re: How to locate a configuration file on disk at runtime

2007-01-26 Thread David Kerber
David Kerber wrote: Caldarale, Charles R wrote: From: David Kerber [mailto:[EMAIL PROTECTED] Subject: Re: How to locate a configuration file on disk at runtime 2. Put the config file somewhere in the tree of my webapp, such at docbase or in conf. But again, I can't figure out how to

SSL Configuration works but half the way + logs

2007-01-26 Thread Jose Rafael Romero Miret
I configured tomcat as standalone server and now i want to configure ssl. I did that as the book I have said and also like the documentation in the website tells me. after the configuration i get this: http://localhost:443/ gives me tomcat website. https://localhost:443/ gives me connected stat

Re: difference between FORM and BASIC authentication method

2007-01-26 Thread Tim Funk
Basic auth delivers the browser popup. Form authentication allows one to configure their own form and error page for login. So a prettier login can be presented. -Tim Deepan wrote: what is BASIC authentication method ? i mean how is it different from FORM authentication ? does it mean i dont

Re: authentication using active directory

2007-01-26 Thread Tim Funk
Most likely - you need to remove /gridsphere from your login config -Tim Deepan wrote: Hi, I am trying to authenticate using Active directory for one my application in tomcat. ( I have only one application deployed in tomcat). I had configured server.xml and web.xml to use /gridsphere/login

Re: How to locate a configuration file on disk at runtime

2007-01-26 Thread Tim Funk
My preference is JNDI ( ) for such things. Then in web.xml - you can create a default entry in web.xml" configFile /etc/stuff java.lang.String Then it can be overridden in your context config: Then looked up in java via: *** import javax.naming.Context; import javax.naming.Initial

Re: Tomcat as root and security issues

2007-01-26 Thread Gaurav Kushwaha
Thanks, I will read about these. Gaurav Singh Kushwaha http://www.chakpak.com Ph: +91-9880101496 Bangalore, India. On 1/26/07, Mikolaj Rydzewski <[EMAIL PROTECTED]> wrote: Gaurav Kushwaha wrote: > I read somewhere that if I want to run Tomcat standalone on port 80, I > will > have to run it

RE: Tomcat as root and security issues

2007-01-26 Thread Peter Crowther
> From: Gaurav Kushwaha [mailto:[EMAIL PROTECTED] > I read somewhere that if I want to run Tomcat standalone on > port 80, I will > have to run it as root and that this is potentially unsafe. True on UNIX, false on Windows. > Is there any way > for me to run it on port 80 without having to giv

Re: Tomcat as root and security issues

2007-01-26 Thread Mikolaj Rydzewski
Gaurav Kushwaha wrote: I read somewhere that if I want to run Tomcat standalone on port 80, I will have to run it as root and that this is potentially unsafe. Is there any way for me to run it on port 80 without having to give the root privileges to the process. Use apache (+ mod_jk or mod_pro

Tomcat as root and security issues

2007-01-26 Thread Gaurav Kushwaha
I read somewhere that if I want to run Tomcat standalone on port 80, I will have to run it as root and that this is potentially unsafe. Is there any way for me to run it on port 80 without having to give the root privileges to the process. Thanks, Gaurav Singh Kushwaha http://www.chakpak.com Ph

mod_jk -> tomcat sending delay

2007-01-26 Thread Marcin Zajączkowski
Hi, I observe in mod_jk's log errors: [error] ajp_get_reply::jk_ajp_common.c (1566): (ajp13w) Tomcat is down or refused connection. No response has been sent to the client (yet) In the rush hours (20-30 requests/second) up to several entries per hour. Sometimes it's followed by: [error] ajp_s

Re: SSL Configuration works but half the way (answering extra info)

2007-01-26 Thread Pid
Jose Rafael Romero Miret wrote: I configured tomcat as standalone server and now i want to configure ssl. I did that as the book I have said and also like the documentation in the website tells me. after the configuration i get this: http://localhost:443/ gives me tomcat website. https://loc

Re: Session timeout during method execution

2007-01-26 Thread JNeuhoff
Have you inserted this into your web.xml? 10 Muneendra wrote: > > Hi, > I have a little complicated issue with HttpSession timeout process. It > goes like this. > > Lets says, my Web Application session timeout period is 5 minutes. > I made a Http request to s

Re: multiple requests from the same client (only 2 threads are activated!)

2007-01-26 Thread Debora Desideri
Yes, ajax is running on a browser. I've tried with Firefox and IE. Therefore.. the problem should be with the browser! Thanks a lot, Debora - Original Message - From: "Caldarale, Charles R" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Thursday, January 25, 2007 11:30 PM Subjec

RE: JSP include issue when pre-compiling using Ant/Tomcat

2007-01-26 Thread Martin Lambert
Hi Tim, Thanks again for your feedback. I can see that you are totally correct about point 1 and I was already aware of point 2. For point 3, I'm not sure whether you're referring to the Sun JSP coding conventions document or the Tomcat documentation for the Jasper Ant Task (http://tomcat.ap

SSL Configuration works but half the way (answering extra info)

2007-01-26 Thread Jose Rafael Romero Miret
I configured tomcat as standalone server and now i want to configure ssl. I did that as the book I have said and also like the documentation in the website tells me. after the configuration i get this: http://localhost:443/ gives me tomcat website. https://localhost:443/ gives me connected st

RE: Tomcat randomly hangs

2007-01-26 Thread Zsolt Koppany
Did you try: export LD_ASSUME_KERNEL=2.2.5 or export LD_ASSUME_KERNEL=2.4.1 tomcat start Zsolt > -Original Message- > From: Brian Cross [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 25, 2007 7:23 PM > To: users@tomcat.apache.org > Subject: Tomcat randomly hangs > > Hello and tha

Re: Storing webapp startup parameters

2007-01-26 Thread Pid
Caldarale, Charles R wrote: From: David Kerber [mailto:[EMAIL PROTECTED] Subject: Re: Storing webapp startup parameters I thought the webapp had to be bounced for this to take effect, but I'd love to be proven wrong about that! You're right, it does appear that even a new InitialContext obje