class files disappear sporadically from a tomcat deployment [message #1745028] |
Tue, 04 October 2016 06:17  |
Eclipse User |
|
|
|
Hi!
This has been plaguing me for a while, last time with Kepler and now in Neon.1.
I have a few web application projects (maven based) deployed to tomcat 6.0.x "inside" Eclipse.
Every now and then the .class files in the server directory disappear and then of course tomcat reports ClassNotFoundException errors.
Then I stop it and do server / Clean... , Project / Clean etc... until it works again.
There a many similar issues reported on the web (google "eclipse wst tomcat classnotfoundexception sporadically" for example).
I also found http://stackoverflow.com/questions/27271625/ where it recommends to delete the /.metadata/.plugins/org.eclipse.wst.server.core/tmp0 folder.
That works, but I would like to get to the bottom if it.
Any idea where to look first?
Bugs #361259 and #334977 look related, but claim to be fixed years ago.
Regards,
David
|
|
|
|
|
|
|
|
|
|
Re: class files disappear sporadically from a tomcat deployment [message #1771100 is a reply to message #1746928] |
Mon, 21 August 2017 18:42  |
Eclipse User |
|
|
|
I don't know if it makes sense to continue this thread or if I should start another one, but I continually have the same problem of things not being published.
I first started using WTP with Neon, and just upgraded to Oxygen, and the problem still exists. It is a Maven project.
It didn't happen at all for the first few months I was using WTP, then it happened once, then more frequently, now it seems to happen every day or two. And the suggested solutions of adding/removing the project from the server, republishing, cleaning, deleting the Tomcat tmp folder, etc. no longer work the first time. Deleting the placesx.dat file as suggested here didn't help either. It mostly seems to be that the .class files are not being published - that folder is empty. If I manually copy the class files to Tomcat, then everything works.
Sure would be nice to get to the bottom of this.
|
|
|
Powered by
FUDForum. Page generated in 0.49133 seconds