Re: Security restrictions for Tomcat

2007-09-26 Thread Mikolaj Rydzewski
alla winter wrote: My application can crate report on a fly ( a file) for an authorized clients. The client authentication is conducted by the application and Tomcat is not involved in this process. Other clients may create a file in the same directory, but the application will show the links

Tomcat 5.5.20 Stops Responding

2007-09-26 Thread Etienne Lacombe
Hello, Setup Linux Tomcat 5.5.20 Java 1.6 I would like some help in locating the cause of a problem on a Tomcat 5.5.20 server. The server runs fine for some days and then suddenly stops responding to requests - the client's browser waits for a respond and times out. On the server,

Re: Virtual Host and dynamic webapp reloading

2007-09-26 Thread Daniel M Garland
My full host element then: Host name=mydomain.com appBase=webapps/mywebapp unpackWars=true autoDeploy=true Context path= docBase=. debug=0 cookies=false / Context path=/asmalljspapp docBase=../smalljspapp debug=0 / Aliaswww.myvirtualhost.com/Alias

Re: Tomcat 5.5.20 Stops Responding

2007-09-26 Thread Franck Borel
Hi Etienne, Etienne Lacombe schrieb: Hello, Setup Linux Tomcat 5.5.20 Java 1.6 Two ideas: (1) I am not shure if Tomcat 5.5.20 is compatible with Java 1.6. (2) Turn on the AccessLogValve in your server.xml config file, so you can see if the client requests attain your Tomcat. If

Re: Virtual Host and dynamic webapp reloading

2007-09-26 Thread Pid
Daniel M Garland wrote: My full host element then: yeah... remove the context defs from server.xml and put them in META-INF/context.xml, which is a dir/file inside your webapp. this method of defining contexts is not encouraged, because you have to restart the server to reload the config,

HTTP/1.1 400 no host matches server name

2007-09-26 Thread Andrew Hole
Hello! I'm getting the following error: HTTP/1.1 400 no host matches server name myserver Why this happens? workers.properties # -- # Load Balancer worker PFH # -- worker.pfhbalancer.type= lb worker.pfhbalancer.balanced_workers= upg4out,upg7out #

Re: HTTP/1.1 400 no host matches server name

2007-09-26 Thread David Delbecq
In your server.xml, you probably have configured a host (probably www.server.domain) but didn't configure the host (server). If you don't use host aliasing (that is different webapsp for different hostname), just configure a default host. En l'instant précis du 26/09/07 12:14, Andrew Hole

Re: HTTP/1.1 400 no host matches server name

