velocity-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 7639] - init( {java.util.Properties} ) fails to set Velocity & VelocityEngine properties
Date Tue, 14 May 2002 06:14:23 GMT
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





------- Additional Comments From valentine@library.ucsb.edu  2002-05-14 06:14 -------
I am seeing this, too. jdk1.4, tc 4.03, velocity 1.2

I modified Sample servlet, with a loadConfiguration.

property file is read, and passed in loadConfiguration.  For some reason, it 
does not make it to the init.

Mon May 13 22:56:06 PDT 2002  [debug] AvalonLogSystem initialized using logfile 
/home/valentine/adl/velocity.log
Mon May 13 22:56:06 PDT 2002   [info] Jakarta Velocity v1.2
Mon May 13 22:56:06 PDT 2002   [info] RuntimeInstance initializing.
Mon May 13 22:56:06 PDT 2002   [info] Default Properties File: org/apache/veloci
ty/runtime/defaults/velocity.properties
Mon May 13 22:56:06 PDT 2002   [info] Resource manager initializing.
Mon May 13 22:56:06 PDT 2002   [info] Resource Loader Instantiated: org.apache.v
elocity.runtime.resource.loader.FileResourceLoader
Mon May 13 22:56:06 PDT 2002   [info] FileResourceLoader : initialization starti
ng.
Mon May 13 22:56:06 PDT 2002   [info] FileResourceLoader : adding path '.'
Mon May 13 22:56:06 PDT 2002   [info] FileResourceLoader : initialization comple
te.
Mon May 13 22:56:06 PDT 2002   [info] Loaded Pluggable Directive: org.apache.vel
ocity.runtime.directive.Literal
Mon May 13 22:56:06 PDT 2002   [info] Loaded Pluggable Directive: org.apache.vel
ocity.runtime.directive.Macro
Mon May 13 22:56:06 PDT 2002   [info] Loaded Pluggable Directive: org.apache.vel
ocity.runtime.directive.Parse
Mon May 13 22:56:06 PDT 2002   [info] Loaded Pluggable Directive: org.apache.vel
ocity.runtime.directive.Include
Mon May 13 22:56:06 PDT 2002   [info] Loaded Pluggable Directive: org.apache.vel
ocity.runtime.directive.Foreach
Mon May 13 22:56:06 PDT 2002   [info] Created: 20 parsers.
Mon May 13 22:56:06 PDT 2002   [info] Velocimacro : initialization starting.
Mon May 13 22:56:06 PDT 2002   [info] Velocimacro : adding VMs from VM library t
emplate : VM_global_library.vm
Mon May 13 22:56:06 PDT 2002  [error] ResourceManager : unable to find resource 
'VM_global_library.vm' in any resource loader.
Mon May 13 22:56:06 PDT 2002   [info] Velocimacro : error using  VM library temp
late VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundExcept
ion: Unable to find resource 'VM_global_library.vm'
Mon May 13 22:56:06 PDT 2002   [info] Velocimacro :  VM library template macro r
egistration complete.
Mon May 13 22:56:06 PDT 2002   [info] Velocimacro : allowInline = true : VMs can
 be defined inline in templates
Mon May 13 22:56:06 PDT 2002   [info] Velocimacro : allowInlineToOverride = fals
e : VMs defined inline may NOT replace previous VM definitions
Mon May 13 22:56:06 PDT 2002   [info] Velocimacro : allowInlineLocal = false : V
Ms defined inline will be  global in scope if allowed.
Mon May 13 22:56:06 PDT 2002   [info] Velocimacro : messages on  : VM system wil
l output logging messages
Mon May 13 22:56:06 PDT 2002   [info] Velocimacro : autoload off  : VM system wi
ll not automatically reload global library macros
Mon May 13 22:56:06 PDT 2002   [info] Velocimacro : initialization complete.
Mon May 13 22:56:06 PDT 2002   [info] Velocity successfully started.
Mon May 13 22:56:19 PDT 2002  [error] ResourceManager : unable to find resource 
'query_frame.vm' in any resource loader.

even though there is an init param that is read via loadConfiguration:

                <init-param>
                  <param-name>properties</param-name>
  <param-value>velocity.properties</param-value>
                </init-param>
                <init-param>

--
To unsubscribe, e-mail:   <mailto:velocity-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:velocity-dev-help@jakarta.apache.org>


Mime
View raw message