Has anyone delved deep into JBoss 3.0.0?

I've spent most of the day reworking Tapestry to autoconfigure 3.0.0 instead
of 2.4.3.

3.0.0 has some great new features; I really like that it has a system for
dealing with MBean startup dependencies.

Anyway, I've basically been cutting-and-pasting to convert the HypersonicSQL
to McKoi DB, to support the Virtual Library demo database.

Something isn't working right, and the data source doesn't get deployed into
JNDI.

19:03:26,041 INFO  [MainDeployer] Starting deployment of package:
file:/C:/Work/jboss-3.0.0/server/tapestry/deploy/mckoi-service.xml
19:03:27,313 WARN  [ServiceController]
jboss.jca:service=LocalTxDS,name=McKoiDBDataSource does not implement any
Service methods
19:03:27,323 WARN  [ServiceController]
jboss.jca:service=LocalTxDS,name=McKoiDBDataSource does not implement any
Service methods
19:03:27,323 INFO  [JBossManagedConnectionPool] Creating
19:03:27,323 INFO  [JBossManagedConnectionPool] Created
19:03:30,016 INFO  [STDOUT] TCP JDBC Server (multi_threaded) on port: 9157
19:03:30,016 INFO  [STDOUT] .
19:03:30,026 INFO  [STDOUT] Boot time: 2583ms.
19:03:30,026 INFO  [JBossManagedConnectionPool] Starting
19:03:30,047 INFO  [JBossManagedConnectionPool] Started
19:03:30,057 INFO  [MainDeployer] Successfully completed deployment of
package: file:/C:/Work/jboss-3.0.0/server/tapestry/deploy/mckoi-service.xml

... and then, my beans don't deploy:

19:03:49,374 WARN  [ServiceController] Ignoring request to destroy
non-existant service: jboss.j2ee:service=EJB,jndiName=vlib/Book
19:03:49,384 WARN  [ServiceController] Ignoring request to destroy
non-existant service: jboss.j2ee:service=EJB,jndiName=vlib/Person
19:03:49,394 INFO  [EjbModule] Remove JSR-77 EJB Module:
jboss.management.single:J2EEApplication=Vlib.ear,J2EEServer=Single,j2eeType=
EJBModule,name=VlibBeans.jar
19:03:49,404 ERROR [EjbModule] Initialization failed
org.jboss.deployment.DeploymentException: Error: can't find data source:
java:/McKoiDB; - nested throwable: (javax.naming.NameNotFoundException:
McKoiDB not bound)
        at
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.<init>(JDBCEntityBrid
ge.java:99)
        at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.create(JDBCStoreManager.java
:332)
        at
org.jboss.ejb.plugins.CMPPersistenceManager.create(CMPPersistenceManager.jav
a:155)
        at org.jboss.ejb.EntityContainer.create(EntityContainer.java:337)
        at org.jboss.ejb.Container.invoke(Container.java:789)
        at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1055)
        at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
        at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.jav
a:894)
        at $Proxy6.create(Unknown Source)
        at
org.jboss.system.ServiceController.create(ServiceController.java:272)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

Anyone have any hints?
<?xml version="1.0" encoding="UTF-8"?>

<!-- ===================================================================== -->
<!--                                                                       -->
<!--  JBoss Server Configuration                                           -->
<!--                                                                       -->
<!-- ===================================================================== -->

<!-- $Id: mckoi-service.xml,v 1.1 2002/06/08 22:45:49 hship Exp $ -->


<server>

  <!-- ==================================================================== -->
  <!-- New ConnectionManager setup for default hsql dbs                     -->
  <!-- Build jmx-api (build/build.sh all) and view for config documentation -->
  <!-- ==================================================================== -->

  <mbean code="org.jboss.resource.connectionmanager.LocalTxConnectionManager" 
  	name="jboss.jca:service=LocalTxCM,name=McKoiDBDataSource">

	<depends>
		<mbean code="net.sf.tapestry.contrib.mckoi.McKoiDB" name="jboss:service=McKoiDB">
  			<attribute name="RootPath">../server/tapestry/db</attribute>
  			<attribute name="ConfigPath">../server/tapestry/db/vlib.conf</attribute>
  		</mbean>
  	</depends>

    <depends optional-attribute-name="ManagedConnectionFactoryName">
      <!--embedded mbean-->
      <mbean code="org.jboss.resource.connectionmanager.RARDeployment" 
      	name="jboss.jca:service=LocalTxDS,name=McKoiDBDataSource">

        <attribute name="JndiName">java:/McKoiDB</attribute>
        <attribute name="ManagedConnectionFactoryProperties">
          <properties>
            <config-property name="ConnectionURL" type="java.lang.String">jdbc:mckoi://localhost/</config-property>
            <config-property name="DriverClass" type="java.lang.String">com.mckoi.JDBCDriver</config-property>
            <config-property name="UserName" type="java.lang.String">admin</config-property>
            <config-property name="Password" type="java.lang.String"></config-property>
          </properties>
        </attribute>

<!--Below here are advanced properties -->
        <!--hack-->
        <depends optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper</depends>
        <depends>jboss:service=McKoiDB</depends>

      </mbean>
    </depends>
    <depends optional-attribute-name="ManagedConnectionPool">
      <!--embedded mbean-->
      <mbean code="org.jboss.resource.connectionmanager.JBossManagedConnectionPool"
      	 name="jboss.jca:service=LocalTxPool,name=McKoiDB">

        <attribute name="MinSize">0</attribute>
        <attribute name="MaxSize">50</attribute>
        <attribute name="BlockingTimeoutMillis">5000</attribute>
        <attribute name="IdleTimeoutMinutes">15</attribute>
        <!--criteria indicates if Subject (from security domain) or app supplied
            parameters (such as from getConnection(user, pw)) are used to distinguish
            connections in the pool. Choices are 
            ByContainerAndApplication (use both), 
            ByContainer (use Subject),
            ByApplication (use app supplied params only),
            ByNothing (all connections are equivalent, usually if adapter supports
              reauthentication)-->
        <attribute name="Criteria">ByContainer</attribute>
      </mbean>
    </depends>
    <depends optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager</depends>

    <depends optional-attribute-name="JaasSecurityManagerService">jboss.security:name=JaasSecurityManager</depends>

    <attribute name="TransactionManager">java:/TransactionManager</attribute>

    <!--make the rar deploy! hack till better deployment-->
    <depends>jboss.jca:service=RARDeployer</depends>

  </mbean>

</server>

Reply via email to