David;
I did as you suggested and removed the cmp2.ear from
the deploy directory and started JBoss. The following
is a clip from the log:
[2002-01-11 19:35:34,238,ServiceDeployer,DEBUG] deploying with ServiceController mbean
ConnectionURL=jdbc:AvenirDriver://localhost:1433/commerce;uid=gary;pwd=garygary
DriverClass=net.avenir.jdbc2.Driver
MSSQL2000DS
java:/TransactionManager
<mbean-ref>JBOSS-SYSTEM:service=MSSQL2000</mbean-ref>
<mbean-ref optional-attribute-name="ResourceAdapterName">JCA:service=RARDeployment,name=Minerva JDBC LocalTransaction ResourceAdapter</mbean-ref>
<mbean-ref optional-attribute-name="ConnectionManagerFactoryLoaderName">JCA:service=ConnectionManagerFactoryLoader,name=MinervaSharedLocalCMFactory</mbean-ref>
#
#Wed Aug 15 16:17:29 EDT 2001
BlockingTimeoutMillis=50000
IdleTimeoutMinutes=30
MaxSize=10
CleanupIntervalMinutes=10
MinSize=0
MaxIdleTimeoutPercent=1.0
org.jboss.resource.security.ManyToOnePrincipalMapping
userName=gary
password=garygary
[2002-01-11 19:35:34,238,AutoDeployer,DEBUG] Received notification of mbean ZClassLoaders:id=-617212637's deployment.
[2002-01-11 19:35:34,238,ServiceCreator,INFO] About to create the beanJBOSS-SYSTEM:service=ConnectionFactoryLoader,name=MSSQL2000DS
[2002-01-11 19:35:34,248,AutoDeployer,DEBUG] Received notification of mbean JBOSS-SYSTEM:service=ConnectionFactoryLoader,name=MSSQL2000DS's deployment.
[2002-01-11 19:35:34,248,ServiceCreator,INFO] Created the beanJBOSS-SYSTEM:service=ConnectionFactoryLoader,name=MSSQL2000DS
[2002-01-11 19:35:34,288,Configurator,DEBUG] ManagedConnectionFactoryProperties set to ConnectionURL=jdbc:AvenirDriver://localhost:1433/commerce;uid=gary;pwd=garygary
DriverClass=net.avenir.jdbc2.Driver in JBOSS-SYSTEM:service=ConnectionFactoryLoader,name=MSSQL2000DS
[2002-01-11 19:35:34,318,Configurator,DEBUG] JndiName set to MSSQL2000DS in JBOSS-SYSTEM:service=ConnectionFactoryLoader,name=MSSQL2000DS
[2002-01-11 19:35:34,348,Configurator,DEBUG] TransactionManagerName set to java:/TransactionManager in JBOSS-SYSTEM:service=ConnectionFactoryLoader,name=MSSQL2000DS
[2002-01-11 19:35:34,378,Configurator,DEBUG] ConnectionManagerProperties set to #
#Wed Aug 15 16:17:29 EDT 2001
BlockingTimeoutMillis=50000
IdleTimeoutMinutes=30
MaxSize=10
CleanupIntervalMinutes=10
MinSize=0
MaxIdleTimeoutPercent=1.0 in JBOSS-SYSTEM:service=ConnectionFactoryLoader,name=MSSQL2000DS
[2002-01-11 19:35:34,418,Configurator,DEBUG] PrincipalMappingClass set to org.jboss.resource.security.ManyToOnePrincipalMapping in JBOSS-SYSTEM:service=ConnectionFactoryLoader,name=MSSQL2000DS
[2002-01-11 19:35:34,438,Configurator,DEBUG] PrincipalMappingProperties set to userName=gary
password=garygary in JBOSS-SYSTEM:service=ConnectionFactoryLoader,name=MSSQL2000DS
[2002-01-11 19:35:34,448,Configurator,DEBUG] found 3 mbean-ref elements
[2002-01-11 19:35:34,448,Configurator,DEBUG] Anonymous dependency on object name JBOSS-SYSTEM:service=MSSQL2000
[2002-01-11 19:35:34,448,Configurator,DEBUG] Anonymous dependency on object name JCA:service=RARDeployment,name=Minerva JDBC LocalTransaction ResourceAdapter
[2002-01-11 19:35:34,448,Configurator,DEBUG] Anonymous dependency on object name JCA:service=ConnectionManagerFactoryLoader,name=MinervaSharedLocalCMFactory
[2002-01-11 19:35:34,448,ServiceController,DEBUG] waiting to start JBOSS-SYSTEM:service=ConnectionFactoryLoader,name=MSSQL2000DS until dependencies are resolved
[2002-01-11 19:35:34,448,AutoDeployer,INFO] Started
===================
As you can see the ServiceController is attempting to
deploy the MSSQL2000DS service but goes into a wait
state until dependencies are resolved. What dependencies?
A little latter down in the log this line pops up :
============================
[2002-01-11 19:35:38,574,ServiceController,DEBUG] There are still missing mbeans, deployment of JBOSS-SYSTEM:service=ConnectionFactoryLoader,name=MSSQL2000DS postponed
=============================
Then after an inordinate amount of time I deployed the
cmp2.ear and this error message eventually came out in
the log :
[2002-01-11 19:54:00,399,CMP,DEBUG] Loading standardjbosscmp-jdbc.xml : file:/D:/jboss-3.0.0alpha//conf/default/standardjbosscmp-jdbc.xml
[2002-01-11 19:54:00,509,CMP,DEBUG] jar:file:/D:/jboss-3.0.0alpha/deploy/Default/cmp2-example.ear/ejb1003.jar!/META-INF/jbosscmp-jdbc.xml found. Overriding defaults
[2002-01-11 19:54:00,589,ContainerFactory,ERROR] Could not deploy file:/D:/jboss-3.0.0alpha/deploy/Default/cmp2-example.ear
org.jboss.ejb.DeploymentException: Error: can't find data source: java:/MSSQL2000DS
at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.init(JDBCStoreManager.java:113)
at org.jboss.ejb.plugins.CMPPersistenceManager.init(CMPPersistenceManager.java:141)
============
So David what do you think is going on??
Gary