tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arun <arun.george.1...@gmail.com>
Subject Re: Precompile JSPs
Date Thu, 11 Oct 2007 14:20:28 GMT
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.
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.
Obviously this would have been in common/lib. I downloaded my tomcat 6 from
apache website. Why is there no jasper runtime.?


On 10/11/07, David Smith <dns4@cornell.edu> 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
> >
> ><%@page pageEncoding="UTF-8"%>
> ><%@page 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>&nbsp | </html:link>
> ><html:link href="<%=request.getContextPath
> ()%>/toolbox/toolboxflow.do?dispatch=sendcard"><b><fmt:message
> >key="toolbox.menu.sendcard" />‌</b>&nbsp |</html:link>
> ><html:link href="<%=request.getContextPath
> ()%>/toolbox/toolboxflow.do?dispatch=today"><b><fmt:message
> >key="toolbox.menu.today" /></b>&nbsp |</html:link>
> ><html:link href="<%=request.getContextPath
> ()%>/toolbox/toolboxflow.do?dispatch=lipi"><b><fmt:message
> >key="toolbox.menu.lipi"/></b>‍&nbsp |</html:link>
> ></div>
> ></fmt:bundle>
> >
> >What is wrong?
> >
> >
> >On 10/11/07, Pid <p@pidster.com> 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: users-unsubscribe@tomcat.apache.org
> >>For additional commands, e-mail: users-help@tomcat.apache.org
> >>
> >>
> >>
> >>
> >
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


-- 
Thanks
Arun George
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message