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> <mbean code="org.jboss.jdbc.XADataSourceLoader" > name="DefaultDomain:service=XADataSource,name=PostgresPool"></FONT> > <BR><FONT SIZE=2> <attribute > >name="DataSourceClass">org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl</attribute></FONT> > <BR><FONT SIZE=2> <attribute > name="PoolName">MySQLPool</attribute></FONT> > <BR><FONT SIZE=2> <attribute > name="URL">jdb:mysql://mysql1/test</attribute></FONT> > <BR><FONT SIZE=2> <attribute > name="JDBCUser">foo</attribute></FONT> > <BR><FONT SIZE=2> <attribute > name="Password">bar</attribute></FONT> > <BR><FONT SIZE=2> </mbean></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> <FONT SIZE=2>at > org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(Unknown > Source)</FONT> > <BR> <FONT SIZE=2>at > org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java:412)</FONT> > <BR> <FONT SIZE=2>at > org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)</FONT> > <BR> <FONT SIZE=2>at > java.lang.reflect.Method.invoke(Native Method)</FONT> > <BR><FONT SIZE=2> ...</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. 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
