File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Application Frameworks and the fly likes Help with velocity initialization Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Other Application Frameworks
Reply Bookmark "Help with velocity initialization" Watch "Help with velocity initialization" New topic
Author

Help with velocity initialization

Zenikko Sugiarto
Ranch Hand

Joined: Jan 09, 2005
Posts: 58
Well, seeing this posting I have realized that perhaps I've posted my question in the wrong forum (and it doesn't seem like the mod there is moving it or anything).

Summary:
Code tries to load a template via classpath, but breaks on velocityEngine.init().

Root cause is StringIndexOutOfBoundsException, seems like when it's trying to load the properties or extended properties. For more details, pls have a look at my original post here

pls help if you can, the same piece of code works in my workstation (java 1.5, Appserver8.2) but breaks in the development box (java1.4, appserver7)

altho, I still felt that the cause of the problem is not related to the environment - pls help.
 
 
subject: Help with velocity initialization
 
Threads others viewed
Exception: Unable to find resource '/WEB-INF/templates/hello.vm'
architecture?
Velocity Template Path
Prerequisites for Stripes?
what is stripes exactly?
IntelliJ Java IDE