Sunday, June 3, 2012

bc4j.xcfg is not found in the classpath

Error:
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.ConfigException, msg=JBO-33001: Configuration file /trendModel/View/common/bc4j.xcfg is not found in the classpath.

Hmmmmmmmmmmmmm???????

Found that somehow I had added an additional 2 AM's in my view "DataBindings.cpx" / Data Binding Registry under Data Control Usages...
So I looked in the source and found the culprits then removed them from the source and all was well!


   the culprits:


 <BC4JDataControl id="trendAMDataControl" Package="trendModel.View"
                     FactoryClass="oracle.adf.model.bc4j.DataControlFactoryImpl" SupportsTransactions="true"
                     SupportsFindMode="true" SupportsRangesize="true" SupportsResetState="true"
                     SupportsSortCollection="true" Configuration="trendAMLocal" syncMode="Immediate"
                     xmlns="http://xmlns.oracle.com/adfm/datacontrol"/>
    <BC4JDataControl id="AppModuleDataControl" Package="model"
                     FactoryClass="oracle.adf.model.bc4j.DataControlFactoryImpl" SupportsTransactions="true"
                     SupportsFindMode="true" SupportsRangesize="true" SupportsResetState="true"
                     SupportsSortCollection="true" Configuration="AppModuleLocal" syncMode="Immediate"
                     xmlns="http://xmlns.oracle.com/adfm/datacontrol"/>