context setting problem

2009-04-17 Thread tohid noroozi
i use context tag in server.xml like this : www.tnr.com what i want is set [Tomcat 6.0/webaps/root] as physical address of site and [Tomcat 6.0/portal] to use when url is [localhost/outsie] . my problem is jsp files in Tomcat 6.0/portal has

Re: JK 1.2.28 - load balancer worker fails on startup with one worker down ?

2009-04-17 Thread Rainer Jung
On 17.04.2009 21:44, David Fisher wrote: > Rainer - > > Wouldn't this type of dynamics occur if your workers were in a cloud? Or > if you needed a lot more very quickly for peak processing? Yes, but then you should extend your dynamics to your other configurations as well. In fact there are tende

Re: Building Tomcat 5.5.27 & tomcat-native

2009-04-17 Thread Andre-John Mas
On 17-Apr-2009, at 15:34, Caldarale, Charles R wrote: From: Andre-John Mas [mailto:aj...@sympatico.ca] Subject: Re: Building Tomcat 5.5.27 & tomcat-native should I be using JDK 1.4 or JDK 1.5 for my builds? Use 1.5. Sun "enhanced" the SQL interfaces in 1.6 in a way that made them incompat

Re: JK 1.2.28 - load balancer worker fails on startup with one worker down ?

2009-04-17 Thread David Fisher
Rainer - Wouldn't this type of dynamics occur if your workers were in a cloud? Or if you needed a lot more very quickly for peak processing? Am I correct to think that if someone is being so "dynamic" with their worker's DNS configuration then they should automate using the status worker

Re: Building Tomcat 5.5.27 & tomcat-native

2009-04-17 Thread Andre-John Mas
On 17-Apr-2009, at 15:30, Andre-John Mas wrote: On 17-Apr-2009, at 14:12, Caldarale, Charles R wrote: From: Andre-John Mas [mailto:aj...@sympatico.ca] Subject: Building Tomcat 5.5.27 & tomcat-native I am trying to build 5.5.27, but it is asking for tomcat-native 1.1.12, though I see that on

RE: Building Tomcat 5.5.27 & tomcat-native

2009-04-17 Thread Caldarale, Charles R
> From: Andre-John Mas [mailto:aj...@sympatico.ca] > Subject: Re: Building Tomcat 5.5.27 & tomcat-native > > should I be using JDK 1.4 or JDK 1.5 for my builds? Use 1.5. Sun "enhanced" the SQL interfaces in 1.6 in a way that made them incompatible with implementations based on older versions.

Re: Building Tomcat 5.5.27 & tomcat-native

2009-04-17 Thread Andre-John Mas
On 17-Apr-2009, at 14:12, Caldarale, Charles R wrote: From: Andre-John Mas [mailto:aj...@sympatico.ca] Subject: Building Tomcat 5.5.27 & tomcat-native I am trying to build 5.5.27, but it is asking for tomcat-native 1.1.12, though I see that only 1.1.16 is available. This being the case, a coup

solution RE: request.getSession() generates IllegalStateException in top filter(appears, response not being recycled properly if SocketException happenedfor it in the past)

2009-04-17 Thread Leonard Gestrin
I found a solution that seems to hold. Instead of associating ImageWriter directly with response.outputstream, I create temporary ByteInputStream that is associated with javax.imageio.ImageWriter Once imagewriter is done, I am dumping ByteInputStream bytes to response.outputsream. My theory

RE: Building Tomcat 5.5.27 & tomcat-native

2009-04-17 Thread Caldarale, Charles R
> From: Andre-John Mas [mailto:aj...@sympatico.ca] > Subject: Building Tomcat 5.5.27 & tomcat-native > > I am trying to build 5.5.27, but it is asking for tomcat-native > 1.1.12, though I see that only 1.1.16 is available. This being the > case, a couple of questions: >- is this a suitable rep

Building Tomcat 5.5.27 & tomcat-native

2009-04-17 Thread Andre-John Mas
Hi, I am trying to build 5.5.27, but it is asking for tomcat-native 1.1.12, though I see that only 1.1.16 is available. This being the case, a couple of questions: - is this a suitable replacement? - where do I specify to use this version instead? I will looking through the source in t

