Re: Application resources, where ??

2007-03-23 Thread Rashmi Rubdi
On 3/23/07, Jean-Sebastien Pilon <[EMAIL PROTECTED]> wrote: Is there any configurations for avoiding to delete the files within the webapp's directory when > the webapp is redeployed ? When the app is re-deployed old Java/ JSP files are replaced with new, that's why the folder under webapps i

Re: Tomcat mod_proxy_ajp and jk exceptions

2007-03-23 Thread Filip Hanik - Dev Lists
AJP doesn't use SSL, never has, so I'm not sure what the problem would be the only way to get SSL between apache and tomcat, is to use mod_proxy Filip c. wrote: Thanks Filip, We've always had the need for SSL, and our config worked without any changes when I put AJP in the mix. It doesn't,

RE: high CPU usage

2007-03-23 Thread Gurdeep Kaur \(gurdeep\)
Mark, For some reason the previous TLS sessions are not getting closed, I see so many TCP sessions in CLOSE_WAIT on port 8443. Not sure why is that Gurdeep -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Friday, March 23, 2007 3:46 PM To: Tomcat Users List Subj

Re: high CPU usage

2007-03-23 Thread Mark Thomas
Gurdeep Kaur (gurdeep) wrote: > So why would tomcat create two threads for one tls session? Because Tomcat receives two requests. You might want to start looking more closely at what is going on at the network level. Mark - To

Re: Tomcat mod_proxy_ajp and jk exceptions

2007-03-23 Thread c .
Thanks Filip, We've always had the need for SSL, and our config worked without any changes when I put AJP in the mix. It doesn't, however, work with proxy http. On 3/23/07, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: in my last email I forgot one SSLProxyMachineCertificateFile <-- SSL

Re: Tomcat mod_proxy_ajp and jk exceptions

2007-03-23 Thread Filip Hanik - Dev Lists
in my last email I forgot one SSLProxyMachineCertificateFile <-- SSLProxyEngine SSLProxyMachineCertificatePath SSLEngine SSLProxyProtocol, SSLProxyCipherSuite c. wrote: Filip, thanks for the info, I'll listen to anyone with good advice. So you recommend mod_proxy_http over mod_jk? Is it the

Re: Tomcat mod_proxy_ajp and jk exceptions

2007-03-23 Thread Filip Hanik - Dev Lists
c. wrote: Filip, thanks for the info, I'll listen to anyone with good advice. So you recommend mod_proxy_http over mod_jk? Is it the same basic setup as mod_proxy_ajp? Looking at the doc ( http://httpd.apache.org/docs/2.0/mod/mod_proxy_http.html) it doesn't give much info. Ah, it's straight f

Re: Tomcat mod_proxy_ajp and jk exceptions

2007-03-23 Thread Filip Hanik - Dev Lists
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, c. wrote: Filip, thanks for the info, I'll listen to anyone with good advice. So you recommend mod_proxy_http over mod_jk? That's a good question. In two successive messages, he recommended each over the

Re: Tomcat mod_proxy_ajp and jk exceptions

2007-03-23 Thread c .
no worries, mistakes happen. Thanks for the clarification on the jk exceptions. Now that you've said it it seems obvious. I can get mod_proxy_http to work unsecurely, but once I hit the secure pages I get internal server error. Why would I not have had to do anything to enable ssl with mod_pro

RE: JavaMail + Tomcat

2007-03-23 Thread Fuhs, David
I have two or three web applications that use JavaMail. I develop on a Macintosh then drop the WAR files on Tomcat running on a Red Hat Linux system. In each case it was sufficient to put the JAR files in WEB-INF/lib. My web.xml files do not contain any tags. -Original Message- From:

Re: Tomcat mod_proxy_ajp and jk exceptions

2007-03-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, Apologies to all. I read mod_proxy_http as mod_proxy_ajp, and made a fool of myself. Duh. - -chris Christopher Schultz wrote: > Chris, > > c. wrote: >> I'll try upping the connection timeouts, but aside from the problem >> of dropped connectio

Re: Tomcat mod_proxy_ajp and jk exceptions

2007-03-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, c. wrote: > Filip, thanks for the info, I'll listen to anyone with good advice. So you > recommend mod_proxy_http over mod_jk? That's a good question. In two successive messages, he recommended each over the other. > Is it the same basic se

Re: Tomcat mod_proxy_ajp and jk exceptions

2007-03-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, c. wrote: > I'll try upping the connection timeouts, but aside from the problem > of dropped connections what I'm really confused about is why there is > a jk exception > (org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:518)) > w

