This error usually means your url is wrong or something similar
config-wise.  You may need to supply a user/pw even if apparently not
required.

XADataSourceLoader was in jbosspool in 2.4.4 I think--, you need to look in
the attic in cvs view since this is no longer in jboss 3 at all.

david jencks

On 2002.03.14 19:55:25 -0500 JD Brennan wrote:
> I'm trying to get JBoss 2.4.4 working with MySQL 3.23
> with the mm.mysql-2.0.11 driver:
> 
>   <mbean code="org.jboss.jdbc.XADataSourceLoader"
> name="DefaultDomain:service=XADataSource,name=PostgresPool">
>     <attribute
> name="DataSourceClass">org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl</attr
> ibute>
>     <attribute name="PoolName">MySQLPool</attribute>
>     <attribute name="URL">jdb:mysql://mysql1/test</attribute>
>     <attribute name="JDBCUser">foo</attribute>
>     <attribute name="Password">bar</attribute>
>   </mbean>
> 
> I get this error:
> 
> [ERROR,MySQLPool] Stopped
> java.lang.NullPointerException
>       at org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(Unknown
> Source)
>       at
> org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java:412)
>       at
> org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)
>       at java.lang.reflect.Method.invoke(Native Method)
>       ...
> 
> I checked out jboss-all from CVS (branch Rel_2_4_4_15), but can't find
> XAPoolDataSource.java so I decompiled it (with jad) and noticed that 
> it has some log.trace() calls, so I modified the log4j.properties file 
> and tried to turn on tracing by adding:
> 
> log4j.category.org.jboss.pool=TRACE
> 
> But that didn't work.  So that leaves me with 3 questions:
> 
> 1) Did anyone get MySQL to work with JBoss CMP?
> 2) Where do I get the source for XAPoolDataSource
> 3) How do I turn on tracing?
> 
> Thanks very much!
> JD
> 
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
> <HTML>
> <HEAD>
> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
> <META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
> <TITLE>JBoss CMP with MySQL?</TITLE>
> </HEAD>
> <BODY>
> 
> <P><FONT SIZE=2>I'm trying to get JBoss 2.4.4 working with MySQL
> 3.23</FONT>
> <BR><FONT SIZE=2>with the mm.mysql-2.0.11 driver:</FONT>
> </P>
> 
> <P><FONT SIZE=2>&nbsp; &lt;mbean code=&quot;org.jboss.jdbc.XADataSourceLoader&quot;
> name=&quot;DefaultDomain:service=XADataSource,name=PostgresPool&quot;&gt;</FONT>
> <BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; &lt;attribute
> 
>name=&quot;DataSourceClass&quot;&gt;org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl&lt;/attribute&gt;</FONT>
> <BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; &lt;attribute
> name=&quot;PoolName&quot;&gt;MySQLPool&lt;/attribute&gt;</FONT>
> <BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; &lt;attribute
> name=&quot;URL&quot;&gt;jdb:mysql://mysql1/test&lt;/attribute&gt;</FONT>
> <BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; &lt;attribute
> name=&quot;JDBCUser&quot;&gt;foo&lt;/attribute&gt;</FONT>
> <BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; &lt;attribute
> name=&quot;Password&quot;&gt;bar&lt;/attribute&gt;</FONT>
> <BR><FONT SIZE=2>&nbsp; &lt;/mbean&gt;</FONT>
> </P>
> 
> <P><FONT SIZE=2>I get this error:</FONT>
> </P>
> 
> <P><FONT SIZE=2>[ERROR,MySQLPool] Stopped</FONT>
> <BR><FONT SIZE=2>java.lang.NullPointerException</FONT>
> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>at
> org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(Unknown
> Source)</FONT>
> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>at
> org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java:412)</FONT>
> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>at
> org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)</FONT>
> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>at
> java.lang.reflect.Method.invoke(Native Method)</FONT>
> <BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...</FONT>
> </P>
> 
> <P><FONT SIZE=2>I checked out jboss-all from CVS (branch Rel_2_4_4_15),
> but can't find</FONT>
> <BR><FONT SIZE=2>XAPoolDataSource.java so I decompiled it (with jad) and
> noticed that </FONT>
> <BR><FONT SIZE=2>it has some log.trace() calls, so I modified the
> log4j.properties file </FONT>
> <BR><FONT SIZE=2>and tried to turn on tracing by adding:</FONT>
> </P>
> 
> <P><FONT SIZE=2>log4j.category.org.jboss.pool=TRACE</FONT>
> </P>
> 
> <P><FONT SIZE=2>But that didn't work.&nbsp; So that leaves me with 3
> questions:</FONT>
> </P>
> 
> <P><FONT SIZE=2>1) Did anyone get MySQL to work with JBoss CMP?</FONT>
> <BR><FONT SIZE=2>2) Where do I get the source for XAPoolDataSource</FONT>
> <BR><FONT SIZE=2>3) How do I turn on tracing?</FONT>
> </P>
> 
> <P><FONT SIZE=2>Thanks very much!</FONT>
> <BR><FONT SIZE=2>JD</FONT>
> </P>
> 
> </BODY>
> </HTML>
> 

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to