jasig-cas IRC Logs-2011-11-10

[08:44:16 CST(-0600)] <brandon> hey

[08:44:26 CST(-0600)] <brandon> have a question about clearpass

[08:44:43 CST(-0600)] <brandon> i'm a little confused, do i install it on the uportal server or the cas server?

[08:48:30 CST(-0600)] <wgthom> clearpass is an extension to the cas server

[08:49:08 CST(-0600)] <brandon> so what do i need to setup on the uportal side so it knows about clearpass

[08:49:52 CST(-0600)] <wgthom> also need the uportal extensions… https://wiki.jasig.org/display/CASUM/uPortal+ClearPass+Extension

[10:48:24 CST(-0600)] <bbranch> is anyone around?

[10:50:42 CST(-0600)] <wgthom> sup

[10:50:58 CST(-0600)] <bbranch> I'm having a hell of a time getting the service manager to start on CAS 3.4.10

[10:51:25 CST(-0600)] <bbranch> My CAS can auth to AD with no issues, I just can't get to the service manager.

[10:51:54 CST(-0600)] <wgthom> need to add authZ in deployConfigContext.xml

[10:51:58 CST(-0600)] <wgthom> near the bottom

[10:53:01 CST(-0600)] <bbranch> I followed this guide: https://wiki.jasig.org/display/CASUM/Configuring

[10:54:12 CST(-0600)] <wgthom> ok. you have it hooked up to a db? or just in memory?

[10:54:44 CST(-0600)] <bbranch> I tried doing the in memory configuration and couldn't get it to work.

[10:55:00 CST(-0600)] <bbranch> so, I decided to try and do the mysql configuration I'm still having issues.

[10:55:02 CST(-0600)] <bbranch> http://pastebin.com/spJYyiG0

[10:55:07 CST(-0600)] <bbranch> that's the error message I am getting.

[10:55:29 CST(-0600)] <bbranch> I'm not sure if there is a dependency missing or not.

[10:56:22 CST(-0600)] <bbranch> pom.xml config

[10:56:24 CST(-0600)] <bbranch> http://pastebin.com/b8eXYXF8

[10:57:07 CST(-0600)] <wgthom> looks like your missing bean defs

[10:58:25 CST(-0600)] <bbranch> deployerconfigcontext.xml

[10:58:27 CST(-0600)] <bbranch> http://pastebin.com/1WtuBNzA

[10:59:03 CST(-0600)] <wgthom> p:jdbcUrl-ref="database"

[10:59:12 CST(-0600)] <wgthom> "database" should be a jdbcUrl

[10:59:43 CST(-0600)] <bbranch> k, let me make a quick change.

[11:02:13 CST(-0600)] <bbranch> <bean id="dataSource"

[11:02:15 CST(-0600)] <bbranch> class="org.apache.commons.dbcp.BasicDataSource"

[11:02:17 CST(-0600)] <bbranch> p:driverClassName="com.mysql.jdbc.Driver"

[11:02:19 CST(-0600)] <bbranch> p:jdbcUrl-ref="mysql://localhost:3306/test?autoReconnect=true"

[11:02:20 CST(-0600)] <bbranch> p:password="******"

[11:02:22 CST(-0600)] <bbranch> p:username="******" />

[11:03:18 CST(-0600)] <bbranch> is that url correct? or does it need to be jdbc:mysql://localhost:3306/test/?autoReconnect=true ??

[11:05:02 CST(-0600)] <wgthom> something like: jdbc:mysql://127.0.0.1:3306/cas

[11:16:18 CST(-0600)] <bbranch> i'm still getting errors.

[11:16:36 CST(-0600)] <bbranch> Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serviceRegistryDao' defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]: Cannot resolve reference to bean 'entityManagerFactory' while setting bean property 'entityManagerFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating...

[11:16:38 CST(-0600)] <bbranch> ...bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]:...

[11:16:40 CST(-0600)] <bbranch> ...Cannot resolve reference to bean 'jdbc:mysql://localhost:3306/testdb?autoReconnect=true' while setting bean property 'jdbcUrl'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'jdbc:mysql://localhost:3306/testdb?autoReconnect=true' is defined

[11:22:52 CST(-0600)] <bbranch> any ideas?

[11:26:57 CST(-0600)] <wgthom> looks like jdbcUrl-ref is looking for a bean def instead of a the jdbc string

[11:27:36 CST(-0600)] <wgthom> some like this:

[11:27:37 CST(-0600)] <wgthom> <bean

[11:27:37 CST(-0600)] <wgthom>         id="dataSource"

[11:27:37 CST(-0600)] <wgthom>         class="org.apache.commons.dbcp.BasicDataSource"

[11:27:37 CST(-0600)] <wgthom>         p:driverClassName="com.mysql.jdbc.Driver"

[11:27:37 CST(-0600)] <wgthom>         p:url="jdbc:mysql://localhost:3306/test?autoReconnect=true"

[11:27:38 CST(-0600)] <wgthom>         p:password=""

[11:27:38 CST(-0600)] <wgthom>         p:username="sa" />

[11:28:17 CST(-0600)] <bbranch> well, the example given on the site is for an older version of CAS and some of the other examples that I found had it listed as p:jdbcurl-ref instead of url

[11:28:20 CST(-0600)] <wgthom> and p:jdbcUrl-ref="database"

[11:28:52 CST(-0600)] <wgthom> yeah, i see how it could be confusing

[11:29:05 CST(-0600)] <wgthom> i'm using the c3p0 data source as well

[11:30:02 CST(-0600)] <wgthom> here;s what is working for me:

[11:30:29 CST(-0600)] <wgthom> http://pastebin.com/q8Xthn6n

[11:30:32 CST(-0600)] <wgthom> for 3.4.10

[11:31:29 CST(-0600)] <bbranch> mind if I have a peak at your cas.properties file as well?

[11:33:44 CST(-0600)] <wgthom> http://pastebin.com/AGq12XgX

[11:34:12 CST(-0600)] <wgthom> off to lunch…. good luck

[11:34:22 CST(-0600)] <bbranch> let me try this config real fast see if this works, I'll post back in here when I'm finished.