Burns, Jamie wrote:
> It seems clear that JBoss is finding 
> com.microsoft.jdbcx.sqlserver.SQLServerDataSource. If it couldnt find
it l would 
> expect a ClassNotFoundException. It also seems clear that it should be
able to
> be cast it to javax.sql.XADataSource since the super class implements
this.

I agree.  The only thing I can think of that would cause this problem is
if two different classloaders were being used, such that XADataSource
(the target of the cast) was loaded by one classloader, and
SQLServerDataSource was loaded by another classloader (along with
another copy of XADAtaSource).  My understanding is that if the same
class is loaded by two different classloaders, so that you have versions
C1 and C2 of the same class, you can't cast a C1 to a C2.

However, I don't know much about how the classloading works in JBoss.
It may depend on where you put the MSSQL JAR file.  (I had mine in
JBOSS_HOME\server\default\lib.)

> Why do you say that it should implement XAResource when its being cast
as an
> XADataSource?

Sorry, I meant XADataSource.

You might try filing this as a bug in the the SourceForge bug tracker
for JBoss, giving a clear, minimal test case.

Ben



-------------------------------------------------------
This sf.net email is sponsored by: Jabber - The world's fastest growing 
real-time communications platform! Don't just IM. Build it in! 
http://www.jabber.com/osdn/xim
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to