I created java dynamic web application in tomcat server 7. it works fine when I run it from eclipse.
I deployed it by right click on the project and export by following export dialog to the webapp directory of tomcat installation and start the tomcat server so that I can access
http://localhost:8080
but when I try to access
http://localhost:8080/projectName.
I got below error.
The requested resource (/projectName/) is not available.
I look into catalina.log file. and found these lines
SEVERE: Error filterStart
SEVERE: Context [/projectName] startup failed due to previous errors
SEVERE: The web application [/projectName] appears to have started a thread named
[Abandoned connection cleanup thread] but has failed to stop it. This is very
likely to create a memory leak.
further my application is used struts2. I add struts2 jars to the WEB-INF/lib directory. why I can’t access my application from war file?
ok I figured it out my self. I searched the google for
and found, check the
localhost_yyyy_mm_dd.logfile for more information about error.In that file there was an error called
java.lang.UnsupportedClassVersionError. The reason for that was my jdk and jre versions are different.So I changed jdk and jre versions as same level from project properties. after that I built the project and exported the project to webApp again. I restart the tomcat server again. All errors are gone.
reference : Tomcat startup logs – SEVERE: Error filterStart how to get a stack trace?