1 Reply Latest reply on Mar 4, 2009 6:17 PM by malyvelky

    new seam project in eclipse - datasource missing

    martinvich

      hello,


      When i deploy new seam project generated by eclipse on JBOSS got this error :



      FATAL [DatasourceConnectionProvider] Could not find datasource: java:/tsDatasource
      javax.naming.NameNotFoundException: tsDatasource not bound




      I guess that jndi entity tsDataSource which is defined in /resources/ts-ds.xml cannot be found by JNDI service. When i copy ts-ds.xml to JBOSS deploy directory, project works fine.


      So my question is, how to fix this situation and why eclipse generate this 'bad code'. i suppose that for a lot of seam beginners is this quite serious problem.


      my configuration :
      jboss 4.3.2.ga,
      jboss-seam-2.1.1.ga,
      jboss-tools-2.1.2.ga-all,
      eclipse 3.4

        • 1. Re: new seam project in eclipse - datasource missing
          malyvelky

          FATAL [DatasourceConnectionProvider] Could not find datasource: java:/tsDatasource
          javax.naming.NameNotFoundException: tsDatasource not bound




          The same problem here. My config
          JBoss AS 4.2.3  bundled with JBoss Portal 2.7.1
          JDK 1.5 (mine is jdk1.5.0 17 )
          Seam 2.0.2 SP1 (I've prefered this to the latest 2.1.1 GA)
          Eclipse Ganymede (3.4.1)
          JBoss Tools  - Seam Tools and JBoss Tools RichFaces 3.0.0 CR1-R200, JBossAS Tools 2.0.0 CR1-R200, JBoss Portlet 1.0.0 CR1-R200,