0 Replies Latest reply on Feb 8, 2005 8:25 AM by Javier Mochon

    DataSource problem in Jboss 4.0

    Javier Mochon Newbie


      I hava a strange problem. I have a DataSource for MySQL well configured. I also have a .sar with my HIBERNATE configuration. The problem when I start JBoss is that it seems to load first the MBean of HIBERNATE before the dataSource is boud so HIBERNATE don't find it. If I star JBoss without .sar file of HIBERNATE there is no problem with the data source.

      The error is:

      14:21:22,748 FATAL [DatasourceConnectionProvider] Could not find datasource: java:/MySqlDS

      javax.naming.NameNotFoundException: MySqlDS not bound
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:490)
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:498)

      Can someone help me?