Having different apps (contexts) on different ports

2011-11-15 Thread Mario Splivalo
Can I have several Tomcat contexts on different ports? I need to have manager app listening only on 8080, and all the other apps on 80. Is something like that possible, within one Tomcat Service? Or, if I fire up two services (under same server), each with its own set of connectors, is manager

Re: Having different apps (contexts) on different ports

2011-11-15 Thread Mario Splivalo
On 11/15/2011 09:01 AM, Mario Splivalo wrote: Can I have several Tomcat contexts on different ports? I need to have manager app listening only on 8080, and all the other apps on 80. Is something like that possible, within one Tomcat Service? Or, if I fire up two services (under same

Re: Having different apps (contexts) on different ports

2011-11-15 Thread Pid
On 15/11/2011 08:01, Mario Splivalo wrote: Can I have several Tomcat contexts on different ports? I need to have manager app listening only on 8080, and all the other apps on 80. Is something like that possible, within one Tomcat Service? You can have more than one Connector. You can't

Re: mod_jk Avoid loadbalancing

2011-11-15 Thread Pid
On 14/11/2011 10:42, Alexander Diedler wrote: Hello It is possible in a three node TC 6.0 / TC7.0 Cluster to avoid the loadbalancing between these three nodes? We only need the session replication. The Loadbalancing with failover will be done by a Big-IP F5, so we don´t need a “double”

AW: mod_jk Avoid loadbalancing

2011-11-15 Thread Alexander Diedler
Hello, Yes, it was an option to solve my problem. But what about the performance? My opinion was to forward only necessary requests to the Tomcat (jsp, java etc) and let the Apache HTTPD deliver the static content (CSS,JS,Images etc). Best regards Alexander -Ursprüngliche Nachricht-

Re: AW: mod_jk Avoid loadbalancing

2011-11-15 Thread Mladen Truk
On 11/15/2011 12:55 PM, Alexander Diedler wrote: Hello, Yes, it was an option to solve my problem. But what about the performance? My opinion was to forward only necessary requests to the Tomcat (jsp, java etc) and let the Apache HTTPD deliver the static content (CSS,JS,Images etc). Use

Include NEtwork path into Tomcat - urgent

2011-11-15 Thread Alexander Diedler
Hello, I have a Tomcat 6.0 application, that references their pictures as http://www.test.de/pictures/test.png. /pictures is a network path on a storage, so I try to make it as a Context within the server.xml Host Tag Context path=/pictures docBase=\\storage\share\pictures / but it throws a

RE: Include NEtwork path into Tomcat - urgent

2011-11-15 Thread Ilya Kazakevich
Not sure Java IO supports windows UNC. Try to do the following: 1) mount this share as disk: (in cmd type net use z: \\storage\share\pictures) 2) configure tomcat to work with z:\ Ilya Kazakevich, Developer JetBrains Inc http://www.jetbrains.com http://www.jetbrains.com/ Develop with

AW: Include NEtwork path into Tomcat - urgent

2011-11-15 Thread Alexander Diedler
Hello, This is no option, this solution means, that the windows session must still remain opened with a logged in user. Alex -Ursprüngliche Nachricht- Von: Ilya Kazakevich [mailto:ilya.kazakev...@jetbrains.com] Gesendet: Dienstag, 15. November 2011 14:32 An: 'Tomcat Users List'

Re: Include NEtwork path into Tomcat - urgent

2011-11-15 Thread chris derham
On Tue, Nov 15, 2011 at 11:39 AM, Alexander Diedler adied...@tecracer.dewrote: Hello, This is no option, this solution means, that the windows session must still remain opened with a logged in user. Not true. You can setup tomcat to run under a service account, and have the service account

RE: Include NEtwork path into Tomcat - urgent

2011-11-15 Thread Ilya Kazakevich
You need user ssesion to access windows station via SMB anyway. You can set this script as log in script using group policies in windows for the user your tomcat runs as. Ilya Kazakevich, Developer JetBrains Inc http://www.jetbrains.com Develop with pleasure! -Original Message-

RE: Include NEtwork path into Tomcat - urgent

