3 Replies Latest reply on Sep 7, 2006 5:02 AM by gaeoepag

    Cannot deploy EJB because ...-ds.xml file

    gaeoepag

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