오류 500 : 필터 [Spring OpenEntityManagerInviewFilter] :로드 할 수 없습니다.
-
06-07-2019 - |
문제
스프링 응용 프로그램을 6.0 (JDK 1.4.2)으로 배포하려고합니다. Day Back 나는 수많은 (지원되지 않는 전공 Minor 버전 49.0) 오류를 얻었습니다. 대부분의 JAR 파일을 교체했는데 이제 하나의 오류 만 남습니다.
org/springframework/orm/jpa/support/openentitymanagerinviewfilter (지원되지 않은 major.minor 버전 49.0)
이것을 위해 어떤 JAR 파일을 교체해야합니까? 또한 브라우저에서 URL을 실행할 때 오류가 발생합니다.
오류 500 : 필터 [Spring OpenEntityManagerInviewFilter] :로드 할 수 없습니다.
내가 정확히 내가 잘못하고있는 곳을 안내해 주시겠습니까? 첨부는 내 web.xml입니다.
당신의 도움은 크게 감사합니다.
enter code here
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd "> Analytics Roo 생성 분석 응용 프로그램
<context-param>
<param-name>webAppRootKey</param-name>
<param-value>analytics.root</param-value>
</context-param>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>
<context-param>
log4jconfiglocation classpath : log4j.properties org.springframework.web.util.log4jconfiglistener org.spramframework.web.context.contextLoaderListener
<servlet>
<servlet-name>analytics</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>
<!-- Serves static resource content from .jar files such as spring-js.jar -->
<servlet>
<servlet-name>Resource Servlet</servlet-name>
<servlet-class>org.springframework.js.resource.ResourceServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>analytics</servlet-name>
<url-pattern>/*.html</url-pattern>
</servlet-mapping>
<!-- Map all /resources requests to the Resource Servlet for handling -->
<servlet-mapping>
<servlet-name>Resource Servlet</servlet-name>
<url-pattern>/resources/*</url-pattern>
</servlet-mapping>
<filter>
<filter-name>httpMethodFilter</filter-name>
<filter-class>org.springframework.web.filter.HiddenHttpMethodFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>httpMethodFilter</filter-name>
<servlet-name>analytics</servlet-name>
</filter-mapping>
<filter>
<filter-name>Spring OpenEntityManagerInViewFilter</filter-name>
<filter-class>org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter</filter-class>
</filter>
Spring OpenentityManagerInviewFilter /*
<session-config>
<session-timeout>10</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/WEB-INF/jsp/uncaughtException.jsp</location>
</error-page>
해결책
"지원되지 않은 major.minor 버전"오류는 실행중인 것보다 더 높은 버전의 Java를 위해 편집 된 JAR 파일을 사용하여 발생합니다.
클래스 파일 버전 49.0은 Java 5이고 1.4를 실행하고 있다고 생각합니다. 즉, Java 5 인 라이브러리를 사용해야하며 Java 5 만 스프링의 유일한 버전은 스프링 3.0입니다. 이 경우 스프링을 2.5.6으로 다운 그레이드하십시오.