0 Replies Latest reply on Oct 17, 2007 4:03 PM by benyw

    Duke?s Bank code connect with mysql error

    benyw

      hi,everyone!
      i used jboss 4.0.4 and j2ee-1_4-doc-tutorial_2.
      when i used mysql as database, there was a problem. the page show no data from the database when i log in Duke?s Bank. so the connection was wrong.
      fisrt, i move the mysql-connector-java-3.1.14-bin.jar to default lib.
      then built mysqldb-ds.xml in deploy. coded that
      <?xml version="1.0" encoding="UTF-8"?>

      <local-tx-datasource>
      <jndi-name>MySqlDS</jndi-name>
      <connection-url>jdbc:mysql://localhost:3306/jboss</connection-url>
      <driver-class>com.mysql.jdbc.Driver</driver-class>
      <user-name>jboss</user-name>
      password
      </local-tx-datasource>


      the server said
      20:40:26,102 ERROR [MainDeployer] Could not initialise deployment: file:/D:/EE55
      7ServerSide/ejb3/jboss/server/default/deploy/mysqldb-ds.xml
      org.jboss.deployment.DeploymentException: Could not parse dd; - nested throwable
      : (org.xml.sax.SAXParseException: The processing instruction target matching "[x
      X][mM][lL]" is not allowed.)
      i have checked the content. it seem ok.even though nothing in the mysqldb-ds.xml, the server still was wrong.
      i lost some moves???
      help!!!thank you!!!!