It looks like you deleted just about everything in the
deployerConfigContext.xml, and you have things in the wrong order.  There's
a reason most of those things exist in there.

Also, if you plan on using mySQL, you can't configure your dialect for HSQL,
as you did: <prop
key="hibernate.dialect">org.hibernate.dialect.HSQLDialectect</prop>

Finally, this is all detailed right here:
http://www.ja-sig.org/wiki/display/CASUM/Configuring

-Scott

On Dec 11, 2007 3:40 AM, Earnest Berry III <[EMAIL PROTECTED]> wrote:

> Hello,
>
> Ok, I am becoming completly lost as to how to setup my CAS instance. I
> was really excited when I first got it working with the demo with the
> default WAR file; but since then, I have had 0 luck in connecting it to
> LDAP auth, OR connecting it to my MySQL database so that my services
> persists.
>
> My setup:
> Glassfish V2, Latest JDK
>
> So, the WAR file is deployed. I edited the deployerConfig.xml as follows
> ( please see the end of the post). But to no avail. I was getting a lot
> of dependancy errors. So I then downloaded all the hibernate jars, and I
> then also downloaded some apache-commons jars that I thought I needed,
> and I'm still getting the following error:
>
>  Exception starting filter Acegi Filter Chain Proxy
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'servicesManager' defined in ServletContext resource
> [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean
> 'serviceRegistryDao' while setting constructor argument with index 0
>
> I also tried the maven build stuff, but I'm a bit lost on those too. Do
> I just drop the jars created into my WEB-INF/lib ? Also, there's no
> build for building for MySQL persistance for services, I thought I could
> at least get that working, but to now avail. I've looked for tutorials,
> explinations, etc. Pehraps I'm missing something big time in the docs,
> but I'vebeen through those a few times. Anyhelp would be much
> appreciated. I'm also looking to post a step-by-step blog post about
> setting this thing up once I can get it running myself. Thanks.
>
> ===== BELOW IS MY deploymentConfig.xml ================
>
>        <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.HSQLDialect</prop>
>                <prop key="hibernate.hbm2ddl.auto">create-drop</prop>
>                </props>
>                </property>
>        </bean>
>
>        <bean id="transactionManager"
> class="org.springframework.orm.jpa.JpaTransactionManager">
>                <property name="entityManagerFactory"
> ref="entityManagerFactory"/>
>        </bean>
>
> <beans xmlns="http://www.springframework.org/schema/beans";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:tx="http://www.springframework.org/schema/tx";
> xmlns:p="http://www.springframework.org/schema/p";
> xsi:schemaLocation="http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
> http://www.springframework.org/schema/tx
> http://www.springframework.org/schema/tx/spring-tx-2.0.xsd"; />
>
> <tx:annotation-driven transaction-manager="transactionManager"/>
>
>
>        <bean
>                id="dataSource"
>                class="org.apache.commons.dbcp.BasicDataSource"
>                p:driverClassName="com.mysql.jdbc.Driver"
>
>
> p:url="jdbc:mysql://localhost:3306/cas_service_registry?autoReconnect=true"
>                p:password="*******"
>                p:username="webapp" />
>
> _______________________________________________
> Yale CAS mailing list
> [email protected]
> http://tp.its.yale.edu/mailman/listinfo/cas
>



-- 
-Scott Battaglia

LinkedIn: http://www.linkedin.com/in/scottbattaglia
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to