Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Corrected links that should have been relative instead of absolute.

...

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