Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-1947

EJB3 profile needs Default Datasource

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • JBossAS-4.0.3RC1
    • None
    • Installer
    • None

      When I try to run the callbacks tutorial against the installer's ejb3 profile I see a javax.naming.NameNotFoundException: DefaultDS not bound in my sever.log.

      Steps to repro:

      1. run the installer, and select the ejb3 profile
      2. run the ejb3 callbacks tutorial against this server

      The test will fail and you will receive the following in the server.log:

      javax.naming.NameNotFoundException: DefaultDS not bound
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:491)
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:499)
      at org.jnp.server.NamingServer.getObject(NamingServer.java:505)
      at org.jnp.server.NamingServer.lookup(NamingServer.java:278)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
      at javax.naming.InitialContext.lookup(InitialContext.java:351)
      at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:44)
      at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
      at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:362)
      at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:60)
      at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1429)
      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:980)
      at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:174)
      at org.jboss.ejb3.entity.EntityManagerFactoryLoader.loadFactory(EntityManagerFactoryLoader.java:43)

      Running this tutorial against the "all" profile does not produce these errors.

            norman.richards Norman Richards (Inactive)
            ryan.campbell_jira ryan.campbell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: