velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Avoy" <a...@lightningbolt.com>
Subject Velocity Templates not found with Weblogic
Date Wed, 04 Dec 2002 20:35:17 GMT
I am attempting to use Velocity with WebLogic and Velocity is not able to find the templates.
I have followed the instructions at http://jakarta.apache.org/velocity/velocity_and_weblogic.html
and triple checked them, no luck.

1) I jarred my templates and put them in WEB-INF/lib
2) I set the velocity.properties file so that I am using the class resource loader.
    resource.loader = class
    class.resource.loader.class = org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
3) I put the velocity.properties file in WEB-INF
4) I modified the web.xml file to set the path:
<init-param>
      <param-name>properties</param-name>
      <param-value>/WEB-INF/velocity.properties</param-value>
    </init-param>
5) I added loadConfiguration method to my servlet.

In my servlet I make a call to getTemplate("Home.vm") and get the following exception:
org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'Home.vm'



Any help will be greatly appreciated,

Thanks,
Kevin Avoy



Below is the output of velocity.log:
Wed Dec 04 12:24:53 PST 2002 [debug] AvalonLogSystem initialized using logfile 'velocity.log'

Wed Dec 04 12:24:53 PST 2002 [info] **************************************************************


Wed Dec 04 12:24:53 PST 2002 [info] Starting Jakarta Velocity v1.3.1-rc2

Wed Dec 04 12:24:53 PST 2002 [info] RuntimeInstance initializing.

Wed Dec 04 12:24:53 PST 2002 [info] Default Properties File: org\apache\velocity\runtime\defaults\velocity.properties

Wed Dec 04 12:24:53 PST 2002 [info] Trying to use logger class org.apache.velocity.runtime.log.AvalonLogSystem

Wed Dec 04 12:24:53 PST 2002 [info] Using logger class org.apache.velocity.runtime.log.AvalonLogSystem

Wed Dec 04 12:24:53 PST 2002 [info] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl)

Wed Dec 04 12:24:53 PST 2002 [info] Resource Loader Instantiated: org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader

Wed Dec 04 12:24:53 PST 2002 [info] ClasspathResourceLoader : initialization starting.

Wed Dec 04 12:24:53 PST 2002 [info] ClasspathResourceLoader : initialization complete.

Wed Dec 04 12:24:53 PST 2002 [info] ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl)

Wed Dec 04 12:24:53 PST 2002 [info] Default ResourceManager initialization complete.

Wed Dec 04 12:24:53 PST 2002 [info] Loaded System Directive: org.apache.velocity.runtime.directive.Literal

Wed Dec 04 12:24:53 PST 2002 [info] Loaded System Directive: org.apache.velocity.runtime.directive.Macro

Wed Dec 04 12:24:53 PST 2002 [info] Loaded System Directive: org.apache.velocity.runtime.directive.Parse

Wed Dec 04 12:24:53 PST 2002 [info] Loaded System Directive: org.apache.velocity.runtime.directive.Include

Wed Dec 04 12:24:53 PST 2002 [info] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach

Wed Dec 04 12:24:53 PST 2002 [info] Created: 20 parsers.

Wed Dec 04 12:24:53 PST 2002 [info] Velocimacro : initialization starting.

Wed Dec 04 12:24:53 PST 2002 [info] Velocimacro : adding VMs from VM library template : VM_global_library.vm

Wed Dec 04 12:24:53 PST 2002 [error] ResourceManager : unable to find resource 'VM_global_library.vm'
in any resource loader.

Wed Dec 04 12:24:53 PST 2002 [info] Velocimacro : error using VM library template VM_global_library.vm
: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm'

Wed Dec 04 12:24:53 PST 2002 [info] Velocimacro : VM library template macro registration complete.

Wed Dec 04 12:24:53 PST 2002 [info] Velocimacro : allowInline = true : VMs can be defined
inline in templates

Wed Dec 04 12:24:53 PST 2002 [info] Velocimacro : allowInlineToOverride = false : VMs defined
inline may NOT replace previous VM definitions

Wed Dec 04 12:24:53 PST 2002 [info] Velocimacro : allowInlineLocal = false : VMs defined inline
will be global in scope if allowed.

Wed Dec 04 12:24:53 PST 2002 [info] Velocimacro : messages on : VM system will output logging
messages

Wed Dec 04 12:24:53 PST 2002 [info] Velocimacro : autoload off : VM system will not automatically
reload global library macros

Wed Dec 04 12:24:53 PST 2002 [info] Velocimacro : initialization complete.

Wed Dec 04 12:24:53 PST 2002 [info] Velocity successfully started.

Wed Dec 04 12:24:53 PST 2002 [error] ResourceManager : unable to find resource 'Home.vm' in
any resource loader.


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message