Hi folk,

I have a problem to use an cmp entity bean with oracle, I have followed
the example into the site, but when I deploy the jar this exception
arise:

[Container factory] Deploying LanguageBean
[Container factory] org.jboss.ejb.DeploymentException:
xa.MailManagerConnectionPool not bound
[Container factory]     at
org.jboss.ejb.plugins.jaws.metadata.JawsApplicationMetaData.init(JawsApplicationMetaData.java:1

[Container factory]     at
org.jboss.ejb.plugins.jaws.metadata.JawsXmlFileLoader.load(JawsXmlFileLoader.java:73)

[Container factory]     at
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommandFactory.<init>(JDBCCommandFactory.java:78)

[Container factory]     at
org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.init(JAWSPersistenceManager.java:78)

[Container factory]     at
org.jboss.ejb.plugins.CMPPersistenceManager.init(CMPPersistenceManager.java:103)

[Container factory]     at
org.jboss.ejb.EntityContainer.init(EntityContainer.java:198)
[Container factory]     at
org.jboss.ejb.Application.init(Application.java:158)
[Container factory]     at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:733)
[Container factory]     at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:272)
[Container factory]     at java.lang.reflect.Method.invoke(Native
Method)
[Container factory]     at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)

[Container factory]     at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)

[Container factory]     at
org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:645)

[Container factory]     at
org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:137)
[Container factory]     at java.lang.reflect.Method.invoke(Native
Method)
[Container factory]     at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)

[Container factory]     at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)

[Container factory]     at
org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:332)
[Container factory]     at
org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:268)
[Container factory]     at
org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:311)
[Container factory]     at
org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:92)
[Container factory]     at java.lang.reflect.Method.invoke(Native
Method)
[Container factory]     at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)

[Container factory]     at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)

[Container factory]     at
org.jboss.dependencies.DependencyManager.startMBean(DependencyManager.java:284)

[Container factory]     at
org.jboss.dependencies.DependencyManager.loadService(DependencyManager.java:261)

[Container factory]     at
org.jboss.dependencies.DependencyManager.processService(DependencyManager.java:243)

[Container factory]     at
org.jboss.dependencies.DependencyManager.startMBeans(DependencyManager.java:117)

[Container factory]     at org.jboss.Main.<init>(Main.java:162)
[Container factory]     at org.jboss.Main$1.run(Main.java:87)
[Container factory]     at
java.security.AccessController.doPrivileged(Native Method)
[Container factory]     at org.jboss.Main.main(Main.java:83)

this is an abstract of my xml files:

jboss.xml

<?xml version="1.0" encoding="Cp1252"?>

<jboss>
  <resource-managers>
    <resource-manager res-class="org.jboss.ejb.deployment.JDBCResource">

    <res-name>MailDB</res-name>
    <res-jndi-name>xa.MailManagerConnectionPool</res-jndi-name>
    </resource-manager>
  </resource-managers>

    <secure>false</secure>
    <container-configurations />
    <enterprise-beans>
        <entity>
     <ejb-name>LanguageBean</ejb-name>
     <jndi-name>MailManager/Language</jndi-name>
     <configuration-name></configuration-name>
        </entity>
    </enterprise-beans>
</jboss>


ejb-jar.xml


<?xml version="1.0"?>

<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise
JavaBeans 1.1//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd">

<ejb-jar>
  <display-name>MAILMANAGER</display-name>


<enterprise-beans>
  <entity>
    <description>Models a language entity</description>
    <ejb-name>LanguageBean</ejb-name>
    <home>nexse.LanguageHome</home>
    <remote>nexse.Language</remote>
    <ejb-class>nexse.LanguageBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.Integer</prim-key-class>
    <reentrant>False</reentrant>
    <cmp-field><field-name>id</field-name></cmp-field>
    <cmp-field><field-name>name</field-name></cmp-field>
    <primkey-field>id</primkey-field>

  <resource-ref>
    <description>Data source</description>
    <res-ref-name>MailDB</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
  </resource-ref>


  </entity>

<!-- more beans here -->

</enterprise-beans>

<assembly-descriptor>
    <container-transaction>
      <method>
        <ejb-name>LanguageBean</ejb-name>
        <method-name>*</method-name>
      </method>
      <trans-attribute>Required</trans-attribute>
    </container-transaction>
  </assembly-descriptor>
</ejb-jar>

jaws.xml

<?xml version="1.0" encoding="UTF-8"?>
<jaws>
  <!-- Added by Domenico 2/1/2001 -->
  <datasource>xa.MailManagerConnectionPool</datasource>
  <type-mapping>Oracle8</type-mapping>
  <type-mappings>
          <type-mapping>
            <name>Oracle8</name>
.....

Can somebody help me?

Thanks




--
Gambelli Domenico
NEXSE Srl
Circ.ne Appia 113
I-00179 - Rome, Italy
Tel  +39 06 78851662
Fax  +39 06 7810528
GSM :+39 0347 7513467




--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to