Server Error hines.paul  2011-01-14 12:11
Status: Closed
 
I am getting the following error when I start labkey and click any link, after I have updated my postgres database from a backup of our lab's labkey server. Any help would be much appreciated.


500: Unexpected server error

A failure occurred during LabKey Server startup.

java.lang.NoClassDefFoundError: com/google/common/base/Charsets
       at org.labkey.ehr.etl.ETLRunnable.loadQueries(ETLRunnable.java:477)
       at org.labkey.ehr.etl.ETLRunnable.<init>(ETLRunnable.java:74)
       at org.labkey.ehr.etl.ETL.start(ETL.java:31)
       at org.labkey.ehr.EHRModule.startup(EHRModule.java:65)
       at org.labkey.api.module.ModuleLoader.ensureStartupComplete(ModuleLoader.java:682)
       at org.labkey.api.module.ModuleLoader.doFilter(ModuleLoader.java:605)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
       at org.labkey.api.security.AuthFilter.doFilter(AuthFilter.java:107)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)
       at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
       at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
       at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
       at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
       at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.ClassNotFoundException: com.google.common.base.Charsets
       at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1438)
       at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1284)
       ... 23 more
 
 
kevink responded:  2011-01-14 12:33
I'm not sure how it happened, but it looks like you are missing the 'guava-r07.jar' in your server's WEB-INF/lib directory. You can extract the 'guava-r07.jar' file from the original LabKey server .tar.gz or .zip install archive and place it into your server's WEB-INF/lib directory and restart the server.
 
adam responded:  2011-01-14 12:37
A few follow ups to Kevin's comment:
  1. Is it possible you have another (older?) version of google collections on your java classpath?
  2. What version of LabKey are you running? Exact SVN Revision number can be found in the admin console by expanding the core module.
  3. How did you install LabKey Server? Manual install, Windows installer, etc. Have you modified any of the files in the installation?
Adam
 
hines.paul responded:  2011-01-20 06:56
Thanks for the feedback, I upgraded LabKey to 10.3 then reupdated my postgres database and everything is working fine.

Thanks again,

Paul