A simpler manner is:
- Open Intellij -> Tools -> Create desktop entry
- Right click on Intellij launcher icon -> lock to launcher
Eclipse will randomly disable or won’t set breakpoints. To correct go to Run -> Skip All Breakpoints and un-check it https://stackoverflow.com/questions/7992134/breakpoints-are-crossed-out-how-can-i-make-them-valid/7992183
To not have to install websites within tomcatX/webapps do the following. I chose to install connected to localhost. The name for this site is fileSystem so:
fileSystem.xmlfile for this app and place it in
<Context displayName="fileSystem" docBase="/home/roye/tomcat/fileSystem" path="/fileSystem" reloadable="true" />
A simpler manner is:
A good link to use – https://www.digitalocean.com/community/tutorials/how-to-install-apache-tomcat-8-on-ubuntu-16-04 However, this installs Tomcat for public exposure.
I chose to install it in my personal account. The primary reason was to put it in a non-sudo directory so it would be easier to work with. It is running on my personal laptop with no other users. Another reason was I wanted to easily run my Servlet in my local directory for testing and mirroring sites that might use them.
The structure I’m using:
tomcat* (this entire tomcat install)
docBase WEB-INF web.xml <- configures which servlets are used, welcome pages, security issues classes <- a directory containing the servlets and supporting classes. This is a root classes must be locate below by their package name e.g. com.cnrepperson.test.TestClass.class com cnrepperson test TestClass.class static_content <- html, php and other content not associated with the site's configuration or servlets
Summarized from https://confluence.sakaiproject.org/display/BOOT/Setting+Up+Tomcat+For+Remote+Debugging
We recommend adding this stuff to your startup script so that you are always running tomcat in debug mode.
copied from http://starredmediasoft.com/tomcat-configure-remote-debugging/ on eclipse do the following steps:
Connecting apache2 and Tomcat – https://community.jaspersoft.com/wiki/connecting-apache-web-server-tomcat-and-writing-re-direct-rules