5

I have recently installed Arch Linux and using Pacman I installed Eclipse and Tomcat 7 using the relevant guides in the ArchWiki. I followed the guide Apache Tomcat Eclipse Integration, An Illustrated Quick Start Guide to integrate the two together.

To sum it up, I did the following:

  1. Installed WPT from the Eclipse Install New Software feature.
  2. Opened the new Dynamic Web Project wizard
  3. During the wizard I selected Apache Tomcat v7.0 and set the Tomcat installation directory to /usr/share/tomcat7
  4. Completed the wizard
  5. Right clicked on the server tab (located at the bottom of the IDE) and clicked on the new server dialogue

In this dialouge is were I encounter an issue. When I choose Tomcat v7.0 Server the error Cannot create a server using the selected type pops up.

I'm suspecting that it might be a permission issue since I am not running Eclipse via root, but I am not sure how to set them up for this scenario. Other than that I am not sure if maybe it is a directory issue, that is, Eclipse is trying to locate a specific folder which is located somewhere else.

I am uncertain if this is an Arch Linux question specifically or Linux in general.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Drahcir
  • 12,311
  • 19
  • 63
  • 76

2 Answers2

2

As mentioned before this sounds very much like a permission issue. Ensure that the user running Eclipse has read and execute privileges for Tomcat. Also you should check that the Tomcat server can start properly without running from Eclipse. Verify that it can bind to the default 8080 port, etc.

You can check the Tomcat logs for the details and the configuration file for Tomcat is usually in the <tomcat base>/conf/server.xml.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
nneko
  • 770
  • 9
  • 11
1

As you already suspect, it is probably a permission issue. Check that your user is added to the tomcat group and make sure that scripts in /usr/share/tomcat7/bin are readable and executable by tomcat group members. Also it is important that tomcat group has read access to /usr/share/tomcat7/conf files and of course the permission to enter the directories itself.

jham
  • 375
  • 1
  • 6
  • There doesn't seem to be a tomcat group but rather a specific tomcat user. – Drahcir Dec 24 '11 at 15:57
  • @Drahcir Then create it with `groupadd tomcat` and then add your user to that group with `usermod -a -G tomcat youruser`. You would need to relogin after that. – jham Dec 26 '11 at 15:49