[
https://issues.apache.org/jira/browse/LENS-513?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14587930#comment-14587930
]
Rajat Khandelwal commented on LENS-513:
---------------------------------------
And we've seen another issue, after issuing add jar from cli, the jars are not
added to classloader. Upon further investigation, I found that at
https://github.com/apache/incubator-lens/commit/84666df01ded1e944b418abde08625a00789305d#diff-46402a36a4de90199ccd0159c6d554b4R157
you have:
{noformat}
numAdded += sessionService.addResourceToAllServices(sessionid, type,
matchedPath);
{noformat}
Here matchedPath is like file:/full/path. Upon changing the line to the
following, the issues goes away:
{noformat}
numAdded += sessionService.addResourceToAllServices(sessionid, type,
matchedPath.replace("file:///", "file:/").replace("file:/", "/"));
{noformat}
> add jar should be able to take regex path and should be able to add multiple
> jars
> ---------------------------------------------------------------------------------
>
> Key: LENS-513
> URL: https://issues.apache.org/jira/browse/LENS-513
> Project: Apache Lens
> Issue Type: Improvement
> Components: client
> Affects Versions: 2.2
> Reporter: Rajat Khandelwal
> Assignee: Yash Sharma
> Labels: newbie
> Fix For: 2.2
>
> Attachments: LENS-513.16.patch
>
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)