I've solved my classloader problem.  It is actually a bug in Velocity
ResourceClassLoader. 
http://issues.apache.org/bugzilla/show_bug.cgi?id=22419

-Mike

On Fri, 2004-11-19 at 23:56, Isaac de la Pena wrote:
> It might be due to internal delegation to Phoenix classloaders, I had a
> similar problem with a custom mailet.
> 
> Why don't you try putting your jars inside [james]/lib folder instead of
> [james]/apps/james.sar ? This way the Phoenix classloader will be able to
> find the right classes, and if you only use Phoenix for James, it won't make
> any difference concerning deployment.
> 
> Best regards,
> 
> Isaac.
> 
> -----Original Message-----
> From: Mike Heath [mailto:[EMAIL PROTECTED] 
> Sent: s�bado, 20 de noviembre de 2004 2:15
> To: James Users List
> Subject: Class loader problems
> 
> We're using Velocity to generate some E-mail messages from inside a
> servlet.  The code works from outside James but when we try to run it
> inside of a mailet we get ResourceNotFoundException's from Velocity.
> 
> Our mailets get put into james.jar which in turn gets put into
> james.sar.  The mailets work great without the calls Velocity code.  We
> have a jar file that we call velocity_logic.jar that contains all our
> code that calls Velocity as well as our Velocity templates 
> velocity_logic.jar as well as velocity-1.4.jar are in JAMES_HOME/lib.  
> 
> The strange thing is that all the classes are loaded just fine for
> Velocity as well as our own logic but when Velocity tries to load a
> template from the classpath as a resource, it can't be found (even
> though we can see the templates in the velocity_logic.jar).
> 
> Has anybody experience anything similar with James?  I'm guessing it has
> something to do with Phoenix class loaders.  Any ideas?
> 
> -Mike
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to