You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Henning Schmiedehausen (JIRA)" <de...@velocity.apache.org> on 2007/03/08 01:10:31 UTC
[jira] Closed: (VELOCITY-58) init( {java.util.Properties} ) fails
to set Velocity & VelocityEngine properties
[ https://issues.apache.org/jira/browse/VELOCITY-58?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Henning Schmiedehausen closed VELOCITY-58.
------------------------------------------
> init( {java.util.Properties} ) fails to set Velocity & VelocityEngine properties
> --------------------------------------------------------------------------------
>
> Key: VELOCITY-58
> URL: https://issues.apache.org/jira/browse/VELOCITY-58
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.2
> Environment: Operating System: All
> Platform: PC
> Reporter: Martin
> Assigned To: Velocity-Dev List
>
> On 1.2 and 1.3rc-1 in Tomcat4 using JDK1.4 in a servlet, trying to call
> Velocity.init and VelocityEngine.init with a Properties object as a parameter
> causes the following symptom when getTemplate is called called:
> org.apache.velocity.exception.ResourceNotFoundException: Unable to find
> resource 'example.vm'
> AFAIK, in 1.2 this happens as VelocityEngine.init()
> calls
> RuntimeInstance.init()
> calls
> RuntimeInstance.initializeProperties()
> and fails to find any resourceloaders and generates NullPointerException.
> Template.getTemplate then can't find a resourceloader to load the template.
> Haven't follwed up with 1.3rc-1 as of yet.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org