Hi guys, when I build Roller 3.1 from source and deploy to JBoss
4.0.5.GA, I get this exception:

org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'templates/menu/menu-tabbed.vm'
at
org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:458)
        at
org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:341)
        at
org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:831)
        at
org.apache.velocity.runtime.RuntimeSingleton.getTemplate(RuntimeSingleton.java:303)
        at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:439)
        at
org.apache.roller.ui.core.tags.VelocityTag.doEndTag(VelocityTag.java:105)
        at org.apache.roller.ui.core.tags.HybridTag.doEndTag(HybridTag.java:81)
        at
org.apache.jsp.WEB_002dINF.jsps.tiles.menu_002deditor_jsp._jspx_meth_roller_Menu_0(menu_002deditor_jsp.java:219)
        at
org.apache.jsp.WEB_002dINF.jsps.tiles.menu_002deditor_jsp._jspService(menu_002deditor_jsp.java:138)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
...

By default the build puts the templates dir, where the "missing"
resource lives, in the root of the webapp.  Guessing that Velocity
is trying to load this resource from the classpath, I moved the
templates dir into WEB-INF/classes, and everything works.

My question is this: why do I need to move that for this to work?
Obviously Roller 3.1 is in production and working for other
people, and the default build scenario must work or it would
be a known issue by now.  Have I just run into a JBoss specific
issue, or what?  Or is there something else going on here
that I'm overlooking?


Thanks,


Phil

Reply via email to