• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SecurityException when rendering template

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Maybe someone here will be able to help, I have taken this as far as I can for now...

I'm developing a web portal based around JForum, and rathe than integration JForum into a CMS I'm extending it to become the CMS. Right now I have two directories in my work dir: jforum and crapaud.

jforum is the CVS tree and crapaud contains the jars, my code, custom config, and a symlink to src/net/jforum. The idea is that I can continue to base my stuff around updates in CVS.

Anyway, as it stands there are very few changes from the base code right now, and so crapaud is very close to jforum in content, with only DB changes, and few small things (I've subclassed JForum to Crapaud as my entry point.

However, after building I try to access this page: http://testserver:8080/crapaud/forums/list.page and I get this Expcetion in the logs:



For some reason freemarker is trying to load the template from the wrong path.

My Context entry in server.xml looks like:




and web.xml is



Anyone know why this is happening?

Arawak
[originally posted on jforum.net by Arawak]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Okay, everyone can relax now, I figured it out :-)

My templates/default was a symlink to the jforum directory!

Doh!

Arawak
[originally posted on jforum.net by Arawak]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yeah, I was going to ask if wasn't the symlink the root of the problem!!

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic