ADF: Configuration.createRootApplicationModule() generates bc4j.xcfg error

I am using JDeveloper 11.1.1.5 to create a web service which performs mathematical calculations based on a varying number of inputs. Some of the inputs serve as criteria for querying DB tables to obtain static numerical values. This static data is then plugged into a formula to produce the output of the service. My approach is to build an ADF application with 2 projects: a "service" project which contains a java-based web service created using the "Create Java Web Service From WSDL" wizard; a "model" project that consists of an Application Module and some read-only SQL query-based views as it's Data Model. Additionally, the AppModule.xml editing tool was used to generate an AppModuleImpl.java class and it's associated client interface classes. The intent is to instantiate the App Module from the service project and call a custom method to perform the required DB lookup. The code to do this looks as follows:
In service implementation class (com.util.formula.service.FormulaCalculationServiceImpl.calculateLicensingFee):
import com.sesac.formula.lkup.client.AppModuleClient; //generated by App Module Java Class wizard
import oracle.jbo.client.Configuration;
AppModuleClient lkup;
try {
lkup = (AppModuleClient)Configuration.createRootApplicationModule("com.util.formula.lkup.AppModule", "AppModuleLocal");
} catch (Exception e) {
e.printStackTrace();
The following exception is always thrown:
oracle.jbo.ConfigException: JBO-33001: Configuration file /com/util/formula/lkup/common/bc4j.xcfg is not found in the classpath.
     at oracle.jbo.client.Configuration.loadFromClassPath(Configuration.java:467)
     at oracle.jbo.common.ampool.PoolMgr.loadConfiguration(PoolMgr.java:600)
     at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:526)
     at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1505)
     at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1482)
     at com.util.formula.service.FormulaCalculationServiceImpl.calculateLicensingFee(FormulaCalculationServiceImpl.java:28)
... more
The service project Properties -> Dependencies specifies a dependency on the model project. I have tried making the dependency on both the Build Output and on the BC_Common.jar generated by the model project - neither works. I have exploded the the .war generated for the service project and verified that bc4j.xcfg does indeed exist at the classpath location described in the error message. It also exists in the BC_Common.jar at the correct location.
I also tried the following alternative approach to instantiating the App Module:
import com.util.formula.model.client.AppModuleClient;
import oracle.adf.model.BindingContext;
import oracle.jbo.uicli.binding.JUApplication;
AppModuleClient lkup;
try {
BindingContext bc = oracle.adf.model.BindingContext.getCurrent();
JUApplication japp = (JUApplication)bc.getCurrentBindingsEntry().get("AppModuleDataControl");
lkup = (AppModuleClient)japp.getApplicationModule();
} catch (Exception e) {
e.printStackTrace();
In this case, BindingContext.getCurrent() returns null.
The same App Module that I'm unable to instantiate as above runs fine in Oracle Business Component Browser. I chose this approach because I have been using App Modules in the same development environment when they were directly bound to UI's and Service Interfaces with good success and I liked the features it provided. I've spent way too much time beating on this and searching every forum I could find. The example for using Configuration.createRootApplicationModule() came right out of Chapter 9, Section 10 of Oracle Fusion Middleware - Fusion Developer's Guide for Oracle Application Development Framework (11g Release 1). Any ideas would be greatly appreciated.
Thanks,
Tom

I guess you get a new connection this way. If you have an ApplicationModule you can get the internal connection this way    public Connection getCurrentConnection(ApplicationModule aApp)
        Statement st = null;
        try
            // create Dummy Statement to get the connection
            st = aApp.getDBTransaction().createStatement(0);
            return st.getConnection();
        catch (SQLException s)
           // Log some message here and do something
        finally
            // close statement
            if (st != null)
                try
                    st.close();
                catch (SQLException s2)
    }Timo

