iteye_6746 2013-04-10 17:57
浏览 222

jboss7.1 部署项目是报错

{"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.persistenceunit.\"s2s3h4j5.war#myJPA\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"s2s3h4j5.war#myJPA\": Failed to start service"},"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.persistenceunit.\"s2s3h4j5.war#org.jbpm.persistence.jpa\"jboss.naming.context.java.jdbc.jbpm-dsMissing[jboss.persistenceunit.\"s2s3h4j5.war#org.jbpm.persistence.jpa\"jboss.naming.context.java.jdbc.jbpm-ds]"]}}}

我的persistence.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
version="2.0">


org.hibernate.ejb.HibernatePersistence
META-INF/ProcessInstanceInfo.hbm.xml
META-INF/JBPMorm.xml
META-INF/Taskorm.xml
org.jbpm.task.Attachment
org.jbpm.task.Content
org.jbpm.task.BooleanExpression
org.jbpm.task.Comment
org.jbpm.task.Deadline
org.jbpm.task.Comment
org.jbpm.task.Deadline
org.jbpm.task.Delegation
org.jbpm.task.Escalation
org.jbpm.task.Group
org.jbpm.task.I18NText
org.jbpm.task.Notification
org.jbpm.task.EmailNotification
org.jbpm.task.EmailNotificationHeader
org.jbpm.task.PeopleAssignments
org.jbpm.task.Reassignment
org.jbpm.task.Status
org.jbpm.task.Task
org.jbpm.task.TaskData
org.jbpm.task.SubTasksStrategy
org.jbpm.task.OnParentAbortAllSubTasksEndStrategy
org.jbpm.task.OnAllSubTasksEndParentEndStrategy
org.jbpm.task.User

<properties>
  <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5Dialect"/>
  <property name="hibernate.connection.autocommit" value="false" />
  <property name="hibernate.max_fetch_depth" value="3"/>
  <property name="hibernate.hbm2ddl.auto" value="create" />
  <property name="hibernate.show_sql" value="true" />
</properties>


applicationContext.xml
<?xml version="1.0" encoding="UTF-8"?>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
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/aop
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
">

<bean id="entityManagerFactory "
    class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
    <property name="dataSource" ref="baseDataSource"/>
    <property name="persistenceUnitName" value="myJPA" />
    <property name="persistenceXmlLocation" value="classpath:META-INF/persistence.xml" />
</bean>

<bean id="jbpmEM"
    class="org.springframework.orm.jpa.support.SharedEntityManagerBean">
    <property name="entityManagerFactory" ref="entityManagerFactory" />
</bean>

<!--Hibernate TransactionManager myJPA-->
<bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
    <property name="entityManagerFactory" ref="entityManagerFactory" />
    <property name="nestedTransactionAllowed" value="false" />
</bean>

<bean id="baseDataSource" class="org.apache.commons.dbcp.BasicDataSource">
    <property name="driverClassName" value="com.mysql.jdbc.Driver" />
    <property name="url" value="jdbc:mysql://localhost:3306/jbpmdemo" />
    <property name="username" value="root" />
    <property name="password" value="" />
</bean>

<!-- 事务拦截 -->
<tx:advice id="txAdvice" transaction-manager="transactionManager">
    <tx:attributes>
        <tx:method name="*" read-only="false" rollback-for="java.lang.Throwable" />
    </tx:attributes>
</tx:advice>

<aop:config>
    <aop:pointcut id="projectServiceOperation"
        expression="execution(* com.lian.service..*.*(..))" />
    <aop:advisor pointcut-ref="projectServiceOperation"
        advice-ref="txAdvice" />
</aop:config>

我用的是struts2.3 spring3.1 hibernate4.1 jbpm5.4 jboss7.1

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 求差集那个函数有问题,有无佬可以解决
    • ¥15 【提问】基于Invest的水源涵养
    • ¥20 微信网友居然可以通过vx号找到我绑的手机号
    • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
    • ¥15 解riccati方程组
    • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
    • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
    • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
    • ¥50 树莓派安卓APK系统签名
    • ¥65 汇编语言除法溢出问题