[
https://issues.apache.org/jira/browse/LENS-22?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14215813#comment-14215813
]
Rajat Khandelwal commented on LENS-22:
--------------------------------------
>From the code:
{code}
LENSCPPATH="$LENS_CONF"
LENS_EXPANDED_WEBAPP_DIR=${LENS_EXPANDED_WEBAPP_DIR:-${BASEDIR}/webapp}
export LENS_EXPANDED_WEBAPP_DIR
# set the server classpath
if [ ! -d ${LENS_EXPANDED_WEBAPP_DIR}/lens-server/WEB-INF ]; then
mkdir -p ${LENS_EXPANDED_WEBAPP_DIR}/lens-server
cd ${LENS_EXPANDED_WEBAPP_DIR}/lens-server
$JAR_BIN -xf ${BASEDIR}/webapp/lens-server.war
cd -
fi
LENSCPPATH="${LENSCPPATH}:${LENS_EXPANDED_WEBAPP_DIR}/lens-server/WEB-INF/classes"
LENSCPPATH=${LENSCPPATH}:`ls
${LENS_EXPANDED_WEBAPP_DIR}/lens-server/WEB-INF/lib/* 2>/dev/null | tr "\n" ':'
2>/dev/null`
LENSCPPATH=${LENSCPPATH}:`ls ${BASEDIR}/lib/* 2>/dev/null | tr "\n" ':'
2>/dev/null`
{code}
LENSCPPATH doesn't include any other libs. I'm adding it directly to hadoop
classpath.
> LENS Server classpath not getting picked up
> -------------------------------------------
>
> Key: LENS-22
> URL: https://issues.apache.org/jira/browse/LENS-22
> Project: Apache Lens
> Issue Type: Bug
> Components: build
> Affects Versions: 2.0
> Reporter: Rajat Khandelwal
> Assignee: Rajat Khandelwal
> Fix For: 2.0
>
> Attachments: LENS-22.patch
>
>
> While testing database user config loader I changed the configurations and
> didn't add postgres jar to lib. Sure enough I got ClassNotFound. I added jar
> to lens-dist/lib directory and still ClassNotFound. Reason being those jars
> are not being added to classpath individually. lens-dist/lib/* is added to
> classpath which is not adding all the jars. Had to copy the command from the
> output of ps -ef | grep LensServer, add the full location to classpath
> argument and re-run the server for the class to be found
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)