Error while starting tomcat. Failed creating jvm.dll

2011-10-19 Thread Joe Hansen
Hi, I have installed Tomcat 6.0.29 on a machine running Windows 7 Professional (64bit) and JDK 1.5.0_22. When I start Tomcat, I see the following error message in the log file: [206 javajni.c] [error] %1 is not a valid Win32 application. [985 prunsrv.c] [error] Failed creating java C:\Program

Re: Error while starting tomcat. Failed creating jvm.dll

2011-10-19 Thread Konstantin Kolinko
2011/10/19 Joe Hansen joe.hansen...@gmail.com: Hi, I have installed Tomcat 6.0.29 on a machine running Windows 7 Professional (64bit) and JDK 1.5.0_22. Why not 6.0.33? When I start Tomcat, I see the following error message in the log file: [206  javajni.c] [error] %1 is not a valid Win32

Re: Reuse mod ajp proxy connections

2011-10-19 Thread André Warnier
Dimitar Georgievski wrote: ... Mod proxy settings in Apache ProxyStatus On ProxyRequests Off ProxyTimeout 1800 ProxyPassMatch ^/(.*) ajp://localhost:8009/$1 SetEnv force-proxy-request-1.0 1 SetEnv proxy-nokeepalive 1 What happens if you just comment out the previous 2 lines ? Unless I

Re: Tomcat configuration under webApp

2011-10-19 Thread ettoregia
Pid * wrote: On 18/10/2011 23:29, Tim Watts wrote: Sorry I meant /tomcat/apps/myAppName/conf/ and under conf all the files mentioned above That is a strange layout. Is it possible that the IT people are running each webapp in a separate JVM and pointing CATALINA_BASE to

Re: Error while starting tomcat. Failed creating jvm.dll

2011-10-19 Thread Joe Hansen
Thanks for the quick reply, Konstantin! I uninstalled Tomcat, then installed JDK 6 64-bit version and I do not get that error anymore. The problem happened because I was pointing Tomcat to a 32-bit JDK rather than 64-bit one. On Wed, Oct 19, 2011 at 12:59 AM, Konstantin Kolinko

Re: Error while starting tomcat. Failed creating jvm.dll

2011-10-19 Thread Konstantin Kolinko
2011/10/19 Joe Hansen joe.hansen...@gmail.com: Thanks for the quick reply, Konstantin! I uninstalled Tomcat, then installed JDK 6 64-bit version and I do not get that error anymore. The problem happened because I was pointing Tomcat to a 32-bit JDK rather than 64-bit one. Latest versions of

AJP Errors. Apache + Tomcat

2011-10-19 Thread Joe Hansen
Hi, I get the following AJP errors when I try to access a webpage after starting Apache and Tomcat. Both Apache web server and Tomcat start up fine but I get these errors in Apache logs and I get a 503 Service Temporarily Unavailable message in the browser. Apparently Tomcat isn't seeing the

Re: AJP Errors. Apache + Tomcat

2011-10-19 Thread john
Hi I get the following AJP errors when I try to access a webpage after ztarting Apache and Tomcat. Both Apache web server and Tomcat start up fine but I get these errors in Apache logs and I get a 503 Service Temporarily Unavailable message in the browser. Apparently Tomcat isn't seeing

Re: Error while starting tomcat. Failed creating jvm.dll

2011-10-19 Thread Joe Hansen
Thanks for pointing that out, Konstantin. I have now uninstalled Tomcat 6.0.29 and installed 6.0.33 instead and it works flawlessly with the 32-bit JRE. If it weren't for you, I wouldn't have known about it. Thank you very much! :) Regards, Joe On Wed, Oct 19, 2011 at 2:03 AM, Konstantin

Re: AJP Errors. Apache + Tomcat

2011-10-19 Thread Joe Hansen
I uninstalled Tomcat and installed a newer version (6.0.33) and the problem disappeared. It is strange because the config files are the same. On Wed, Oct 19, 2011 at 2:16 AM, j...@gniffelnieuws.net wrote: Hi I get the following AJP errors when I try to access a webpage after ztarting

