Hi,
About four month ago, I move my Pebble 2.3.1 blog from the Linux side of my
dual boot machine to the Windows side to work on JavaFX 2.0, which is not
available for Linux yet. Right after the move, I discovered that my comments
page will always show up without the data, only the header and right bar. This
presents a problem for moderating comments. Since I can still moderating using
the linked on the email notification when a new pending comment is posted, I
didn’t bother looking at the logs and try to figure out what the problem is.
I spent a little time today trying to sort things out, and it comes down to
this exception in the Tomcat log:
Jan 07, 2012 7:03:26 AM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: /WEB-INF/jsp/viewResponses.jsp (line: 64,
column: 10) "${response.class.name == 'pebble.blog.Comment'}" contains invalid
expression(s): javax.el.ELException: The identifier [class] is not a valid Java
identifier as required by section 1.19 of the EL specification (Identifier ::=
Java language identifier). This check can be disabled by setting the system
property org.apache.el.parser.SKIP_IDENTIFIER_CHECK to true.
So it’s just as simple as setting a system property on the Tomcat command line.
I don’t know if this is a problem for other people as well. And I don’t know
if this is still a problem with Pebble 2.6.2. I did check that the offending
line is still present in trunk:
$ grep -B5 -A5 response.class.name src/main/webapp/WEB-INF/jsp/viewResponses.jsp
</c:if>
<c:if test="${empty response.sourceLink}">
<c:out value="${response.sourceName}" escapeXml="true"/>
</c:if>
<br />
<c:if test="${response.class.name == 'pebble.blog.Comment'}">
<c:out value="${response.email}" escapeXml="true" default="-" />
<br />
</c:if>
<c:out value="${response.ipAddress}" default="-" />
</td>
My configuration is
Windows Vista Home Premium (64-bit) SP2
Oracle JDK 1.7.0_02
Apache Tomcat 7.0.16
Just a heads up.
Hope everyone had good holiday and enjoy the Happy New Year
--
Weiqi Gao
[email protected]
http://www.weiqigao.com/blog/------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Pebble-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pebble-user