How is the jsp:forward processed
Hi, Can someone please give me a understanding of how jsp:forward and jsp:include directive processed in Tomcat JSP engine, what are the steps followed by the jsp container and what jasper classes are used. Thanks for any help. Nitin -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
How to log jsp:forward and jsp:include request
Hi, I am trying to figure out if I can log the jsp:forward and jsp:include directives, that is if i can make container write out to some log file something request a has been forwarded to test.jsp or a.jsp, b.jsp have been included in the compilation of c.jsp. Does any one has any suggestion how can i do this. Thanks, Nitin -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Debugging JSPs and Servlets
Hello, I am trying to create an environment that will assist in debugging jsps, i think one of the basic ways to do debugging is through logging, I want to log various request coming in along with the request parameters, i checked the access loggs but they only logg GET request also it doesnt logg the parameters, is there anyway i can logg POST request too along with the request parameters, i can possibly use a filter to do it, will that be a right approach also can i configure a filter to run for all the servlets? Also is it possible to logg something like forwards to another page and including other pages, also if you have any other suggestions to add features that will assist in debugging that i can implement i will greatly appreciate it. Thanks, Nitin -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Compilation Error when building Tomcat
Hi Craig, Thanks for your help. I have managed to successfully build the tomcat. The problems were caused by existence of earlier versions of ant.jar and servlet.jar in jre/lib/ext folder. Now I am actually wondering, is it really smart to put jars in jre/lib/ext folder cause i struggled through a simple build process for 2 days just because of that. Regards, Nitin -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 25, 2001 8:08 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: Compilation Error when building Tomcat Did you download the optional.jar file that goes with Ant, and put it in the $ANT_HOME/lib directory? Did you add xalan.jar (from JAXP/1.1) to the $ANT_HOME/lib directory? Both of these requirements are documented on the BUILDING.txt step about downloading and installing Ant. Craig On Wed, 24 Oct 2001, Nitin Vira wrote: Date: Wed, 24 Oct 2001 11:20:20 -0700 From: Nitin Vira [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: Compilation Error when building Tomcat Hi Craig, I am really sorry for taking up too many of your resources on this, but i just cant figure out how to get tomcat to build. I used the release version of tomcat source and i think it gets build upto dist-static and then it gives the following error, i think in target dist-prepare, tomcat-docs: BUILD FAILED C:\jakarta-tomcat-4.0-rc1-src\webapps\tomcat-docs\build.xml:84: Class org.apache .tools.ant.taskdefs.XSLTProcess doesn't support the nested param element So i downloaded the latest source from the nightly builds but after updating build.properties when i try to run ant -projecthelp i get following error C:\Tomcat\jakarta-tomcat-4.0ant -projecthelp Searching for build.xml ... Buildfile: C:\Tomcat\jakarta-tomcat-4.0\build.xml BUILD FAILED C:\Tomcat\jakarta-tomcat-4.0\build.xml:239: Class org.apache.tools.ant.taskdefs. Zip doesn't support the nested zipfileset element Total time: 1 second Could you please help me figure out the problem, Thanks for your help. Nitin -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 23, 2001 11:04 AM To: [EMAIL PROTECTED] Subject: RE: Compilation Error when building Tomcat On Tue, 23 Oct 2001, Nitin Vira wrote: Date: Tue, 23 Oct 2001 10:12:43 -0700 From: Nitin Vira [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: Compilation Error when building Tomcat Hi Craig, I figured as much, but i dont quite get from where to get the latest servlet.jar and where to put and make the ant pick up this jar and not any other. Thanks once again for your help. See the BUILDING.txt file in the top level source directory of Tomcat. It tells you exactly where to get everything (including getting the latest Servlet and JSP classes from the jakarta-servletapi1-4 repository). Nitin Craig
RE: Compilation Error when building Tomcat
Hi Craig, The build is finally successfull,there was an old version of ant.jar in jre/lib/ext, but i dont know where did it place the build files and i dont see the binary distribution structure replicated. Thanks, Nitin -Original Message- From: Nitin Vira Sent: Wednesday, October 24, 2001 11:20 AM To: '[EMAIL PROTECTED]' Cc: '[EMAIL PROTECTED]' Subject: RE: Compilation Error when building Tomcat Hi Craig, I am really sorry for taking up too many of your resources on this, but i just cant figure out how to get tomcat to build. I used the release version of tomcat source and i think it gets build upto dist-static and then it gives the following error, i think in target dist-prepare, tomcat-docs: BUILD FAILED C:\jakarta-tomcat-4.0-rc1-src\webapps\tomcat-docs\build.xml:84: Class org.apache .tools.ant.taskdefs.XSLTProcess doesn't support the nested param element So i downloaded the latest source from the nightly builds but after updating build.properties when i try to run ant -projecthelp i get following error C:\Tomcat\jakarta-tomcat-4.0ant -projecthelp Searching for build.xml ... Buildfile: C:\Tomcat\jakarta-tomcat-4.0\build.xml BUILD FAILED C:\Tomcat\jakarta-tomcat-4.0\build.xml:239: Class org.apache.tools.ant.taskdefs. Zip doesn't support the nested zipfileset element Total time: 1 second Could you please help me figure out the problem, Thanks for your help. Nitin -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 23, 2001 11:04 AM To: [EMAIL PROTECTED] Subject: RE: Compilation Error when building Tomcat On Tue, 23 Oct 2001, Nitin Vira wrote: Date: Tue, 23 Oct 2001 10:12:43 -0700 From: Nitin Vira [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: Compilation Error when building Tomcat Hi Craig, I figured as much, but i dont quite get from where to get the latest servlet.jar and where to put and make the ant pick up this jar and not any other. Thanks once again for your help. See the BUILDING.txt file in the top level source directory of Tomcat. It tells you exactly where to get everything (including getting the latest Servlet and JSP classes from the jakarta-servletapi1-4 repository). Nitin Craig
RE: Compilation Error when building Tomcat
Hi, Why am i getting this error while building tomcat4.0? i am using ant 1.4 C:\Tomcat\temp\jakarta-tomcat-4.0C:\Tomcat\jakarta-ant-1.4\bin\ant -projecthelp Searching for build.xml ... Buildfile: C:\Tomcat\temp\jakarta-tomcat-4.0\build.xml BUILD FAILED C:\Tomcat\temp\jakarta-tomcat-4.0\build.xml:239: Class org.apache.tools.ant.task defs.Zip doesn't support the nested zipfileset element the line in question is following in build.xml zip zipfile=${tomcat.dist}/${final.name}.zip zipfileset dir=${tomcat.dist} prefix=${final.name} includes=bin/** / -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 23, 2001 12:28 PM To: [EMAIL PROTECTED] Subject: RE: Compilation Error when building Tomcat On Tue, 23 Oct 2001, Nitin Vira wrote: Date: Tue, 23 Oct 2001 11:52:54 -0700 From: Nitin Vira [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: Compilation Error when building Tomcat i had got the jakarta-serlvetapi-4 from the website and i had checked that it has the methods are required but ant is not picking up that jar its reading from somewhere else, does it read some classpath. You have total control over where each JAR file is taken from, by configuring the build.properties file. The quickest way to set this up is to copy build.properties.sample to build.properties and then edit it to suit. The properties that matter for this purpose are servlet.home, servlet.lib, and servlet.jar. Craig
RE: Compilation Error when building Tomcat
When i am using the older version(Readme has following title $Id: README.txt,v 1.17 2001/08/25 03:51:27 craigmcc Exp $) of the source i get following error tomcat-docs: BUILD FAILED C:\jakarta-tomcat-4.0-rc1-src\webapps\tomcat-docs\build.xml:84: Class org.apache .tools.ant.taskdefs.XSLTProcess doesn't support the nested param element Any suggestion as to why this is happening. Appreciate your help. Thanks, Nitin -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 23, 2001 11:04 AM To: [EMAIL PROTECTED] Subject: RE: Compilation Error when building Tomcat On Tue, 23 Oct 2001, Nitin Vira wrote: Date: Tue, 23 Oct 2001 10:12:43 -0700 From: Nitin Vira [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: Compilation Error when building Tomcat Hi Craig, I figured as much, but i dont quite get from where to get the latest servlet.jar and where to put and make the ant pick up this jar and not any other. Thanks once again for your help. See the BUILDING.txt file in the top level source directory of Tomcat. It tells you exactly where to get everything (including getting the latest Servlet and JSP classes from the jakarta-servletapi1-4 repository). Nitin Craig
RE: Compilation Error when building Tomcat
Hi Craig, I am really sorry for taking up too many of your resources on this, but i just cant figure out how to get tomcat to build. I used the release version of tomcat source and i think it gets build upto dist-static and then it gives the following error, i think in target dist-prepare, tomcat-docs: BUILD FAILED C:\jakarta-tomcat-4.0-rc1-src\webapps\tomcat-docs\build.xml:84: Class org.apache .tools.ant.taskdefs.XSLTProcess doesn't support the nested param element So i downloaded the latest source from the nightly builds but after updating build.properties when i try to run ant -projecthelp i get following error C:\Tomcat\jakarta-tomcat-4.0ant -projecthelp Searching for build.xml ... Buildfile: C:\Tomcat\jakarta-tomcat-4.0\build.xml BUILD FAILED C:\Tomcat\jakarta-tomcat-4.0\build.xml:239: Class org.apache.tools.ant.taskdefs. Zip doesn't support the nested zipfileset element Total time: 1 second Could you please help me figure out the problem, Thanks for your help. Nitin -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 23, 2001 11:04 AM To: [EMAIL PROTECTED] Subject: RE: Compilation Error when building Tomcat On Tue, 23 Oct 2001, Nitin Vira wrote: Date: Tue, 23 Oct 2001 10:12:43 -0700 From: Nitin Vira [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: Compilation Error when building Tomcat Hi Craig, I figured as much, but i dont quite get from where to get the latest servlet.jar and where to put and make the ant pick up this jar and not any other. Thanks once again for your help. See the BUILDING.txt file in the top level source directory of Tomcat. It tells you exactly where to get everything (including getting the latest Servlet and JSP classes from the jakarta-servletapi1-4 repository). Nitin Craig
RE: Compilation Error when building Tomcat
Hi Craig, I figured as much, but i dont quite get from where to get the latest servlet.jar and where to put and make the ant pick up this jar and not any other. Thanks once again for your help. Nitin -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Monday, October 22, 2001 6:24 PM To: [EMAIL PROTECTED] Subject: Re: Compilation Error when building Tomcat On Mon, 22 Oct 2001, Nitin Vira wrote: Date: Mon, 22 Oct 2001 14:20:55 -0700 From: Nitin Vira [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Compilation Error when building Tomcat Hi, I am trying to build Tomcat 4.0 from source on windows. I am following the steps given in the build.txt. when i am doing ant dist, it gives me compilation error for classes related to servlet API saying certain method doesnt exist even though the method is present in the interface. for eg it gave me following error [javac] C:\jakarta-tomcat-4.0-rc1-src\catalina\src\share\org\apache\catalina \authenticator\FormAuthenticator.java:418: Method getParameterMap() not found in interface javax.servlet.http.HttpServletRequest. [javac] Map parameters = hreq.getParameterMap(); [javac] ^ Could you please help. Since this method was added in Servlet 2.3, the most likely cause is that you have an old servlet.jar in your compile classpath (or in $JAVA_HOME/jre/lib/ext). Regards, Nitin Craig
RE: Compilation Error when building Tomcat
i had got the jakarta-serlvetapi-4 from the website and i had checked that it has the methods are required but ant is not picking up that jar its reading from somewhere else, does it read some classpath. -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 23, 2001 11:04 AM To: [EMAIL PROTECTED] Subject: RE: Compilation Error when building Tomcat On Tue, 23 Oct 2001, Nitin Vira wrote: Date: Tue, 23 Oct 2001 10:12:43 -0700 From: Nitin Vira [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: Compilation Error when building Tomcat Hi Craig, I figured as much, but i dont quite get from where to get the latest servlet.jar and where to put and make the ant pick up this jar and not any other. Thanks once again for your help. See the BUILDING.txt file in the top level source directory of Tomcat. It tells you exactly where to get everything (including getting the latest Servlet and JSP classes from the jakarta-servletapi1-4 repository). Nitin Craig
Compilation Error when building Tomcat
Hi, I am trying to build Tomcat 4.0 from source on windows. I am following the steps given in the build.txt. when i am doing ant dist, it gives me compilation error for classes related to servlet API saying certain method doesnt exist even though the method is present in the interface. for eg it gave me following error [javac] C:\jakarta-tomcat-4.0-rc1-src\catalina\src\share\org\apache\catalina \authenticator\FormAuthenticator.java:418: Method getParameterMap() not found in interface javax.servlet.http.HttpServletRequest. [javac] Map parameters = hreq.getParameterMap(); [javac] ^ Could you please help. Regards, Nitin
second post: Error while compiling TC4.0
Hi, Can someone please help me with the compilation process. Why do i get method not found error for some Servlet API classes when the method actually exist. Thanks, Nitin -Original Message- From: Nitin Vira Sent: Monday, October 22, 2001 2:21 PM To: [EMAIL PROTECTED] Subject: Compilation Error when building Tomcat Hi, I am trying to build Tomcat 4.0 from source on windows. I am following the steps given in the build.txt. when i am doing ant dist, it gives me compilation error for classes related to servlet API saying certain method doesnt exist even though the method is present in the interface. for eg it gave me following error [javac] C:\jakarta-tomcat-4.0-rc1-src\catalina\src\share\org\apache\catalina \authenticator\FormAuthenticator.java:418: Method getParameterMap() not found in interface javax.servlet.http.HttpServletRequest. [javac] Map parameters = hreq.getParameterMap(); [javac] ^ Could you please help. Regards, Nitin