Hello!
I would like to develop this and that with Eclipse, Java, and Tomcat.
I've installed Tomcat with apt install tomcat8
In eclipse, New->Other->Server->Tomcat8.
Can't enter anything to the server name textbox, 5 minute google search, solution:
rm .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.wst.server.core.prefs
rm .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jst.server.tomcat.core.prefs
Restart eclipse. Try again, works.
New error message when click the finish button somekind of config file doesn't exists:
Could not load the Tomcat server configuration at /usr/share/tomcat8/conf. The configuration may be corrupt or incomplete.
/usr/share/tomcat8/conf/catalina.policy (Nincs ilyen fájl vagy könyvtár)
Another five minutes of google,
sudo ln -s /etc/tomcat8/policy.d/03catalina.policy /usr/share/tomcat8/conf/catalina.policy
Problem solved.
Now new error on the bottom of eclipse window:
Description Resource Path Location Type
The container 'Apache Tomcat v8.0 [Apache Tomcat v8.0]' references non existing library '/usr/share/tomcat8/lib/commons-dbcp.jar'
That lib is exists under that directory.
ls /usr/share/tomcat8/lib/commons-dbcp.jar
/usr/share/tomcat8/lib/commons-dbcp.jar
I have a question: How can I install and configure it?
Update:
The libcommons-dbcp-java packege was not installed. After installation eclipse doen't complain about the jar, now the only problem is an error message:
Could not load the Tomcat server configuration at ... The configuration may be corrupt or incomplete.
[Updated on: Sun, 26 February 2017 00:29]
Report message to a moderator