Timestamps in mod_jk.log
Hi, Could the developers of mod_jk please add timestamp logging and if possible request url to mod_jk.log ? Thanks Shahed.
Re : extracting jsp file name
Sorry for the confusion. I have a MVC framework in which all jsp pages post data to a controller servlet. In this servlet, I need to findout which jsp page invoked it. Currently I am passing a hidden variable with value="/callingpage.jsp" i.e in calling.jsp I have the code fragment form action="/servlet/controller" input type="hidden name=referer" value ="calling.jsp" /form I want to replace this with some jsp token in each page so that i dont have to hardcode the jsp page name in every page. At first I thought of using the HTTP referer header in the servlet, but that only works for the first time. The servlet does a servlet forward(), and so the next time I look at the HTTP Referer header, I get the name of the servlet and not the jsp page which called the servlet. The only way I could think of is getting the generated class name in jsp and UnMangling it. I could either do that or write my own Mangler class. Now I looked at the Mangler code in CommandLineCompiler.java from jasper. The interface file Mangler.java has a comment that says that I can *plug in* my own mangler. However, would that mean rewriting CommandLineCompiler since it implements Mangler ? Thanks Shahed - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
REPOST : extracting jsp filename from generated class
Hi all, Sorry for this repost. From within a jsp page, I need to know the name of the jsp page. If I do a %=this.getClass()%, I get a string which represents the class name of the generated servlet. Is there some standard way in which I can extract the jsp page from that name ? Another Qs :- How does Tomcat know that a certain jsp page maps to a certain class ?. If I can access that data, then I can possibly lookup the pagename. Any clues ? Thanks Shahed. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
BIZZAR Caching Problem !!
Hi, I am using Tomcat 3.2.1 w/Sun JDK 1.3 on Solaris 8 + Apache 1.3.14 + mod_jk Now here is my problem. I have a jsp page with an include to refer to file a.inc. I change the include to refer to another file (b.inc) I reload the page. I still see the content of a.inc. I touch the jsp file. No change. I go to the work directory and rm * (delete all generated class and java files) I reload the page. No change. I look at the generated .java code for my jsp page. It sill includes the old a.inc file. FINALLY I restart tomcat. Everything back to normal. Can anyone tell me what was going on ? Does mod_jk somehow cache the jsp file ? Thanks Shahed. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
JSP generated .java Naming Convention
Hi, I need to get the name of the current jsp page in a scriptlet. The jsp page could be serverd up by a link or by a jsp:forward or a redirect. If I do %=this.getClass()%, I get the following for a jsp page tmp/ST003.jsp tmp._0002ftmp_0002fST_00030_00030_00033_0002ejspST003_jsp_1 Is there some standard way of extracting the jsp page name form this ? Or is this naming convention subject to change ? Or is there any other way ? Thanks Shahed. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Object Passivation in TC 3.2.x ?
Hi, I am creating a connection pool in my jsp pages. This connection pool is a context wide static class that is referenced by each jsp page through a static class method. If the website is inactive for about 2-3 hours, I get an error trying to get connections from the pool. I suspect that this is due to that class being serialized. This does not seem to happen in tomcat 3.1 though. The same site / connection pool class works fine !!! Is this my problem ? Is there any way to turn this off. Thanks Shahed.
Nightly Build Link broken ?
Hi, I am trying to download Tomcat 3.2.1 B. Is it the same as the release version of Tomcat 3.2.1 ? In any case, the Nightly Build Link for downloading the source code of Tomcat seems to be broken. Thanks Shahed.
Reading SSL Client Cert in TC 3.2
Hi, I am using Tomcat 3.2 with Apache Stronghold 3.0. I am aware that there are directives in TC 3.2 which allow SSL info to be passed back to Tomcat. What I would like to know is whether there are any sample jsp / servlet code or any website that shows me how I can retrieve SSL Client Certificate info and use it for authenticating the client. I know that there is some class in the javax.security package that deals with X.509 certificates etc etc, but what I am looking out for is sample code as I am very new to SSL and Client certificates (and good authentication methods) in general. Thanks Shahed.
Client Certificate Auth
(Sorry if this is a bit off topic) I am using Tomcat 3.1 with Apache - Stronghold. I am new to SSL / Digital certificates, and was wondering if any one can point me to any example code / url or even a book title which has an example of how to read a client digital certificate and grant access to users based on that. Firstly is this supported in Tomcat 3.1 with Apache as the web server ? Also is there any way that I can dispense certificates off my web server rather than ask the users to get a certificate from a CA. Thanks Shahed.
Cannot compile mod_jk under Solaris 8 Intel
Hi, I am having a problem compiling mod_jk on Solaris 8 (Intel) for Tomcat 3.2. I have tried with both jdk1.2.1 and jdk1.2.2 for the include files since I know that Tomcat 3.1 had a problem with 1.2.2 Anyway, if I dont give the -lposix4 flag, I get the fdatasync symbol not found error. If I do give the -lposix4 flag, I get a message saying that cannot start server. BTW, I am using StrongHold (Apache 1.3.14) and the apxs etc are from stronghold. Thanks Shahed
Tomcat 3.2 on Solaris 8 with Sun JDK 1.1.2
I have faced this problem earlier with Tomcat 3.1. It just does not seem to work with JDK 1.2.2. When I access a jsp, the .java file under the work directory get stuck at out.write(html\r\n!--\r\n Copyright (c) 1999 The Apache Software Foundation. All rights \r\n reserved.\r\n--\r\n\r\n); It works fine if I set JAVA_HOME to jdk1.2.1 Is this bug fixed in later versions ? Thanks Shahed
Fw: Virtual Hosts and Context Path Question
-Original Message-From: Shahed Ali [EMAIL PROTECTED]To: [EMAIL PROTECTED] [EMAIL PROTECTED]Cc: [EMAIL PROTECTED] [EMAIL PROTECTED]Date: Friday, December 01, 2000 11:33 AMSubject: Virtual Hosts and Context Path Question I am running Apache Stronghold with Virtual Hosts and Tomcat 3.1 I am using Named Hosts and have www.a.com and www.b.com both pointing to the same IP address. Now when I go to http://www.a.com I want my DoucmentRoot to point to /usr/local/jakarta-tomcat/webapps/A_APP/index.jsp But I also have to modify the Context Path = in server.xml to point to webapps/MYAPP Now suppose I want http://www.b.com to point to /usr/local/jakarta-tomcat/webapps/B_APP/index.jsp, I would need to also set the Context path = ? How can I go about doing this ? OR Or If I have virtual hosts using the same Tomcat Server, then do I need to keep all my jsp stuff in different contexts and Set up an alias in each virtual host = Context Path ? So when I want to serve up jsp pages for site A I say http://www.a.com/siteAjsp/myapp.jsp And when I want to serve up jsp pages for site B I say http://www.b.com/siteBjsp/myapp.jsp Where siteAjsp , siteBjsp etc all have to be unique aliases/context-paths combinations. Eg NameVirtualHost 192.168.5.100 Virtual Host 192.168.5.100 ServerName www.a.com DocumentRoot /home/a Alias /siteAjsp /usr/local/jakarta/tomcat/webapps/siteAjsp ApJServMount /siteAjsp/servlet /siteAjsp Location /siteAjsp/WEB-INF . /Location /Virtual Host For this Host in server.xml Context path=/siteAjsp docbase = webapps/siteAjsp Virtual Host 192.168.5.100 ServerName www.b.com DocumentRoot /home/a Alias /siteBjsp /usr/local/jakarta/tomcat/webapps/siteBjsp ApJServMount /siteBjsp/servlet /siteBjsp Location /siteAjsp/WEB-INF . /Location /Virtual Host For this Host in server.xml Context path=/siteBjsp docbase = webapps/siteBjsp Thanks Shahed