score:81

Accepted answer

if you did not install the package eclipse ide for java ee developers so you have to make sure that you install the plug-in "jst server adapters extensions".

to do so, go to help->install new software... and select the "kepler" repository. then expand "web, xml, java ee and osgi enterprise development" and check the box for "jst server adapters extensions". click "finish", accept, install and restart. now you should be able to add the new server like you're used to.

score:0

i had a similar issue with a 404 in tomcat 7 in kepler:

i could run tc fine outside of eclipse but could not start it from within eclipse.

my problem was that eclipse did not copy the root app over to the eclipse tc directory. once i copied the root app over i was fine.

this link solved my problem:

http://www.coreservlets.com/apache-tomcat-tutorial/tomcat-7-with-eclipse.html

hope this helps and saves you a lost morning like i went through!

score:1

okay, i figured this out for anyone interested. i'm in kepler sr1.

go to window > preferences. click on server > runtime environments. click add... select apache tomcat v7.0, then click next. browse to where you installed tomcat. click finish.

it will then be available in your new project dialog.

edit: this was with ee version of kepler. if you downloaded another version, see al's comment below.

score:3

elaborating on marvin emil brach's answer, for those who try to set up eclipse for tomee 1.6 (which is based on tomcat 7):

there's the guide at http://openejb.apache.org/tomee-and-eclipse.html. but if you want to use an existing eclipse standard ide (kepler sr2) installation - i.e. not the "eclipse ide for java ee developers" - you'll run into this exception:

java.lang.nullpointerexception: no imodelprovider exists for project p/[...] of version: dynamic web module 3.0

just installing the jst server adapters as recommended before didn't do it for me, but i found this hint: http://juhap.iki.fi/misc/nullpointerexception-while-creating-new-portlet-project-in-liferay-ide/. another plugin i needed to get the server editor is wst server adapters. so the complete set of plugins i had to install for fixing this is:

  • eclipse java ee developer tools
  • jst server adapters
  • jst server adapters extensions
  • jst server ui
  • eclipse java web developer tools
  • eclipse web developer tools
  • wst server adapters

score:4

right click on "server" tab at the bottom -> new -> server -> tomcat7.0

score:5

are you sure, you installed "eclipse ide for java ee developers" ?


Related Query

More Query from same tag