8 Replies Latest reply on May 24, 2006 1:22 PM by quentincompson

    You are trying to use a connection factory that has been shu

    shileiofchina

      when i using JBoss ,i get the fellow error.

      You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.; - nested throwable: (javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.); nested exception is org.jboss.util.NestedSQLException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.; - nested throwable: (javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.)
      org.jboss.util.NestedSQLException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.; - nested throwable: (javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.)
      at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:79)
      at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
      at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:311)
      at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:114)


      I used JBoss 4.0.3 + Hibernate 3.0 + Spring 1.2.5 .
      The dataSource file is done as oracle-xa-ds.xml,and I use the hibernate archive for creating hibernate sessionFactory.
      In spring's config file, I use jndiObjectFactoryBean to create Hibernate SessionFactory, and the transactionManager is JTATransactionManager.


      I don't know why it happened .please help me