12 Replies Latest reply on Oct 15, 2003 9:15 AM by Marcelo Klein

    datasource error. The DS loads after the entity beans

    Marcelo Klein Newbie

      Hello, I've got a problem setting up a mySQL database.
      The problem arises at the server loading time, when the server tries to deploy de CMP entity beans that use the DefaultDS defined accordingly in the .xml in the deploy dir.
      First, the Service Controller throws this:

      14:45:27,859 WARN [ServiceController] Problem starting service jboss.j2ee:jndiName=TradeOrderBean,service=EJB
      org.jboss.deployment.DeploymentException: Error: can't find data source: java:/DefaultDS; - nested throwable: (javax.naming.NameNotFoundException: DefaultDS not bound)

      Then, the server bounds the Default DS, but this is after the EJB were deployed!!!!

      14:45:29,067 INFO [DefaultDS] Bound connection factory for resource adapter 'JBoss LocalTransaction JDBC Wrapper' to JNDI name 'java:/DefaultDS'

      Does anyone know how to order this loading process????
      Thanks a lot.