Re: Tomcat mod_proxy_ajp and jk exceptions

2007-03-23 Thread c .
Filip, I know this isn't the httpd forum, but how did you get the ssl working using mod_proxy_http? Chris. On 3/23/07, c. <[EMAIL PROTECTED]> wrote: Filip, thanks for the info, I'll listen to anyone with good advice. So you recommend mod_proxy_http over mod_jk? Is it the same basic setup as

Re: JSVC - update java

2007-03-23 Thread Shankar Unni
Jean-Sebastien Pilon wrote: I would like to know if I need to recompile JSVC if I update the jvm. Current version of the JVM is 5.0_u6 and the new one will be 5.0_u10 No recompile will be needed. - To start a new topic, e-ma

Debugging my code for Apache-Tomcat JSP

2007-03-23 Thread 040777
Hi, Is there a debugging library (for example debuglib.jsp) for Apache- Tomcat? TIA - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PR

Re: Tomcat mod_proxy_ajp and jk exceptions

2007-03-23 Thread c .
Filip, thanks for the info, I'll listen to anyone with good advice. So you recommend mod_proxy_http over mod_jk? Is it the same basic setup as mod_proxy_ajp? Looking at the doc ( http://httpd.apache.org/docs/2.0/mod/mod_proxy_http.html) it doesn't give much info. c. On 3/23/07, Filip Hanik -

Re: tomcat as service with VM arguments

2007-03-23 Thread Venky Vasant
and tomcat does not start Venkat - Original Message From: Venky Vasant <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Friday, March 23, 2007 12:56:15 PM Subject: Re: tomcat as service with VM arguments Hi Martin I did that, i get this error in the log file log4j:WARN No appenders

Re: Tomcat mod_proxy_ajp and jk exceptions

2007-03-23 Thread Filip Hanik - Dev Lists
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, Filip Hanik - Dev Lists wrote: I'd recommend moving to mod_proxy_http, it will be easier for you to debug. Bah! :( that sounds knowledgeable :) the error below seems to be more of a problem with a

Re: tomcat as service with VM arguments

2007-03-23 Thread Venky Vasant
Hi Martin I did that, i get this error in the log file log4j:WARN No appenders could be found for logger (org.apache.catalina.startup.Bootstrap). log4j:WARN Please initialize the log4j system properly. java.lang.NoSuchMethodException: org.apache.catalina.startup.Catalina.setAwait(boolean) at

Re: Tomcat mod_proxy_ajp and jk exceptions

2007-03-23 Thread c .
On top of the previous error in the log tomcat log file, the following error shows up in the httpd error log: [Thu Mar 22 19:55:23 2007] [error] (70007)The timeout specified has expired: ajp_ilink_receive() can't receive header [Thu Mar 22 19:55:23 2007] [error] ajp_read_header: ajp_ilink_receive

Re: Tomcat mod_proxy_ajp and jk exceptions

2007-03-23 Thread c .
Looking at the server.xml connectionTimeout, I've set the value to 60, 600 seconds not 60 seconds, could I be holding onto the connection for too long? The reason I'm asking is 'cause I don't think adding another five seconds to the 600 will make a difference, adding five seconds to 60 could

Re: Tomcat mod_proxy_ajp and jk exceptions

2007-03-23 Thread c .
I'll try upping the connection timeouts, but aside from the problem of dropped connections what I'm really confused about is why there is a jk exception (org.apache.jk.common.ChannelSo cket.send(ChannelSocket.java:518)) when I'm using mod_proxy_ajp, NOT mod_jk. Chris. On 3/23/07, Christop

Re: Tomcat mod_proxy_ajp and jk exceptions

