我试图在我现有的spring 4.3 web-mvc应用程序中使用Hibernate 4.3。
我的应用程序环境中的Bean。
<orcl:pooling-datasource id="dataSource" connection-properties-prefix="conn" properties-location="WEB-INF/orcl.properties"/>
<bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
<property name="dataSource" ref="dataSource"/>
</bean>
<bean id="sessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
<property name="dataSource" ref="dataSource" />
</bean>
在创建sessionFactory
bean时,spring bean正在尝试解析jtaplatform
并期望Websphere app server特定的记录器类。
但有趣的部分是我在tomcat上运行我的应用程序,它没有那些bootstrap.jar或websphere类。
我的问题是为什么我们需要Websphere jar,我进入StandardJtaPlatformResolver
并发现最后一个可能的(if else或try catch方法)jta提供者将是websphere。
不知道为什么我应该在这种情况下提供jta提供商?