score:48
The easiest solution (and what worked for me) was to delete my tomcat server from the "Servers" view in Eclipse, then create a new server and add all the appropriate modules to it.
Sometimes tomcat gets confused and the easiest/least time consuming way to resolve things is to start over.
score:-1
Try , right click tomcat --> Add / Remove , then in opened window , remove All projects in Configured side..
Then restart tomcat .
score:-1
Before adopting any other solution, make sure that the project is open.
score:0
Go to Tomcat Manager Select web app -> undeploy it
score:0
Today I was working with some other project and getting some errors in starting server (tomcat7), so first I cleaned
the server and tried but no luck, then I deleted the server and made new one.
The project on which I was working was started working fine, but another project started giving me the same exception, I again deleted the server and tried but the same case, even I was unable to hit the tomcat landing page i.e. localhost:8888/
. I really don't know how and why all that happened.
I tried several things like clean
,add/remove
then I started searching SO.
After some research I thought to give one more chance then I started server again this time both of my projects started working fine but still getting 404 on tomcat page
score:0
score:0
I came across this problem today, then solve it by editing the server.xml in directory of %tomcat_home%\conf, just as below:
<Context docBase="E:\apache-tomcat-7.0.52\webapps\ROOT" path="/ROOT" reloadable="true" source="org.eclipse.jst.j2ee.server:pc-ui"/>
I don't know whether it is MyEclipse that have genarated the "Context" element in element of "Host", but I change it according to the error info diaplayed in IDE console.
score:0
I got this error a few times. I got it because my project wasn't building correctly after running the "mvn eclipse:eclipse" line. Make sure your project is being built correctly, then add and remove the project from the server.
score:0
This could happen if you execute maven to build a java project
mvn eclipse:eclipse
Instead of executing maven to build a web java project as:
mvn eclipse eclipse -Dwtpversion=2.0
score:0
You can look into tomcat\conf\Catalina\localhost,if you can see the xml file which its name matches your error message.You can just delete the xml file and restart your tomcat.
score:1
I had to remove an offending project/module from the tomcat config view, under the modules tab.
score:1
i have solved this error by adding removing and adding again the jar files from WebContent/WEB-INF/lib folder. and i did the same in properties of project ie(Right click on project->Build Path->configure build Path) by selecting Add External Jar option.
score:2
I got this problem when I imported a project and run it with Tomcat. I fixed it when I opened .project file and added some code:
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
score:2
Happened to me a couple of times.
Windows > Show view > Servers>
A List of servers will be displayed at bottom Right click on it and delete.
Now while running your project, Manually re select the server from list of existing servers and run.
score:3
Looking at the exception you get, this looks like a problem with publishing your WEB-App (eg. Eclipse WTP could mess something up). First things that come in my mind:
Check your Tomcat server settings: go to Servers - double click on your server. Get your 'Server Locations - Server Path' and check if it exists and check the user/group read/write permissions. eg. ls -lh somepath/.medadata/.plugins/.org.eclipse.wst.server.core/tmp0 You must be owner or at least in same group for the folder.
Clean the eclipse workspace. (Project - clean all)
Clean/Republish your wep-app (right click on server, clean, publish).
Check if the application is published, there should be a folder named Preventini in /home/claudio/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/ Also check the permissions here again (see above).
score:4
This could happen because "Tomcat\conf\Catalina" folder. Please delete this folder.
score:5
If using Eclipse STS
open the server view
select the server that you're trying to publish to
right click -> clean
I had this problem come up a couple of times and this always seemed to fix it. I suppose the other solutions work too but they seem more complicated to me.
score:6
This might be late but for the benefit of the those who might encounter the same problem in the future, I'll share what I experienced.
I got this problem after I deleted the WebContent
folder of the Dynamic Web Project
I just created in place of webapp
folder which is the standard folder of my company. I found out that, in Project Properties > Deployment Assembly
, WebContent
folder is still used as the root of the web application (Deploy Path : "/")
. Thus, Eclipse doesn't copy the project to .metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps
because the root specified in Deployment Assembly
does not exist anymore.
I fixed it by editing that entry then correcting it with the folder I am using in place of the default WebContent
(the webapp
folder)
score:10
I had the same problem using Tomcat 7 & Eclipse Mars.
I solved it as follows:
- stop Tomcat
open server.xml
Ctrl + Shift + R > type "server.xml" > Open
search for "
<Context docBase
"Ctrl + F > type "
<Context
" > Findremove all
<Context .../>
tags from here:<?xml version="1.0" encoding="UTF-8"?> ... <Server port="8005" shutdown="SHUTDOWN"> ... <Service name="Catalina"> ... <Engine defaultHost="localhost" name="Catalina"> ... <Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true"> ... <!-- Remove the following lines! --> <Context docBase="App1" path="/App1" reloadable="true" source="org.eclipse.jst.j2ee.server:App1" /> <Context docBase="App2" path="/App2" reloadable="true" source="org.eclipse.jst.j2ee.server:App2" /> </Host> </Engine> </Service> </Server>
- probably at the end of the last line that has to be removed is
</Host>
(don't remove</Host>
!)
- probably at the end of the last line that has to be removed is
Go to Servers tab > right click on the project(s) > Remove > OK
Right click on the project > Run As > Run on Server > Finish
Now it should work!
If you check the server.xml file, you'll see that a new correct "<Context ... />
" line was generated.
score:20
i have the same error, just run this maven command repeatedly and solve the problem.
mvn eclipse:clean eclipse:eclipse -Dwtpversion=2.0
eclipse was not recognizing that this was a web project, so never deploy the application.
Source: stackoverflow.com
Related Query
- Eclipse tomcat error: Document base does not exist or is not a readable directory
- Document base [path]\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\[project] does not exist or is not a readable directory
- IllegalArgumentException: Document base \.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps does not exist or is not a readable directory
- java.lang.IllegalArgumentException: Document base [...]org.eclipse.wst.server.core\tmp0\wtpwebapps[...] does not exist or is not a readable directory
- java.lang.IllegalArgumentException: Document base [...] does not exist or is not a readable directory
- java.lang.IllegalArgumentException: Document base [...] does not exist or is not a readable directory
- Grails 3.0.1 add in Eclipse show error Specified directory does not appear to be a Grails installation
- Getting an error that Package does not exist in eclipse java [ERROR]
- Error type 3: Activity Class {…} does not exist in Eclipse
- Eclipse throwing error - "file name references to "main.html" that does not exist in web content" 404 error for web.xml
- .apk does not exist error when exporting Android project in Eclipse using android-sdk_r06-mac_86
- Tools jar does not exist Eclipse JAVA
- Eclipse Dali JPA error : 'Console configuration "" does not exist'
- Why when I rename a project in Eclipse does Tomcat not pick up the new resource name?
- eclipse error: glassfish\domains\domain1 does not exist
- Res' does not exist in Eclipse
- Why does the Eclipse debugger give the error "Source not found" seemingly without reason?
- "The specified Tomcat installation directory does not exist" after reinstalling system
- GlassFish 4.1 in Eclipse errors java.io.FileNotFoundException: null/config/domain.xml (file or directory does not exist)
- Eclipse Luna - Getting error - 'Could not publish server configuration for Tomcat v7.0 Server at localhost. Multiple Contexts have a path of "/abc"
- Eclipse spelling engine does not exist
- Eclipse webapp project does not start properly on Tomcat anymore after a PC restart
- How to get rid of "The web.xml file does not exist" error in Eclipse from GWT Plugin?
- Request resource is not found 404 error while running maven project on tomcat in eclipse
- How can I fix the "Property 'allowUndeclaredRTE' does not exist" error when using my Eclipse Checkstyle plugin?
- Step does not have a matching glue code error in cucumber eclipse
- Eclipse source attachment configuration path does not exist
- Eclipse Tomcat server does not start
- Eclipse Open Declaration Error - Does not resolve to a Javascript element
- Eclipse : Starting tomcat server from eclipse , does not start the deployed wars
More Query from same tag
- App is not opening , though no errors..!
- Backing Up in Eclipse
- The following classes could not be instantiated: com.google.ads.AdView()
- Debugging Android Apps on Dell Venue 7 using Eclipse
- How does 'eclipse' cmd in Linux map to an eclipse installation?
- Stop log4j2 printing to Eclipse console when configured to append only to file
- Compile Equinox 3.8.2 Project with java 7
- Why is the Eclipse JSP editor uncapable of double-click selecting in a reasonable manner?
- Unable to create successfully a project using GWT-maven-plugin with gwt 2.2
- Equally spacing all the views inside TabWidget android
- Source code breadcrumbs in Vim
- Debugging Android app from its Java code
- How do I write to a file in eclipse?
- Debug Gradle application with instrumented files
- How to install the GlassFish 3 server adapter with Eclipse Helios 3.6
- Eclipse Console not showing Exceptions
- How to group SonarLint for Eclipse 3.2.0 results by severity (MAJOR, MINOR, CRITICAL)?
- Eclipse theme issues
- Import code issues google
- WebSphere Application Migration Toolkit (v20.0.0.1) not installing on Eclipse 2019-12 IDE for JavaEE Developers
- Could not write metadata for '/.org.eclipse.dltk.core.external.folders'
- Updating Swing DefaultComboBoxModel
- Don't show ads for Android API 8 or lower
- Changing default JUnit method stubs to create in Eclipse dialog
- Queue sequential UI Jobs and show them in UI
- Which flavor of eclipse to download in order to start developing with GWT?
- Eclipse popup dialog lacks info after attaching android sources
- Struggling to compile android apps in Eclipse with a min-sdk that is smaller than the target-sdk
- hadoop 2.2.0 libraries are missing?
- How to add Eclipse Task Tags programmatically (Eclipse Plugin development)?