This post originated from an RSS feed registered with Java Buzz
by Simon Brown.
Original Post: Running Pebble on Jetty 4.2.x
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 a few e-mails over the past weeks asking about how to run Pebble on Jetty so thought that I would post the instructions here before adding them to the Pebble user guide.
Extract the WAR file to the $JETTY_HOME/webapps directory.
Edit the WEB-INF/web.xml file, setting the blog.url, blog.dir and blog.multiUser parameters as appropriate.
Define the security realm in the $JETTY_HOME/etc/jetty.xml file (the example below uses a simple username-password pair in plain text).
If you are deploying Pebble to Jetty, it is important that you do define a security role before starting up the server. If you don't, you'll get the error page (indicating that "something has gone wrong") when you try to access a secure page. Let me know if you have any problems.