2013-11-22 79 views
0

我使用Appfuse与struts2并试图部署在Jboss EAP 6.1中。事情我已经尝试: 地址:JBoss的部署,structure.xml在WEB-INF /:使用Jboss EAP 6.1部署Appfuse

<jboss-deployment-structure> 
<deployment> 
    <exclusions> 
     <module name="org.hibernate" /> 
    </exclusions> 
</deployment> 

而且在Persistant.xml添加属性:

<properties> 
    <property name="hibernate.show_sql" value="false" /> 
    <property name="jboss.as.jpa.providerModule" value="application" /> 
</properties> 

之后,我得到关于ClassCastException的错误:

05:13:07,640 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 48) MSC000001: Failed to start service jboss.persistenceunit."claim.war#ApplicationEntityManager": org.jboss.msc.service.StartException in service jboss.persistenceunit."claim.war#ApplicationEntityManager": java.util.ServiceConfigurationError: org.hibernate.integrator.spi.Integrator: Provider org.hibernate.search.hcore.impl.HibernateSearchIntegrator could not be instantiated: java.lang.ClassCastException 

回答

相关问题