[ 
https://issues.apache.org/jira/browse/CONNECTORS-388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13188743#comment-13188743
 ] 

Karl Wright edited comment on CONNECTORS-388 at 1/18/12 10:18 PM:
------------------------------------------------------------------

I'm refactoring the root build.xml to build up the manifest classpath a line at 
a time, so we'll have to merge that when the time comes.  Other than that, good 
work!

The reason that VelocityEngine doesn't find the resources is because they can 
only be accessed by the current classloader, which is defined in ManifoldCF 
core as a ordered list of classloaders.  You can get a new classloader based on 
the current list by using the method ManifoldCF.createResourceLoader().

But preferably, if you use the local connector's 
Messages.class.getClassLoader(), you'll get the class loader used to load the 
local connector's Messages class.  This is typically the right classloader.  
That's why I created these classes, so there'd be an easy way to do it.

                
      was (Author: kwri...@metacarta.com):
    I'm refactoring the root build.xml to build up the manifest classpath a 
line at a time, so we'll have to merge that when the time comes.  Other than 
that, good work!

The reason that VelocityEngine doesn't find the resources is because they can 
only be accessed by the current classloader, which is defined in ManifoldCF 
core as a nested set of classloaders.  But you can get the correct classloader 
using the method ManifoldCF.createResourceLoader().


                  
> Upgrade the Crawler UI framework with Apache Velocity
> -----------------------------------------------------
>
>                 Key: CONNECTORS-388
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-388
>             Project: ManifoldCF
>          Issue Type: Improvement
>          Components: Framework core
>    Affects Versions: ManifoldCF 0.3
>            Reporter: Piergiorgio Lucidi
>            Assignee: Piergiorgio Lucidi
>   Original Estimate: 72h
>  Remaining Estimate: 72h
>
> We have to try to upgrade the UI Crawler using Apache Velocity that a good 
> solution that could fit with Manifold implementation.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to