We are trying to deploy 3.4.3 to WAS 7.0.13, and we are getting an exception at
start up:
Incorrect syntax or error detected in the persistence.xml file in application:
cas, module: cas.war, at line number: 4, column number: 16. The following
associated error message occurred: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: cvc-complex-type.3.1: Value '2.0' of attribute
'version' of element 'persistence' is not valid with respect to the
corresponding attribute use. Attribute 'version' has a fixed value of '1.0'.]
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(AbstractUnmarshallerImpl.java:327)
at
com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:522)
at
com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:211)
at
com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:180)
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:149)
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:196)
at
com.ibm.ws.jpa.management.JPAPxmlInfo.extractPersistenceUnits(JPAPxmlInfo.java:247)
at
com.ibm.ws.jpa.management.JPAScopeInfo.processPersistenceUnit(JPAScopeInfo.java:140)
at
com.ibm.ws.jpa.management.JPAApplInfo.processModulePUs(JPAApplInfo.java:169)
at
com.ibm.ws.jpa.management.JPAComponentImpl.startingDeployedModule(JPAComponentImpl.java:878)
at
com.ibm.ws.jpa.management.JPAComponentImpl.stateChanged(JPAComponentImpl.java:722)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.stateChanged(ApplicationMgrImpl.java:1074)
at
<a bunch removed>
We are using the WAR-Overlay method to deploy. We have removed the dependency
to xml-apis, as that conflicted with the built-in IBM parsers.
We have set the default JPA Provider to be
org.apache.openjpa.persistence.PersistenceProviderImpl at the server level.
We also have tried to define it as HibernatePersistence in the persistence.xml
(after adding the appropriate dependencies)
<persistence-unit name="CasPersistence" transaction-type="RESOURCE_LOCAL">
<provider>org.hibernate.ejb.HibernatePersisence</provider>
<class>org.jasig.cas.services.RegisteredServiceImpl</class>
<class>org.jasig.cas.ticket.TicketGrantingTicketImpl</class>
<class>org.jasig.cas.ticket.ServiceTicketImpl</class>
</persistence-unit>
Has anyone deployed to WAS 7? Or is there something I'm missing?
Thanks,
Robert Miroballi
--
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user