You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by bu...@apache.org on 2002/03/31 04:13:14 UTC

DO NOT REPLY [Bug 7639] New: - init( {java.util.Properties} ) fails to set Velocity & VelocityEngine properties

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7639>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7639

init( {java.util.Properties} ) fails to set Velocity & VelocityEngine properties

           Summary: init( {java.util.Properties} ) fails to set Velocity &
                    VelocityEngine properties
           Product: Velocity
           Version: 1.2
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Source
        AssignedTo: velocity-dev@jakarta.apache.org
        ReportedBy: technosf@speakeasy.net


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.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>