Skip to content

Debugging MARLO in eclipse

Grant edited this page Apr 19, 2018 · 2 revisions

Debugging MARLO in eclipse.

To be able to debug MARLO in eclipse, download an archive of v8.5 tomcat and extract it to your local hard drive. Under the conf directory modify the server.xml file so that SSL is enabled and points to your keystoreFile.

<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol" maxThreads="150" SSLEnabled="true" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" keystoreFile="C:\projects\MARLO\marlo-web\.keystore" keystorePass="password"> </Connector>

see Configuration of tomcat for Pentaho on how to setup the JNDI datasource for pentaho.

In eclipse create a new server and select tomcat 8.5, and add a name server-name for the installation. Click next.

Point the server at the tomcat installation directory, make sure the JVM is a Java8 version and click finish.

You should now in your servers view in STS eclipse have a server instance for tomcat 8. Right click and select Start and verify that your tomcat instance starts up.

The previous step is important as it will create a tomcat run/debug configuration with pre-populated VM arguments, see screenshot below.

Add the JVM argument -Dspring.profiles.active=dev to the JVM arguments.

Now right click on the tomcat server and select add and remove.

Add marlo to the tomcat server.

Now start the tomcat instance by selecting debug and ensure the MARLO loads correctly. Finally place a breakpoint in your code and make sure the program suspends.

Clone this wiki locally