WhenI restart Eclipse Oxygen 1A and start Tomcat, it starts successfully, but when I then stop and restart Tomcat, I get this
java.lang.ClassNotFoundException: org.apache.catalina.loader.DevLoader at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
It's also not saving the subdirectory set as web application root
.
I use Tomcat 8.5.23 (installed through Homebrew) and have downloaded TomcatDeloader85.jar, renamed it to DevLoader.jar and placed it in Tomcat_HOME/lib
So, if I really quickly start Tomcat right after Eclipse launches it works. But if I wait for 5 seconds after that it will not. Nor will it restart, both with the error above.
Ok, solved it. Turns out I had misconfigured Tomcat trying to fix another issue by Turning on Add Java pojects to Tomcat Classpath for one of the projects.
Marc, this sounds exactly like what i am experiencing. how did you solve it? under "preferences>tomcat>source path" i have "automatically compute" and if i uncheck it and close, it gets rechecked automatically.
i can get everything working if i edit context.xml and .tomcatplugin files directly (using an old workspace as a template) so my problem is just that whatever i enter in the UI is being ignored.
One of the problems I had was also that the project/tomcat/application root subdirectory was not saved, and I edited that manually in the context file. I do not have Automatically compute checked, but instead have checked the wanted projects checked individually. Sounds almost like there is a rights issue with regards to some files.