Here are two responses to a problem that I posted to
JBoss-user regarding a NullPointerException when
trying to create a JDBCDataSource.
From Toby Allsopp [firstname.lastname@example.org]
It seems that JDBCDataSourceLoader is borked.
Can you please try adding the initialisation of source
to the no args constructor and see if that works?
If that fixes it, please post a patch in the
SourceForge patch tracker and I'll commit it.
Thanks for the report,
From Tim Taylor [email@example.com]
I just tried initializing the source variable in the
no-args constructor. It works, but you also have to
add a setPoolName/getPoolName pair to
JDBCDataSourceLoader and JDBCDataSourceLoaderMBean.
After that, JDBCDataSourceLoader works just like
XADataSourceLoader from jboss.jcml. One minor
difference is that there is no DataSourceClass
attribute to set...
I made the above suggested changes along with a change
to getProperties() and I was able to define a
JDBCDataSource without errors. It was created and
bound to JNDI but I couldn't test it with my
application because I am having trouble getting the
latest jboss build to work with the latest tomcat 4.0
See attached file for the patch of
See "need JDBCDataSourceLoader example" thread in
Log in to post a comment.