This post originated from an RSS feed registered with Java Buzz
by Simon Brown.
Original Post: Pebble on JDK 1.4.2_06 and JDK 1.5
Feed Title: Simon Brown's weblog
Feed URL: http://www.simongbrown.com/blog/feed.xml?flavor=rss20&category=java
Feed Description: My thoughts on Java, software development and technology.
I've had several reports via e-mail and through JIRA to say that Pebble doesn't work under JDK 1.4.2_06 and the new JDK 1.5 release. It looks like something has changed regarding JavaBeans properties in these two new versions of the JDK. 1.4.2_05 works fine.
Pebble uses the JSTL expression language to display nested properties in the JSP pages and attempting to access a read-only property causes an error. Of course, strictly speaking the JavaBeans spec says that you must have both a getter and setter, and I suspect something has been tightened up in the new releases to enforce this. Incidently, this also happened between JDK 1.3 and JDK 1.4 where I encountered similar problems with code that didn't meet the specification.
I've done some limited testing on JDK 1.5 (J2SE 5.0) and it seems to work. If you're running on Tomcat versions prior to 5.5, you'll need to remove the $TOMCAT_HOME/common/endorsed/xml-apis.jar file since this causes problems with a system property. I'll put out a new binary release today or tomorrow.