After dabbling in many cups of coffee and great help from this
mail-list - CAS is authenticating against LDAP and using Oracle for
Service Management.

The error message in email below was due to missing
hibernate-entitymanager-3.6.0.Final.jar; it was declared as a
dependency in the 'pom' but I am not sure why it was not packaged? The
other hibernate JARs were packaged without the hitch - only
hibernate-entitymanager-3.6.0.Final.jar was not. Any thoughts?



On Fri, May 11, 2012 at 9:01 PM, It Meme <[email protected]> wrote:
> Hi CAS List:
>
> Thank you for all the great help.
>
> I am trying to connect the Service Management to an Oracle database,
> but am receiving error message below - can anyone point me in a
> direction to troubleshoot ('serviceRegistryDao' bean setting from
> 'deployConfig.Context.xml' is listed at tail-end of this email.)?
>
>
> Error message:
>
> "org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'servicesManager' defined in ServletContext
> resource [/WEB-INF/spring-configuration/applicationContex
> t.xml]: Cannot resolve reference to bean 'serviceRegistryDao' while
> setting constructor argument; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creatin
> g bean with name 'serviceRegistryDao' defined in ServletContext resource.....
>
> Could not instantiate bean class
> [org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter]:
> Constructor threw exception; nested e
> xception is java.lang.NoClassDefFoundError:
> org/hibernate/ejb/HibernatePersistence..."
>
>
>
>
> 'serviceRegistryDao' bean setting from 'deployConfig.Context.xml':
>
> <bean id="serviceRegistryDao"
> class="org.jasig.cas.services.JpaServiceRegistryDaoImpl"
>            p:entityManagerFactory-ref="entityManagerFactory" />
>
>            <!-- This is the EntityManagerFactory configuration for
> Hibernate -->
>
>            <bean id="entityManagerFactory"
> class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
>                <property name="dataSource" ref="dataSource"/>
>                <property name="jpaVendorAdapter">
>                <bean
> class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
>                <property name="generateDdl" value="true"/>
>                <property name="showSql" value="true" />
>            </bean>
>                 </property>
>                <property name="jpaProperties">
>            <props>
>                <prop
> key="hibernate.dialect">org.hibernate.dialect.OracleDialect</prop>
>                <prop key="hibernate.hbm2ddl.auto">update</prop>
>            </props>
>                </property>
>            </bean>
>
>            <bean id="transactionManager"
> class="org.springframework.orm.jpa.JpaTransactionManager">
>                <property name="entityManagerFactory"
> ref="entityManagerFactory"/>
>            </bean>
>
>            <tx:annotation-driven transaction-manager="transactionManager"/>
>
>
>            <bean id="dataSource"
>                class="org.apache.commons.dbcp.BasicDataSource"
>                p:driverClassName="oracle.jdbc.driver.OracleDriver"
>                p:jdbcUrl="jdbc:oracle:thin@ihostname:1521:sid"
>                p:user="name"
>                p:password="password"    />

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