2007-09-26 Thread Andrew Hole
This is output from mod_jk debug: [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_uri_worker_map.c (545): Found an exact match pfhbalancer - /outpat/gateway [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] mod_jk.c (1832): Into handler jakarta-servlet worker=pfhbalancer r-proxyreq=0 [Wed Sep 26

Re: HTTP/1.1 400 no host matches server name

2007-09-26 Thread Andrew Hole
Host name on server.xml: Host name=localhost appBase=webapps On 9/26/07, Andrew Hole [EMAIL PROTECTED] wrote: This is output from mod_jk debug: [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_uri_worker_map.c (545): Found an exact match pfhbalancer - /outpat/gateway [Wed Sep 26 11:30:04

Java 1.6

2007-09-26 Thread Marco
Hello, I read in previous post today that someone wasn't sure whether Java 1.6 is compatible with tomcat 5.5. This is new to me. Does anyone know more about this (more specifically, what versions of tomcat DO work with SUN jvm 1.6)? Regards, Marco.

Re: Java 1.6

2007-09-26 Thread David Smith
I think that was pure speculation. I use JDK 1.6 w/ Tomcat 5.5 in production and have had no issue. --David Marco wrote: Hello, I read in previous post today that someone wasn't sure whether Java 1.6 is compatible with tomcat 5.5. This is new to me. Does anyone know more about this

Re: HTTP/1.1 400 no host matches server name

2007-09-26 Thread Andrew Hole
Do you have some suggestion to solve this problem? On 9/26/07, Andrew Hole [EMAIL PROTECTED] wrote: Host name on server.xml: Host name=localhost appBase=webapps On 9/26/07, Andrew Hole [EMAIL PROTECTED] wrote: This is output from mod_jk debug: [Wed Sep 26 11:30:04 2007] [5724:4032]

Re: DeltaManager cannot receive message through TCP channel in Tomcat cluster

2007-09-26 Thread Daniel M Garland
Christopher Schultz wrote: Is Eclipse re-setting the serialVersionUID for each compile, or do you have one explicitly set in your code? (Meaning, does the serialVersionUID ever change?) Well in Eclipse I said 'add generated ID', but this declares a final static long that hasn't changed

Re: Tomcat 5.5.20 Stops Responding

2007-09-26 Thread David Smith
Regarding the ideas: 1. tomcat 5.5 and java 1.6 should be fine together. 2. If all threads are busy, the AccessLogValve may not show anything. Something _seems_ to be causing your jdk to turn into a zombie. Sending a kill signal to the tomcat process so you get a thread dump is probably

Re: AJP Flush Packet causing text/plain output

2007-09-26 Thread Rémy Maucherat
On 9/24/07, Larry Reisler [EMAIL PROTECTED] wrote: We recently switched our development JBOSS instance from 4.05GA to 4.21GA Which AJP connector is used in JBoss exactly ? Normally, the two connectors in org.apache.coyote.ajp cannot be doing what you see. Rémy

Setting ClientAuth parameter to true

2007-09-26 Thread Subhash.NarayananDroupathy
Hi, I am unable to set client authentication for SSL in tomcat 5.5.2. I have generated the certificate for the client and imported the same into the server's keystore so that the server can verify the client's certificate. The following is the modification I make on server.xml.

Re: Java 1.6

2007-09-26 Thread Pid
David Smith wrote: I think that was pure speculation. I use JDK 1.6 w/ Tomcat 5.5 in production and have had no issue. Likewise, and they go very nicely indeed. p --David Marco wrote: Hello, I read in previous post today that someone wasn't sure whether Java 1.6 is compatible

RE: Setting ClientAuth parameter to true

2007-09-26 Thread Clinton J. Totten
I am currently doing the samething right now and am able to access porst 8443. What is the error that you are getting? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 26, 2007 8:31 AM To: users@tomcat.apache.org Subject: Setting ClientAuth

RE: Setting ClientAuth parameter to true

2007-09-26 Thread Clinton J. Totten
From inspection of your connector properties it looks like your missing the keystoreType attribute and the truststoreType attribute. If you check the documentation via this link (http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html) it will tell you what you can have as a value in this field.

Filter GET and POST

2007-09-26 Thread Franck Borel
Hi, i have a problem with an application that only accept GET requests. Now, I would like to know, if there is any possibility to write a filter, who is able to change the method from POST to GET. I see that the FORM-Authentication could speek GET after authentication with POST method. Is

RE: Virtual Host and dynamic webapp reloading

2007-09-26 Thread Caldarale, Charles R
From: Daniel M Garland [mailto:[EMAIL PROTECTED] Subject: Re: Virtual Host and dynamic webapp reloading Context path= docBase=. debug=0 cookies=false / One other problem: docBase must point to the same directory as appBase. The result is endless confusion within Tomcat. - Chuck THIS

Re: DeltaManager cannot receive message through TCP channel in Tomcat cluster

2007-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dan, Daniel M Garland wrote: Another strange thing is since this started happening I don't ever see the session count in the manager app increase above zero, even though if I sit in front of the webapp my session is persisted across the

Re: java.net.MalformedURLException: no protocol: Files/thirdparty/TOMCAT/common/classes/

2007-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeffrey, Jeffrey Nguyen (jeffrngu) wrote: common.loader=${catalina.home}/common/classes,${catalina.home}/common/i1 8n/*.jar,${catalina.home}/common/endorsed/*.jar,${catalina.home}/common/ lib/*.jar where catalina.home is resolved to C:/Program

Re: java.net.MalformedURLException: no protocol: Files/thirdparty/TOMCAT/common/classes/

2007-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeffrey, Jeffrey Nguyen (jeffrngu) wrote: I have a Tomcat servlet which communicates with a stand-alone java application using RMI. I got the above exception whenever my servlet makes an RMI call. Actually, could you post the full stack trace?

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh
Hi guys, I'm still having this problem. Its happened 3 times now. Always at exactly midnight. 21.09, 25.09 and 26.09. We have VM Ware Server as the hardware - could this cause the problem? I have a firewall on the machine with only the HTTPS port open. In the config file there is the

Re: HTTP/1.1 400 no host matches server name

2007-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, Andrew Hole wrote: Do you have some suggestion to solve this problem? Wow, are you impatient! |p Host name on server.xml: Host name=localhost appBase=webapps Do you also have this? Engine name=Catalina defaultHost=localhost The

Migration of Tomcat 3.2 to Tomcat 6.0

2007-09-26 Thread Parandhaman, Vishnu Prasad (STSD)
Hi, Could anyone point out if there's a practical guide / tip to migrate from tomcat 3.2 to tomcat 6.0 ? (had anyone done before) Basically there are lot of changes between the 3.2 and 6.0 versions in terms of structure and files. Moreover the older tomcat 3.2 was used along with apache (through

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh
Hmm maybe this little bit of extra info helps Physical Hardware: 656MB RAM 2.4 Ghz Xeon Processor Martin Cavanagh wrote: Hi guys, I'm still having this problem. Its happened 3 times now. Always at exactly midnight. 21.09, 25.09 and 26.09. We have VM Ware Server as the hardware - could

Re: Filter GET and POST

2007-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Franck, Franck Borel wrote: i have a problem with an application that only accept GET requests. Now, I would like to know, if there is any possibility to write a filter, who is able to change the method from POST to GET. What do you mean by that?

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, Martin Cavanagh wrote: Hi guys, I'm still having this problem. Its happened 3 times now. Always at exactly midnight. 21.09, 25.09 and 26.09. Strange. What is the uptime of your operating system? Perhaps it's being rebooted every

Re: HTTP/1.1 400 no host matches server name

2007-09-26 Thread Andrew Hole
Yes, I have... in defaultHost i have value localhost. On 9/26/07, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, Andrew Hole wrote: Do you have some suggestion to solve this problem? Wow, are you impatient! |p Host name on

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Franck Borel
Hi Martin, Its happened 3 times now. Always at exactly midnight. 21.09, 25.09 and 26.09. We have VM Ware Server as the hardware - could this cause the problem? What kind of network connection are you using? NAT or Bridge? I have a firewall on the machine with only the HTTPS port open.

Re: Migration of Tomcat 3.2 to Tomcat 6.0

2007-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vishnu, Parandhaman, Vishnu Prasad (STSD) wrote: Hi, Could anyone point out if there's a practical guide / tip to migrate from tomcat 3.2 to tomcat 6.0 ? ([has] anyone done [this] before) I don't think anyone has ever made that jump before, so I

RE: Tomcat crash @ midnight - but why?

2007-09-26 Thread Caldarale, Charles R
From: Martin Cavanagh [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat crash @ midnight - but why? Hmm maybe this little bit of extra info helps Not really, but answering Pid's question below might, as would following David's suggestions. 656MB RAM That's an awfully small amount of memory

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: From: Martin Cavanagh [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat crash @ midnight - but why? 656MB RAM That's an awfully small amount of memory for a modern system, but is probably not pertinent.

Re: Filter GET and POST

2007-09-26 Thread Franck Borel
Hi Christopher, thank you very much for your answer. i have a problem with an application that only accept GET requests. Now, I would like to know, if there is any possibility to write a filter, who is able to change the method from POST to GET. What do you mean by that? Do you just want to

Certificates, CLIENT-CERT Authentication and Authorization

2007-09-26 Thread Edwin K. Brown
I’m doing this to provide an _outline_ of what is needed to be done to get CLIENT-CERT authentication and authorization working in Tomcat 6. This is high level because each implementation will have to be done to suit your own needs. This first part deals with the JAAS related code that you

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Pid
Christopher Schultz wrote: Chuck, Caldarale, Charles R wrote: From: Martin Cavanagh [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat crash @ midnight - but why? 656MB RAM That's an awfully small amount of memory for a modern system, but is probably not pertinent. Especially when you're

clustering

2007-09-26 Thread John Coleman
Hi, We have a thin web application that basically just manages the front end for a remote business layer that handles the heavy session state stuff and persistence. Basically the webapp emits and receives data as XML and after some processing makes it available to the clients. We want to

Re: Virtual Host and dynamic webapp reloading

2007-09-26 Thread Daniel M Garland
I've gotta say I've had a miserable time with this one. I've tried nearly permutation of configurations in the Tomcat documentation and nothing seems to work; either I get the default host or a white blank screen. What I need is for www.mydomain.com to host mywebapp on the default path and

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh
Thanks for your answers Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, Martin Cavanagh wrote: Hi guys, I'm still having this problem. Its happened 3 times now. Always at exactly midnight. 21.09, 25.09 and 26.09. Strange. What is the uptime of

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh
Hi Frank Franck Borel wrote: Hi Martin, Its happened 3 times now. Always at exactly midnight. 21.09, 25.09 and 26.09. We have VM Ware Server as the hardware - could this cause the problem? What kind of network connection are you using? NAT or Bridge? not sure and I don't have direct

Re: Filter GET and POST

2007-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Franck, Franck Borel wrote: I'm not sure why you'd want to do this, since servlets do not really distinguish between GET and POST parameters -- the API abstracts that complexity away from your code. If I change the request from POST to GET the

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh
Hi Charles Caldarale, Charles R wrote: From: Martin Cavanagh [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat crash @ midnight - but why? Hmm maybe this little bit of extra info helps Not really, but answering Pid's question below might, as would following David's suggestions. There

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh
Thats how much RAM the Virtual Machine has. I'm not sure what the actual host machine has, but I'm assuming at least 1024 MB. I believe this virtual machine is the only one on the Server. Martin Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale,

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh
Thanks Gabe. I've checked the Windows Scheduled Tasks - unfortunately they are empty. The VMWare instance has 656MB RAm. Tomcat logs are quite boring - they only indicate that the Tomcat is being shutdown The catalina logs show 21.09.2007 00:00:00 org.apache.coyote.http11.Http11AprProtocol

Re: Virtual Host and dynamic webapp reloading

2007-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dan, Daniel M Garland wrote: Host name=mydomain.com appBase=webapps/mywebapp unpackWars=true autoDeploy=true Context path= docBase=. debug=0 cookies=false / Context path=/anotherapp docBase=../anotherapp debug=0 / That docBase=. is going

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh
Sorry everyone - no the the Virtual Machine has 656 MB RAM. The Host has something 656MB Ram (1GB?) Martin Peter Crowther wrote: From: Martin Cavanagh [mailto:[EMAIL PROTECTED] Physical Hardware: 656MB RAM 2.4 Ghz Xeon Processor Crikey. And a host OS (what host?), VMware on top of

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh
the JVM is using the default parameters. I installed JRE 1.5.0_11 (which was upto date at the time...) Should I be using custom parameters? VMWare means the the host machine, doesn't know that there is no real hardware beneath it Martin I'm not overly familiar with VMWare, but is that

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Alexey Solofnenko
Maybe it is caused by automatic Windows Update. Did you check it? - Alexey. Martin Cavanagh wrote: Hi guys, I'm still having this problem. Its happened 3 times now. Always at exactly midnight. 21.09, 25.09 and 26.09. We have VM Ware Server as the hardware - could this cause the problem?

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh
Thanks Alexey. Notifications only :( Keep the ideas coming guys! just to to check - there is no hidden setting in Tomcat which says - shut me down at midnight sometimes for an inexplainable reason? Martin Alexey Solofnenko wrote: Maybe it is caused by automatic Windows Update. Did you

Re: Security restrictions for Tomcat

2007-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alla, alla winter wrote: I would appreciate if you would give me some hints how this dispatcher servlet should work. How about this: 1. Check user id against requested path. a. Return FORBIDDEN for unauthorized access b. Open file and serve

Re: Virtual Host and dynamic webapp reloading

2007-09-26 Thread Daniel M Garland
Hi Chris, I have three virtual hosts that I want to have hosting a webapp on the default path. Each host has a few aliases for subdomains etc. So I don't really want to have ROOT.war in CATALINA_HOME/webapps, partly because I want to keep the manager app and partly because I would have a

Re: Java 1.6

2007-09-26 Thread Daniel M Garland
Is there any performance increase that you've noticed? Pid wrote: David Smith wrote: I think that was pure speculation. I use JDK 1.6 w/ Tomcat 5.5 in production and have had no issue. Likewise, and they go very nicely indeed. p --David Marco wrote: Hello, I read in previous post

Re: Virtual Host and dynamic webapp reloading

2007-09-26 Thread Hassan Schroeder
On 9/26/07, Daniel M Garland [EMAIL PROTECTED] wrote: So I would've thought that snip/ Have you read this? http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html -- Hassan Schroeder [EMAIL PROTECTED]

Re: Security restrictions for Tomcat

2007-09-26 Thread alla winter
Thanks for the quick response. So, I want to make sure that understand it right : you are proposing that the servlet should display the file, instead of allowing Tomcat to invoke Microsoft Word to disply the file content. The only issue with that is that the file is created in the RTF format and

Re: Virtual Host and dynamic webapp reloading

2007-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dan, Daniel M Garland wrote: I have three virtual hosts that I want to have hosting a webapp on the default path. Different apps, or the same app on each virtual host? Each host has a few aliases for subdomains etc. So I don't really want to

Re: Security restrictions for Tomcat

2007-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alla, alla winter wrote: Thanks for the quick response. So, I want to make sure that understand it right : you are proposing that the servlet should display the file, instead of allowing Tomcat to invoke Microsoft Word to disply the file

Re: Java 1.6

2007-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Daniel, Daniel M Garland wrote: Is there any performance increase that you've noticed? Relative to what? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread David kerber
Is your tomcat set to roll the log files at midnight? Maybe there's something going on related to that? Pid wrote: Martin Cavanagh wrote: just to to check - there is no hidden setting in Tomcat which says - shut me down at midnight sometimes for an inexplainable reason? Oh yeah,

RE: Tomcat crash @ midnight - but why?

2007-09-26 Thread Caldarale, Charles R
From: Gabe Wong [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat crash @ midnight - but why? Sounds very much like a memory issue as echoed by others on the list. I don't think so. Lack of RAM might cause performance problems due to excessive paging, but it's not going to cause a shutdown.

RE: Tomcat crash @ midnight - but why?

2007-09-26 Thread Caldarale, Charles R
From: Martin Cavanagh [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat crash @ midnight - but why? There is no \bin\shutdown.bat file - so this isn't being directly triggered. That just means you installed from the .exe rather than the .zip distribution. Something could still be running

Re: UTF8

2007-09-26 Thread Amnon Lahav
i just noticed the reply , i don't understand what u mean would you mind explaining ? On 9/23/07, Lucas Galfaso [EMAIL PROTECTED] wrote: hi, What happens if you escape every char in the XML file? This is you replace character number nnn to #nnn; (quotes for clarity.) The number has to be

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh
Thanks Pid - some good tips Pid wrote: Martin Cavanagh wrote: just to to check - there is no hidden setting in Tomcat which says - shut me down at midnight sometimes for an inexplainable reason? Oh yeah, forgot about that one. Filip, Remy et al have a funny sense of humour - they're

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh
David kerber wrote: Is your tomcat set to roll the log files at midnight? Maybe there's something going on related to that? no i don't think so - (but how do I control that - It would be cool to use that). Its pretty much a standard Tomcat installation - with HTTPS turned on and HTTP turned

RE: Tomcat crash @ midnight - but why?

2007-09-26 Thread Caldarale, Charles R
From: Martin Cavanagh [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat crash @ midnight - but why? Hmmm - how houw I change the JVM into a Server JVM? Server vs client JVM is likely to be totally irrelevant, but in any event, run the tomcat6w.exe program, go to the Java tab, and see what is

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh
Caldarale, Charles R wrote: From: Martin Cavanagh [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat crash @ midnight - but why? There is no \bin\shutdown.bat file - so this isn't being directly triggered. That just means you installed from the .exe rather than the .zip distribution.

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Pid
Martin Cavanagh wrote: Thanks Pid - some good tips Hmmm - how houw I change the JVM into a Server JVM? (google is your friend). -server will do it, if it's not autoselected. - To start a new topic, e-mail:

RE: Tomcat crash @ midnight - but why?

2007-09-26 Thread Caldarale, Charles R
From: Martin Cavanagh [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat crash @ midnight - but why? The Server is started with \Tomcat\bin\tomcat5.exe //RS//Tomcat5 - is that normal? Yes, that's fine. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY

RE: Tomcat crash @ midnight - but why?

2007-09-26 Thread Caldarale, Charles R
From: Pid [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat crash @ midnight - but why? -server will do it, if it's not autoselected. Tomcat is running a Windows service, so command line options cannot be used. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY

SESSIONS.ser (Too many open files)

2007-09-26 Thread Ranjan Kumar Baisak
Hi Experts, I am facing a strange problem in my tomcat application. Suddenly it generates following Exceptions java.io.FileNotFoundException: /server/http/site/music.yamaha.com/site/work/SESSIONS.ser (Too many open files) at java.io.FileOutputStream.open(Native Method) ..

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Jim Cox
snippet Each time when Tomcat has crashed, it has been at midnight. At exactly midnight my program changes log directorys - from 20-09-2007 to 21-09-2007. This is a TimerTask. A thread which runs at exactly midnightat each of these crashes it has reported Can't create directory

Re: SESSIONS.ser (Too many open files)

2007-09-26 Thread David Smith
I would think this would be the root issue: Too many open files What OS are you running. Some limit the number of open file handles. Also might want to check to be sure you are closing files when finished with them in your webapp. --David Ranjan Kumar Baisak wrote: Hi Experts,

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Pid
Martin Cavanagh wrote: Each time when Tomcat has crashed, it has been at midnight. At exactly midnight my program changes log directorys - from 20-09-2007 to 21-09-2007. This is a TimerTask. A thread which runs at exactly midnightat each of these crashes it has reported Can't create

Re: HTTP/1.1 400 no host matches server name

2007-09-26 Thread David Delbecq
Are you behind an apache server, using mod_jk? Or is tomcat accessed directly. As omeone suggested, check you have a valid default host in tomcat. If you are behind an apache web server, you might to check it's not the apache server that answer with HTTP400 (tomcat error pages always include

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Tim Funk
To test the TimerTask theory - I'd suggest changing the TimerTask to run at 12:30 and see the next crash -Tim Pid wrote: Martin Cavanagh wrote: Each time when Tomcat has crashed, it has been at midnight. At exactly midnight my program changes log directorys - from 20-09-2007 to 21-09-2007.

Re: Security restrictions for Tomcat

2007-09-26 Thread alla winter
I am confused now web.xml instructs Tomcat what application needs to be called for a given MIME type for example: - mime-mapping extensionrtf/extension mime-typeapplication/vnd.ms-word/mime-type /mime-mapping Tomcat pass the request to the third party application based on the MIME type,

Re: Security restrictions for Tomcat

2007-09-26 Thread Pid
alla winter wrote: I am confused now web.xml instructs Tomcat what application needs to be called for a given MIME type No, unless you've got some weird setup on a windows machine Tomcat is not opening MSWord. The mime type is sent to the browser in an http header, and the browser decides

Re: SESSIONS.ser (Too many open files)

2007-09-26 Thread Ranjan Kumar Baisak
I would think this would be the root issue: Too many open files We dont have much file handling operations in our web applications, but again I am going to look minutely all IO operations in my application. What OS are you running. Some limit the number of open file handles. Also might want

Re: Security restrictions for Tomcat

2007-09-26 Thread alla winter
OK, I got it, the content type will do the trick. Thanks But I would appreciate if you answer on my second question regarding the directory listing I can see all the directory listing except WEB-INF directory. I am using all default XMLs for configuration without any changes, except web.xml

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Darek Czarkowski
Martin Cavanagh wrote: Each time when Tomcat has crashed, it has been at midnight. At exactly midnight my program changes log directorys - from 20-09-2007 to 21-09-2007. This is a TimerTask. A thread which runs at exactly midnightat each of these crashes it has reported Can't create

RE: Security restrictions for Tomcat

2007-09-26 Thread Mitesh Shah
To disable directory listing, change tag value to 'false' for init parameter of listing in web.xml init-param param-namelistings/param-name param-valueFALSE/param-value /init-param Mitesh Shah Hosted Services Engineer eClinicalWorks LLC -Original

RE: Security restrictions for Tomcat

2007-09-26 Thread Caldarale, Charles R
From: alla winter [mailto:[EMAIL PROTECTED] Subject: Re: Security restrictions for Tomcat I can see all the directory listing except WEB-INF directory. I am using all default XMLs for configuration without any changes, except web.xml were I defined my servlets. Directory listings are

BASIC auth question, simple example...

2007-09-26 Thread Greg Morphis
Hi, I'm a n00b so bare with me! I've got Tomcat 5.5 installed on my machine to the default location c:\Tomcat5.5 I'm trying to get a simple example of BASIC auth running and I'm not having any luck. I created the folder C:\Tomcat5.5\webapps\security\ In there I have

Re: SESSIONS.ser (Too many open files)

2007-09-26 Thread Darek Czarkowski
Ranjan Kumar Baisak wrote: I would think this would be the root issue: Too many open files We dont have much file handling operations in our web applications, but again I am going to look minutely all IO operations in my application. What OS are you running. Some limit the number of open

Re: SESSIONS.ser (Too many open files)

2007-09-26 Thread Ranjan Kumar Baisak
To see your current settings use 'ulimit -a'. If you want to make permanent changes edit /etc/security/limits.conf Everything in a system is a file, not just a single webpage, the default are not enough for your requirements. Ok now I got it. default value for open files is 1024 and I think

Re: SESSIONS.ser (Too many open files)

2007-09-26 Thread David Delbecq
Ranjan Kumar Baisak a écrit : but I would love to know any such commands/utilities exist that can tell me detail about what are the files getting opened in my web application which results such exception. lsof will do it -

Re: BASIC auth question, simple example...

2007-09-26 Thread David Delbecq
Greg Morphis a écrit : I created the folder C:\Tomcat5.5\webapps\security\ So webapp name is security, reachabel by http://server/security/ security-constraint web-resource-collection web-resource-nameProtected Area/web-resource-name !-- Define the

RE: Tomcat crash @ midnight - but why?

2007-09-26 Thread Caldarale, Charles R
From: Darek Czarkowski [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat crash @ midnight - but why? Now, this would be funny, can you search the source code of the deployed application for System.exit call? Doesn't quite fit the symptoms. When a webapp calls System.exit(), the following

Re: SESSIONS.ser (Too many open files)

2007-09-26 Thread David Delbecq
In unix, opened pipe (stdout/stdin, etc) and network sockets are considered opened files btw Ranjan Kumar Baisak a écrit : To see your current settings use 'ulimit -a'. If you want to make permanent changes edit /etc/security/limits.conf Everything in a system is a file, not just a single

Tomcat 5.5.20 Stops Responding

2007-09-26 Thread Etienne Lacombe
Hello, I would like some help in locating the cause of a problem on a Tomcat 5.5.20 server. I looked at many things but I don't know what else to look for. Setup Linux Tomcat 5.5.20 Java 1.6 The server runs fine for some days and then suddenly stops responding to requests - the

Re: Java 1.6

2007-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, Pid wrote: I'm not sure if compiling Tomcat under 1.6 would produce even better performance - I don't know enough about byte code to comment on that, but some of the more enlightened listers may do. I don't believe that javac has undergone

Re: Setting ClientAuth parameter to true

2007-09-26 Thread Filip Hanik - Dev Lists
Your trust store will need to contain the cert the client is supposed to send up, Filip [EMAIL PROTECTED] wrote: Hi, I am unable to set client authentication for SSL in tomcat 5.5.2. I have generated the certificate for the client and imported the same into the server's keystore so that

Re: Security restrictions for Tomcat

2007-09-26 Thread alla winter
you guys are Awesome thanks a lot. On 9/26/07, Mitesh Shah [EMAIL PROTECTED] wrote: To disable directory listing, change tag value to 'false' for init parameter of listing in web.xml init-param param-namelistings/param-name param-valueFALSE/param-value

RE: clustering

2007-09-26 Thread Caldarale, Charles R
From: John Coleman [mailto:[EMAIL PROTECTED] Subject: clustering I expect I will just have to deploy the application twice to 2 different contexts, but how is that dealt with when configuring load balancing and clustering, or can I just use different port numbers? Yes, you can use two

Re: BASIC auth question, simple example...[SOLVED]

2007-09-26 Thread Greg Morphis
That was it David.. I was thinking / referred to the /webapps/ directory. Thanks On 9/26/07, David Delbecq [EMAIL PROTECTED] wrote: Greg Morphis a écrit : I created the folder C:\Tomcat5.5\webapps\security\ So webapp name is security, reachabel by http://server/security/

Re: Security restrictions for Tomcat

2007-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alla, alla winter wrote: I am confused now web.xml instructs Tomcat what application needs to be called for a given MIME type Nope. This is mapping file extensions to MIME types. Totally different. Notice that you don't see msword.exe anywhere in

RE: Java 1.6

2007-09-26 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: Java 1.6 I don't believe that javac has undergone significant upgrades through the years... Actually, it has, but the big improvements were between 1.3 and 1.5. The javac in Java SE 6 doesn't appear to be much different from

RE: BASIC auth question, simple example...[SOLVED]

2007-09-26 Thread Caldarale, Charles R
From: Greg Morphis [mailto:[EMAIL PROTECTED] Subject: Re: BASIC auth question, simple example...[SOLVED] I was thinking / referred to the /webapps/ directory. Note the comment in web.xml: !-- Define the context-relative URL(s) to be protected -- - Chuck THIS COMMUNICATION MAY

RE: java.net.MalformedURLException: no protocol: Files/thirdparty/TOMCAT/common/classes/

2007-09-26 Thread Jeffrey Nguyen \(jeffrngu\)
Thanks Chris for getting back to me on. I had actually tried to define the value for catalina.home explicitely in catalina.properties file, but I still can't get this working. In catalina.properties file, my common.loader entry has 4 paths as listed below.

  1   2   >