[jboss-user] [EJB3] - Re: SAXException in persistence.xml..
jaikiran pai
do-not-reply at jboss.com
Mon Mar 14 05:26:16 EDT 2011
jaikiran pai [http://community.jboss.org/people/jaikiran] created the discussion
"Re: SAXException in persistence.xml.."
To view the discussion, visit: http://community.jboss.org/message/592978#592978
--------------------------------------------------------------
Your persistence.xml is missing the xsd declaration. Change it to:
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0">
<persistence-unit name="MyHome">
<jta-data-source>java:/MSSQLDS</jta-data-source>
<class>com.obci.ejb3.Members</class>
<properties>
<property name="hibernate.show_sql">true</property>
<property name="org.hibernate.hbm2ddl">update</property>
</properties>
</persistence-unit>
</persistence>
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/592978#592978]
Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110314/e6aaec18/attachment.html
More information about the jboss-user
mailing list