You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@manifoldcf.apache.org by "Piergiorgio Lucidi (Created) (JIRA)" <ji...@apache.org> on 2012/01/18 18:18:39 UTC

[jira] [Created] (CONNECTORS-388) Upgrade the Crawler UI framework with Apache Velocity

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


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

        

[jira] [Commented] (CONNECTORS-388) Upgrade the Crawler UI framework with Apache Velocity

Posted by "Karl Wright (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CONNECTORS-388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13190580#comment-13190580 ] 

Karl Wright commented on CONNECTORS-388:
----------------------------------------

Velocity does not like colons, but "_" is OK.  r1234447 to make that change.

So now the CMIS connector seems to be working ok...

                
> 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

        

[jira] [Commented] (CONNECTORS-388) Upgrade the Crawler UI framework with Apache Velocity

Posted by "Karl Wright (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CONNECTORS-388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13188843#comment-13188843 ] 

Karl Wright commented on CONNECTORS-388:
----------------------------------------

I've had a look at what Velocity provides as far as resource loading options, and none of them are pertinent to ManifoldCF.  So what we will need to do is extend the abstract base class org.apache.velocity.runtime.resource.loader.ResourceLoader.  We'll also need to configure Velocity using something other than a Properties, since we'll need to instantiate our ManifoldCFResourceLoader class appropriately for the context we're in.  I'm not quite sure how to do that yet.

                
> 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

        

[jira] [Commented] (CONNECTORS-388) Upgrade the Crawler UI framework with Apache Velocity

Posted by "Karl Wright (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CONNECTORS-388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13190578#comment-13190578 ] 

Karl Wright commented on CONNECTORS-388:
----------------------------------------

r1234446 fixes the resource location problem... The only problem remaining seems to be ":A"'s showing up in the Server tab.  Looking into that next.

                
> 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

        

[jira] [Commented] (CONNECTORS-388) Upgrade the Crawler UI framework with Apache Velocity

Posted by "Karl Wright (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CONNECTORS-388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13188853#comment-13188853 ] 

Karl Wright commented on CONNECTORS-388:
----------------------------------------

It looks like we do not want to use the "singleton" approach to setting up Velocity, since you can only configure a singleton ONCE, and thus we won't be able to use different class loaders, which is essential.  Instead, we'll need to set up a VelocityEngine object.  It should be sufficient to create a single static VelocityEngine object in each connector's Messages class, which is configured to resolve resources based on that class's class loader.  So the method in ui-core/i18n/Messages.java should accept a VelocityEngine argument in this model, and create a Velocity context for every template being rendered.

I'm still not sure how to provide a VelocityEngine with an already-instantiated ResourceLoader class, but we should be able to figure that out looking at the Velocity source code.

                
> 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

        

[jira] [Commented] (CONNECTORS-388) Upgrade the Crawler UI framework with Apache Velocity

Posted by "Karl Wright (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CONNECTORS-388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13190574#comment-13190574 ] 

Karl Wright commented on CONNECTORS-388:
----------------------------------------

Ran it, and get this exception:

{code}
Caused by: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'editConfiguration_en_US.js'
	at org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:474)
	at org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:352)
	at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1533)
	at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:343)
	at org.apache.manifoldcf.ui.i18n.Messages.outputResourceWithVelocity(Messages.java:161)
{code}

Stack trace is notable in that it appears the initialization for the ResourceManager implementation didn't work; still using the Velocity default somehow...  will look into this and try to figure out why.

                
> 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

        

[jira] [Commented] (CONNECTORS-388) Upgrade the Crawler UI framework with Apache Velocity

Posted by "Piergiorgio Lucidi (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CONNECTORS-388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13188697#comment-13188697 ] 

Piergiorgio Lucidi commented on CONNECTORS-388:
-----------------------------------------------

Started to work on this issue (r1233061).

I imported Apache Velocity in the lib folder and in the build files (Ant and Maven), all the new dependencies are the following:
* antlr
* avalon
* jdom
* maven-ant-tasks
* oro
* werken-xpath

I had to update the Commons Collections dependencies from 2.1 to 3.2.1 that is required in Velocity because it uses new classes introduced in the third version of the library.

I updated the org.apache.manifoldcf.core.i18n.Messages class adding the new method that must be used for all the connectors that must use Velocity (outputResourceWithVelocity).

I started to work on the CMIS Connector, that's why I updated the org.apache.manifoldcf.crawler.connectors.cmis.Message class that is related to the specific connector. 

To conform other connectors, it is only needed to change the method outputResource to the new one outputResourceWithVelocity. And it is needed to conform all the templates JS and HTML changing all the replacer from "${something:A}" to "$something:A", this because Velocity has a different way to use replacers for parameters.

