Ok, the problem is that there is no schemaLocation to map to the persistence_1_0.xsd key,
and I guess the persistence key is only being used if the descriptor declares a DTD.
| <?xml version="1.0" encoding="UTF-8"?>
| <persistence>
| <persistence-unit name="tempdb">
| <jta-data-source>java:/DefaultDS</jta-data-source>
| <properties>
| <property name="hibernate.hbm2ddl.auto"
value="create-drop"/>
| </properties>
| </persistence-unit>
| </persistence>
|
If I change it to use the correct namespace:
| <?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="tempdb">
| <jta-data-source>java:/DefaultDS</jta-data-source>
| <properties>
| <property name="hibernate.hbm2ddl.auto"
value="create-drop"/>
| </properties>
| </persistence-unit>
| </persistence>
|
it deploys without any errors, but still reports 6 errors, still related to the security
NCDFE:
| Testcase: testOneToMany took 0.498 sec
| Caused an ERROR
| org/jboss/security/plugins/SecurityContextAssociation
| java.lang.NoClassDefFoundError: org/jboss/security/plugins/SecurityContextAssociation
| at org.jboss.ejb3.security.SecurityActions$4.run(SecurityActions.java:287)
| at org.jboss.ejb3.security.SecurityActions$4.run(SecurityActions.java:285)
| at java.security.AccessController.doPrivileged(Native Method)
| at
org.jboss.ejb3.security.SecurityActions.getSecurityContext(SecurityActions.java:283)
|
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4157215#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...