2 Replies Latest reply on Aug 29, 2005 8:46 PM by mpelzsherman

    DataSource problem in Jboss 4.0

    jmochonc

      Hi

      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?

        • 1. Re: DataSource problem in Jboss 4.0
          yangju

          I got similar problem, although it happened to my own mbeans. The mbean is loaded before the datasource is bound. Therefore the mbean keeps compaining about the datasource.

          Anybody has any idea? I use jboss 4.0.2 but found the same thing on 4.0.1.

          • 2. Re: DataSource problem in Jboss 4.0
            mpelzsherman

            Exactly the same problem here. I'm not using a Hibernate .sar file. I've tried putting my hibernate-service.xml file inside a ".har" archive, exploded or not, with the same result.

            Any solutions?