[jboss-user] [JBoss Getting Started Documentation] - Duke?s Bank code connect with mysql error

benyw do-not-reply at jboss.com
Wed Oct 17 16:03:25 EDT 2007


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!!!!

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096265#4096265

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096265



More information about the jboss-user mailing list