hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From A Levine <levin...@gmail.com>
Subject Connecting from Tomcat to remote HBase
Date Fri, 26 Mar 2010 14:21:04 GMT
I am having the hardest time tying to connect from a running webapp in
Tomcat 6.0 to a remote HBase instance.  Whenever the webapp comes to:

HBaseConfiguration config = new HBaseConfiguration();

There is an error reported:

java.lang.NoClassDefFoundError: Could not initialize class

I can connect to a remote HBase from a stand alone program by setting
the classpath to /devel/hbase/conf without any issues.  However, when
the code is used in the running webapp, the HBaseConfiguration cannot
be initialized.  I know the hbase-default.xml and hbase-site.xml need
to be in the CLASSPATH of the webapp so ClassLader can be called for
both xml files.  Those places are:


I have put both files in the /WEB-INF/classes/ directory with no
success.  What am I doing wrong?


View raw message