2012-02-01 4 views
0

ファイル[D:\Jboss\jboss-4.2.2.GA\server\default\conf\inv-config\app-config\persistence-config.spring.xml]からXMLドキュメントを解析中に予期しない例外が発生しました。ネストされた例外はorg.springframework.beans.FatalBeanException次のとおりです。クラスは[org.springframework.ejb.config.JeeNamespaceHandler]名前空間の[http://www.springframework.org/schema/jee] [org.springframework.beans.factory.xml.NamespaceHandler]インターフェース名前空間[../schema/jee]のクラス[JeeNamespaceHandler]が[NamespaceHandler]インターフェイスを実装していません

私は、JBoss 4.2.2に春3.0.5を使用していますが実装されていません。

persistence-config.spring.xmlファイルです。

<?xml version="1.0" encoding="UTF-8"?> 
<beans xmlns="http://www.springframework.org/schema/beans" 
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     xmlns:jee="http://www.springframework.org/schema/jee" 
     xmlns:aop="http://www.springframework.org/schema/aop" 
     xmlns:tx="http://www.springframework.org/schema/tx" 
     xsi:schemaLocation=" 
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd 
http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee.xsd 
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd 
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd"> 

<!-- JNDI Environment Properties --> 
<bean id="jndiEnvProps" class="java.util.Properties"> 
    <constructor-arg> 
     <props> 
      <prop key="java.naming.factory.initial"> 
       <![CDATA[org.jnp.interfaces.NamingContextFactory]]> 
      </prop> 
      <prop key="java.naming.provider.url">jnp://127.0.0.1:1099</prop> 
     </props> 
    </constructor-arg> 
</bean> 

<!-- Data Source Definition --> 
<jee:jndi-lookup id="dataSource" jndi-name="zaraINVDS" environment-ref="jndiEnvProps" /> 

<!-- Entity Manager Factory --> 
<jee:jndi-lookup id="entityManagerFactory" jndi-name="java:/zaraINVEMF" proxy-interface="javax.persistence.EntityManagerFactory" /> 

<!-- JTA Transaction Manager --> 
<tx:jta-transaction-manager /> 

<!-- Annotation Driven Transaction Management --> 
<tx:annotation-driven order="5"/> 

答えて

2

私はあなたのクラスパス上の春の2つのコピーを持っている疑いがあります。クラスローダーはそれらの間で衝突を起こしています。それらを追跡し、それらの1つを削除します。

関連する問題