Thanks Marvin,

That got me farther,  but new error:

21:46:15,229 ERROR [AbstractKernelController] Error installing to Start: name=persistence.unit:unitName=#CasPersistence state=Create java.lang.ClassCastException: org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider at org .jboss .jpa .deployment .PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:300)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
at org .jboss .reflect .plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59) at org .jboss .reflect .plugins .introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java: 150) at org .jboss .joinpoint .plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66) at org.jboss.kernel.plugins.dependency.KernelControllerContextAction $JoinpointDispatchWrapper.execute(KernelControllerContextAction.java: 241) at org .jboss .kernel .plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47) at org .jboss .kernel .plugins .dependency .KernelControllerContextAction .dispatchExecutionWrapper(KernelControllerContextAction.java:109) at org .jboss .kernel .plugins .dependency .KernelControllerContextAction .dispatchJoinPoint(KernelControllerContextAction.java:70) at org .jboss .kernel .plugins .dependency.LifecycleAction.installActionInternal(LifecycleAction.java: 221) at org .jboss .kernel .plugins .dependency.InstallsAwareAction.installAction(InstallsAwareAction.java: 54) at org .jboss .kernel .plugins .dependency.InstallsAwareAction.installAction(InstallsAwareAction.java: 42)

Is anyone out there using Jboss 5.0.1 with CAS 3.3.2 ?

-Andrew

On May 6, 2009, at 4:39 PM, Marvin Addison wrote:

15:23:09,864 ERROR [AbstractKernelController] Error installing to Start:
name=persistence.unit:unitName=#CasPersistence state=Create
java.lang.RuntimeException: Specification violation [EJB3 JPA 6.2.1.2] - You
have not defined a non-jta-data-source for a RESOURCE_LOCAL enabled
persistence context named: CasPersistence

This is caused by the default persistence.xml used to set up the JPA
entity manager:

<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="CasPersistence" transaction- type="RESOURCE_LOCAL">
        </persistence-unit>
</persistence>

You'll need to change RESOURCE_LOCAL to JTA.  May be tricky even with
the Maven WAR overlay deployment process, but should be doable.
Problem is you must define persistence.xml in the same JAR that
contains the JPA-annotated classes, which would be
cas-server-core-$VERSION.jar  You may also need to define a
container-managed data source and you must use
LocalContainerEntityManagerFactoryBean for your entity manager factory
definition in deployConfigContext.xml.

Hope that helps with at least half your problems.

M

--
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


--
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

Reply via email to