Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>1 . To fix the error <strong>'Cannot create a server using the selected type'</strong> run the following:</p> <pre><code>cd ~/workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/ rm org.eclipse.jst.server.tomcat.core.prefs rm org.eclipse.wst.server.core.prefs </code></pre> <p>2 . Once you do this, another error </p> <p><strong>'Could not load the Tomcat server configuration at /usr/share/tomcat7/conf. The configuration may be corrupt or incomplete /usr/share/tomcat7/conf/catalina.policy (No such file or directory)'</strong> </p> <p>So to fix this run the following commands:</p> <pre><code>cd /usr/share/tomcat7 sudo ln -s /var/lib/tomcat7/conf conf sudo ln -s /etc/tomcat7/policy.d/03catalina.policy conf/catalina.policy sudo ln -s /var/log/tomcat7 log sudo chmod -R 777 /usr/share/tomcat7/conf </code></pre> <p>3 . Restart server and Eclipse</p> <p>4 . Add new server</p> <ul> <li>Choose the Servers under the Server category;</li> <li>Create <strong>new server wizard</strong>;</li> <li>Choose <strong>Apache / Tomcat v7.0 Server</strong> and press Next;</li> <li>Enter <strong>/usr/share/tomcat7</strong> into the <strong>Tomcat installation directory</strong> and press Next;</li> <li>Select your project on the left pane under “Available” and press Add> to move it to the right pane under <strong>Configured</strong>; press <strong>Finish</strong>;</li> </ul> <p>Eclipse need to start the server, and to do that, first, it has to stop the one running in background.</p> <blockquote> <p>sudo service tomcat7 stop</p> </blockquote> <p>If you don't have to automatically start at boot, we can use the following command</p> <blockquote> <p>sudo update-rc.d tomcat7 disable</p> </blockquote> <p>If, during server start, you receive warnings like:</p> <pre><code>WARNING: Problem with directory [/usr/share/tomcat7/common/classes], exists: [false], isDirectory: [false], canRead: [false] WARNING: Problem with directory [/usr/share/tomcat7/common], exists: [false], isDirectory: [false], canRead: [false] WARNING: Problem with directory [/usr/share/tomcat7/server/classes], exists: [false], isDirectory: [false], canRead: [false] WARNING: Problem with directory [/usr/share/tomcat7/server], exists: [false], isDirectory: [false], canRead: [false] WARNING: Problem with directory [/usr/share/tomcat7/shared/classes], exists: [false], isDirectory: [false], canRead: [false] WARNING: Problem with directory [/usr/share/tomcat7/shared], exists: [false], isDirectory: [false], canRead: [false] </code></pre> <p>You may also need to run the following:</p> <pre><code>cd /usr/share/tomcat7 sudo ln -s /var/lib/tomcat7/common common sudo ln -s /var/lib/tomcat7/server server sudo ln -s /var/lib/tomcat7/shared shared </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

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