Skip to main content



      Home
Home » Newcomers » Newcomers » Add Tomcat8 to Eclise Neon on Linux Mint
Add Tomcat8 to Eclise Neon on Linux Mint [message #1754999] Sat, 25 February 2017 13:17 Go to next message
Eclipse UserFriend
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: Sat, 25 February 2017 19:29] by Moderator

Re: Add Tomcat8 to Eclise Neon on Linux Mint [message #1755015 is a reply to message #1754999] Sun, 26 February 2017 13:52 Go to previous message
Eclipse UserFriend
You shouldn't develop using your "production" install. If nothing else, the distribution's packaging of Tomcat may have moved files around, compared to the downloadable Tomcat tarball, in ways that lead to these issues.

Download a .tar.gz file from https://tomcat.apache.org/download-80.cgi , unpack it somewhere under your home directory, and use that as your Tomcat runtime. Then get back to developing your web app.

https://wiki.eclipse.org/WTP_Tomcat_FAQ
Previous Topic:Why won't this work?
Next Topic:Error installing e (fx) clipse 2.4.0
Goto Forum:
  


Current Time: Thu Jul 17 16:42:04 EDT 2025

Powered by FUDForum. Page generated in 0.14388 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top