Now I have a problem to get load the HTML template in Velocity, in the Messages class we have:
{code}
StringWriter stringWriter = new StringWriter();
           try {
               Velocity.mergeTemplate(resourceLoaderPath, "UTF-8", context, stringWriter);
           }
           catch (Exception e) {
             throw new ManifoldCFException(e.getMessage(),e);
           }
{code}

It seems that Velocity doesn't find for some reasons the template in the classpath, notice that I'm using the ClasspathResourceLoader that is used for this specific need:
{code}
Properties properties = new Properties();
properties.setProperty(VelocityEngine.RESOURCE_LOADER, "classpath");
properties.setProperty("classpath."+VelocityEngine.RESOURCE_LOADER+".class", ClasspathResourceLoader.class.getName());
{code}

So I think that we need only to solve this issue about classpath loading and we have done!
Any hints?
                
> 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

        

[jira] [Commented] (CONNECTORS-388) Upgrade the Crawler UI framework with Apache Velocity

Posted by "Karl Wright (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CONNECTORS-388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13190635#comment-13190635 ] 

Karl Wright commented on CONNECTORS-388:
----------------------------------------

I set up a merge branch and began looking into jar dependencies.  The new build dependencies on antlr, oro, and maven seem unnecessary; everything seems to work without that.  Piergiorgio, can you explain what those are for, and why the framework should need them?

                
> 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

        

[jira] [Commented] (CONNECTORS-388) Upgrade the Crawler UI framework with Apache Velocity

Posted by "Karl Wright (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CONNECTORS-388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13190638#comment-13190638 ] 

Karl Wright commented on CONNECTORS-388:
----------------------------------------

r1234472 is the commit to trunk.

                
> 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

        

[jira] [Commented] (CONNECTORS-388) Upgrade the Crawler UI framework with Apache Velocity

Posted by "Karl Wright (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CONNECTORS-388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13190582#comment-13190582 ] 

Karl Wright commented on CONNECTORS-388:
----------------------------------------

UI tests fail on the branch, for this reason:

    [junit] 2012-01-21 21:34:30.199:WARN::Nested in javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/apache/velocity/context/Context:
    [junit] java.lang.NoClassDefFoundError: org/apache/velocity/context/Context

Obviously this is because velocity isn't the class path for the test.  It's probably easier to fix this during the merge, however, because of the changes to the build system on trunk.

                
> 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

        

[jira] [Commented] (CONNECTORS-388) Upgrade the Crawler UI framework with Apache Velocity

Posted by "Piergiorgio Lucidi (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CONNECTORS-388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13188655#comment-13188655 ] 

Piergiorgio Lucidi commented on CONNECTORS-388:
-----------------------------------------------

Created the branch to work on this issue:
https://svn.apache.org/repos/asf/incubator/lcf/branches/CONNECTORS-388/
                
> 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

        

[jira] [Resolved] (CONNECTORS-388) Upgrade the Crawler UI framework with Apache Velocity

Posted by "Karl Wright (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CONNECTORS-388?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karl Wright resolved CONNECTORS-388.
------------------------------------

       Resolution: Fixed
    Fix Version/s: ManifoldCF 0.5

Individual tickets should be created for each additional connector modified.

                
> 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
>             Fix For: ManifoldCF 0.5
>
>   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

        

[jira] [Commented] (CONNECTORS-388) Upgrade the Crawler UI framework with Apache Velocity

Posted by "Karl Wright (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CONNECTORS-388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13190637#comment-13190637 ] 

Karl Wright commented on CONNECTORS-388:
----------------------------------------

It turns out that the only jar needed for the UI tests to pass is the velocity jar itself.  All the others seem to be used for Velocity features we don't need, e.g. avalon logging.  So I've cut it back to the bare bones and modified the LICENSE.txt file accordingly.  Will commit to trunk shortly...

                
> 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

        

[jira] [Issue Comment Edited] (CONNECTORS-388) Upgrade the Crawler UI framework with Apache Velocity

Posted by "Karl Wright (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ 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: kwright@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

        

[jira] [Commented] (CONNECTORS-388) Upgrade the Crawler UI framework with Apache Velocity

Posted by "Karl Wright (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CONNECTORS-388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13188743#comment-13188743 ] 

Karl Wright commented on CONNECTORS-388:
----------------------------------------

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

        

[jira] [Commented] (CONNECTORS-388) Upgrade the Crawler UI framework with Apache Velocity

Posted by "Karl Wright (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CONNECTORS-388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13188887#comment-13188887 ] 

Karl Wright commented on CONNECTORS-388:
----------------------------------------

r1233150 is the changes needed to get the model basically correct.

Note that I haven't yet tried this setup; I have qualms about the VelocityEngine.setExtendedConfiguration() call, because I don't believe I've set all the pertinent defaults.  But we shall see.


                
> 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