Pebble 1.6-beta1 available

After some tidying up, Pebble 1.6-beta1 is available to download from here. It includes a fair number of enhancements, but the key ones are as follows.

I've updated lots of the documentation but I still need to update the docs for weblog to reflect the new features and UI. However, there is a page that briefly explains how to write and deploy a decorator if you want to have a play around.

As always, feedback is welcomed. I'll be writing some more blog entries in the next few days about the new release and some of the other new features.



Re: Pebble 1.6-beta1 available

Simon,

Has this been tested with Jetty 5? Some stuff seems to work under jetty 5, but when I post to the blog, I get this erro:

Request URL = http://localhost:8080/pebble/common/jsp/template.jsp Request URI = /pebble/common/jsp/template.jsp Query string = content=/common/jsp/error.jsp&content=blogEntries.jsp Parameters : content = /common/jsp/error.jsp org.apache.jasper.JasperException: String index out of range: -1 at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:405) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:472) at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:237) at org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:149) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966) at org.apache.jsp.themes.default_.jsp.template_jsp._jspService(template_jsp.java:267) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:405) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicatio [snip]

Is Pebble incompatible with the version of Jasper in Jetty 5?

thanks for any tips,

joe

Re: Pebble 1.6-beta1 available

Sorry, that'll be me not developing to the JSP specification. This has been fixed but in the meantime you can patch this yourself. In the /themes/default/jsp directory, open up blogEntries.jsp, comments.jsp and trackbacks.jsp and you'll see some jsp:includes. Some of the page attributes start with a "./" and you just need to remove the "./". I hope that makes sense! ;-)

Re: Pebble 1.6-beta1 available

I've not tried Jetty 5 yet but I will do and get back to you.

Re: Pebble 1.6-beta1 available

Hi, Simon. It is exciting to see version 1.6 coming. Will the url hardcoded in version 1.6?? e.g. www.simonbrown.com must be defined in the parameter file in previous version. I recall that you are thinking of getting rid of this in one of your blog entry.

Re: Pebble 1.6-beta1 available

Thanks. Yes, you still need to define the blog.url parameter. This just makes permalinks more permanent, especially if your server is accessible from more than one DNS name, as mine is.

Re: Pebble 1.6-beta1 available

Thank Simon. The reason I asked the question is that I found my usual domain name http://herman-home.dyndns.org:8080/blog/blog1/ is blocked by some countries because I am using dynamic dns service. To get around this, I use one more domain name http://herman-home.shacknet.nu:8080/blog/blog1/ which has not been blocked by the countries. However, I can access the front page with the new domain name but I found that all the hyperlink on the front page retrieved by the new domain name are still using the usual old domain name. I get around by changing the url with the new domain name for every hyperlink clicking. However, understandably this method does work when submitting input form e.g. during login. Would you advice whether this situation can be resolved in Pebble 1.6??

Re: Pebble 1.6-beta1 available

Have you tried just setting blog.url to be http://herman-home.shacknet.nu:8080/blog/ instead of the old domain name?

Re: Pebble 1.6-beta1 available

I have tried your suggestion and it worked very well. What a clever solution!! Thank Simon.

Re: Pebble 1.6-beta1 available

Does 1.6 invalidate the 1.5 template format as did 1.4 to 1.5?

Re: Pebble 1.6-beta1 available

A couple of the JSPs in a theme will need to be changed so that you can take account of the new functionality. I'll write this up before 1.6 final.

Re: Pebble 1.6-beta1 available

Is there some docs on how to upgrade pebble from a previous version without losing my old entries? Thanks

Re: Pebble 1.6-beta1 available

Your entries are stored separately from the Pebble webapp so that you can upgrade easily. You will have to change your theme to take advantage of the new features though, and I'd recommend starting with one of the included ones and customizing it.

Re: Pebble 1.6-beta1 available

Thanks. Where are the entries stored so I can back them up?

Re: Pebble 1.6-beta1 available

They will be in the directory that you set the blog.dir property to, or ${user.home}/blog/ by default.

Re: Pebble 1.6-beta1 available

Have you tested this with J2SE 5 (1.5)? I have a few odd errors that I want to file in the JIRA (they don't show up when using 1.4.2), but I want to make sure you don't already know of any general issues with 1.5. Thanks, Simon!

Re: Pebble 1.6-beta1 available

Yes, I'm aware of the 1.5 issues and I think I know what the problems are. I just need to get some time in front of my PC ... I still want JDK 1.5 for my Mac though! ;-)

Re: Pebble 1.6-beta1 available

Simon,

I tried to deploy Pebble on Sun Java Application server, and after fighting with security for quite a while, I finally reached this error:

[#|2004-10-15T17:00:05.390+0800|SEVERE|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=11;|ApplicationDispatcher[/blog] Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: /common/jsp/header.jspf(18,0) According to TLD or attribute directive in tag file, attribute value does not accept any expressions

I'm obviously doing something wrong here, but I can't seem to figure out what it is. Is pebble compatible with Sun Java server?

Thanks for any tips.

Eugene

Re: Pebble 1.6-beta1 available

By the way, I'm using Pebble 1.6-beta1

thanks

Eugene

Re: Pebble 1.6-beta1 available

under Tomcat 5.0.28 Error Sorry, but there has been a problem - if this problem persists, please raise an issue. At Tomcat logs:
---------------------------
ApplicationDispatcher[/blog] Servlet.service() for servlet jsp threw exception
javax.servlet.jsp.JspException: An error occurred while evaluating custom action attribute "items" with value "${blog.recentBlogEntries}": Unable to find a value for "recentBlogEntries" in object of class "pebble.blog.SimpleBlog" using operator "." (null)
	at org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:146)
	at org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:166)
	at org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager.evaluate(ExpressionEvaluatorManager.java:112)
	at org.apache.taglibs.standard.tag.el.core.ForEachTag.evaluateExpressions(ForEachTag.java:191)
	at org.apache.taglibs.standard.tag.el.core.ForEachTag.doStartTag(ForEachTag.java:102)
	at org.apache.jsp.themes.default_.jsp.rightnav_jsp._jspx_meth_c_forEach_0(rightnav_jsp.java:163)
	at org.apache.jsp.themes.default_.jsp.rightnav_jsp._jspService(rightnav_jsp.java:100)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
....
....
---------------------------

Re: Pebble 1.6-beta1 available

There are problems running with JDK 1.5 - is this what you are running?

Re: Pebble 1.6-beta1 available

Yes,Tomcat 5.0.29 with JDK 1.5 Use Tomcat 5.5.x?

Re: Pebble 1.6-beta1 available

You could give it a try, but I am not hopeful. I'm fairly sure I need to make some tweaks in the Pebble codebase.

Add a comment Send a TrackBack