Reputation: 350
I have a WAR file that I have deployed to Tomcat 7.0.23 via the web manager. When I try to start it though, I get the error below. Not sure what could be causing this. I'm using JDK 1.6.0_27. I'm also using the latest version of Spring MVC for the application I'm trying to run on Tomcat and I'm on Windows 7 64-bit.
Dec 21, 2011 10:41:43 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error filterStart
Dec 21, 2011 10:41:43 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/upload] startup failed due to previous errors
Edit: Ok, so I setup logj4 and set it to DEBUG and it told me that an exception was being thrown on the characterEncodingFilter. Below is code in my web.xml for the characterEncodingFilter.
<filter>
<filter-name>characterEncodingFilter</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
<init-param>
<param-name>forceEncoding</param-name>
<param-value>true</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>characterEncodingFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
Edit: Here's the top part of the new error I see logged:
2011-12-21 12:43:56,279 [http-apr-8080-exec-5] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/upload]- Exception starting filter characterEncodingFilter
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.springframework.web.filter.GenericFilterBean.<init>(GenericFilterBean.java:82)
Upvotes: 2
Views: 2935
Reputation: 4593
It would seem that you're missing Apache Commons Logging on your classpath. Is it being bundled in the war file?
Upvotes: 2