configing xpetstore,occuring mysql DS exception
dushky Feb 24, 2004 9:11 PMfirstly, i wrote a mysql-ds.xml as following :
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: mysql-ds.xml,v 1.0 2003-8-11 15:56 et Exp $ -->
<local-tx-datasource>
jboss:service=Hypersonic
<jndi-name>xpetstoreDS</jndi-name>
<connection-url>jdbc:mysql://localhost/xpetstore</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>mysql</user-name>
root
<min-pool-size>5</min-pool-size>
<security-domain>HsqlDbRealm</security-domain>
</local-tx-datasource>
secondly, i modified the file's content to this:
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: mysql-ds.xml,v 1.0 2003-8-11 15:56 et Exp $ -->
HsqlDbRealm
jboss:service=Hypersonic
<depends optional-attribute-name="ManagedConnectionFactoryName">
xpetstoreDS
<config-property name="ConnectionURL" type="java.lang.String">jdbc:mysql://localhost/xpetstore</config-property>
<config-property name="DriverClass" type="java.lang.String">com.mysql.jdbc.Driver</config-property>
<config-property name="UserName" type="java.lang.String">root</config-property>
<config-property name="Password" type="java.lang.String">mysql</config-property>
both , when i run jboss in console , occured the following exception:
10:35:52,078 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean ope
ration 'checkIncompleteDeployments()'
Cause: Incomplete Deployment listing:
Packages waiting for a deployer:
[org.jboss.deployment.DeploymentInfo@c3dc9295 { url=file:/D:/jboss-3.0.8/server/
xpetstore/deploy/mysql-ds.xml }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/D:/jboss-3.0.8/server/xpetstore/deploy/mysql-ds.xml
lastDeployed: 1077676552046
lastModified: 1077676554000
mbeans:
]Incompletely deployed packages:
[org.jboss.deployment.DeploymentInfo@c3dc9295 { url=file:/D:/jboss-3.0.8/server/
xpetstore/deploy/mysql-ds.xml }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/D:/jboss-3.0.8/server/xpetstore/deploy/mysql-ds.xml
lastDeployed: 1077676552046
lastModified: 1077676554000
mbeans:
]MBeans waiting for classes:
MBeans waiting for other MBeans:
10:35:52,109 INFO [URLDeploymentScanner] Started
can any body give me some tips?
Thx in advance!!