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

    how to deploy a datasource

    atao

      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?




        • 1. Re: how to deploy a datasource
          maxandersen

          if you used our jboss as adapter it should just happen automatically when creating the wizard.

          if something went wrong in in the wizard and you are in fact using our jboss as adapter you can just right click the -ds.xml and select Deploy to server.

          • 2. Re: how to deploy a datasource
            atao

            Thank you for your quick answer.

            In fact I didn't see that JBoss Tools offers these "JBoss Runtime" adapters.

            Now everything is ok.