Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Actually you can use Tomcat from Ubuntu repository with Eclipse (at least with Kepler version). It just requires couple of additional steps.</p> <ol> <li>Open Eclipse. Press File ⇒ New ⇒ Other... ⇒ Servers ⇒ Server ⇒ Next > ⇒ Apache ⇒ Tomcat v7.0 Server</li> <li>Select Tomcat Installation Directory: /usr/share/tomcat7</li> <li>Click Finish, ignore error message, click Finish again</li> <li><p>Copy Tomcat configuration to workspace executing from terminal:</p> <pre><code>sudo cp -r /etc/tomcat7/* ~/workspace/Servers/Tomcat\ v7.0\ Server\ at\ localhost-config/ sudo chown -R $USER:$USER ~/workspace/Servers/Tomcat\ v7.0\ Server\ at\ localhost-config/ </code></pre></li> <li><p>Concat policy files into one file:</p> <pre><code>cd ~/workspace/Servers/Tomcat\ v7.0\ Server\ at\ localhost-config/ cat policy.d/* &gt; catalina.policy </code></pre></li> <li><p>Either shutdown tomcat7 service every time before running it from Eclipse, or edit tomcat's ports in config files of your workspace (I suggest editing configs):</p> <pre><code>gedit ~/workspace/Servers/Tomcat\ v7.0\ Server\ at\ localhost-config/server.xml </code></pre> <p>You are interested in changing ports 8080, 8009 and 8005 (to, say, 9090, 9009 and 9005).</p></li> <li>Return to Eclipse, select 'Servers' in Project Explorer (left panel), press F5, to refresh it.</li> <li>Start Tomcat from Eclipse (see Servers tab in the bottom panel of Eclipse).</li> </ol> <p>I wrote this answer based on <a href="http://sukharevd.net/environment-for-j2ee-development-under-ubuntu.html#eclipsetomcat" rel="nofollow">my article</a>. It's a bit more detailed, so refer to it if necessary.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload