JSP under /WEB-INF folder

2004-12-26 Thread Koon Yue Lam
Hi, I want to protect my JSP from direct access, so they can only access by Struts action. but If I want to include some Javascript or CSS to a JSP, I can't ! Because .js and .css needed to place directly under WebRoot My solution is to use jps:include to include all those Javascript and CSS

Jk1.2.6 problem (I suppose that module is not initialized properly)

2004-12-26 Thread Alexander Kitaev
Hello, I have the following configuration (on Linux): Apache 2.0.52 JK 1.2.26 module (binary version downloaded) Tomcat 5.5.4.0 Apache is running in chroot jail. I've added mod_jk.so to the apache modules, included it into apache configuration (LoadModule), created workers.properties and added

Re: Jk1.2.6 problem (I suppose that module is not initialized properly)

2004-12-26 Thread Mladen Turk
Alexander Kitaev wrote: I have the following configuration (on Linux): Apache 2.0.52 JK 1.2.26 module (binary version downloaded) For what Linux? There is no JK 1.2.6 binary version for 2.0.52 for any linux version. Download sources and recompile, or better download 1.2.8 sources and compile.

RE: Jk1.2.6 problem (I suppose that module is not initialized properly)

2004-12-26 Thread Alexander Kitaev
Hello Mladen, I the JK version I am using is 1.2.6 for Apache 2.0.50 (taken from http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/linux/jk-1. 2.6/) I'm using Gentoo Linux with 2.4 kernel. I will get JK 1.2.8 and build it from sources as you suggested, but I though that if the

RE: Jk1.2.6 problem (I suppose that module is not initialized properly)

2004-12-26 Thread Alexander Kitaev
I've just downloaded and build JK1.2.8, and replaced JK 1.2.6 with the new module. The problem still persists. mod_jk.log file (on http://host/examples/ request): [Sun Dec 26 16:37:32 2004] [16947:16384] [trace] jk_child_init::mod_jk.c (2192): enter [Sun Dec 26 16:37:32 2004] [16947:16384]

Re: JSP under /WEB-INF folder

2004-12-26 Thread QM
On Sun, Dec 26, 2004 at 10:31:32PM +0800, Koon Yue Lam wrote: : Hi, I want to protect my JSP from direct access, so they can only : access by Struts action. So far, so good. First, you don't want to put your JSPs under WEB-INF (as mentioned in your subject line). That makes your webapp less

Re: JK2 Officially Unsupported - Should I Avoid JK2?

2004-12-26 Thread QM
On Wed, 22 Dec 2004 17:03:19 -0700, Sean Dockery [EMAIL PROTECTED] wrote: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/news/20041100.html#20041115.1 I had been under the impression that JK2 was superior to JK. In light of the announcement, should we be sticking with JK from

Re: Jk1.2.6 problem (I suppose that module is not initialized properly)

2004-12-26 Thread QM
On Sun, Dec 26, 2004 at 05:58:32PM +0300, Alexander Kitaev wrote: : Apache is running in chroot jail. I've added mod_jk.so to the apache : modules, included it into apache configuration (LoadModule), created : workers.properties and added all the necessary lines into apache : configuration file. :

Re: JSP under /WEB-INF folder

2004-12-26 Thread Hassan Schroeder
Koon Yue Lam wrote: Hi, I want to protect my JSP from direct access, so they can only access by Struts action. but If I want to include some Javascript or CSS to a JSP, I can't ! Because .js and .css needed to place directly under WebRoot I'm afraid I don't understand the issue. If you're

RE: Jk1.2.6 problem (I suppose that module is not initialized properly)

2004-12-26 Thread Alexander Kitaev
Hello, 1/ any reason you're using 1.2.6? I thought 1.2.8 was out (though it may still be in beta). I'm already using 1.2.8 as you've suggested. I built it from sources and replaced my 1.2.6 mod_jk.so with the latest one. 2/ chroots can be tricky. Does your setup work outside of a chroot?

NullPointerException attempting to deploy a WAR with context.xml in META-INF on Tomcat 5.5