Re: AJP Errors. Apache + Tomcat

2011-10-19 Thread André Warnier
Hi. The problem can also be due just to the difference in startup time between Apache httpd and Tomcat. At the time Apache httpd (and its embedded mod_proxy_ajp module) try to contact Tomcat, Tomcat has possibly not yet opened its Connector on port 8009, which causes the host to refuse a

Re: AJP Errors. Apache + Tomcat

2011-10-19 Thread Francis GALIEGUE
On Wed, Oct 19, 2011 at 10:48, André Warnier a...@ice-sa.com wrote: Hi. The problem can also be due just to the difference in startup time between Apache httpd and Tomcat.  At the time Apache httpd (and its embedded mod_proxy_ajp module) try to contact Tomcat, Tomcat has possibly not yet

Re: AJP Errors. Apache + Tomcat

2011-10-19 Thread André Warnier
Francis GALIEGUE wrote: On Wed, Oct 19, 2011 at 10:48, André Warnier a...@ice-sa.com wrote: Hi. The problem can also be due just to the difference in startup time between Apache httpd and Tomcat. At the time Apache httpd (and its embedded mod_proxy_ajp module) try to contact Tomcat, Tomcat

Re: AJP Errors. Apache + Tomcat

2011-10-19 Thread Francis GALIEGUE
On Wed, Oct 19, 2011 at 11:27, André Warnier a...@ice-sa.com wrote: Francis GALIEGUE wrote: [...] Yes, that would be more reliable than my 2 seconds above. Although if one really wanted to split hairs in 4 parts (lenghtwise), one could argue that the fact that the port mentioned in Server is

Re: AJP Errors. Apache + Tomcat

2011-10-19 Thread Francis GALIEGUE
On Wed, Oct 19, 2011 at 11:42, Francis GALIEGUE f...@one2team.com wrote: [...]                lsof -u $TOMCAT_USER -i tcp:8005 /dev/null Sorry, that's a non working version: forget the -u option. But with only the -i, it works. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683

Re: AJP Errors. Apache + Tomcat

2011-10-19 Thread André Warnier
Francis GALIEGUE wrote: On Wed, Oct 19, 2011 at 11:42, Francis GALIEGUE f...@one2team.com wrote: [...] lsof -u $TOMCAT_USER -i tcp:8005 /dev/null Sorry, that's a non working version: forget the -u option. But with only the -i, it works. Thanks, very useful. I'll try that.

Re: AJP Errors. Apache + Tomcat

2011-10-19 Thread Francis GALIEGUE
On Wed, Oct 19, 2011 at 11:47, André Warnier a...@ice-sa.com wrote: Francis GALIEGUE wrote: On Wed, Oct 19, 2011 at 11:42, Francis GALIEGUE f...@one2team.com wrote: [...]               lsof -u $TOMCAT_USER -i tcp:8005 /dev/null Sorry, that's a non working version: forget the -u option.

Re: AJP Errors. Apache + Tomcat

2011-10-19 Thread Mikolaj Rydzewski
On Wed, 19 Oct 2011 11:42:36 +0200, Francis GALIEGUE wrote: Extract from the script (note that the server port is not randomized, it should probably be): Hi all, Why do you want to go into such deep details, like checking for particular ports to be opened? I have httpd, mod_proxy_ajp and

Re: AJP Errors. Apache + Tomcat

2011-10-19 Thread Francis GALIEGUE
On Wed, Oct 19, 2011 at 11:56, Mikolaj Rydzewski m...@ceti.pl wrote: On Wed, 19 Oct 2011 11:42:36 +0200, Francis GALIEGUE wrote: Extract from the script (note that the server port is not randomized, it should probably be): Hi all, Why do you want to go into such deep details, like checking

Re: AJP Errors. Apache + Tomcat

2011-10-19 Thread André Warnier
Francis GALIEGUE wrote: On Wed, Oct 19, 2011 at 11:56, Mikolaj Rydzewski m...@ceti.pl wrote: On Wed, 19 Oct 2011 11:42:36 +0200, Francis GALIEGUE wrote: Extract from the script (note that the server port is not randomized, it should probably be): Hi all, Why do you want to go into such deep

