[jboss-dev-forums] [Design of EJB 3.0] - Re: trunk Ejb3Deployment is incompatible with jbossas trunk

scott.stark@jboss.org do-not-reply at jboss.com
Wed Jun 11 01:57:10 EDT 2008


Since the persistence_1_0.xsd schema specifically declares a targetNamespace, the descriptors will have to match it to validate. The  persistence_1_0.xsd docs say the persistence namespace must be used as well:

"persistence_1_0.xsd" wrote : 
  |      Persistence configuration files must indicate
  |      the persistence schema by using the persistence namespace:
  | 
  |      http://java.sun.com/xml/ns/persistence
  | 
  |      and indicate the version of the schema by
  |      using the version element as shown below:
  | 
  |       <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">
  |           ...
  |       
  | 


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

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



More information about the jboss-dev-forums mailing list