This post originated from an RSS feed registered with Java Buzz
by Simon Brown.
Original Post: Running Pebble on Resin 3.0.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.
Apologies in advance for yet another "Running Pebble on app server X" post but a JIRA issue popped up today outlining a problem with Pebble on the latest version(s) of Resin. Having never used Resin 3.0.x I didn't have a clue how to deploy. Hopefully these instructions will help somebody, regardless of the webapp that they are trying to deploy.
Essentially, deploying a webapp on Resin 3.0.x is the same as deploying to Resin 2.1.x. Well, semantically the same but syntactically different.
Grab Resin from here and extract to a directory of your choice.
Grab Pebble from here and extract to a directory of your choice. As with Tomcat, you can either extract it underneath the $RESIN_HOME/webapps directory, or anywhere on your disk.
Assuming that you've extracted Pebble somewhere other than the webapps directory, open up the $RESIN_HOME/conf/resin.conf file and insert the following XML before the closing host tag, changing the id and document-directory attributes as necessary. In addition to this, you can set up the users that you need for your blog. In the example below I have a single user that is both a blog-owner and blog-contributor.
If you do try to run the current version of Pebble (1.4) on Resin 3.0.x then it falls over saying that pages can't be found. After some digging around I've found that this is because Resin doesn't seem to like the following code where the value of an attribute is specified using Java code.