Re: JK 1.2.28 - load balancer worker fails on startup with one worker down ?

2009-04-17 Thread Rainer Jung
On 17.04.2009 18:02, André Warnier wrote: > To my knowledge, the only case where the DNS would fail to provide an IP > address of a correctly-written FQDN name, is if you have some > configuration where your hosts register themselves under some variable > IP address when they startup. But that wou

Installing mod_jk 1.2.27 on NetWare 6.5 SP8

2009-04-17 Thread Vladimir Mikhelson
Hi, I have tried to install mod_jk 1.2.27 on Netware 6.5 per CVE-2008-5519: Apache Tomcat mod_jk information disclosure vulnerability. I downloaded the binary mod_jk-1.2.27-httpd-2.0.63-nw.zip

GlobalNamingResources outside of server.xml

2009-04-17 Thread Anthony J. Biacco
Hi, I'm using directives in my server.xml file under (I used to have them in the webapps specific context files). I use in the webapps specific context files to point to them. I'd like to know if it's possible to now put the directives in a file separate from server.xml and still keep them glo

RE: mod_jk ping_timeout revisit

2009-04-17 Thread Anthony J. Biacco
> >>> So I set tomcat's connectionTimeout to 0 and repeat request. > >>> This time Tomcat (after 60 seconds) doesn't reset the keeped alive socket count to 0 (as expected), socket still > > >>> in stage 'R'. > >>> > >>> ... > >>> > >> We saw that. Since Cping/Cpong worked, we do not even have an in

RE: Tomcat 6 and Windows 2003 -Xmx1024 Problem

2009-04-17 Thread Caldarale, Charles R
> From: Dan Armbrust [mailto:daniel.armbrust.l...@gmail.com] > Subject: Re: Tomcat 6 and Windows 2003 -Xmx1024 Problem > > Something else on your OS is using more RAM that it was previously. You're confusing RAM and virtual space - decidedly different entities. > The JVM will only start if it ca

Re: Tomcat installation problem

2009-04-17 Thread Dan Armbrust
Your stack trace seems to show several things that are not fine with your application. First, you appear to have a DB issue: Exception while establishing connection com/iris/util/dbConnectionOracle.java == >> ORA-00020: maximum number of processes (400) exceeded And possibly related to your DB

Re: Tomcat 6 and Windows 2003 -Xmx1024 Problem

2009-04-17 Thread Dan Armbrust
Something else on your OS is using more RAM that it was previously. The JVM will only start if it can reserve a contiguous block of RAM as large as you request. I'd be rather surprised if you needed to go all the way down to 512 before it would start, however. See what else is using memory on th

Re: JK 1.2.28 - load balancer worker fails on startup with one worker down ?

2009-04-17 Thread André Warnier
David Fisher wrote: An interesting discussion. Since I am about to configure such a load balancer and we prefer to use DNS, understanding this type of detail is critical. The OP said that the reason that the DNS did not resolve was that the machine had been moved off the network. That may hav

Re: Running hypersonic db in server mode from tomcat

2009-04-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Graham, On 4/9/2009 4:10 AM, Graham Towse wrote: > I > understand that in JBoss one can define a dataSource that kicks off a > hypersonic database in server mode (server mode enables tcp connections > outside the JVM), the instructions are here > htt

Re: catalina errors

2009-04-17 Thread André Warnier
Walter Thompson wrote: I am running the following configuration: Windows Server 2003 Apache 2.2.6 front end Tomcat 6.0.16.0 backend for servlets Java 1.6.0_13-b03 mod_SSL 2.2.6 openSSL 0.9.8g Thanks for mentioning that. Few people do without prodding. The SSL Certificates are installed

Re: Help with PersistenceManager

2009-04-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vinicius, On 4/14/2009 3:45 PM, Vinicius Carvalho wrote: > Well, We are running out of Old space very, very quickly (2gb for old > space), and I was wondering if using the PersistenceManager would help > us, but at the docs it says its not fully teste

Re: retrieve session data stored in db using JDBCStore.

