NullPointerException from Spring's LocalSessionFactoryBuilder
问题 I'll try to configure spring with hibernate using JTA and I have this spring xml file: model.xml <beans> <bean id="txManager" class="org.springframework.transaction.jta.JtaTransactionManager"> <property name="transactionManagerName" value="java:/TransactionManager" /> <property name="userTransactionName" value="UserTransaction" /> <property name="allowCustomIsolationLevels" value="true" /> </bean> <tx:annotation-driven transaction-manager="txManager" /> <jee:jndi-lookup id="dataSource" jndi