When I start Tomcat I get the following error:
Jun 10, 2010 5:17:25 PM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
Jun 10, 2010 5:17:25 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/mywebapplication] startup failed due to previous errors
It seems odd that the logs for Tomcat would not include a stack trace. Does somebody have a suggestion for how to increase the logging in Tomcat to get stack traces for errors like this?
Tomcat does log the stacktrace, but it is not always clear where the log files are, when tomcat is started from an IDE. When I start it from IntelliJ,
CATALINA_BASE
is set to${home}/.IntelliJIdea10/system/tomcat/Unnamed_r6-idea
, and the log files are in in[CATALINA_BASE]/logs
.To see the logs, either locate the log files, or edit
[CATALINA_HOME]/conf/logging.properties
to direct tomcat logger output to console. Below I added a second handler to the default tomcat configuration:Now the full stacktrace appears in the IntelliJ output:
Generally Server JDK version will be lower than the deployed application (built with higher jdk version)
Maybe your application is compiled with a different JRE than Tomcat.
Check
java -version
on your server and then compile your code with the same version. I had the error because my Eclipse standard JRE was 1.6 and Tomcat used 1.5 - this can't work.Just wanted to contribute after spending the last hour on a nearly identical problem. My solution was that somehow our applicatons .jar was corrupted, so placing the jar from our dev server provided a fix.
In CentOS 6 and Solr 4.4.0
I had to comp some lib files to get this error addressed
if anyone is getting error like SEVERE: Error filterStart Apr 29, 2013 4:49:20 PM org.apache.catalina.core.StandardContext startInternal SEVERE: Context [/TraceMW] startup failed due to previous errors
then please check whether your tomcat/lib directory contains cors-filter-1.5.jar or not. if you dot have u will get above error and ur application will not be available.
So, i just managed to copy the jar file from other tomcat folder and i didnt get the above mentioned error later.