Re: combination of RemoteAddrValve und basic authentication

2011-10-19 Thread Remon Sadikni
Hi André, hi Christopher, The use of HTTP BASIC authentication confuses things here because of the credential transfer mechanism (HTTP headers). I suppose you could write a Valve that sniffs the user's IP address and then adds HTTP headers to the request for the Authentication header to

tomcat not starting after certificate installation

2011-10-19 Thread Noura Shaaban
Hi we have tomcat 5.5 on solaris 5.10 since Verisign certificate has expired,we ordered a new certificate and added the new one in cacerts when restarting tomcat,it gives the response started successfully but in browser(all browsers),we have Page can not be displayed what could be the problem?I

Re: tomcat not starting after certificate installation

2011-10-19 Thread André Warnier
Noura Shaaban wrote: Hi we have tomcat 5.5 on solaris 5.10 since Verisign certificate has expired,we ordered a new certificate and added the new one in cacerts when restarting tomcat,it gives the response started successfully but in browser(all browsers),we have Page can not be displayed

Re: combination of RemoteAddrValve und basic authentication

2011-10-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Remon, On 10/19/2011 7:57 AM, Remon Sadikni wrote: I managed to get it working. If you are interested in my solution for Tomcat 6: I extended the Valve RequestFilterValve and overwrote the method process with this content: // Check the allow

Re: Reuse mod ajp proxy connections

2011-10-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dimitar, On 10/18/2011 10:50 PM, Dimitar Georgievski wrote: SetEnv force-proxy-request-1.0 1 SetEnv proxy-nokeepalive 1 This setting should control the mod_http_proxy connections. I forgot to mention this Apache server does that. My reading

Re: Reuse mod ajp proxy connections

2011-10-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 10/19/2011 3:21 AM, André Warnier wrote: Next question : ProxyPassMatch ^/(.*) ajp://localhost:8009/$1 If you are forwarding *everything* to Tomcat anyway, then why do you have an Apache httpd in front ? why not just set up Tomcat

Re: Tomcat configuration under webApp

2011-10-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ettore, On 10/19/2011 3:38 AM, ettoregia wrote: SERVER.XML-- ?xml version='1.0' encoding='utf-8'? Server port=1${tomcat.server.port} shutdown=SHUTDOWN You might want to consider using two different

can't set tomcat to use log4j for its internal logging

2011-10-19 Thread Silvia Righini
Hi everyone, I'm trying to tell tomcat to use log4j for its internal logging, but it just ignores me.. I have Tomcat 6.0.33 running on a Mac OS X 10.5.8 (with java openjdk version 1.6.0-internal). I followed to the letter the docs at

Re: can't set tomcat to use log4j for its internal logging

2011-10-19 Thread Konstantin Kolinko
2011/10/19 Silvia Righini shigure.minaz...@gmail.com: Hi everyone, I'm trying to tell tomcat to use log4j for its internal logging, but it just ignores me.. I have Tomcat 6.0.33 running on a Mac OS X 10.5.8 (with java openjdk version 1.6.0-internal). I followed to the letter the docs at

Re: can't set tomcat to use log4j for its internal logging

2011-10-19 Thread Silvia Righini
On Wed, Oct 19, 2011 at 4:46 PM, Konstantin Kolinko knst.koli...@gmail.comwrote: 2011/10/19 Silvia Righini shigure.minaz...@gmail.com: Hi everyone, I'm trying to tell tomcat to use log4j for its internal logging, but it just ignores me.. I have Tomcat 6.0.33 running on a Mac OS X

RE: TOMCAT_BASE and TOMCAT_HOME

2011-10-19 Thread Chad.Davis
There was a change in 6.0.21 (6.0.24 - released 2010-01-21) that now a Tomcat instance looks both into $CATALINA_BASE\lib and $CATALINA_HOME\lib for libraries. Ahh! This makes it clear. So, for 5.5 and early 6.0, if you wanted to add anything to these lib directories, and you didn't

