Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用2.1.4版本启动项目报错 #74

Open
qf2016 opened this issue Sep 27, 2018 · 3 comments
Open

使用2.1.4版本启动项目报错 #74

qf2016 opened this issue Sep 27, 2018 · 3 comments

Comments

@qf2016
Copy link

qf2016 commented Sep 27, 2018

为了您的问题能得到及时准确解答,请认真填写下面各个选项,感谢您的配合。

  • 当前使用的UFlo的具体版本号:

2.1.4

  • 遇到的问题详细描述:

使用2.1.4版本,按照说明文档配置以后,启动项目报错

  • 涉及到的异常信息(完整异常信息):

  • 相关截图:

pom文件截图
image

配置文件截图
image

报错截图
image

@hsg77
Copy link

hsg77 commented Apr 6, 2021

是不是context.xml配置页面有问题,你在新工程中新建一个context.xml文件

@hsg77
Copy link

hsg77 commented Apr 6, 2021

我的uflo版本为2.1.5,配置内容context.xml











<context:property-placeholder location="classpath:application.properties" ignore-unresolvable="true" order="1"/>

<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
    <property name="url" value="jdbc:postgresql://192.168.30.29:5432/zt_yw?useUnicode=true&amp;characterEncoding=utf-8&amp;useSSL=false&amp;serverTimezone=UTC"/>
    <property name="driverClassName" value="org.postgresql.Driver"/>
    <property name="username" value="postgres"/>
    <property name="password" value="1" />
    <property name="minIdle"  value="10" />
    <property name="maxActive" value="20" />
    <property name="maxWait" value="1000" />
    <property name="removeAbandonedTimeout" value="60" />
    <property name="removeAbandoned" value="true" />
    <property name="logAbandoned" value="true"  />
</bean>
<bean id="sessionFactory" class="org.springframework.orm.hibernate5.LocalSessionFactoryBean">
    <property name="dataSource" ref="dataSource" />
    <property name="packagesToScan">
        <list>
            <value>com.bstek.uflo.model*</value>
        </list>
    </property>
    <property name="hibernateProperties">
        <props>
            <prop key="hibernate.dialect">com.puri.pg.env.MyPostgreSQLDialect</prop>
            <prop key="hibernate.show_sql">true</prop>
            <prop key="hibernate.hbm2ddl.auto">update</prop>
            <prop key="properties.hibernate.temp.use_jdbc_metadata_defaults">false</prop>
            <prop key="spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults">false</prop>
            <prop key="spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation">true</prop>
        </props>
    </property>
</bean>
<bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
    <property name = "dataSource" ref="dataSource"></property>
</bean>

<bean class="com.puri.pg.flow.node.testNodeEventHandler">
</bean>
<bean class="com.puri.pg.flow.node.zjd.endNodeEventHandler_zjd_sq">
    <property name="jdbcTemplate" ref="jdbcTemplate"></property>
</bean>
<bean class="com.puri.pg.flow.node.qjt.day3OverConditionHandler">
    <property name="jdbcTemplate" ref="jdbcTemplate"></property>
</bean>
<bean class="com.puri.pg.flow.node.qjt.day3UnderConditionHandler">
    <property name="jdbcTemplate" ref="jdbcTemplate"></property>
</bean>

<bean id="uflo.identityService" class="com.puri.pg.flow.MyIdentityService"></bean>

<bean id="uflo.deptAssigneeProvider" class="com.puri.pg.flow.assign.pgRoleAssigneeProvider">
    <property name="identityService" ref="uflo.identityService"></property>
    <property name="disabledDeptAssigneeProvider" value="${uflo.disabledDeptAssigneeProvider}"></property>
</bean>
<bean id="uflo.userAssigneeProvider" class="com.puri.pg.flow.assign.pgUserAssigneeProvider">
    <property name="identityService" ref="uflo.identityService"></property>
    <property name="disabledUserAssigneeProvider" value="${uflo.disabledUserAssigneeProvider}"></property>
</bean>

@hsg77
Copy link

hsg77 commented Apr 6, 2021

<!--<import resource="classpath:uflo-context-configs.xml" />-->
<import resource="classpath:uflo-console-context.xml" />
<bean class="com.puri.pg.env.TestEnvironmentProvider">
    <property name="sessionFactory" ref="sessionFactory" />
    <property name="platformTransactionManager" ref="transactionManager" />
</bean>
<bean id="transactionManager" class="org.springframework.orm.hibernate5.HibernateTransactionManager">
    <property name="sessionFactory" ref="sessionFactory"></property>
</bean>
<context:property-placeholder location="classpath:application.properties" ignore-unresolvable="true" order="1"/>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants