2 Replies Latest reply on Apr 3, 2008 1:57 PM by 505107

    Error JBO-33003 ADF Business component as an EJB remote


      I need to deploy an ADF application (model in business component and view in ADF Faces) in a multi-tier architecture. I deployed the MODEL project (bc4j) in an OAS’s OC4J instance. Now, when I try to test de application I get the following error:

      oracle.jbo.ConfigException: JBO-33003: Connection name <my_conn_to_oas> not defined.

      Also, I tried to connect to de EJB session from my VIEW project, so I changed the file DataBindings.cpx. I changed the line Configuration="AMProyectosLocal" to Configuration="AMProyectosAS_DS".

      When I run the view project I get the same error:

      500 Internal Server Error
      oracle.jbo.ConfigException: JBO-33003: Connection name AppServerPenny not defined
           at oracle.jbo.client.Configuration.initializeFromConnectionName(Configuration.java:1103)
           at oracle.jbo.client.Configuration.getConfiguration(Configuration.java:538)
           at oracle.jbo.client.Configuration.getConfiguration(Configuration.java:461)
           at oracle.jbo.client.Configuration.getConfiguration(Configuration.java:436)
           at oracle.jbo.common.ampool.PoolMgr.createPool(PoolMgr.java:287)
           at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:539)
           at oracle.jbo.common.ampool.ContextPoolManager.findPool(ContextPoolManager.java:165)
           at oracle.adf.model.bc4j.DataControlFactoryImpl.findOrCreateSessionCookie(DataControlFactoryImpl.java:136)
           at oracle.adf.model.bc4j.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:222)
           at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:76)
           at oracle.adf.model.BindingContext.get(BindingContext.java:457)

      What is the problem?
      Where can I find the process to deploy in a multi-tier platform?

      Please, help me.
        • 1. Re: Error JBO-33003 ADF Business component as an EJB remote

          Usually, an error such as JBO-33003: Connection name ... not defined
          is a wrong setup you can find in the data-sources.xml file, for ex:

          the correct syntax should be:
          instead of

          You can check the Help menu in JDev and search for Deploy, you'll
          find there most of the deploy informations you are looking for.

          • 2. Re: Error JBO-33003 ADF Business component as an EJB remote
            Thank for your help.

            I reviewed the datasource configuration and it is Ok.

            The connection’s name isn't a datasource name. It is the connection’s name to the APPLICATION SERVER. I reviewed the bc4j.xcfg file and it has the following definition:

            <ConnectionDefinition name="AppServerPenny">
            <ENTRY name="remote-oracle-home" value="/home/oracle/OAS/10.2.0/middle"/>
            <ENTRY name="ConnectionType" value="Oracle_AS_10g_UNIX"/>
            <ENTRY name="HOSTNAME" value="penny.asesoftware.com"/>
            <ENTRY name="DeployPassword" value="true"/>
            <ENTRY name="oc4j-instance-name" value="OC4J_ARES"/>
            <ENTRY name="user" value="ias_admin"/>
            <ENTRY name="ConnectionName" value="AppServerPenny"/>
            <ENTRY name="ormi-username" value="admin"/>
            <ENTRY name="ormi-client-url" value="ormi://penny.asesoftware.com:23791"/>
            <ENTRY name="IIOP_PORT" value="1810"/>
            <ENTRY name="password">
            <ENTRY name="ormi-password" value="manager123"/>
            <ENTRY name="DeployPassword" value="true"/>

            Why does the test utility not found the AppServerPenny connection?