Labkey Server on development environment is not working

LabKey Support Forum
Labkey Server on development environment is not working dhanya sathyan  2019-02-01 14:41
Status: Closed
 

I have been following the instructions on the Labkey website https://www.labkey.org/Documentation/wiki-page.view?name=devMachine accurately to set up my development environment. I also might have to tell you the Build from gradlew worked to completion showing me no errors. But after deploying it into Tomcat, the Lab key server shows the below error when we browse to : http://localhost:8080/labkey .

Configuration Error Detected at LabKey Server Startup
This server does not appear to be compiled for production mode
There is a problem with your configuration. Please contact your organization's server administrator for assistance or visit the LabKey Support Portal to view additional support options.
org.labkey.api.util.ConfigurationException: This server does not appear to be compiled for production mode
at org.labkey.api.module.ModuleLoader.verifyProductionModeMatchesBuild(ModuleLoader.java:476)
at org.labkey.api.module.ModuleLoader.doInit(ModuleLoader.java:344)
at org.labkey.api.module.ModuleLoader.init(ModuleLoader.java:249)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:285)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:266)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4657)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5304)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:754)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:629)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1839)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)

So, then I build the code in production mode, which also ran smoothly . But again, after deploying it into Tomcat, the Lab key server shows the below error when we browse to : http://localhost:8080/labkey :

500: Unexpected server error. If contacting support regarding this error, please refer to error code: 2M8ESF
org.labkey.jsp.compiled.org.labkey.core.login.setPassword_jsp
java.lang.ClassNotFoundException: org.labkey.jsp.compiled.org.labkey.core.login.setPassword_jsp
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
at org.labkey.api.jsp.JspClassLoader.loadClass(JspClassLoader.java:71)
at org.labkey.api.jsp.JspLoader.createPage(JspLoader.java:62)
at org.labkey.api.view.JspView.<init>(JspView.java:90)
at org.labkey.api.view.JspView.<init>(JspView.java:99)
at org.labkey.core.login.LoginController$AbstractSetPasswordAction.getView(LoginController.java:1490)
at org.labkey.core.login.LoginController$InitialUserAction.getView(LoginController.java:1785)

Your help in this regard is much appreciated.

 
 
Jon (LabKey DevOps) responded:  2019-02-07 10:39
User resolved issue after going back through https://www.labkey.org/Documentation/wiki-page.view?name=devMachine and realizing that Tomcat was not being started up within IntellIJ environment for the LabKey Dev configuration and instead had tried to start it up outside of the IntelliJ. After doing this, things worked as expected.