You can set the log level above debug or point velocimacro.library to
an empty file.  Other than that, i can't think of anything.  Someone
else complained about this too.  We should probably just suppress that
message entirely when the velocimacro.library setting is the default
one.

On Tue, May 26, 2009 at 11:50 PM, Will Glass-Husain
<wglasshus...@gmail.com> wrote:
> Hi,
>
> Ever since upgrading to Velocity 1.6.2 I get the error message / stack
> trace below when starting up.  Is there a setting I can do to mute it?
>  Here's my settings
>
>        VelocityEngine ve = new VelocityEngine();
>
>        ve.setProperty("resource.loader", "class");
>        ve.setProperty("class.resource.loader.class",
> "org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader");
>        ve.setProperty("class.resource.loader.cache", "false");
>
>        ve.setProperty("runtime.Log.invalid.references ", "false");
>        ve.setProperty("resource.manager.logwhenfound", "false");
>        ve.setProperty("runtime.log.logsystem.class",
> "org.apache.velocity.runtime.log.SimpleLog4JLogSystem");
>        ve.setProperty("runtime.log.logsystem.log4j.category",
> "com.forio.Velocity");
>
> WILL
>
> 2009-05-26 23:46:58 DEBUG Velocimacro : "velocimacro.library" is not
> set.  Trying default library: VM_global_library.vm
> 2009-05-26 23:46:58 DEBUG Could not load resource
> 'VM_global_library.vm' from ResourceLoader
> org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader:
> 2009-05-26 23:46:58 DEBUG
> org.apache.velocity.exception.ResourceNotFoundException:
> ClasspathResourceLoader Error: cannot find resource
> VM_global_library.vm
>        at 
> org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader.getResourceStream(ClasspathResourceLoader.java:131)
>        at 
> org.apache.velocity.runtime.resource.loader.ResourceLoader.resourceExists(ResourceLoader.java:224)
>        at 
> org.apache.velocity.runtime.resource.ResourceManagerImpl.getLoaderForResource(ResourceManagerImpl.java:641)
>        at 
> org.apache.velocity.runtime.resource.ResourceManagerImpl.getLoaderNameForResource(ResourceManagerImpl.java:624)
>        at 
> org.apache.velocity.runtime.RuntimeInstance.getLoaderNameForResource(RuntimeInstance.java:1464)
>        at 
> org.apache.velocity.runtime.VelocimacroFactory.initVelocimacro(VelocimacroFactory.java:159)
>        at 
> org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:261)
>        at org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:107)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org
> For additional commands, e-mail: user-h...@velocity.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org
For additional commands, e-mail: user-h...@velocity.apache.org

Reply via email to