I think you have a config file for jboss 3 cvs and are using jboss 3 alpha download. There were some comments in the manual about the necessary changes. I recommend you get the version I recently put in cvs for 3.0 alpha.
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/manual/src/examples/resources/jca/mysql-service.xml david jencks On 2002.01.15 10:55:49 -0500 Steve Knight wrote: > Well, I am just using the example file from the Documentation (cut and > pasted). I changed the URL, username, password, etc. and dropped it in > the > deploy directory. I put the mm driver jar in lib\ext. > Here is the Exception that is thrown: > > > [2002-01-15 10:44:36,280,ServiceCreator,INFO] Created the > beanDefaultDomain:service=ConnectionFactoryLoader,name=mySQLDS > [2002-01-15 10:44:36,600,Configurator,DEBUG] > ManagedConnectionFactoryProperties set to > ConnectionURL=jdbc:mysql://localhost:3306/TaggingDatabase > DriverClass=org.gjt.mm.mysql.Driver > UserName=root > Password=password in > DefaultDomain:service=ConnectionFactoryLoader,name=mySQLDS > [2002-01-15 10:44:36,710,Configurator,DEBUG] JndiName set to mySQLDS in > DefaultDomain:service=ConnectionFactoryLoader,name=mySQLDS > [2002-01-15 10:44:36,770,Configurator,DEBUG] TransactionManagerName set > to > java:/TransactionManager in > DefaultDomain:service=ConnectionFactoryLoader,name=mySQLDS > [2002-01-15 10:44:36,930,ServiceController,ERROR] Could not configure > MBean: > DefaultDomain:service=ConnectionFactoryLoader,name=mySQLDS > java.lang.NullPointerException > at > org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:225) > at org.jboss.system.ServiceController.deploy(ServiceController.java:215) > at java.lang.reflect.Method.invoke(Native Method) > at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) > at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) > at org.jboss.deployment.ServiceDeployer.invoke(ServiceDeployer.java:732) > at org.jboss.deployment.ServiceDeployer.addMBeans(ServiceDeployer.java:668) > at org.jboss.deployment.ServiceDeployer.deploy(ServiceDeployer.java:215) > at > org.jboss.deployment.DeployerMBeanSupport.deploy(DeployerMBeanSupport.java:107) > at java.lang.reflect.Method.invoke(Native Method) > at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) > at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) > at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:654) > at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:327) > at org.jboss.deployment.AutoDeployer.startService(AutoDeployer.java:509) > at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:117) > at java.lang.reflect.Method.invoke(Native Method) > at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) > at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) > at > org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:775) > at $Proxy0.start(Unknown Source) > at org.jboss.system.ServiceController.start(ServiceController.java:479) > at > >org.jboss.system.ServiceController.registerAndStartService(ServiceController.java:273) > at org.jboss.system.ServiceController.deploy(ServiceController.java:257) > at java.lang.reflect.Method.invoke(Native Method) > at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) > at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) > at org.jboss.deployment.ServiceDeployer.invoke(ServiceDeployer.java:732) > at org.jboss.deployment.ServiceDeployer.addMBeans(ServiceDeployer.java:668) > at org.jboss.deployment.ServiceDeployer.deploy(ServiceDeployer.java:215) > at > org.jboss.deployment.DeployerMBeanSupport.deploy(DeployerMBeanSupport.java:107) > at java.lang.reflect.Method.invoke(Native Method) > at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) > at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) > at org.jboss.Main.<init>(Main.java:199) > at org.jboss.Main$1.run(Main.java:411) > at java.security.AccessController.doPrivileged(Native Method) > at org.jboss.Main.main(Main.java:406) > [2002-01-15 10:44:37,040,ServiceDeployer,ERROR] Runtime Mbean exception > while executing deploy on [Ljava.lang.Object;@2b9406 > java.lang.NullPointerException > at > org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:225) > at org.jboss.system.ServiceController.deploy(ServiceController.java:215) > at java.lang.reflect.Method.invoke(Native Method) > at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) > at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) > at org.jboss.deployment.ServiceDeployer.invoke(ServiceDeployer.java:732) > at org.jboss.deployment.ServiceDeployer.addMBeans(ServiceDeployer.java:668) > at org.jboss.deployment.ServiceDeployer.deploy(ServiceDeployer.java:215) > at > org.jboss.deployment.DeployerMBeanSupport.deploy(DeployerMBeanSupport.java:107) > at java.lang.reflect.Method.invoke(Native Method) > at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) > at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) > at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:654) > at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:327) > at org.jboss.deployment.AutoDeployer.startService(AutoDeployer.java:509) > at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:117) > at java.lang.reflect.Method.invoke(Native Method) > at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) > at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) > at > org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:775) > at $Proxy0.start(Unknown Source) > at org.jboss.system.ServiceController.start(ServiceController.java:479) > at > >org.jboss.system.ServiceController.registerAndStartService(ServiceController.java:273) > at org.jboss.system.ServiceController.deploy(ServiceController.java:257) > at java.lang.reflect.Method.invoke(Native Method) > at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) > at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) > at org.jboss.deployment.ServiceDeployer.invoke(ServiceDeployer.java:732) > at org.jboss.deployment.ServiceDeployer.addMBeans(ServiceDeployer.java:668) > at org.jboss.deployment.ServiceDeployer.deploy(ServiceDeployer.java:215) > at > org.jboss.deployment.DeployerMBeanSupport.deploy(DeployerMBeanSupport.java:107) > at java.lang.reflect.Method.invoke(Native Method) > at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) > at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) > at org.jboss.Main.<init>(Main.java:199) > at org.jboss.Main$1.run(Main.java:411) > at java.security.AccessController.doPrivileged(Native Method) > at org.jboss.Main.main(Main.java:406) > > > > > >From: David Jencks <[EMAIL PROTECTED]> > >To: [EMAIL PROTECTED] > >Subject: Re: [JBoss-user] Simple? How to setup another database in 3.0? > >Date: Tue, 15 Jan 2002 09:12:42 -0500 > > > >Assuming > >1. You got the correct version of the file (1.1 for jboss3.0 alpha > >download, 1.2 for cvs jboss 3) > >2. You modified the mysql file to include your db location and user/pw > >3. mysql is in fact running > > > >the DataSource should be deployed when you add mysql-service.xml to the > >deploy directory or start jboss with it already present. > > > >Note that sometimes an application that needs a datasource to deploy > will > >get autodeployed before the datasource configuration. You can detect > this > >by examining the log (It takes a while but is possible). You can work > >around this by putting mysql-service.xml in deploy/lib and the > application > >in deploy. This is not a very good way to force deployment order, but > it > >may be the easiest. > > > >If this doesn't work please post more details of what is going wrong. > > > >thanks > >david jencks > > > >On 2002.01.15 08:28:02 -0500 Steve Knight wrote: > > > Thanks David, > > > I have looked at the mysql-service.xml file, but what do I do with > it? > > > Like > > > I said, I am a newbie so I am still learning these config files. I > >tried > > > > > > deploying mysql-service.xml in the deploy directory (like the one for > > > hypersonic) and JBoss recognizes it, but then it spits out a > > > NullPointerException when trying to bind the Datasource. > > > Am I missing something? > > > > > > Steve > > > > > > > > > >From: David Jencks <[EMAIL PROTECTED]> > > > >To: [EMAIL PROTECTED] > > > >Subject: Re: [JBoss-user] Simple? How to setup another database in > >3.0? > > > >Date: Mon, 14 Jan 2002 17:07:59 -0500 > > > > > > > >When the rest of the website is back, look at ch 3 of the free > manual. > > > If > > > >you want help sooner, you could get resource.xml from cvs at > > > >manual/src/xdocs and look at it or compile the manual yourself by > > > >downloading the manual module. > > > > > > > >There is also now a sample config file myssql-service.xml in > > > >manual/src/examples/resources/jca (i think). > > > > > > > >david jencks > > > > > > > >On 2002.01.14 16:49:10 -0500 Steve Knight wrote: > > > > > Hello, > > > > > I am new to JBoss and I am having trouble setting up a MySQL > >database > > > > > with > > > > > JBoss 3.0. I have successfully set it up in 2.4.4 by editing the > > > > > jboss.jcml > > > > > and standardjaws.xml...but 3.0 appears to be different. What are > > >the > > > > > steps > > > > > that I need to do to make it work? I don't really want the > Default > > > > > databases, so I would like to eliminate them. > > > > > I have looked at the CMP2.0 documentation and it gives pieces to > the > > > > > puzzle, > > > > > but fails to bring it all together. I just need to know the > "steps" > > > to > > > > > add > > > > > another datasource AND make it work with my EJB. > > > > > > > > > > Thanks, > > > > > > > > > > Steve Knight > > > > > > > > > > > > > > > > >_______________________________________________ > >JBoss-user mailing list > >[EMAIL PROTECTED] > >https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > _________________________________________________________________ > Get your FREE download of MSN Explorer at > http://explorer.msn.com/intl.asp. > > > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > > _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user