First of all, you need to check whether you have java installed on your system. You can check by using the command:
java -version
If java is not installed, then you should install it by doing
sudo apt-get install default-jre
Afterwards, download Eclipse from the download section of the official website (http://www.eclipse.org/downloads/). Remember to choose the correct package for your architecture (32bit or 64 bit). The package will have the name:
eclipse-standard-kepler-SR1-linux-gtk-x86_32.tar.gz
or
eclipse-standard-kepler-SR1-linux-gtk-x86_64.tar.gz
After you have downloaded the correct package, extract the eclipse.XX.YY.tar.gz using
tar -zxvf eclipse.XX.YY.tar.gz
switch to root user:
sudo -i
Copy the extracted folder to /opt
cp -r eclipse.XX.YY /opt
Create a desktop file in the location /usr/share/applications and install it:
gedit eclipse.desktop
Copy the following to the eclipse.desktop file.
[Desktop Entry]
Name=Eclipse
Type=Application
Exec=eclipse
Terminal=false
Icon=eclipse
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Name[en]=Eclipse
Give the desktop file permission to be executed, run:
chmod +x eclipse.desktop
Run the following command to automatically install it in the unity:
desktop-file-install eclipse.desktop
Create a symlink in /usr/local/bin using
cd /usr/local/bin
ln -s /opt/eclipse/eclipse
For an eclipse icon to be displayed in dash, eclipse icon can be added as
cp /opt/eclipse/icon.xpm /usr/share/pixmaps/eclipse.xpm
Module mod_jk is the Tomcat redirector module that requires workers.properties and httpd configuration file update.
workers.properties is a file that describes the host(s) and port(s) used by the workers (Tomcat processes).
If your Tomcat application are stand-alone, you don't need to define loadbalancer worker that provide load balancing, meaning run multiple Tomcat workers each on a machine of its own and distribute the requests between them.
Your file should be:
worker.geoserver.port=8009 #ajp port on geoserver server
worker.geoserver.host=localhost
worker.geoserver.type=ajp13
worker.geowebcache.port=8010 #ajp port on geoserver server
worker.geowebcache.host=localhost
worker.geowebcache.type=ajp13
worker.jk-status.type=status
worker.list=jk-status, geowebcache, geoserver
Where worker jk-status is a special type of worker that does not forward requests to Tomcat instances. Instead it allows to retrieve status and configuration information at runtime, and furthermore to change many configuration items dynamically. This can be done via a simple embedded web interface.
In apache httpd configuration file in this case /etc/apache2/sites-available/ourgeoserver.org:
JkWorkersFile /path/workers.properties
where path is where you have saved your workers.properties file.
JkLogFile "|/usr/bin/rotatelogs /var/log/httpd/mod_jk.log 86400"
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
for activate logs, this is an examples, change path as you need
JkMount /url1|/*=geoserver
JkMount /url2|/*=geowebcache
JkMount /status|/*=jk-status
where url1 and url2 are the initial part of url. Apache choose worker base on http url
Best Answer
It's a common bug in Eclipse. To resolve it:
org.eclipse.wst.server.core.prefs
andorg.eclipse.jst.server.tomcat.core.prefs
filesThat's all. You can check this source which refers to this other source.