Re: Using the Apache Tomcat 6.0 SSL Configuration HOW-TO guide, but it is not working

2011-10-19 Thread ML Harmon
I don't see any log file? what would be the log files name? On Fri, Oct 14, 2011 at 9:55 AM, Konstantin Kolinko knst.koli...@gmail.comwrote: 2011/10/14 ML Harmon mlhlanma...@gmail.com: I don't even know enough about Tomcat to know how to troubleshoot this, am very new to this. 1) If

Re: combination of RemoteAddrValve und basic authentication

2011-10-19 Thread Remon Sadikni
Hi Chris, If you overrode the process() method (and I'm sure you changed other things, too, since the variable allows is not part of RequestFilterValve), then you really aren't getting anything by extending RequestFilterValve. but allows is part of RequestFilterValve. I only extended this

Re: Tomcat configuration under webApp

2011-10-19 Thread ettoregia
Christopher Schultz-2 wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ettore, On 10/19/2011 3:38 AM, ettoregia wrote: SERVER.XML-- ?xml version='1.0' encoding='utf-8'? Server port=1${tomcat.server.port} shutdown=SHUTDOWN Just

Re: WebApp access to a LAN share

2011-10-19 Thread Léa Massiot
Hello again. @awarnier and others. It worked! Thanks. I just want to add that I had to install the smbfs package to be able to mount Windows shares: apt-get install smbfs Best regards, -- Léa -- View this message in context:

question about inter-webapp communication

2011-10-19 Thread Garey Mills
Hello - Tomcat 7.0.8 on RHEL6. I have two webapps, one accessed at /webapp_one and one at /webapp_two. My question has to do with how to include output from /webapp_two in the output of /webapp_one. I want to use /webapp_one as an authentication front end for /webapp_two, since

Re: [sidebar] Tomcat configuration under webApp

2011-10-19 Thread Tim Watts
Don't know how this happens but your replies are coming across as quoted (i.e. having a line prefix). Makes it very difficult to follow the thread. On Wed, 2011-10-19 at 10:21 -0700, ettoregia wrote: Christopher Schultz-2 wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1

Re: [sidebar] Tomcat configuration under webApp

2011-10-19 Thread Mark Thomas
On 19/10/2011 19:01, Tim Watts wrote: Don't know how this happens but your replies are coming across as quoted (i.e. having a line prefix). Makes it very difficult to follow the thread. That is a *good* thing. Unquoted replies make it very difficult to differentiate between who wrote what.

RE: [sidebar] Tomcat configuration under webApp

2011-10-19 Thread Caldarale, Charles R
From: Mark Thomas [mailto:ma...@apache.org] Subject: Re: [sidebar] Tomcat configuration under webApp On 19/10/2011 19:01, Tim Watts wrote: Don't know how this happens but your replies are coming across as quoted (i.e. having a line prefix). Makes it very difficult to follow the

Re: combination of RemoteAddrValve und basic authentication

2011-10-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Remon, On 10/19/2011 12:23 PM, Remon Sadikni wrote: Hi Chris, If you overrode the process() method (and I'm sure you changed other things, too, since the variable allows is not part of RequestFilterValve), then you really aren't getting

Re: [sidebar] Tomcat configuration under webApp

2011-10-19 Thread Mark Thomas
On 19/10/2011 19:06, Caldarale, Charles R wrote: From: Mark Thomas [mailto:ma...@apache.org] Subject: Re: [sidebar] Tomcat configuration under webApp On 19/10/2011 19:01, Tim Watts wrote: Don't know how this happens but your replies are coming across as quoted (i.e. having a line prefix).

Re: Tomcat configuration under webApp

2011-10-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ettore, On 10/19/2011 1:21 PM, ettoregia wrote: So... why can't you use the manager webapp to deploy your WAR? Well because I've no permission to access the manager webApp since there are other applications under the container that I don't own.

Re: question about inter-webapp communication

2011-10-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Garey, On 10/19/2011 1:56 PM, Garey Mills wrote: I want to use /webapp_one as an authentication front end for /webapp_two, since /webapp_two is a large, complex web app and I want to do authentication filtering on patterns in the query string.

Force 32-bit installation on 64-bit windows?

2011-10-19 Thread David kerber
If I use the 32-bit/64-bit bit windows service installer, is there a way of forcing it to do a 32-bit installation when it's installing on 64-bit windows server 2008? Or do I need to get the 32-bit windows zip and do it myself? I've got issues with database connectivity that appear to be

RE: Force 32-bit installation on 64-bit windows?

2011-10-19 Thread Caldarale, Charles R
From: David kerber [mailto:dcker...@verizon.net] Subject: Force 32-bit installation on 64-bit windows? If I use the 32-bit/64-bit bit windows service installer, is there a way of forcing it to do a 32-bit installation when it's installing on 64-bit windows server 2008? The current Tomcat

Re: Force 32-bit installation on 64-bit windows?

2011-10-19 Thread David kerber
On 10/19/2011 3:54 PM, Caldarale, Charles R wrote: From: David kerber [mailto:dcker...@verizon.net] Subject: Force 32-bit installation on 64-bit windows? If I use the 32-bit/64-bit bit windows service installer, is there a way of forcing it to do a 32-bit installation when it's installing on

RE: Force 32-bit installation on 64-bit windows?

2011-10-19 Thread Caldarale, Charles R
From: David kerber [mailto:dcker...@verizon.net] Subject: Re: Force 32-bit installation on 64-bit windows? So if I select the 32-bit JRE, it should install the 32-bit service? Not sure if the installer will ask, but if you make the 32-bit JRE the default, it will use that and select the

RE: [sidebar] Tomcat configuration under webApp

2011-10-19 Thread ettoregia
n828cl wrote: From: Mark Thomas [mailto:ma...@apache.org] Subject: Re: [sidebar] Tomcat configuration under webApp On 19/10/2011 19:01, Tim Watts wrote: Don't know how this happens but your replies are coming across as quoted (i.e. having a line prefix). Makes it very difficult to

Fwd: Re: question about inter-webapp communication

2011-10-19 Thread Garey Mills
Christopher - Thanks for your reply. I am just going to respond to your first question here, because it may be that I need to rethink the whole thing. /webapp_two is Geoserver, a complex web app that receives requests for geolocated content and returns it in a number of

Re: Fwd: Re: question about inter-webapp communication

2011-10-19 Thread André Warnier
Garey Mills wrote: ... Need some time to think about this, but I agree with Christopher that there should be a simpler way than what you first outlined. For a start, have you looked at the urlrewrite filter ? http://urlrewritefilter.googlecode.com/svn/trunk/src/doc/manual/3.2/index.html

FW: how to apply fixes for various identified vulnerabilities

2011-10-19 Thread Barrera, Maribel
Hi, I want to apply the fixes to various identified vulnerabilities. We are using Tomcat 4.1.24, McAfee has identified several vulnerabilities. When I went to your http://tomcat.apache.org/security-4.html site, I can see the cve numbers and the fix, however, when I click the fixes, it let me

RE: how to apply fixes for various identified vulnerabilities

2011-10-19 Thread Caldarale, Charles R
From: Barrera, Maribel [mailto:maribel.barr...@travelport.com] Subject: FW: how to apply fixes for various identified vulnerabilities We are using Tomcat 4.1.24 Which is over 8.5 years old... McAfee has identified several vulnerabilities. I bet it has. How do I build these source codes

Re: Using the Apache Tomcat 6.0 SSL Configuration HOW-TO guide, but it is not working

2011-10-19 Thread Pid *
On 19 Oct 2011, at 16:15, ML Harmon mlhlanma...@gmail.com wrote: I don't see any log file? what would be the log files name? Please don't top post (see below). On Fri, Oct 14, 2011 at 9:55 AM, Konstantin Kolinko knst.koli...@gmail.comwrote: 2011/10/14 ML Harmon mlhlanma...@gmail.com: I