2004-12-26 Thread Henrik Vendelbo
I have a quite persistent problem attempting to use the ManagerServlet deployment tasks. On Tomcat 5.5.28+Java5 with Host config autoDeploy=false I use the deploy task to upload my war file. It fails and thereafter on every startup Tomcat throws a NullPointerException in

web.xml uses non-validating xml?

2004-12-26 Thread D. Stimits
I'm trying to debug something, and the individual webapps/myapp/WEB-INF/web.xml file seems to be a bit of an enigma to me. I've been using something like this: resource-env-ref descriptionTest value/description resource-env-ref-namesomeValue/resource-env-ref-name env-entry-valuestub

RE: web.xml uses non-validating xml?

2004-12-26 Thread Peter Crowther
From: D. Stimits [mailto:[EMAIL PROTECTED] I'm trying to debug something, and the individual webapps/myapp/WEB-INF/web.xml file seems to be a bit of an enigma to me. [...] I went to the DTD's to see what was written there. Initially I used this DTD: !DOCTYPE web-app PUBLIC -//Sun

Making a webapp JMX-manageable?

2004-12-26 Thread Michael Schuerig
I would like to make a simple web application manageable. Right now I'm at a loss how to do this. My problem is not so much JMX itself, but rather how to integrate into Tomcat. Some sample code would be very helpful. Michael -- Michael Schuerig The more it stays

tomcat returns null for init parameter

2004-12-26 Thread Raasi Potluri
Dear Friends, I have written a simple servlet which reads a init parameter from the web.xml file and displays on the browser. I'm a beginner and trying to learn simple servlets, I have reached where I can read some init params from the web.xml file and displays on the browser, but all the simple

tomcat returns null for init parameter

2004-12-26 Thread Raasi Potluri
Dear Friends, I have written a simple servlet which reads a init parameter from the web.xml file and displays on the browser. I'm a beginner and trying to learn simple servlets, I have reached where I can read some init params from the web.xml file and displays on the browser, but all the simple

reg downloading

2004-12-26 Thread G.PardhaSaradhi
Hi, I want to download websites like java.sun.com (whole site) and I want to write it on a CD. Please let me know how to achieve this. Regards, Pardha Saradhi DISCLAIMER: This message contains privileged and confidential information and is intended only for the individual named.If

Re: reg downloading

2004-12-26 Thread Onkar Singh
Hi, You can use software like 'Teleport Pro' to download the whole site'. Onkar Singh __

Re: [OT} reg downloading

2004-12-26 Thread QM
On Mon, Dec 27, 2004 at 09:59:35AM +0530, [EMAIL PROTECTED] wrote: : I want to download websites like java.sun.com (whole site) and I want : to write it on a CD. 1/ please mark threads off-topic (OT) if your message has nothing to do with Tomcat. 2/ the wget tool can do this 3/ watch out for

Re: extra directory in WebDAV servlet listing

2004-12-26 Thread Garret Wilson
Mark, Mark Thomas wrote: The webdav servlet is based around accessing the file system through a JNDI DirContext for the current webapp. I've officially started working on the configured-filesystem-root feature. The ProxyDirContext gets configured either by getting the

Re: How to configure struts enable application to reload

2004-12-26 Thread QM
On Mon, Dec 27, 2004 at 09:53:17AM +0530, Amit Gupta wrote: : I am giving demo of my Struts based application on a hosting server. I don't : have access to tomcat manager application to reload my demo. Can I do : something on my part to automatically reload my application whenever I update : any

RE: How to configure struts enable application to reload

2004-12-26 Thread Amit Gupta
My Concern is that whenever I deploy finished application to give demo to clinet, I need to realod application at hosting server. As said I cannot do it due to lack of access to tomcat manager. Aamit Gupta -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Monday, December

How to configure struts enable application to reload

2004-12-26 Thread Amit Gupta
Hi, I am struggling with a problem. I am giving demo of my Struts based application on a hosting server. I don't have access to tomcat manager application to reload my demo. Can I do something on my part to automatically reload my application whenever I update any class in application?