Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
LSDS AopInvocationException on startup
mrl984
Hi
Running LSDS on WAS 8. Getting an exception at server startup and on any page request:
org.springframework.aop.AopInvocationException: AOP configuration seems to be invalid: tried calling method [public abstract java.sql.Connection javax.sql.DataSource.getConnection() throws java.sql.SQLException] on target [com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource@e5a79799]; nested exception is java.lang.IllegalArgumentException: object is not an instance of declaring class
Seems to be the result of setting application class loader policy to PARENT_LAST. But this is required, per documentation, for LSCS client requests to work. Look familiar to anyone.
thanks,
mike
Find more posts tagged with
Comments
Rick Poulin
Looks like you're trying to use a websphere-administered datasource rather than using plain XML files (or your websphere.xml is incorrectly configured). A quick google search shows that attempting to cast WSJdbcDataSource to javax.sql.DataSource is a common problem, and there's been a slew of suggested solutions but no conclusive one that I could find. You'll have to play with your websphere.xml and your datasource configs in the console until you find a combination that works.