2011-11-15 Thread Daniel Mikusa
Not sure Java IO supports windows UNC. A quick test worked for me. I was able to list the contents of a SMB share on my network. Windows XP, Java 1.6.0_29. public class Test { public static void main(String[] args) { for (String fileName : new File(server\\share).list()) {

AW: Include NEtwork path into Tomcat - urgent

2011-11-15 Thread Alexander Diedler
Yes, http://www.test.de/pictures/test.png throws 404 error. Alex -Ursprüngliche Nachricht- Von: Daniel Mikusa [mailto:dmik...@vmware.com] Gesendet: Dienstag, 15. November 2011 15:13 An: Tomcat Users List Betreff: RE: Include NEtwork path into Tomcat - urgent Not sure Java IO

RE: Include NEtwork path into Tomcat - urgent

2011-11-15 Thread Ilya Kazakevich
Wiki says it should work: http://wiki.apache.org/tomcat/FAQ/Windows#Q6 What account do you use to run tomcat? Does it has access to your share? What is about tomcat logs and output? Do they have some errors? Enable audit failure on remote machine and check security event logs (it should log any

RE: mod_jk Avoid loadbalancing

2011-11-15 Thread Jeffrey Janner
Alexander - From reading your emails, it sounds like you have the following setup F5 HW-balancer | / \ / \ Level 1 balancing / \

Re: mod_jk Avoid loadbalancing

2011-11-15 Thread Pid
On 15/11/2011 15:00, Jeffrey Janner wrote: Alexander - From reading your emails, it sounds like you have the following setup F5 HW-balancer | / \ / \ Level 1 balancing

Re: Having different apps (contexts) on different ports

2011-11-15 Thread Tim Watts
On Tue, 2011-11-15 at 11:38 +, Pid wrote: On 15/11/2011 08:01, Mario Splivalo wrote: Can I have several Tomcat contexts on different ports? I need to have manager app listening only on 8080, and all the other apps on 80. Is something like that possible, within one Tomcat Service?

AW: mod_jk Avoid loadbalancing

2011-11-15 Thread Alexander Diedler
Hello, I want to avoid, that Level1 LB routes to HTTPD1 and HTTPD1 (on same server as TC1) also balance to TC2 on level 2. So the next request from Level 1 go to HTTD2 (on same server as TC2) and so I have double load on the same server. Or is my understanding not right? If a Tomcat (TC3) give

Errors with NIO processor

2011-11-15 Thread Matthew Tyson
Hey Guys, We are seeing the following errors (in production of course, testing didn't reveal this) after switching to NIO protocol. This is Tomcat 7.0.22 on CentOS 6. There is a load balancer sending only comet traffic to port 8080, where the NIO protocol is used. Nov 15, 2011 8:39:29 AM

Re: Having different apps (contexts) on different ports

2011-11-15 Thread Tim Watts
On Tue, 2011-11-15 at 10:16 -0500, Tim Watts wrote: On Tue, 2011-11-15 at 11:38 +, Pid wrote: On 15/11/2011 08:01, Mario Splivalo wrote: Can I have several Tomcat contexts on different ports? I need to have manager app listening only on 8080, and all the other apps on 80. Is

RE: Session time out never takes place with ajax

2011-11-15 Thread Sharon Prober (sprober)
Ok, Thanks all for the inputs. I found a hybrid solution for this. So for future use here goes In my application I make sure there is a filter that is called on every hit to the server /* Next I create a new filter which will handle only calls such as poling and other ajax calls that do

Re: AW: Include NEtwork path into Tomcat - urgent

2011-11-15 Thread André Warnier
Hi. Don't like top-posting, but if you all do it.. I see a difference between this : .. for (String fileName : new File(server\\share).list()) { .. and this : Context path=/pictures docBase=\\storage\share\pictures / in terms of how many backslashes are used. I am not quite sure if and

tomcat7-maven-plugin redeploy

2011-11-15 Thread David Yu
Is there a redeploy goal for the tomcat7 plugin? I'm trying to re-deploy a war file that has already been deployed and built to my remote tomcat server. Thanks. David Yu | Sales Engineer | CollabNet, Inc. 8000 Marina Blvd. Suite 600 | Brisbane, CA 94005 | USA Skype david.yongshin.yu | O

Re: Errors with NIO processor

2011-11-15 Thread Matthew Tyson
Is there more info I can provide to help diagnose this error? It is killing us. Thanks, Matt On Tue, Nov 15, 2011 at 9:00 AM, Matthew Tyson matthewcarlty...@gmail.comwrote: Hey Guys, We are seeing the following errors (in production of course, testing didn't reveal this) after switching

Re: Errors with NIO processor

2011-11-15 Thread Bob Hall
Matt, Did the testing include load testing?  Have you checked the open file limit values? If not, you may be running into an open file limit for the OS and/or user that is running Tomcat. - Bob From: Matthew Tyson matthewcarlty...@gmail.com To: Tomcat Users

Re: tomcat7-maven-plugin redeploy

2011-11-15 Thread Jesse Farinacci
Greetings, On Tue, Nov 15, 2011 at 6:13 PM, David Yu d...@collab.net wrote: Is there a redeploy goal for the tomcat7 plugin? I'm trying to re-deploy a war file that has already been deployed and built to my remote tomcat server. Thanks. New development is at:

Re: Errors with NIO processor

2011-11-15 Thread Matthew Tyson
Thanks Bob. It doesn't seem to be a load problem. It happens consistently even for just 1 user. If I switch the connector back to HTTP/1.1, instead of NIO, the problem goes away. Sometimes, there doesn't appear to be an error in catalina.out, but there is a response with no body, just headers

Apache Tomcat 6.0.34

2011-11-15 Thread Angus Yiu
Hello, We hit Authentication bypass and information disclosure CVE-2011-3190 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-3190 in tomcat 6.0.32 May i know when Tomcat 6.0.34 will be release? Regards, Angus This message may contain confidential or

Re: Apache Tomcat 6.0.34

2011-11-15 Thread Konstantin Kolinko
2011/11/16 Angus Yiu a...@datapipe.com: Hello, We hit Authentication bypass and information disclosure CVE-2011-3190   http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-3190 in tomcat 6.0.32 May i know when Tomcat 6.0.34 will be release? Tag and release candidates are already done

Re: 403 error starting tomcat 7.0.22 application on windows 7

2011-11-15 Thread basilk
When i have changed url for my app from http://localhost... to http://127.0.0.1... the 403 error has gone. -Исходное сообщение- From: Tim Watts Sent: Monday, November 14, 2011 7:35 PM To: Tomcat Users List Subject: Re: 403 error starting tomcat 7.0.22 application on windows 7 On Mon,

RE: tomcat7-maven-plugin redeploy

2011-11-15 Thread Hodchenkov, Paul
Hi, It's seems that new tomcat7 plugin does not have undeploy/redeploy goals. So deployment fails with: -- [ERROR] BUILD ERROR [INFO] -- -- [INFO] Cannot invoke Tomcat manager: FAIL - Application already exists at path / Is

Re: Having different apps (contexts) on different ports

2011-11-15 Thread Mario Splivalo
On 11/15/2011 06:56 PM, Tim Watts wrote: Perhaps an alternative that may work good enough would be to bind 8080 to localhost and 80 to a public IP address. Or, similarly, if the machined is multi-homed bind each port to different addresses. Presumably, you'd want the 8080 address to be on an