problem: MBeans waiting for other MBeans
description: i am
testing the
jboss jdbc connection.
No
ejb deployments simply registration of jdbc with jboss.
Under default server everything is running ok. This problem
arises only i tried to create a server with the necessary
services and libraries
question: 1. May i know mbeans is waiting for which service?LocalTxCM?
but why is this service not registered.
2. Do i have to define ConnectionManager and TransactionManager
service under jboss-service.xml and how? Thought it has been
specfied under mysql-service.xml?
3. Do i need jboss-local-jdbc.rar?and how it is being registered
as a service?
4. LocalTxCM, ManagedConnectionFactoryName, ManagedConnectionFactoryProperties,
JBoss LocalTransaction JDBC Wrapper are these names registered names?
eg. jboss.jca:service=LocalTxDS -> where is the reference for LocalTxDS
5. How to resolve this issue for this scenario?
Thanks in advance
Jboss version - 3.0.4
Configuration
--------------
1.Server Name (rainmaker)
- Conf - jboss-service
- jndi.properties
- log4j.xml
- standardjboss.xml
- standardjbosscmp-jdbc.xml
- deploy - jboss-local-jdbc.rar
- jca-service.xml
- mysql-service.xml
- user-service.xml
- lib - jaas.jar
- jboss.jar
- jboss-j2ee.jar
- jboss-jca.jar
- jboss-management.jar
- jboss-minimal.jar
- jnet.jar
- jnpserver.jar
- jpl-pattern.jar
- jpl-util.jar
- log4j.jar
- mysql-connector-java-2.0.14-bin.jar
-----------------------------------------------------------------------------------
server log
-----------------------------------------------------------------------------------
2003-03-27 11:39:36,288 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner]
MBeanException: Exception in MBean operation 'checkIncompleteDeployments()'
Cause: Incomplete Deployment listing:
Packages waiting for a deployer:
<none>
Incompletely deployed packages:
<none>
MBeans waiting for classes:
<none>
MBeans waiting for other MBeans:
[ObjectName: jboss.jca:service=LocalTxCM, name=MySqlDS
state: CONFIGURED
I Depend On: jboss.jca:service=LocalTxDS,name=MySqlDS
jboss.jca:service=LocalTxPool,name=MySqlDS
jboss.jca:service=CachedConnectionManager
jboss.security:service=JaasSecurityManager
jboss.jca:service=RARDeployer
Depends On Me: ]
-----------------------------------------------------------------------------------
mysql-service.xml
- This file is from mysql-service.xml from examples/jca/
- Changes made only on (ConnectionURL, DriverClass, UserName, Password), the rest is untouched.
- jndi-name=MySqlDS
-----------------------------------------------------------------------------------
standardjbosscmp-jdbc.xml
- same file from default directory
- modified the datasource
<datasource>
java:/MySqlDS</datasource>
<datasource-mapping>mySQL</datasource-mapping>
-----------------------------------------------------------------------------------
jboss-service
- same file from the minimal directory jboss-service.xml
- added this lines
<!-- ==================================================================== -->
<!-- Transactions -->
<!-- ==================================================================== -->
<mbean code="org.jboss.tm.XidFactory"
name="jboss:service=XidFactory">
</mbean>
<mbean code="org.jboss.tm.TransactionManagerService"
name="jboss:service=TransactionManager">
<attribute name="TransactionTimeout">300</attribute>
<depends optional-attribute-name="XidFactory">jboss:service=XidFactory</depends>
</mbean>
<mbean code="org.jboss.tm.usertx.server.ClientUserTransactionService"
name="jboss:service=ClientUserTransaction">
</mbean>
<!-- The CachedConnectionManager is used partly to relay started UserTransactions to
open connections so they may be enrolled in the new tx-->
<mbean code="org.jboss.resource.connectionmanager.CachedConnectionManager"
name="jboss.jca:service=CachedConnectionManager">
</mbean>
-----------------------------------------------------------------------------------