score:85
The targeted runtime version must be updated. Suppose you are using Tomcat Version 8.0 but in the targeted runtime it shows 7.0 selected.
You need to right click on your project > Properties > Targeted Runtime > Click the version required 8.0 I guess. Hope it helps.
score:0
Go to Window/Preferences then Server/Runtime Environments and add the missing Runtime Environment here.
score:0
There is probably a simpler way, but installing the J2EE version of Eclipse solved this for me. I had projects set up in an older version of Eclipse, but after upgrading to a newer, standard, version my tomcat project quit working even after installing the Web Tools Platform SDK. So reinstalling with the J2EE version was the easiest thing that worked for me after trying several of the other solutions.
score:1
score:3
Eclipse Version: OXYGEN, 2017
- From the Project Explorer, right-click on your project > Properties > Project Facets
- On the left-hand panel, click on Runtimes tab.
- Select the Runtime (Apache Tomcat vX.0) you wish to implement.
- Click Apply and Close.
You should see this specific error go away. Regards.
score:4
Add your Tomcat 7 installation to your targeted runtimes. You can do it under menu Project > Properties > Targeted Runtimes
Select your desired runtime and provide the path where it is installed.
score:5
It might be that the org.eclipse.wst.common.project.facet.core.xml
file in the .settings of your project have changed (e.g. if a colleague checks in their settings and then you pull their changes). In that case the Project > Properties > Targeted Runtime
will be there and even checked (your original will be unchecked) but you will still have a problem.
You need to rename your runtime...
Window > Preferences > Server > Runtime Environments
select yours > Edit
Change the name so that it is the same as your colleagues.
When you come to using your server that will also need to be updated...
double click on the server > General Information > Runtime Environment
use the dropdown to select the new name
Source: stackoverflow.com
Related Query
- Eclipse - Target runtime Apache Tomcat v7.0 is not defined
- Eclipse error: Target runtime Apache Tomcat v7.0 is not defined
- Apache Tomcat Not Showing in Eclipse Server Runtime Environments
- Apache Tomcat 9 Not Showing in Eclipse Server Runtime Environments
- Tomcat server not listed on Target Runtime on eclipse Neon
- apache tomcat 9.x not working with eclipse & Java 10.0.1
- eclipse can not determine apache tomcat 7 on ubuntu
- Apache Tomcat 7.0 not working properly with eclipse EE juno version
- Eclipse Servers view not showing added Tomcat runtime environment
- Apache Tomcat and Apache TomEE server is not running web projects in eclipse
- Tomcat server in Eclipse : the war in target directory is not deployed correctly
- Tomcat server in Eclipse : the war in target directory is not deployed correctly
- Eclipse not recognizing Apache Tomcat on Debian/Linux
- Apache Tomcat v8 is not showing in Eclipse Juno
- What does "The APR based Apache Tomcat Native library was not found" mean?
- Eclipse WTP plugin no Apache Tomcat adapter
- Eclipse tomcat error: Document base does not exist or is not a readable directory
- Tomcat Not Starting Through Eclipse (Timeout)
- The APR based Apache Tomcat Native library was not found on the java.library.path
- Tomcat is not deploying my web project from Eclipse
- Expression Language & Eclipse warning: "items" does not support runtime expressions
- apache Tomcat installation directory in ubuntu / configure Tomcat in eclipse + ubuntu
- Target is not a JDK root. System library was not found. Eclipse Oxygen 4.7 + Java9 error
- The origin server did not find a current representation for the target resource or is not willing to disclose that one exists. on deploying to tomcat
- Removing the Apache TomCat runtime from a project in Eclipse?
- maven + eclipse + tomcat : class not found exception
- Tomcat not shutting down within Eclipse
- How to deploy created .jar file in Apache Tomcat server in Eclipse IDE?
- Maven dependencies not deployed on Eclipse Tomcat instance
- Eclipse Tomcat not Updating
More Query from same tag
- NoClassDefFoundError when workspace's jre not the same as jre_home
- Eclipse - no Server view
- how to import-back a deleted project from same eclipse workspace
- Drag folder into Eclipse IDE?
- What is the purpose and usage of class EclipseStarter?
- XTend Second Eclipse Application not updating
- how to generate constructors in eclipse
- Error in Importing Maven Java project in Eclipse
- Unable to Install ADT in Win7 64 bit
- SonarLint cannot connect to SonarQube Server
- Eclipse, maven, Jersey REST service, servlet 3.0, Tomcat 7.0, HTTP 404 Error
- How to resolve missing context.xml during maven build?
- Eclipse Content Assist with custom types
- How to get the list of files open in active eclipse editor window in eclipse?
- getting java.lang.NullPointerException when trying to run nutch from eclipse with a cassandra datastore
- Symbols render fine in Eclipse Debug mode, but print incorrectly
- Eclipse e4 Extending a Perspective
- Enabling pretty-printers in eclipse 4.16.0 does not work on Windows 10
- JAVA is required to run android project in eclipse for windows 7
- can't run ScalaIDE in a XP without networks
- Debug Java object attributes in Eclipse
- Eclipse Git Preferences: Cannot change which user space .gitconfig to use
- Specify Library Target of Maven
- Invalid initial heap size errors while starting wso2 esb server with eclipse developer studio
- I am Getting Maven compiler error while i am running Maven Project
- Integrate jnlp into existing eclipse RCP environment?
- java.lang.NoClassDefFoundError after integrating project to windows 7
- Add Maven nature to existing Eclipse project that has pom but no Maven submenu
- Why does an attempted export of a plugin fragment "not find the exported unit"?
- How to import an Android project in to eclipse with out creating a new one from source?