2009-04-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jerry, On 4/15/2009 11:58 PM, jerrySheen wrote: > So u mean to say, that if I were to prolong the JSESSIONID cookie's expiry > time, the server would take care of repopulating the session state(stored in > the db) even after a browser restart? > > We

Re: Announcing new Apache Tomcat installable Live CD appliance

2009-04-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Liraz, On 4/13/2009 1:55 PM, Liraz Siri wrote: > We're proud to announce the release of TurnKey Apache Tomcat, an > installable live CD of Apache Tomcat that can run on real hardware in > addition to most types of virtual machines (e.g., VMWare, Virtu

Re: When is 5.5.28 planned to be released?

2009-04-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André-John, On 4/17/2009 10:10 AM, Andre-John Mas wrote: > If the target date is after the target date for our project, what do you > reckon is the simplest way to apply a patched Globals.java to a Tomcat > instance without recompiling the whole Tomca

Re: "Request entity too large" when using SSO (IIS Integrated Windows authentication -Tomcat )

2009-04-17 Thread Rainer Jung
On 17.04.2009 16:55, Scott Bradshaw wrote: > Markus, > Is the header name called "Authentication" ? If so, we had this exact > same issue a few years ago. The length of this HTTP header was too long for > mod_jk to process and the request was getting dropped. I think you might be > able to confi

catalina errors

2009-04-17 Thread Walter Thompson
I am getting three or more errors when tomcat starts. Thanks for any help or suggestions you can give me. I am running the following configuration: Windows Server 2003 Apache 2.2.6 front end Tomcat 6.0.16.0 backend for servlets Java 1.6.0_13-b03 mod_SSL 2.2.6 openSSL 0.9.8g The SSL Certific

Apache proxypass problem

2009-04-17 Thread kumaresh P N
Hi I am trying to use proxypass to bring a webpage from a different web server... ProxyPass /techsupportpages/ http://server1/inner_frameSet.html?joint/techsupportpages/menu.html but it works perfectly when i do this for the same server1 ProxyPass /techsupportpages/

RE: Need to share JVM for both tomcat and RMI server

2009-04-17 Thread Jorge Medina
I can't help here, but I can give you some suggesstions: - Take a look at the classloaders used by Tomcat, you may be running into trouble because your application may be loading classes that are supposed to be loaded by your Web Apps only. http://tomcat.apache.org/tomcat-6.0-doc/class-loader-how

Re: JK 1.2.28 - load balancer worker fails on startup with one worker down ?

2009-04-17 Thread fredk2
Hi, I understand that when it comes to security you do not want to start the service eg. if the certificate is corrupted you do not want the ssl server to start or if Apache cannot bind to the hostname then it cannot start, etc... . However, in this case there can be a few reasons why a tomcat s

Re: "Request entity too large" when using SSO (IIS Integrated Windows authentication -Tomcat )

2009-04-17 Thread Scott Bradshaw
Markus, Is the header name called "Authentication" ? If so, we had this exact same issue a few years ago. The length of this HTTP header was too long for mod_jk to process and the request was getting dropped. I think you might be able to configure the packet size of mod_jk now to get around this

Re: JK 1.2.28 - load balancer worker fails on startup with one worker down ?

2009-04-17 Thread David Fisher
An interesting discussion. Since I am about to configure such a load balancer and we prefer to use DNS, understanding this type of detail is critical. The OP said that the reason that the DNS did not resolve was that the machine had been moved off the network. That may have been an event

When is 5.5.28 planned to be released?

2009-04-17 Thread Andre-John Mas
Hi, Tomcat 5.5.28 offers us the ability to change the name of the JSESSIONID, something we depend on because we are operating two application servers behind the same HTTPD server. We currently have a patched version of 5.x and are in the process of moving to 5.5.x, but without this patch

"Request entity too large" when using SSO (IIS Integrated Windows authentication -Tomcat )

2009-04-17 Thread baumar
Hi, We are running an application on Tomcat 6. The authorization is down by IIS with Integrated Windows authentication selected. Whenever we try to access any page (with IE6), we get a "request entity too large" response. We switched IIS to Basic authentication, then it works. By analyzing th

