2 Replies Latest reply on Apr 3, 2004 11:06 PM by Shashi Rai

    NameNotFoundException during service startup with .sar packa

    Shashi Rai Newbie

      Hi All,

      Reposting the question. I hope someone has some ideas/hints...

      I am running JBOSS with MySQL. During the startup of the service, I perform JNDI lookup for datasource of MySQL. The aatasource is configured using mysql-ds.xml. When I create a SAR file and deploy the service, I get the following exception. However if I configure the MBean in main jboss-service.xml or in user-service.xml, it works.

      I have tried adding different "depends" tag but so far no success. Any help, ideas are greatly appreciated.



      11:14:54,693 ERROR [STDERR] javax.naming.NameNotFoundException: EDC_DS not bound
      11:14:54,703 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
      11:14:54,703 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
      11:14:54,703 ERROR [STDERR] at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
      11:14:54,703 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:282)
      11:14:54,703 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:492)
      11:14:54,703 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:471)
      11:14:54,703 ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialContext.java:347)