2007-03-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, Martin Gainty wrote: > broken pipe means that at one end (more than likely the DB listener you're > connecting to somehow dropped) Unlikely: >> java.net.SocketException: Broken pipe >>at java.net.SocketOutputStream.socketWrite0(Native M

Re: Tomcat mod_proxy_ajp and jk exceptions

2007-03-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, Filip Hanik - Dev Lists wrote: > I'd recommend moving to mod_proxy_http, it will be easier for you to debug. Bah! :( > the error below seems to be more of a problem with apache (mod_proxy_ajp) > then with tomcat, tomcat is simply trying to wr

Re: tomcat as service with VM arguments

2007-03-23 Thread Martin Gainty
Hi Ven- (easier than I thought) %TOMCAT_HOME%\bin\tomcat5w.exe go to Java Tab (4th Tab from left) 3rd paragraph down you should see 'Java Options' place all of your Java Options in that textfield cmd net stop Tomcat5 net start Tomcat5 HTH! Martin-- --

Re: Http to https and viceversa without session losing

2007-03-23 Thread Filip Hanik - Dev Lists
you'd be walking in a security hazard, but you could probably set the cookie to secure even though it is running in http. in org.apache.catalina.connector.Request.java, the cookie is set, as you can see, last few lines, that the cookie is only set to secure if the request is considered secure.

Re: Tomcat mod_proxy_ajp and jk exceptions

2007-03-23 Thread Martin Gainty
Chris- broken pipe means that at one end (more than likely the DB listener you're connecting to somehow dropped) A quick fix is to bump the connectionTimeout up by 5 sec If not bump the mod_proxy.proxytimeout up by 5 secs http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxytimeout Martin- -

Re: Tomcat mod_proxy_ajp and jk exceptions

2007-03-23 Thread Filip Hanik - Dev Lists
I'd recommend moving to mod_proxy_http, it will be easier for you to debug. the error below seems tobe more of a problem with apache (mod_proxy_ajp) then with tomcat, tomcat is simply trying to write a message, but the connection is no longer valid. Filip c. wrote: Hello, I'm using mod_prox

Re: How do I get the http://localhost/jkstatus page to display/installed

2007-03-23 Thread org
Hi Robert, Try get to it through the APACHE box http://apachebox/jkstatus Below I MODIFIED some entries to make it look better... I think you almost have it right... regards Johnny - Original Message - Thanks, but I already have that added. It appears that I don't have the jksta

Re: tomcat as service with VM arguments

2007-03-23 Thread Venky Vasant
Thanks Martin I will try this, but what i want is tomcat to start as a service and take all these options while it is starting up Venkat - Original Message From: Martin Gainty <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Thursday, March 22, 2007 6:31:04 PM Subject: Re: tomcat as s

Tomcat mod_proxy_ajp and jk exceptions

2007-03-23 Thread c .
Hello, I'm using mod_proxy_ajp as my link b/w tomcat and apache. Things are working well with the exception of getting the following error: 2007-03-22 20:02:42,875 [TP-Processor51] WARN org.apache.jk.core.MsgContext - Error sending end packet java.net.SocketException: Broken pipe at java.net

RE: Application resources, where ??

2007-03-23 Thread Jean-Sebastien Pilon
I am not sure to follow you on this. Jean-Sébastien Pilon Systems Administrator Penson Financial Services Canada Inc. % Tel.: 514.841.9724 #269 % Cell: 514.771.0365 > -Original Message- > From: Martin Gainty [mailto:[EMAIL PROTECTED] > Sent: Friday, March 23, 2007 12:38 PM > To: Tomcat

Re: Application resources, where ??

2007-03-23 Thread Martin Gainty
you will have to set either in server.policy (to make applicable for all containers) or catalina.policy (specific for catalina container) grant { permission java.io.FilePermission "<>", "read,write.delete"; } HTH, M- --- Thi

Re: Http to https and viceversa without session losing

2007-03-23 Thread Gregor Schneider
It's not enough to just simply change HttpURLConnection to HttpsURLConnection, there are a few more actions required. Have a look at this (it definately works), maybe you'll get the idea what is going wrong on your side: http://java.sun.com/developer/technicalArticles/Security/secureinternet2/

jsvc with security manager

2007-03-23 Thread Thomas Zumbrunn
Hello I run tomcat 5.5.x with jsvc (on Linux) to be able to make it listen on port 80. This works fine. However, if I try to run it with the security manager, I get an error and the daemon doesn't start (see log below). I'm using the script jsvc-src/native/Tomcat5.sh which ships with the tomcat

RE: How do I get the http://localhost/jkstatus page to display/installed

2007-03-23 Thread Robert Young
Thanks, but I already have that added. It appears that I don't have the jkstatus files. Are these delivered with a specific version of tomcat, or how do I get the files? Shouldn't I be able to directly hit each tomcat jkstatus instance directly like http://node1/jkstatus or http://node2/jkstatus

Application resources, where ??

2007-03-23 Thread Jean-Sebastien Pilon
Hello, I run applications that requires to save have files such as PDF. It was first located within the webapp's directory, but that caused a problem since the files were deleted each time the application was re-deployed. Where should I put those files ? Is there any configurations for avoid

Re: 5.5.23 Download - Windows Service Installer - No Page at PGP Link

2007-03-23 Thread Filip Hanik - Dev Lists
I've uploaded the .asc file, mirrors will synch during the day. the apache.org/dist should have it within an hour Filip Day, Jeff wrote: Link is: http://www.apache.org/dist/tomcat/tomcat-5/v5.5.23/bin/apache-tomcat-5.5.23. exe.asc

Re: 5.5.23 Download - Windows Service Installer - No Page at PGP Link

2007-03-23 Thread Filip Hanik - Dev Lists
thanks, I will fix that! Filip Day, Jeff wrote: Link is: http://www.apache.org/dist/tomcat/tomcat-5/v5.5.23/bin/apache-tomcat-5.5.23. exe.asc On page: http://tomcat.apache.org/download-55.cgi

Re: Http to https and viceversa without session losing

2007-03-23 Thread Bello Martinez Sergio
If I get a HttpsURLConnection like you've said, and then get an InputStream as connection.getInputStream(), I can't read anything from that stream, and metthod InputStream.available() returns 0. All this is true if you use a 'https' url, not a 'http' one. You can try it one day when you have en

5.5.23 Download - Windows Service Installer - No Page at PGP Link

2007-03-23 Thread Day, Jeff
Link is: http://www.apache.org/dist/tomcat/tomcat-5/v5.5.23/bin/apache-tomcat-5.5.23. exe.asc On page: http://tomcat.apache.org/download-55.cgi I downloaded using t

RE: How to change a cipher suite with jboss 3.2.5

2007-03-23 Thread BENTOUHAMI MB Malek \(DCL\)
Paul, I am not sûre it can help me ! I used IBM's keyman in order to install my certificate ! Cipher suites problem is still here. Anyone else to help me ? Malek -Message d'origine- De : Paul Singleton [mailto:[EMAIL PROTECTED] Envoyé : jeudi 22 mars 2007 15:40 À : Tomcat Users List O

Re: Using the jk connector to join different tomcat contexts with discrete urls

2007-03-23 Thread Erik Melkersson
Hi! Actually I never got JkMount to work, so I would say something like: ServerName app1.example.com # you do not want to have a loop RewriteCond %{REQUEST_FILENAME} !^/app1/ RewriteRule ^/(.*)$ /app1/$1 [PT] SetEnv JK_WORKER_NAME worker_for_app1 SetHandler jakarta-

Re: high CPU usage

2007-03-23 Thread Martin Gainty
You're requesting a TLS Secure connection http://java.sun.com/products/jndi/tutorial/ldap/ext/starttls.html HTH, Martin --- This e-mail message (including attachments, if any) is intended for the use of the individual or en

RE: Connections in tomcat resource "in busy" state forever

2007-03-23 Thread Drazen Nikolic
Yes, David, you were right. The same behavior we got with direct JDBC access. Our database server is Oracle 10.2.0.2.0 and we use thin JDBC driver with the same version. Our JAVA environment is 1.5. Tomcat version 5.5.17. There are no firewalls between Tomcat and Oracle (direct LAN connection).

query

2007-03-23 Thread kedar samvatsar
Hi Everybody, I have installed Tomcat 5.0.28 over windows 2003 server standard edition SP2. When i go to services.msc. Then Press start button .The Tomcat as a service starts. Then if i press the stop button it takes a long time and finally gives a message "the service did not responded in a tim

Re: Using the jk connector to join different tomcat contexts with discrete urls

2007-03-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Erik, Erik Melkersson wrote: > Hi! I wanted to do something similar. (but without the two virtual > hosts). It sounds like a solution might be something like this: ServerName app1.example.com RewriteRule ^(.*)$ /app1/$1 [PT] JkMount /

Re: JavaMail + Tomcat

2007-03-23 Thread Mikolaj Rydzewski
[EMAIL PROTECTED] wrote: Regarding JavaMail: Is it possible to put the mail.jar (and activation.jar) in the web application's WEB-INF/lib folder instead of tomcat's common/lib? I did have it working in common/lib but then moved it to [web-app]/WEB-INF/lib - due to requirements - and I now get

JavaMail + Tomcat

2007-03-23 Thread Matt . Nelson
Hi, Regarding JavaMail: Is it possible to put the mail.jar (and activation.jar) in the web application's WEB-INF/lib folder instead of tomcat's common/lib? I did have it working in common/lib but then moved it to [web-app]/WEB-INF/lib - due to requirements - and I now get the following error: