1 Reply Latest reply on Jun 4, 2009 5:38 AM by Jean Luc

    seam explode overwrites persistence.xml

    Dmitri Ilyin Newbie

      Hi,


      i use seam 2.1.1. I have create an simple web application with seam-gen and deployed it under jboss 4.2.3.
      Each time i call seam explode command the WEB-INF/persistence.xml is updated in exploded-archives and on the server deploy directory, even though it was not changed at all. This update gets the bounding/unbounding of ConnectionManager and after that the connection to database is gone.


      thats a log:


      11:35:26,609 INFO  [ConnectionFactoryBindingService] Unbound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=open18Datasource' f
      rom JNDI name 'java:open18Datasource'
      11:35:26,640 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=open18Datasource' to
      JNDI name 'java:open18Datasource'



      and the exception that i get:




      Caused by: javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.
           at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:393)
           at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:849)
           at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)
           ... 104 more
      



      what could be a problemm?


      thanks
      regards
      Dmitri