[jboss-user] [EJB 3.0] - Cannot deploy EJB because ...-ds.xml file

gaeoepag do-not-reply at jboss.com
Wed Sep 6 09:57:00 EDT 2006


Hello,

I'm trying to deploy an EJB 3 deployment file, and I'm getting
the following error:

15:09:02,956 ERROR [MainDeployer] Could not initialise deployment: file:/C:/jboss-4.0.4.GA/server/default/deploy/testejb301-ds.xml
org.jboss.deployment.DeploymentException: Could not parse dd; - nested throwable: (org.xml.sax.SAXParseException: Content is not allowed in prolog.)

I cannot find anything wrong!
Here the testejb301-ds.xml file,
but it is not complete because 
the browser filters out some tags.

xml version="1.0" encoding="UTF-8"?>

  <local-tx-datasource>
    <jndi-name>jdbc/testejb301</jndi-name>
    <connection-url>jdbc:mysql://localhost:3306/testejb301</connection-url>
    <driver-class>com.mysql.jdbc.Driver</driver-class>
    <user-name>root</user-name>
    root
    <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
    
       <type-mapping>mySQL</type-mapping>
    
  </local-tx-datasource>


Thanks and Best Regards!!

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

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



More information about the jboss-user mailing list