Hello,
Many have gone before me and i have read through their solutions you guys handed to them. But my error is not solved by these answers.
Here are my .class files and the locations they are in. Also the log file that clearly states "java.lang.ClassNotFoundException: com.example.MyServletContextListener"
Please help me move forward. Thanks a lot.
web.xml
MyServletContextListener
ListenerTester
Dog
logging in localhost.2016-08-25.log
Locations
C:\Tomcat\webapps\listenerTest\classes\com\example\Dog.class
C:\Tomcat\webapps\listenerTest\classes\com\example\ListenerTester.class
C:\Tomcat\webapps\listenerTest\classes\com\example\MyServletContextListener.class
C:\Tomcat\webapps\listenerTest\etc\web.xml
URL in browser:
http://localhost:8080/listenerTest/ListenTest.do
Result:
HTTP Status 404 - /listenerTest/ListenTest.do
type Status report
message /listenerTest/ListenTest.do
description The requested resource is not available.
Apache Tomcat/9.0.0.M9
In the "Tomcat Web Application Manager" it also shows:
Applications
/listenerTest
Running
true