Hey there, I'm just getting ramped up on LabKey. I'm running Debian (sid). I'm using the PostgresSQL instance which i have already installed. I installed Tomcat 6 from Debian. And generally i try to use the debian packages instead of the libraries included with LabKey. I've checked out TRUNK and compiled it. And i'm trying to install it now and get it running. After finally figuring out where to place labkeyBootstrap.jar (/usr/share/tomcat6/lib/), the server starts up. But immediately i get this NullPointerException.
INFO DbScope 2011-07-12 14:42:49,487 main : Initializing DbScope with the following configuration:
DataSource Name: labkeyDataSource
Server URL: jdbc:postgresql://localhost:5434/labkey
Database Product Name: PostgreSQL
Database Product Version: 9.0.4
JDBC Driver Name: PostgreSQL Native Driver
JDBC Driver Version: PostgreSQL 9.1devel JDBC4 (build 900)
SQL Dialect: PostgreSql90Dialect
INFO LabKeyScope 2011-07-12 14:42:49,559 main : Loading DbSchema "labkey.core"
ERROR ModuleLoader 2011-07-12 14:42:49,684 main : Failure occurred during ModuleLoader init.
java.lang.NullPointerException
at org.labkey.api.module.ModuleLoader.upgradeCoreModule(ModuleLoader.java:599)
at org.labkey.api.module.ModuleLoader.doInit(ModuleLoader.java:302)
at org.labkey.api.module.ModuleLoader.init(ModuleLoader.java:214)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4072)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4726)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1315)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
INFO ViewServlet 2011-07-12 14:42:51,212 main : ViewServlet initialized
INFO ViewServlet 2011-07-12 14:42:51,244 main : WEBAPP: /home/usr/share/tomcat6-labkey/labkeyWebapp/
INFO ViewServlet 2011-07-12 14:42:51,244 main : PATH: /bin:/usr/bin:/sbin:/usr/sbin
I'll try svn upping and recompiling. Do you have any thoughts?
thanks,
Brian |
|
brian.derocher responded: |
2011-07-13 08:44 |
I figured this one out. Looks like LabKey copies jar files from the modules folder to the labkeyWebapp folder. Still trying to figure out why that happens. Now i have an issue with not finding the core context. My core.modules table is empty. |
|
jeckels responded: |
2011-07-13 09:51 |
Hi Brian,
I'd suggest killing the Tomcat process, dropping the labkey database on your Postgres server and then restarting Tomcat. When the webapp starts up, assuming the issue around the labkeyWebapp directory has been resolved (file permissions, I'm guessing?) it should recreate the database and populate it as expected.
Thanks,
Josh |
|
brian.derocher responded: |
2011-07-13 11:05 |
Josh,
That's exactly what i did. I got an issue with being unable to find a class in mail.jar, so i copied that to /usr/share/tomcat6/lib/ (just like labkeyBootstrap.jar) and it started up just fine. After registering my account, it installed all the other modules.
thanks,
Brian |
|
|
|