[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - probelem with default seam gen data source - parse error on

wiggy do-not-reply at jboss.com
Sat Oct 18 12:47:06 EDT 2008


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 ?

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

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



More information about the jboss-user mailing list