2 Replies Latest reply on Feb 12, 2008 9:36 AM by Pierre Raoul

    how to deploy a datasource

    Pierre Raoul Novice

      I just created my first seam project with the Seam Web Project wizard.

      It's an EAR project with a data source. It uses JBoss 4.2 as server.

      When I use Run On Server, I get this error:

      --- MBeans waiting for other MBeans ---
      ObjectName: persistence.units:ear=test-swp-ear.ear,unitName=test-swp
       State: NOTYETINSTALLED
       I Depend On:
       jboss.jca:name=test-swpDatasource,service=DataSourceBinding
      
      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: jboss.jca:name=test-swpDatasource,service=DataSourceBinding
       State: NOTYETINSTALLED
       Depends On Me:
       persistence.units:ear=test-swp-ear.ear,unitName=test-swp
      
      


      The file test-swp-ds.xml exists in the directory test-swp-ear/resources but is not copied in jboss-4.2.2.GA/server/default/deploy.

      Is there a way to copy this file during deploying the application?