Mod_jk returning source code of jsp files

2012-04-23 Thread ironclaw hand
Hi, I am attempting to set up apache and tomcat together for the first time on a new machine using some existing configuration files. I am not sure what is happening but it looks like apache is just serving up all files so when i acccess a jsp file I get the source as if tomcat never

Re: Mod_jk returning source code of jsp files

2012-04-23 Thread Igor Cicimov
Put this line Include /etc/httpd/conf/mod_jk.conf inside virtual host. On Apr 23, 2012 9:12 PM, ironclaw hand ironclawh...@hotmail.com wrote: Hi, I am attempting to set up apache and tomcat together for the first time on a new machine using some existing configuration files. I am not

RE: Mod_jk returning source code of jsp files

2012-04-23 Thread ironclaw hand
Ok I tried that but apache wont start now. It gives the following error: AH00526: Syntax error on line 1 of /etc/httpd/conf/mod_jk.conf: JkWorkersFile cannot occur within VirtualHost section [FAILED] Date: Mon, 23 Apr 2012 22:36:35

RE: Mod_jk returning source code of jsp files

2012-04-23 Thread Igor Cicimov
Well you need to have JkMount command inside the virtual host so its up to you how to do it. On Apr 23, 2012 10:53 PM, ironclaw hand ironclawh...@hotmail.com wrote: Ok I tried that but apache wont start now. It gives the following error: AH00526: Syntax error on line 1 of

RE: Mod_jk returning source code of jsp files

2012-04-23 Thread ironclaw hand
So are you saying I should do away with the mod_jk.conf completely? I have already tried putting everything into httpd.conf like you suggested: NameVirtualHost sfta.npfit.nhs.uk:443 VirtualHost sfta.npfit.nhs.uk:443 LoadModule jk_module modules/mod_jk.so /Virtualhost IfModule mod_jk.c

Re: Mod_jk returning source code of jsp files

