Arun wrote: > Ok, I fixed that up and I have an error coming from the ant script that I > copied from tomcat docs. The error said, there is no such directory called > /usr/local/bin/apache-tomcat-6.0.13/common/lib.
Correct, Tomcat 6 uses doesn't use 3 different directories (common, server, shared) for libraries, it uses just one (lib). > There is no folder called common/lib in my tomcat 6 home directory. > When I commented that line from the script, ant told me that it cannot > find HttpJspBase class. I checked docjar.com and found that the jar file was > jasper-runtime.jar. That's because it needs to know where the lib directory, and the files are. Simply commenting the line out will not fix the problem. Change the "common/lib" to "lib", or follow the instructions below. > Obviously this would have been in common/lib. I downloaded my tomcat 6 from > apache website. Why is there no jasper runtime.? There is, you may even have found the files if you get around to looking at your Tomcat installation. As before, I recommend you familiarise yourself with the documentation and also the files that make up your Tomcat installation. Look in the TOMCAT/bin directory, there you will find some useful files, catalina-tasks.xml is one such that contains the Ant task definitions. You can import that into your Ant script (see below) and it should have the correct settings for your version of Tomcat. <import file="${tomcat.home}/bin/catalina-tasks.xml"/> (You may also wish to advance your knowledge by investigating what the others do, too). p > On 10/11/07, David Smith <[EMAIL PROTECTED]> wrote: >> Why are you mixing el expressions with <%= ... %> expressions? I'd >> replace <%=request.getContextPath()%> with ${request.contextPath}. >> >> --David >> >> Arun wrote: >> >>> jspc: >>> >>> BUILD FAILED >>> /home/build/mobchannel/mobchannelWEB/build.xml:199: >>> org.apache.jasper.JasperException: >>> file:/home/build/mobchannel/mobchannelWEB/WebRoot/jsp/toolbox/navigation.jsp(10,20) >>> attribute for %>" is not properly terminated >>> >>> I got this error on using the jspc task. >>> I have copied the from the tomcat docs sited above. >>> >>> My navigation.jsp looks like >>> >>> <[EMAIL PROTECTED] pageEncoding="UTF-8"%> >>> <[EMAIL PROTECTED] language="java" contentType="text/html;charset=UTF-8" %> >>> <%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%> >>> <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%> >>> <%@ taglib uri="/WEB-INF/c-rt.tld" prefix="c"%> >>> <%@ taglib uri="/WEB-INF/fmt-rt.tld" prefix="fmt"%> >>> <fmt:setLocale value="${locale}" /> >>> <fmt:bundle basename="toolbox"> >>> <div id="fullwidthTable" class="style_fullCentreMenucolor" > >>> <html:link href="<%=request.getContextPath >> ()%>/toolbox/toolboxflow.do?dispatch=quickmessage"><b><fmt:message >>> key="toolbox.menu.quickmessage"/></b>  | </html:link> >>> <html:link href="<%=request.getContextPath >> ()%>/toolbox/toolboxflow.do?dispatch=sendcard"><b><fmt:message >>> key="toolbox.menu.sendcard" /></b>  |</html:link> >>> <html:link href="<%=request.getContextPath >> ()%>/toolbox/toolboxflow.do?dispatch=today"><b><fmt:message >>> key="toolbox.menu.today" /></b>  |</html:link> >>> <html:link href="<%=request.getContextPath >> ()%>/toolbox/toolboxflow.do?dispatch=lipi"><b><fmt:message >>> key="toolbox.menu.lipi"/></b>  |</html:link> >>> </div> >>> </fmt:bundle> >>> >>> What is wrong? >>> >>> >>> On 10/11/07, Pid <[EMAIL PROTECTED]> wrote: >>> >>> >>>> Arun wrote: >>>> >>>> >>>>> Hi, >>>>> >>>>> I want to precompile jsps for apache tomcat 6. Which ant task should i >>>>> >>>>> >>>> use . >>>> >>>> >>>>> Is there a simple example for that. >>>>> I am using a build.xml exported from MyEclipse. Where would the JSP >>>>> >>>>> >>>> classes >>>> >>>> >>>>> go in WEB-INF/classes. What structure does it have. >>>>> >>>>> >>>>> >>>>> >>>> http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html >>>> >>>> Strongly recommend familiarising yourself with the documentation, where >>>> the config is, how it works, etc. Most of the information you need to >>>> deal with common problems can be found here. >>>> >>>> >>>> p >>>> >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To start a new topic, e-mail: users@tomcat.apache.org >>>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>>> For additional commands, e-mail: [EMAIL PROTECTED] >>>> >>>> >>>> >>>> >>> >>> >>> >> >> --------------------------------------------------------------------- >> To start a new topic, e-mail: users@tomcat.apache.org >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]