Have Pebble running in less than 5 minutes or your money back!
I downloaded the latest version of Pebble today in order to set up an internal blog for news on my current project. Less than 5 minutes and I was up and running ... extract the WAR file and drop it under $TOMCAT_HOME/webapps/, edit the web.xml file and add a user to the Tomcat configuration. Your blogging software is that easy to setup too, right? ;-)
Re: Have Pebble running in less than 5 minutes or your money back!
Under Resin 3.0.6 it blew up spectacularly with reams of JSP compilation errors. I didn't get to read them all, but a lot seemed to relate to SAX.
Under Resin 2.1 it initially seemed to work, but the problems were more subtle. None of the images on the front page appeared, despite seemingly innocuous relative URLs Worse than that, none of the actions work either. Looking closer, I see the problem: the generated page shoots itself in the foot with a hard-coded (and needless?)
<base href="http://localhost:8080/blog/" />
so in my port 80 installation of a war named "pebble" everything collapses.
Good job it's only a beta, hmm :)
Re: Have Pebble running in less than 5 minutes or your money back!
When you install Pebble, you do need to edit a couple of context parameters called blog.dir and blog.url in the web.xml file meaning that it can't be deployed as-is after download. Oh, and I learned something about starting Resin on port 80. Thanks!
Re: Have Pebble running in less than 5 minutes or your money back!
generating the base href just seems to screw things up if its not right, and omitting it completely seems to make the app more flexible. Relative URLs always seem more robust that absolute ones to me.
On the off-chance that there is some situation where it might be needed, I guess you could allow it to be set in web.xml, but wouldn't a default empty value (implying don't generate the base href, and use request.getContextPath() if its needed elsewhere) make deploying pebble even easier?
Then, if you default blog.dir to the web app temp directory provided by the container, you could probably get a zero-config install (like I do with Friki) :)
Re: Have Pebble running in less than 5 minutes or your money back!
Re: Have Pebble running in less than 5 minutes or your money back!
The blog.dir is also important and I certainly don't want blog data to be saved in the container temp directory, even just as a default - I'd rather force people to think about where they would like to install their blog upfront.
Although you do need to set this stuff up, it does making moving blogs from one server to another very easy, and likewise updating Pebble is also easy.
Simon is a hands-on software architect and a senior consultant at 

