• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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]
 
That new kid is a freak. Show him this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic