0 Replies Latest reply on Oct 18, 2008 12:47 PM by wiggy

    probelem with default seam gen data source - parse error on

    wiggy

      just being trying to get seam 2.1 up - built a project which generated a default datasource for the project for mysql for me

      which has the lines refering to the public dtd.

      <?xml version="1.0" encoding="UTF-8"?>
      
      <!-- <!DOCTYPE datasources
       PUBLIC "-//JBoss//DTD JBOSS JCA Config 1.5//EN"
       "http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd"> -->
      <datasources>
      
       <local-tx-datasource>
       <jndi-name>testSeamDatasource</jndi-name>
       <connection-url>jdbc:mysql://localhost:3306/embed</connection-url>
       <driver-class>com.mysql.jdbc.Driver</driver-class>
       <user-name>embed</user-name>
       <password>embed</password>
      
       <exception-sorter-class-name>
       org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter
       </exception-sorter-class-name>
       <metadata>
       <type-mapping>mySQL</type-mapping>
       </metadata>
      
       </local-tx-datasource>
      


      If i remove comments and deploy to the server - the server rejects the datasource with a mysql timeout error and doesnt bind to the JNDI.

      If i comment out as above it works fine!

      also if i point the broswer at the url i get this


      The XML page cannot be displayed
      Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.


      --------------------------------------------------------------------------------

      Cannot have a DTD declaration outside of a DTD. Error processing resource 'http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd'....

      <!ELEMENT datasources (mbean | local-tx-datasource | xa-datasource | no-tx-datasource |
      ----------^


      is there a probelm on the jboss dtd? anyone one know why it fails is it the dtd def at the jboss site at fault ?