Yes: $> ls -1 WEB-INF/lib/ geoapi-2.3-M1.jar gt-metadata-2.6.0.jar gt-referencing-2.6.0.jar hbase-0.20.3.jar hbase-default.xml hbase-site.xml
andrew -- On Fri, Mar 26, 2010 at 10:27 AM, Guilherme Germoglio <germog...@gmail.com> wrote: > Are the hbase jars in your webapp's libs directory? You might need them. > > On Fri, Mar 26, 2010 at 11:21 AM, A Levine <levin...@gmail.com> wrote: > >> 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 >> org.apache.hadoop.hbase.HBaseConfiguration >> >> 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: >> >> /WEB-INF/classes/ >> /WEB-INF/lib/*.jar >> $CATALINA_HOME/lib >> $CATALINA_HOME/*.jar >> >> I have put both files in the /WEB-INF/classes/ directory with no >> success. What am I doing wrong? >> >> andrew >> > > > > -- > Guilherme > > msn: guigermog...@hotmail.com > homepage: http://sites.google.com/site/germoglio/ >