Similar Messages

  • What causes JBO-33001: Cannot find the configuration file /common/bc4j.xcfg

    I know that the jbo exception message:
    JBO-33001: Cannot find the configuration file /common/bc4j.xcfg
    can be caused by several things including the file really not being there. But in my current case, I know it is there and can be found throgh the classpath, because I actually find it using Configuration.buildConfigurationFileNameFromClassPath and
    Configuration.getConfiguration just before calling Configuration.createRootApplicationModule. Is there any way to turn on a diagnostic to find out what is really wrong?
    I would also like to request an enhancement to give meaningful messages in the jbo exception.
    Roger

    This is on jdev 903 with patch running a local application attempting to connect to standalone OC4J 903. I think the error occurs before there is ever any attempt to make the connection to OC4J. Having one big catch-all exception for everything that can go wrong in creating the AM is pretty poor. I know in the past I have done manual editing of bc4j.xcfg and XML sentax errors cause exactly the same exception as not having the file at all. That is why I would at least like a list of all the causes behind the exception so I can go through and check them all.
    Thanks,
    Roger

  • JBO-33001: Cannot find the configuration file /common/bc4j.xcfg in the clas

    I m trying to insert into the database from a form.My action class is given below.The application compiles okey, the else option works fine, but during the if option I get the following error:
    oracle.jbo.JboException: JBO-33001: Cannot find the configuration file /common/bc4j.xcfg in the classpath
    But I checked to see that the file is in the correct class path.What are the other reasons for the error to hapen?Please anyone!!
    My action class is as below:
    public class InsertDAAction extends Action
    public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
    String facingName=request.getParameter("facingName");
    String facingDirection=request.getParameter("facingDirection");
    if (facingName!=null && facingDirection!=null && facingName.equals("john") && facingDirection.equals("meyer")) {
    String amDef = "AppModule";
    String config = "AppModuleLocal";
    ApplicationModule am = Configuration.createRootApplicationModule(amDef, config);
    AppModuleImpl myAm = (AppModuleImpl)am;
    myAm.createNewOrder(facingName,facingDirection);
    return mapping.findForward("success");
    else {
    return mapping.findForward("fail");
    }

    I have set the dependency.
    and its not in the WAR file.
    I think I have the problem in this
    ApplicationModule am = Configuration.createRootApplicationModule(amDef, config);
    You can see the complete code above.IS there any alternative method for the commenction to the App Module
    This have troubled me since almosta week but still cant get out.

  • JBO-33001: Cannot find the configuration ...bc4j.xcfg in the classpath

    Everytime I create a new Business Components Project (holding all EO and VO's) and I try to grab the application Module from the request object through java, I get the following error:
    oracle.jbo.JboException: JBO-33001: Cannot find the configuration file /org/cgfns/cerpass/bc/accounttransactions/common/bc4j.xcfg in the classpath
    Any ideas as to why this is happening??
    -Teri Kemple
    [email protected]

    look at the following posting
    one-many-many relationship

  • ADF Jdbc Connection from bc4j.xcfg

    How do you obtain a JdbcConnection from bc4j.xcfg file.
    I am creating a DBUnit which needs a JdbcConnection object to properly setup datasets?
    how about if I use this:
    ApplicationModule module = Configuration.createApplicationModule(); //the applicationModule was successfully created
    Connection conn = DriverManager.getConnection(Configuration.CONNECT_STRING,Configuration.USER_NAME, Configuration.PASS_WORD); Will this get the existing connection or create a new connection?

    I guess you get a new connection this way. If you have an ApplicationModule you can get the internal connection this way    public Connection getCurrentConnection(ApplicationModule aApp)
            Statement st = null;
            try
                // create Dummy Statement to get the connection
                st = aApp.getDBTransaction().createStatement(0);
                return st.getConnection();
            catch (SQLException s)
               // Log some message here and do something
            finally
                // close statement
                if (st != null)
                    try
                        st.close();
                    catch (SQLException s2)
        }Timo

  • Configuration file bc4j.xcfg not found. Old pages work, new ones don't.

    , I've spent way to much time already trying to troubleshoot this problem.
    Simply put, everything works fine on JDeveloper 9.0.3. The same application can Not view anything on JDeveloper 9.0.2
    I'm deploying the application to Oracle9ias 9.0.3 and I come up with the following error:
    Error Message: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-33001: Cannot find the configuration file **/common/bc4j.xcfg in the classpath
    This error only occurs when I deploy the application through Enterprise Manager. Yet when directly deploying the files all application pages that were unchanged have no difficulty working, but the application pages that have changes (database tables changed as well) don't work properly. In fact, they attempt to make View Object select statements that are not contained in the new version of the application (PK name has changed).
    How can I get the pages pointed to the new bc4j.xcfg? Is there something wrong with the configuration on the server? (I've already attempted: including the bc4j.xcfg in the additional path, sychronizing, deploying the business components, and even recompiling in 9.0.2)

    We had the same error message here. We resolved it by changing the format of the password in the bc4j.xcfg file. To do this, find the bc4j.xcfg file in your project directory. Using notepad or another external editor, edit the one under the "src" directory. Find the password tag under your connection in the file.
    Edit it so that it reads like this:
    <password value="<yourpassword>" />
    Let me know if it worked..
    BTW, I have also heard that upgrading your Java instalation on your server will also fix the problem, but we have not tried that.

  • Cannot find bc4j.xcfg

    Hi,
    I have an application that use BC, however, I keep getting the following error. But the bc4j.xcfg is cleared in the class path, it looks valid and it is in the right place in the common directory under the application module directory. Any idea what the problem could be?
    TIA,
    Saul
    oracle.jbo.ConfigException: JBO-33001: Cannot find the configuration file /common/bc4j.xcfg in the classpath
         at oracle.jbo.client.Configuration.loadFromClassPath(Configuration.java:367)
         at oracle.jbo.common.ampool.PoolMgr.createPool(PoolMgr.java:284)
         at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:539)
         at oracle.jbo.common.ampool.ContextPoolManager.findPool(ContextPoolManager.java:165)
         at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1498)
         at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1476)
         at com.arrow.refarch.model.ExtDataService.getXmlStringFromAppModule(ExtDataService.java:162)
         at com.arrow.refarch.model.ExtDataService.getXmlStringFromAppModule(ExtDataService.java:150)
         at com.arrow.refarch.model.ExtDataService.getJSONStringFromAppModule(ExtDataService.java:130)
         at com.arrow.refarch.model.ExtDataService.getOutputStringFromAppModule(ExtDataService.java:124)
         at com.arrow.refarch.model.ExtDataService.processExtRequest(ExtDataService.java:115)
         at com.arrow.refarch.listener.ExtDataPullPageLifecycle.initContext(ExtDataPullPageLifecycle.java:82)
         at oracle.adf.controller.v2.lifecycle.Lifecycle$9.execute(Lifecycle.java:197)
         at oracle.adf.controller.v2.lifecycle.Lifecycle.executePhase(Lifecycle.java:116)
         at oracle.adf.controller.faces.lifecycle.ADFPhaseListener.mav$executePhase(ADFPhaseListener.java:29)
         at oracle.adf.controller.faces.lifecycle.ADFPhaseListener$4.after(ADFPhaseListener.java:324)
         at oracle.adf.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:90)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:254)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)

    hi Saul
    (1) Would you mind posting the classpath elements of this file ...
    <your-jdevstudio10133-dir>\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\application-deployments\current-workspace-app\<your-app-dir>\orion-web.xml
    ... right after you tried to run your application.
    (2) What is the package name you used for your Application Module?
    regards
    Jan

  • JboException: JBO-33001: Cannot find the configuration file /common/bc4j.xc

    Hello,
    i'm new on this board and found it while i was searching for an solution of my problem.
    I would like to apologize about my english, i try my best.
    Now lets come to my problem.
    I have 1 workspace with 2 projects.
    in project 1 there are entity objects, view objects and an application object.
    in project 2 there are jsp's action classes and form beans (i try to use Struts).
    in one jsp i try this:
    <jbo:ApplicationModule id="am" configname="*.*.*.bc4j.ReportingModule" releasemode="Stateful" />
    <jbo: DataSource id="ds" appid="am" viewobject="*.*.*.bc4j.HilfeTexteView" />
    <select name="TEXT" size="1">
    <option value="-1" selected>sonstiges</option>
    <jbo:RowsetIterate datasource="ds" changecurrentrow="true">
    <option value="<jbo:ShowValue datasource="ds" dataitem="TEXT"></jbo:ShowValue>">
    <jbo:ShowValue datasource="ds" dataitem="AUTOR"></jbo:ShowValue>
    </option>
    </jbo:RowsetIterate>
    </select>
    <jbo:ReleasePageResources releasemode="Stateful" appid="am" />
    compilation finish successful, but when i try to run this jsp, there appear an error like:
    oracle.jbo.JboException: JBO-33001: Cannot find the configuration file /common/bc4j.xcfg in the classpath
    i think it dont work, because the configuration file bc4j.xcfg is in project 1 folder and i try to take it out of projeck 2 folder
    I hope you know what i try to tell you
    i will be very happy, when somebody could help me.
    greetings
    Rene

    Please refer to other posts for the JboException.
    JBO-33001: Cannot find the configuration file /model/common/bc4j.xcfg
    Accessing BC4J ApplicationModule from another Project

  • Multiple BC4J.Xcfg

    I merged two model project in one project,everything is ok, now I have 4 AM, 2 from project one and 2 from project two, first two AM refer to a different BC4J.xcfg and second two AM refer to another BC4J.xcfg, I could'nt find any metadeta file(xml) that specifies location of BC4J for AM's? how AM knows which BC4J it has to look for?
    Edited by: 908398 on Jan 18, 2013 8:06 AM

    Location of bc4j.xcfg is relative to the package of the corresponding AMs. In other words, ADF creates a separate bc4j.xcfg file for each package containing AMs (e.g. if some AMs are in one and same package, then they share one and same bc4j.xcfg file). The corresponding bc4j.xcfg file is located in the package whose name is composed of the AM's package name with added ".common" at the end (for example, if your AM is located in the package <tt>mypackage.am</tt>, then the bc4j.xcfg file containing the configurations of this AM is located in the package <tt>mypackage.am.common</tt>).
    Dimitar

  • Error: Configuration file /model/common/bc4j.xcfg is not found in the classpath???

    Hi Everyone,
    My Jdev version is 11.1.2.3.0.
    I have developed one ADF application and was working very fine.
    But the Jdev got crashed so i re-installed the same version but the application which was running earlier is not working now. I tried by installing different versions of Jdevelopers but none seems worked for me.
    Error is given below:
    <Utils> <buildFacesMessage> ADF: Adding the following JSF error message: Configuration file /model/common/bc4j.xcfg is not found in the classpath.
    oracle.jbo.ConfigException: JBO-33001: Configuration file /model/common/bc4j.xcfg is not found in the classpath.
    at oracle.jbo.client.Configuration.loadFromClassPath(Configuration.java:471)
    at oracle.jbo.common.ampool.PoolMgr.loadConfiguration(PoolMgr.java:600)
    What is this error about?
    How can i solve this error t make my application to run?
    Please give ur valuable suggestions...
    Thanks.

    Configuration file bc4j.xcfg not found in the classpath.

  • Error Configuration File bc4j.xcfg is not found in the classpath

    I am new to JDeveloper and ADF, and am suffering through the steep learning curve. This story may prove useful to someone, someday.
    I just finished resolving a “bc4j.xcfg is not found in the classpath” error and it added another level of understanding to how things are glued together.
    There is a back story. I had made a first pass at creating a test application. When I was done I started “enhancing” the application. One of the changes was to add a column to a view in the database. Try as I might I could not get that change propagated to the business component. This is still on my to-figure-out list. In frustration I dropped the model and recreated it from the database tables and views. Testing it with the “AppModule” in the model project I could see the view with the new column. However, when I went to run one of my old jspx pages, I now got the dreaded “bc4j.xcfg is not found in the classpath” – and this was for a page that was not using my updated view. As the military expression goes, “Whiskey Tango Foxtrot”.
    It is now working again, and here is what I found.
    I noticed in the error message that it could not find “/cloudapp1/common/bc4j.xcfg”. When I searched for the file I found it in /cloudapp1/model/common/bc4j.xcfg. I went to the project properties for the model project and on the “Project Source Paths” node I saw at the bottom of the page Default Package: cloudapp1.model. Ah Ha! That is where the /cloudapp1/model structure came from. Then I remembered that the first time through I had changed the default package to just cloudapp1. Part of my experimenting with the product. When I quickly rebuilt the model project I did not do that.
    Next I found the DataBindings.cpx that one note alluded to. It is in the ViewController project. There I found an “OC4JDataControl” section. In there was and entry Package=”cloudapp1”. This was the original package name. When I rebuilt the model, this was not updated. Anyway, I changed it to Package=”cloudapp1.model”. [ Insight:  When you first build an app it can make some good guesses about what is needed, but when you start adding and dropping projects it is much harder to guess how they are glued together.]
    Raising a cup of coffee in triumph I re-ran the test page.
    Dang! Still a bc4j.xcfg not found in the classpath – but this time the path mentioned matched the path where I knew the file to be.
    I am nothing if not stubborn. I knew the problem just had to be in the ViewController project, because the AppModule in the model project worked. So, I started going through all of the project properties. I finally came across something called “Dependencies” that had big ugly red circles with an x in them. Ah ha. This is what tells the ViewController what other projects (like the business model project) this ViewController is dependent on. Although the editing process it not obvious I eventually pointed it to the new model project. [Deepening insight.]
    When I re-ran the test page it worked! Coffee finished. Story with a happy ending.
    Summary:
    1.     Make sure the package name in the ViewController DataBindings.cpx matches the one in your model project.
    2.     Make sure the ViewController Dependencies entry points to the model project.

    Thought I'd add a little bit more to this post I found helpful.
    I'm creating an application which uses other application ViewController projects deployed as library .jar files. If your .jar ViewController project deployment profiles don't have your Model project as a dependency, you will get the .bc4j error as well.
    This can be confusing when the ViewController pages function correctly when run within their own application context, but somehow lose their bc4j when deployed as a .jar.
    Hope that helps someone down the road.

  • Jdev 10.1.2  JBO-33001: Cannot find the configuration file bc4j.xcfg in cla

    Hi all,
    i have a ear application containing a web app and a bc4j module deployed on the embedded oc4j instance inside JDeveloper 10.1.2 (build 1929). Inside the model i have a topic durable subscriber that, when a message is sent, invoke, by reflection, a java class to perform the job. Inside the java class i need an Application Module so i write
    ApplicationModule am = Configuration.createRootApplicationModule(fullClassName, configuration);
    but i get the error in the subject.
    Here is a piece of the stack trace
    oracle.jbo.JboException: JBO-33001: Cannot find the configuration file /it/despa
    r/orderplatform/model/services/common/bc4j.xcfg in the classpath
    at oracle.jbo.client.Configuration.loadFromClassPath(Configuration.java:
    358)
    at oracle.jbo.common.ampool.PoolMgr.createPool(PoolMgr.java:281)
    at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:482)
    at oracle.jbo.common.ampool.ContextPoolManager.findPool(ContextPoolManag
    er.java:165)
    at oracle.jbo.client.Configuration.createRootApplicationModule(Configura
    tion.java:1457)
    at oracle.jbo.client.Configuration.createRootApplicationModule(Configura
    tion.java:1435)
    at it.despar.orderplatform.task.GenericTask.getApplicationModule(Generic
    Task.java:40)
    at it.despar.orderplatform.task.trasmission.ValidateTrasmissionTask.<ini
    t>(ValidateTrasmissionTask.java:38)
    at it.despar.orderplatform.jms.utils.TaskInvoker.invoke(TaskInvoker.java
    :27)
    at it.despar.orderplatform.jms.listener.TextListener.onMessage(TextListe
    ner.java:60)
    at com.seebeyond.jms.client.STCMessageConsumer.onMessage(STCMessageConsu
    mer.java:529)
    at com.seebeyond.jms.client.STCSession.onMessage(STCSession.java:259)
    at com.seebeyond.jms.sockets.ConsumerSocket.deliverMessage(ConsumerSocke
    t.java:346)
    at com.seebeyond.jms.sockets.ThreadPerConnectionMgr$ConnThread.run(Threa
    dPerConnectionMgr.java:230)
    If i invoke the java class (the task) by command line inside jdev all works fine.
    I've read all the stuff about this exception but they do not apply to mi problem (I run the adf runtime installer, i try with an oc4j extended and standalone....)
    Please help us. Thanks
    Any ideas?
    Suggestion?

    This program is an example of basically what ADFBC will be trying to do to open/parse the bc4j.xcfg file. Can you incorporate the same lines into your test program to see if it also behaves the same in your JMS-initiated Java class ?
    Of course, you'll need to substitute "sample/common/bc4j.xcfg" with your relevant path name.
    package sample;
    import java.io.IOException;
    import oracle.xml.parser.v2.DOMParser;
    import oracle.xml.parser.v2.XMLDocument;
    import oracle.xml.parser.v2.XMLParseException;
    import org.xml.sax.SAXException;
    public class Class1 {
      public static void main(String[] args) throws XMLParseException,
                                                      SAXException, IOException {
        DOMParser d = new DOMParser();
       d.parse(Thread.currentThread().getContextClassLoader().getResource("sample/common/bc4j.xcfg"));
        XMLDocument doc = d.getDocument();
        doc.print(System.out);
    }

  • JBO-33001: Cannot find the configuration file /model/common/bc4j.xcfg

    I'm using ADF and trying to code a data action as follows:
    package checks.view;
    import oracle.adf.controller.struts.actions.DataActionContext;
    import oracle.adf.controller.struts.actions.DataForwardAction;
    import oracle.jbo.ApplicationModule;
    import oracle.jbo.Row;
    import oracle.jbo.ViewObject;
    import oracle.jbo.client.Configuration;
    public class DataAction1Action extends DataForwardAction {
    protected void findForward(DataActionContext ctx) throws Exception {
    super.findForward(ctx);
    String am = "model.ChkModule";
    String cf = "ChkModuleLocal";
    ApplicationModule apm = Configuration.createRootApplicationModule(am,cf);
    ViewObject vo = apm.findViewObject("LateCountView");
    vo.executeQuery();
    Row r = vo.first();
    String test = r.getAttribute("LateCount").toString();
    System.out.println(test);
    The code compiles OK, but when I run it I get the above error message.
    Can someone help me with this.
    Thanks

    This is the same problem I am having. The "Model" product contains the AppModule and it's entity and view objects.
    I right-clicked on the AppModule and chose "Business Components Deployment". This created in the Resources folder a Model.bcdeploy, which contained ModelMiddleTier1.deploy and ModelCommon1.deploy.
    When I went to the project properties of my "WS" project in the same workspace, in the Dependencies panel, Model.bcdeploy and its 2 .deploy files were now listed bewas now listed beneath model.jpr. There is a check mark beside model.jpr. I thought this would do it.
    I then recreated the "J2EE Web Service" from class file in the WS project, and deployed to the external OC4J.
    When I test the web service using OC4J's test facility, I still get the same JBO-33001 error complaining that the adfws/model/common/bc4j.xcfg file is not in the classpath.
    Does something else need done to get it to be found at run time?
    This is JDev 10.1.3.
    Thanks for any ideas.
    Morga

  • JBO 33001 - Configuration file bc4j.xcfg not found

    I am facing the below issue in a standalone deployment while trying to open a particular UI:
    "JBO-33001: Configuration file
    /oracle/apps/scm/receiptAccounting/accrualClearing/adjustAccruals/uiModel/applicationModule/common/bc4j.xcfg is not found in the classpath."
    Local deployment through integrated WLS works fine.
    Above file bc4j.xcfg is present at the correct location(as mentioned in the error) in classes folder. Also, below conditions are satisfied which could have been the possible causes:
    1.) BC4J data control entry in DataBindings.cpx is correct.
    2.) Dependencies from UI to Model project are proper.
    The issue could be because the libraries present on the server are not in sync with the jdev version and could have been there due to jdev version migration.
    Any pointers on how to resolve the above problem will be greatly helpful.

    The issue could be because the libraries present on the server are not in sync with the jdev version and could have been there due to jdev version migration. Have you checked this?
    Does your wls use the right adf runtime for hte jdev version you used to build the application?
    Timo

  • JUNIT test failure-Configuration file bc4j.xcfg not found in the classpath

    Hi All,
    As part of an ESS project,Im having a model project containing a VO(parameters VO).This VO is configured to have Read-only access through SQL query and have only one transient attribute each.For the model projects containing the VO for pre merge checker compliance I had to create JUNIT Test projects containing new AMs for testing the parametersVO. While running the JUNIT tests I got an exception like
    “oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.ConfigException, msg=JBO-33001: Configuration file /oracle/apps/hcm/goals/core/dataMigration/publicEssModel/test/applicationModule/common/bc4j.xcfg is not found in the classpath.”.—even though this file is contained in both the src/classes folder of the project.
    When i try to run the TestAM I'm getting an exception like 'configuration tester.xcfg not found in the calsspath.
    While debugging this error, we found that we are able to successfully run the JUNIT tests if we make some changes in the adf-config.xml file of the Application. The change required is to comment out the mdsC:adf-mds-config tag in the xml file.
    After doing this change Im also able to run my AM without any exception.
    Is this a known issue?.
    Since modifying the adf-config.xml is not a recommended practice is there any workaround that we can get rid of this exception.
    Regards,
    Ajin.

    Just checked but could only find this thread Unable to run ADFBC JUNIT Test Classes with JDEV11G 11.1.1.6
    As it's also dealing with junit and 11.1.1.6.0 you might want to read it.
    Timo

Maybe you are looking for

  • Pricing procedure of free goods

    Could anyone please tell me the effect of pricing procedure in free godds?And what is the difference between pricing procedure in free goods(IMG->Sales and Distribution->Basic Funcions->Free Goods) and pricing procedure in pricing(IMG->Sales and Dist

  • Create a View with a GTT.

    Hi. I would like to create a view for a GTT, but I create the GTT on my application, when I try to create the view it says the GTT doesn't exist (I create the view before on my Data Base), this view has trigger instead of insert, and when I am trying

  • Taking a long time to drop a user?

    I have code that sets up user accounts and creates a set of tables. when those accounts need to be recreated, I have code that drops the accounts. There are no sessions connected as the user. I go drop user <username> cascade; and it takes a long tim

  • Unknown devices appearing in my access list

    I have a WPN824 wireless router and in the last two weeks, I've found three devices in the access list that I didn't put there.  I first found the three devices last week and deleted them from the list.  Tonight, I found them again.  All three device

  • Slow playback on .wmv files...

    Hi all, I'm using QT 7.6.4 with the appropriate updated version of Flip4Mac, and I'm noticing that when I open a .wmv file, it takes awhile for the entire file to load. In previous versions, I could fast forward to any section of the video, but not I