RE: Sharing an abandoned connection pool help

2009-04-17 Thread Caldarale, Charles R
> From: Douglas Miller [mailto:dougmil...@themetacity.com] > Subject: Sharing an abandoned connection pool help > > I have several web apps that are getting info from a database under > the same username. I had it set up with a context in each app. Try using a global resource rather than one loca

When is 5.5.28 planned to be released?

2009-04-17 Thread Andre-John Mas
Hi, Tomcat 5.5.28 offers us the ability to change the name of the JSESSIONID, something we depend on because we are operating two application servers behind the same HTTPD server. We currently have a patched version of 5.x and are in the process of moving to 5.5.x, but without this patch

Re: JK 1.2.28 - load balancer worker fails on startup with one worker down ?

2009-04-17 Thread André Warnier
Rainer Jung wrote: [...] What remains for me is your suggestion, that the error is not a fatal one, since there are other balanced workers left. We could include such a check in the startup code, although I'm not really convinced, that your problem is a good reason for this. I'm open to more arg

Re: [SECURITY] CVE-2008-5519: Apache Tomcat mod_jk information disclosure vulnerability

2009-04-17 Thread Rainer Jung
Hi, the problem is not fixed in httpd 2.2.11. It will be fixed in 2.2.12. A source patch is available under the URL http://www.apache.org/dist/httpd/patches/apply_to_2.2.11/ I assume, that you don't build yourself, because most Windows httpd users start with a binary download. There is no update

Re: mod_jk ping_timeout revisit

2009-04-17 Thread Rainer Jung
On 17.04.2009 01:30, Anthony J. Biacco wrote: >> On 16.04.2009 01:49, Anthony J. Biacco wrote: >>> worker.template.socket_timeout=10 >> I'm not very much in favor of the socket_timeout, but well, if you >> think >> you need it. Just for the sake of completeness, please check, whether >> having no s

Re: Need to share JVM for both tomcat and RMI server

2009-04-17 Thread siranjeevi krishnan
Sorry I called main method of Bootstrap class with "start" as argument to start tomcat. >>>I used Bootstrap.start() in my code to start tomcat On Fri, Apr 17, 2009 at 10:45 AM, siranjeevi krishnan wrote: > Hi Jorge > Thanks for your reply. > I used Bootstrap.start() in my code to start tomcat.

Re: Apache/mod_jk serves random files from tomcat

2009-04-17 Thread Jakob Ericsson
Problem found in mod_proxy_ajp too, https://issues.apache.org/bugzilla/show_bug.cgi?id=46949 /Jakob On Fri, Mar 27, 2009 at 10:33 PM, LukeK wrote: > > > Rainer Jung-3 wrote: >> >> Thanks very much for the feedback. Considering the severity of the >> problem, if you could give us another update

Tomcat 6 and Windows 2003 -Xmx1024 Problem

2009-04-17 Thread Mirco Attocchi
Hi all, from yesterday on two different server Windows 2003 R2 with Tomcat 6.0.18 running with -Xmx1024m, after a nightly restart, I've this problem: [2009-04-16 10:05:51] [info] Error occurred during initialization of VM [2009-04-16 10:05:51] [info] Could not reserve enough space for object heap

Re: [SECURITY] CVE-2008-5519: Apache Tomcat mod_jk information disclosure vulnerability

2009-04-17 Thread Jakob Ericsson
Hi, We are also getting this error in mod_proxy_ajp (2.2.11 on Windows) Anyone know if this is the same fix? https://issues.apache.org/bugzilla/show_bug.cgi?id=46949 Seems to be fixed. /Jakob On Tue, Apr 7, 2009 at 10:42 PM, Mark Thomas wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA

Tomcat installation problem

2009-04-17 Thread deepak.sinh...@rediffmail
Dear all, Yesterday, i replace Tomcat4.1 to Tomcat6.0.16 on windows 2003 server. I didn't install from .exe, i am using from binary file. My all files(Servlet, Jsps, Web.xml and other cofig except server.xml ) are same as previous(tomcat4.1). I didn't get any error on Tomcat4.1, but when i move o