velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Avoy <a...@lightningbolt.com>
Subject Re: Velocity Templates not found with Weblogic
Date Fri, 06 Dec 2002 18:30:39 GMT
The jar for my templates is named 'templates.jar'

The jar for velocity and logkit contain multiple '.'
velocity-1.3.1-rc2.jar
logkit-1.1.jar

Other than that my jars do not contain multiple '.'

-k

----- Original Message -----
From: "Geir Magnusson Jr." <geirm@adeptra.com>
To: "Velocity Users List" <velocity-user@jakarta.apache.org>
Sent: Friday, December 06, 2002 6:00 AM
Subject: Re: Velocity Templates not found with Weblogic


> That's right.  I remember that. Give that a look.
>
> On Thursday, December 5, 2002, at 02:41 AM, Charles Anthony wrote:
>
> > Just a possible ....
> >
> > When we ported a webapp to WebLogic (Can't remember which version), we
> > found
> > a nasty bug in it's classloader which meant that it did not find
> > resources
> > in any jar/war with more than one '.' in it's name e.g.
> > classes/resources in mytemplates.0.1.jar would not be found, whereas
> > classes/resources in mytemplates-0-1.jar would be found.
> >
> > Doubtless a red herring, but might be worth a quick double check.
> >
> > Cheers,
> >
> > Charles
> >
> >> -----Original Message-----
> >> From: Kevin Avoy [mailto:avoy@lightningbolt.com]
> >> Sent: 04 December 2002 20:35
> >> To: velocity-user@jakarta.apache.org
> >> Subject: Velocity Templates not found with Weblogic
> >>
> >>
> >> 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.
> >>
> >>
> >
> >
> > This email and any attachments are strictly confidential and are
> > intended
> > solely for the addressee. If you are not the intended recipient you
> > must
> > not disclose, forward, copy or take any action in reliance on this
> > message
> > or its attachments. If you have received this email in error please
> > notify
> > the sender as soon as possible and delete it from your computer
> > systems.
> > Any views or opinions presented are solely those of the author and do
> > not
> > necessarily reflect those of HPD Software Limited or its affiliates.
> >
> >  At present the integrity of email across the internet cannot be
> > guaranteed
> > and messages sent via this medium are potentially at risk.  All
> > liability
> > is excluded to the extent permitted by law for any claims arising as a
> > re-
> > sult of the use of this medium to transmit information by or to
> > HPD Software Limited or its affiliates.
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:velocity-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> > <mailto:velocity-user-help@jakarta.apache.org>
> >
> >
> --
> Geir Magnusson Jr                                   203-355-2219(w)
> Adeptra, Inc.                                       203-247-1713(m)
> geirm@adeptra.com
>
>
> --
> To unsubscribe, e-mail:
<mailto:velocity-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:velocity-user-help@jakarta.apache.org>
>
>


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


Mime
View raw message