2009-06-23 12 views
2

WAS 6.0(JDK 1.4.2)にSpringアプリケーションをデプロイしようとしています。私は戻って何トン(サポートされていないmajor.minorバージョン49.0)のエラーを取得していた。私は何をすべきかのjarファイルエラー500:フィルタ[Spring OpenEntityManagerInViewFilter]:ロードできませんでした

ORG/springframework/ORM/JPA /サポート/ OpenEntityManagerInViewFilter(サポートされていないメジャー。マイナーバージョン49.0):私は、jarファイルのほとんどを交換し、今私は、上の唯一のエラーが残っていますこれのために交換する必要がありますか?

エラー500:私は、ブラウザで私のURLを実行しているときにも、私はエラーになっていますフィルターを[春が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 クラスパス:log4jの.propertiesファイル org.springframework.web.util.Log4jConfigListener org.springframework.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> 

春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> 

答えて

4

"サポートされていないメジャー。マイナーバージョン" のエラーは、Javaの上位バージョン用にコンパイルされ、あなたの使ってJARファイルによって引き起こされますあなたが走っているよりも。

クラスファイルバージョン49.0はJava 5で、1.4を実行していると思います。つまり、Java 5のみのライブラリを使用する必要があり、唯一のバージョンのJavaはSpring 3.0のみです。その場合、Springを2.5.6にダウングレードしてください。

関連する問題