1 Reply Latest reply on May 17, 2004 3:18 AM by Adrian Brock

    problem with jboss and mysql

    jbjsg Newbie

      when i deploy a entity bean, i encounter an error like this:

      2004-05-17 08:41:35,810 WARN [org.jboss.system.ServiceController] Problem starting service jboss.j2ee:jndiName=City,service=EJB
      org.jboss.deployment.DeploymentException: Error in jbosscmp-jdbc.xml : datasource-mapping MYSQL not found
      at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCEntityMetaData.(JDBCEntityMetaData.java:374)
      at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCApplicationMetaData.(JDBCApplicationMetaData.java:237)
      ...

      in standardjbosscmp-jdbc.xml i defined
      < datasource >java:/MYSQLDS < /datasource >
      < datasource-mapping >MYSQL< /datasource-mapping>
      and in standardjaws.xml i defined
      < datasource >java:/MySqlDS< /datasource >
      < type-mapping >mySql< /type-mapping >

      did i do anything wrong? what might cause such an error?

        • 1. Re: problem with jboss and mysql
          Adrian Brock Master

          This is not a JCA issue, you should be in the CMP forum
          (or probably more correctly the beginners forum)

          I suggest you read the getting started guide, rather than posting every basic error
          into the forums.

          Here's a hint (notice the case):

          [ejort@htimes2 conf]$ grep -ri mysql standardjbosscmp-jdbc.xml
           <name>mySQL</name>
          ...