2012-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ironclaw, On 4/23/12 9:18 AM, ironclaw hand wrote: So are you saying I should do away with the mod_jk.conf completely? That depends upon what is in mod_jk.conf. Your mod_jk.conf looks like a mix between global mod_jk directives (e.g.

Re: Tomcat 6.0.35 filters not invoked for error-pages

2012-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ludwig, On 4/22/12 2:26 PM, Ludwig Magnusson wrote: Hello. I found some strange behavour in tomcat 6.0.35 when declaring error-pages in my web.xml. When tomcat picks up an error and redirects it to the location given by the location element in

Re: parallel deployment activation of new version

2012-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Christoph, On 4/22/12 11:55 AM, Christoph Maser wrote: Chris, Am Donnerstag, den 19.04.2012, 18:21 +0200 schrieb Christopher Schultz: Christoph, What about the webapp itself performing its own health-check as a last step of deployment, and

Re: 64bit windows mod_jk connector download for apache httpd 2.4

2012-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mladen, On 4/21/12 12:02 PM, Mladen Turk wrote: On 04/19/2012 06:33 PM, Christopher Schultz wrote: I think it's reasonable for us to add x86-64 builds for mod_jk+httpd. The problem is that there are no more 'official' httpd binaries. Aah, I

RE: Mod_jk returning source code of jsp files

2012-04-23 Thread ironclaw hand
Thanks Christopher I will address the security issues if I am actually able to get mod_jk to execute a jsp! I have now removed everything from mod_jk.conf except for the global directives and I now have my httpd.conf looking like: # # JK for connections to Tomcat # LoadModule jk_module

Re: catalina.out file is growing very rapidly! How to prevent Hibernate's INFO and DEBUG statements from getting added to catalina.out file?

2012-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dilip, On 4/20/12 7:36 PM, Dilip Shah wrote: The problem is that there seem to be one / several jar files that I use in my application that are adding vast number of INFO and DEBUG statements in catalina.out I suspect that the following are true:

Connection between Web Application and DB

2012-04-23 Thread Anjib Mulepati
Hi All, I have my DB and web application running in different machine. And whenever my DB machine restart my application fail since it can't connect to the DB. I have to restart my application every time my DB start. I am using Struts Plug-in to load connection information from web.xml file

Re: Mod_jk returning source code of jsp files

2012-04-23 Thread André Warnier
ironclaw hand wrote: Thanks Christopher I will address the security issues if I am actually able to get mod_jk to execute a jsp! No. You should do things right first, in a secure way. And then, when it works, you can start optimising carefully and step by step, and try not to introduce

Re: 64bit windows mod_jk connector download for apache httpd 2.4

2012-04-23 Thread Mladen Turk
On 04/23/2012 04:11 PM, Christopher Schultz wrote: The problem is that there are no more 'official' httpd binaries. Aah, I didn't realize that ASF doesn't have official httpd x86-64 binaries. Right, never did have 64-bit, and now no more 32-bit as well. Probably because the current

Re: Tribes coordinator

2012-04-23 Thread Filip Hanik Mailing Lists
http://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/catalina/tribes/group/interceptors/package-summary.html Take a look at SimpleCoordinator and NonBlockingCoordinator Equally simple to implement your own based on the requirement you have for leader election. It does depend on what you need

Re: dbcp datasource encryption

2012-04-23 Thread Filip Hanik Mailing Lists
- Original Message - http://wiki.apache.org/tomcat/FAQ/Password In short, no. Encrypting your database, database user, and database password buys you virtually (and most people would say actually) nothing. virtually nothing is the opposite of what I would call it. What

Re: Javamelody and Struts

2012-04-23 Thread Miguel González Castaños
On 16/04/2012 12:43, Darryl Lewis wrote: Make sure the monitoring code is before the struts call. On 16/04/12 5:38 PM, Miguel González Castaños miguel_3_gonza...@yahoo.es wrote: On 16/04/2012 09:34, Debraj Mallick wrote: hi there, to access use :*http://host/context/monitoring* link:

Re: dbcp datasource encryption

2012-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, On 4/23/12 1:47 PM, Filip Hanik Mailing Lists wrote: http://wiki.apache.org/tomcat/FAQ/Password In short, no. Encrypting your database, database user, and database password buys you virtually (and most people would say actually)

Re: catalina.out file is growing very rapidly! How to prevent Hibernate's INFO and DEBUG statements from getting added to catalina.out file?

2012-04-23 Thread Dilip Shah
ok, the issue is resolved! Konstantin, Your observation that output in catalina.out in Linux Live environment is different from console output in my Windows development environment and your statement You have some mess in your common/lib prompted me to compare jar files in both the

Re: Javamelody and Struts

2012-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Miguel, On 4/23/12 3:57 PM, Miguel González Castaños wrote: On 16/04/2012 12:43, Darryl Lewis wrote: Make sure the monitoring code is before the struts call. On 16/04/12 5:38 PM, Miguel González Castaños miguel_3_gonza...@yahoo.es wrote:

Re: 64bit windows mod_jk connector download for apache httpd 2.4

2012-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mladen, On 4/23/12 11:36 AM, Mladen Turk wrote: On 04/23/2012 04:11 PM, Christopher Schultz wrote: The problem is that there are no more 'official' httpd binaries. Aah, I didn't realize that ASF doesn't have official httpd x86-64 binaries.

Re: asp file and session creation

2012-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gunay, On 4/21/12 2:58 AM, gunay arslan wrote: Seems like I could not explain what exactly I was trying to show. A reference implementation of the PageContextImpl is attached, and I tested this with one of our in-house web application. The point

Re: Javamelody and Struts

2012-04-23 Thread Miguel González Castaños
Have you imported all of the intermediate certificates from VeriSign. I think that for some SSL certificates, you need *two* intermediate certificates from VeriSign. No, I didn't know that I had to do that. Where can I download those intermediate certificates? Many thanks for the hint Miguel

Re: asp file and session creation

2012-04-23 Thread Konstantin Kolinko
2012/4/24 Christopher Schultz ch...@christopherschultz.net: It might be worthwhile proposing a setting for Jasper where the default session setting could be set to false (in obvious violation of the servlet specification) so that JSPs must specifically set session=true in their headers, but

Re: Javamelody and Struts

2012-04-23 Thread Miguel González Castaños
On 23/04/2012 23:00, Miguel González Castaños wrote: Have you imported all of the intermediate certificates from VeriSign. I think that for some SSL certificates, you need *two* intermediate certificates from VeriSign. No, I didn't know that I had to do that. Where can I download those

Re: catalina.out file is growing very rapidly! How to prevent Hibernate's INFO and DEBUG statements from getting added to catalina.out file?

2012-04-23 Thread Konstantin Kolinko
2012/4/23 Dilip Shah dilipvs...@hotmail.com: ok, the issue is resolved! Konstantin, Your observation that output in catalina.out in Linux Live environment is different from console output in my Windows development environment and your statement You have some mess in your common/lib

Re: 64bit windows mod_jk connector download for apache httpd 2.4

2012-04-23 Thread chris derham
Exactly. Might be better to come from userland +1 I have emailed the apache lounge contact email asking if they would consider including a build of mod_jk - lets see what happens Thanks Chris

Re: parallel deployment activation of new version

2012-04-23 Thread Pid
On 23/04/2012 15:06, Christopher Schultz wrote: Christoph, On 4/22/12 11:55 AM, Christoph Maser wrote: Chris, Am Donnerstag, den 19.04.2012, 18:21 +0200 schrieb Christopher Schultz: Christoph, What about the webapp itself performing its own health-check as a last step of deployment,

Re: Tribes coordinator

2012-04-23 Thread Afkham Azeez
Thanks for the pointers Filip. I will take a look. On Mon, Apr 23, 2012 at 9:12 PM, Filip Hanik Mailing Lists devli...@hanik.com wrote: http://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/catalina/tribes/group/interceptors/package-summary.html Take a look at SimpleCoordinator and