[Design of EJB 3.0] - Re: trunk Ejb3Deployment is incompatible with jbossas trunk
by scott.stark@jboss.org
I don't see this once I updated the metadata-deployer-beans.xml, but I do see:
| Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Attribute is not bound: element owner {http://java.sun.com/xml/ns/persistence}property, attribute name
| at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:193)
| at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:153)
| at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:191)
| at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:165)
| at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:132)
| at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:118)
| at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:128)
|
| <?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="bookingDatabase">
| <provider>org.hibernate.ejb.HibernatePersistence</provider>
| <jta-data-source>java:/bookingDatasource</jta-data-source>
| <properties>
| <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
| <property name="hibernate.show_sql" value="true"/>
| <!-- These are the default for JBoss EJB3, but not for HEM: -->
| <property name="hibernate.cache.provider_class" value="org.hibernate.cache.HashtableCacheProvider"/>
| <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup"/>
| </properties>
| </persistence-unit>
| </persistence>
|
It looks like the name attribute should be mapped correctly based on the PersistenceUnitMetaData annotations:
| @XmlElementWrapper(name="properties")
| @JBossXmlMapEntry(name="property")
| @JBossXmlMapKeyAttribute(name="name")
| @JBossXmlMapValueAttribute(name="value")
| public void setProperties(Map<String, String> properties)
| {
| this.properties = properties;
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4157137#4157137
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4157137
16 years, 3 months