Steve responded: |
2016-09-16 11:01 |
|
|
balter responded: |
2016-09-16 11:09 |
Interesting!!! I thought I was being so cool for being up to date. I'll try rolling back and see if I get success. Thanks! |
|
balter responded: |
2016-09-17 01:01 |
Still not working. Here is what I did:
1) Rolled back to tomcat 8.0.37
2) Updated CATALINA_HOME environment variable in my .bash_profile and sourced it (just to make sure)
3) Updated run configurations for 8.0.37
4) ran ant clean and ant rebuild
5) stopped tomcat
6) hit debug in IntelliJ
Still hanging at "INFO: Server startup in ..."
Attaching new trace. |
|
|
adam responded: |
2016-09-17 07:36 |
The exception clearly states the problem: "This server does not appear to be compiled for production mode". You are attempting to run in production mode with a server compiled in dev mode. You either need to start this webapp in dev mode (-Ddevmode=true) or compile a production build. See the Creating Production Builds page. Also, I strongly suggest following all the recommendations on the Supported Technologies page. This shows the versions of all dependencies that we have tested thoroughly for compatibility. In particular, recently released Tomcat 8.0.37 introduced a change that causes our build to fail. At this point, we have addressed the problem only on the release16.2 branch. Adam |
|
balter responded: |
2016-09-17 09:12 |
Hi Adam, I have two configurations under the run configurations. LabKey_Dev has devmode set to true. LabKey_Production has devmode set to false. I thought that compiling with the debug button would automatically compile in development mode. I just noticed the dropdown menu to the left of the compile button to select which configuration to compile! Set to my development configuration, it builds! Fortunately, I have updated to 16.2 ;) Thanks! Ariel |
|
|
adam responded: |
2016-09-17 12:36 |
Glad to hear everything is working! Just to clarify, we've been discussing three different, largely independent concepts:
- Development vs. production build. The ant task you choose (ant build vs. ant production) solely determines the kind of build you produce. IntelliJ knows nothing about compiling development vs. production builds.
- Development vs. production mode. Running a build in development mode enables dynamic re-compilation of JSP files, loading various resources from the source location, enhanced logging, and other conveniences for developers. Choosing an IntelliJ run configuration ("LabKey Development" or "LabKey Production") is one way to pick this mode.
- IntelliJ Run vs. Debug option. These buttons run the current build using the currently selected run configuration, and determine whether IntelliJ debugging is enabled or not.
These three are independent of each other, except that you must have a production build in order to run in production mode. Adam |
|