これを行う
内容:
<?xml version="1.0" encoding="UTF-8"?>
<classloading xmlns="urn:jboss:classloading:1.0"
domain="$UNIQUE_DOMAIN_NAME"
export-all="NON_EMPTY"
import-all="false"
parent-first="false">
</classloading>
2)変更$をJBOSS_INSTALL_DIRECTORY/JBossの-として/サーバ/ $のPROFILE/confに/ストラップ/ deployers.xml、そして最後に次の行を追加します。
<bean name="IgnoreFilesDeployer"
class="org.jboss.deployers.vfs.spi.deployer.AbstractIgnoreFilesDeployer"
</bean>
3)次の内容のMETA-INFフォルダ内のファイルJBOSS-IGNORE.TXTを作成します。
WEB-INF /クラス/ META-INF/persistence.xmlの
を4)私は、ばねのpersistence.xmlに自分のpersistence.xmlに改名としてのcontext.xmlにこのファイルを追加しました:
<bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
<property name="persistenceXmlLocation" value="classpath:/META-INF/spring-persistence.xml"/>
....
</bean>
5)私はspring-persistence.xmlも変更しました(saved persistence_2_0。Webアプリケーションの\ META-INFフォルダ内のXSD)
<persistence version="2.0"
xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="file:///persistence_2_0.xsd
http://java.sun.com/xml/ns/persistence">
....
</persistence>
出典
2012-04-25 08:45:07
adi
これに続いて、jBoss 5.1に含まれるクラスであるため、rg.jboss.webbeans.integration.deployer.env.WebBeansBootstrapDeployerについてClassNotFoundExceptionが発生しました。これはかなり奇妙です。 –