Startup class cannot find a config file.

I have written a startup class to configure log4j in Weblogic.
The class runs but cannot find the configuration file. The
code for the startup class is as follows....
package com.n2bb.ams.common.util;
import java.io.FileInputStream;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.util.Properties;
import com.n2bb.ams.common.util.FileLocator;
import org.apache.log4j.xml.DOMConfigurator;
* Insert the type's description here.
* Creation date: (12/5/00 11:12:13 AM)
* @author: Administrator
public class ApplicationStartUp implements weblogic.common.T3StartupDef {
     * ApplicationStartUp constructor comment.
     public ApplicationStartUp() {
          super();
     * setServices method comment.
     public void setServices(weblogic.common.T3ServicesDef arg1) {
     * startup method comment.
     public String startup(String arg1, java.util.Hashtable arg2) throws Exception {
          String resource = null;
          try {
               resource = (String) arg2.get("configFileName");
               System.out.println("ConfigFileName: " + resource);
               URL configFileResource = ApplicationStartUp.class.getResource(resource);
               System.out.println("configFileResource: " + configFileResource.toString());
               String file = configFileResource.getFile();     
               DOMConfigurator.configure(file);
               return "Log4j configuration initialized completed.";          
          } catch (Exception e) {
               System.out.println("Cannot open config file: " + resource);
               return "Log4j configuration failed to initialized.";
The section of the config.xml the calls my startup class looks
like....
<StartupClass
Arguments="configFileName=/bea/user_projects/mydomain/log4j-config.xml"
ClassName="com.n2bb.ams.common.util.ApplicationStartUp"
Name="AMS Startup Class" Targets="myserver"/>
I have tested the code in a standalone class and it works fine.
Why can't I find the log4j-config.xml file? Any help would be
greatly appreciated.

Wow, your system must have a long history of having picked up assorted bad stuff ...
You have CleanMyMac2, which should definitely be removed.
You have other stuff (MacCleanse, for example) that I don't have first-hand knowledge about but should very likely be removed.
You are using Google Chrome which is a resource hog.
Further, your Adobe Flash player is not current.
If I had all these issues, I would do a clean install of Yosemite and only reintroduce the essential stuff.
You can search for the .plist files by opening finder, holding down the Option key, and doing Go > Library from Finder's menu and then searching for the file(s).

Similar Messages

  • Sync archive is successful, but cannot find latest config file in the config viewer

    Sync archive is successful, but cannot find latest config file in the config viewer, Prime LMS 4.2.4

    Hi,
    Go Admin > Collection Settings > Config > Config Archive Settings
    Make sure   enable shadow directory is Checked
    Also check you have folders like shadow , devfiles ..etc under NMSROOT/CSCOpx/files/rme/dcma
    If these folders are missing ... then it is a database issue..
    if files and folders are fine then check if it happening for any particulr device or set of devices or all the devices ?
    Thanks-
    Afroz
    ***Ratings Encourages Contributors ***

  • Discussion forum Cannot find the configuration file config\common\bc4j.xcfg

    I successfully deployed the discussion form portlet and registered it with portal. I can reach the provider test page at Http://myserver:7777/forum/providers/forum
    Everything seems to be good except when I add the portlet to a page, and then view the page, I see an error in the portlet:
    "Unable to perform the operation: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-33001: Cannot find the configuration file config\common\bc4j.xcfg in the classpath"
    I have verified that bc4j.xcfg (as I have modified it) exists in:
    $IAS_HOME\j2ee\OC4J_Portal\applications\forum\forum\WEB-INF\classes\config\common
    I followed the instructions exactly. Does anyone know how to resolve this error? I'm running portal 9.0.2.3.0B, PDK 9.0.2.6.2 and the latest discussion forum download (downloaded 7/1/2004)
    Many thanks in advance!

    No ideas anyone?

  • Cannot find the configuration file in classpath

    Cannot find the configuration file /oracle/apps/prc/po/....applicationModule/common/bc4j.xcfg in the classpath.
    Hi!
    I'm trying to run the following code:
    String appModule = "oracle.apps.prc.po.manageDocument.uiModel.viewDocument.applicationModule.ViewPurchasingDocumentApplicationModule";
    String cfg = "ViewPurchasingDocumentApplicationModuleLocal";
    ApplicationModule applicationModule = (ApplicationModule)Configuration.createRootApplicationModule(appModule, cfg);
    I get this error message:
    Exception in thread "main" oracle.jbo.ConfigException: JBO-33001: Cannot find the configuration file /oracle/apps/prc/po/manageDocument/uiModel/viewDocument/applicationModule/common/bc4j.xcfg in the classpath
         at oracle.jbo.client.Configuration.loadFromClassPath(Configuration.java:430)
         at oracle.jbo.common.ampool.PoolMgr.createPool(PoolMgr.java:293)
         at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:557)
         at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1334)
         at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1312)
         at oracle.apps.prc.po.manageDocument.model.viewPdf.generateXml.getXMLData(generateXml.java:26)
         at oracle.apps.prc.po.manageDocument.model.viewPdf.generateXml.main(generateXml.java:39)
    I have checked and the config file does exist in the correct directory, and I can see it in my Application Module - Configurations. Any idea why this is happening? Am I supposed to configure something specifically for this or add it in my classpath? If so, how am I supposed to do it?
    Thanks
    Mansi
    Edited by: Mansi G on Oct 6, 2008 11:56 AM

    Where is the code you posted? Running in a separate project, I assume? Does that project have a dependency on the project containing the app module specified?
    And just to check (although by default, JDev should do this for you)--the app module project has been compiled since adding the configuration, right? You need to check to make sure the config exists not only under Project/src, but under Project/classes.
    Edited by: Avrom Roy-Faderman on Oct 6, 2008 2:02 PM
    Oh, and BTW--I assume this is not a typical ADF application, right? In a standard ADF application, you would very rarely need to instantiate an application module in code like this; you could just let the data binding facility do it for you. The technique like the one you're using is most appropriate for purely programmatic, no-UI cases. (e.g., once I tried to implement an SMTP server backed by business components. That was an appropriate case for ditching databindings and doing the sort of thing you're doing, because it had no view layer (because it had no UI to render).

  • Cannot find the Config DN or the Searchbase: OAM

    Hello,
    I'm getting a "Cannot find the Config DN or the Searchbase" error when I try to configure the Identity Server via the webpass console. I have installed the Identity Server and Webpass successfully. I'm using ADSI to connect to AD, which is my Directory Sever.
    I am using implicit bind with ADSI. the user that is being used is an enterprise admin in the top level domain. The IIS 6 web server is also running with anonymous access as this same user. I have tried to configure my users to exist in a child domain while the configuration information lives in the top level domain. I extended schema in the top level domain. When this did not work, I tried to make both users and config data in the top level domain, which did not work either.
    Any suggestions why I'm getting this error?
    Thanks.

    Hi,
    Unfortunately that's a bit of a catchall error message, it could mean any of:
    - the schema is not correct ;
    - a typo in the config dn or searchbase ;
    - insufficient access rights ;
    - wrong/invalid person object class entered.
    Probably other stuff as well. My first thought would be to re-check the schema - if you updated in manually did you use the ADSchema.ldif file, and does the MMC Schema add-in definitely show all the oblix* objectclasses in the schema of the instance that you're connecting to?
    If all else fails, it will be necessary to have a look at the AD logs to see whcih ldap call from OAM is causing the problem (and/or the Identity Server at TRACE level).
    Regards,
    Colin

  • Cannot find the configuration file bc4j.xcfg

    I have compiled my Business Components Project in JDeveloper and all Projects that reference that BC Project are pointing to the correct classes directory, but I am still getting the following error:
    JBO-33001: Cannot find the configuration file /com/arca/personalinfo/bc/common/bc4j.xcfg in the classpath
    I have re-compiled all my projects in JDev 9.0.3 and have double-checked that the bc4j.xcfg file is in the classes directory.
    Ideas?
    Thanks!
    -Teri Kemple

    This usually is a class path omittion.
    Your Jdev jpr config [double click your jpr]
    - Configurations - Development - Paths
    output path is set to some place
    - Libraries
    - The libraries that are created for you need to have
    the classpath box have your output path set.
    Check your output path, then check all the library definitions
    for your project. There always seems to be more than one
    created for you.
    Good luck curt

  • 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.

  • 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);
    }

  • Configure: error: Cannot find php-config

    After security update 2008-002 for Leopard, the PHP module builder stops, because the PHP version running on the machine doesn't match the header files from the PHP-developer part. More info see: http://www.naquah.net/blog/dennis/2008/03/20/how-to-get-eaccelerator-working-aga in-after-installing-security-update-2008-0#comment-50
    After editing /usr/bin/php-config
    Change
    version="5.2.4" to version="5.2.5" and
    vernum="50204" to vernum="50205"
    and /usr/include/php/main/php_version.h
    Change
    #define PHPRELEASEVERSION 4 to #define PHPRELEASEVERSION 5
    #define PHP_VERSION "5.2.4" to #define PHP_VERSION "5.2.5" and
    #define PHPVERSIONID 50204 to #define PHPVERSIONID 50205
    the ./configure command stops with a:
    configure: error: Cannot find php-config. Please use --with-php-config=PATH
    even when explicitly specifying the php-config location, the ./configure --with-php-config=/usr/bin/php-config command still throws an identical error.
    The file is there, accessible and not empty:
    $ ls -l /usr/bin/php-config
    -r-xr-xr-x 1 root wheel 3031 22 mrt 21:44 /usr/bin/php-config
    $ head /usr/bin/php-config
    #! /bin/sh
    SED="/usr/bin/sed"
    prefix="/usr"
    exec_prefix="${prefix}"
    version="5.2.5"
    vernum="50205"
    include_dir="${prefix}/include/php"
    includes="-I$include_dir -I$include_dir/main -I$include_dir/TSRM -I$include_dir/Zend -I$include_dir/ext -I$include_dir/ext/date/lib"
    ldflags=" -L/usr/lib/mysql"
    Re installing Xcode 3.0 didn't solve the problem.
    What could be done to repair the (php) configure command, to allow me to build php modules again?

    On my installation I have both NVidia and mesa drivers installed, thus two sets of GL headers/libraries.
    For Mesa: SUNWxorg-mesa
    Nvidia: NVDAgraphics
    If you want to develop on your system you may want to install much more than just GL headers.
    Its a pity that Solaris packaging is not really flexible, so you better do a full install indeed...
    regards,
    __Fedor.

  • App Module Tester - JBO-33001: Cannot find the configuration file

    I have a custom main function for my application module. Launching the tester is fine
    launchTester("a.b.c.user_mnt.datamodel", "user_mntServiceLocal" );but if I comment out that line and add custom code:
    String amDef = "a.b.c.user_mnt.datamodel";
    String config = "user_mntServiceLocal";
    ApplicationModule am = Configuration.createRootApplicationModule(amDef,config);I get the following error:
    Diagnostics: (BC4J Bootstrap) Routing diagnostics to standard output
    (use -Djbo.debugoutput=silent to remove)
    [00] Diagnostic Properties: Timing:false Functions:false Linecount:true Threshold:6
    [01] CommonMessageBundle (language base) being initialized
    [02] Configuration.loadFromClassPath() failed
    [03] Stringmanager using default locale: 'en_US'
    [04] oracle.jbo.ConfigException: JBO-33001: Cannot find the configuration file
    /a/b/c/user_mnt/common/bc4j.xcfg in the classpathBut the bc4j.xcfg exists in
    /a/b/c/user_mnt/datamodel/common/bc4j.xcfgIs there a way to change where Jdev is looking for that file?
    Thank you,
    Brian

    Completely new workspace doesn't fix the problem.
    If I move the common folder to where jdev is looking it runs fine (I get a runtime error, but it runs none-the-less).
    Any help?
    Brian

  • 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

  • BUG: JBO-33001: Cannot find the configuration file bc4j.xcfg

    Hi,
    I get the exception JBO-33001: Cannot find the configuration file com\trivadis\adf\demos\login\model\common\bc4j.xcfg in the classpath
    after I have edited the file outside of JDev9052. Why? Because I followed the instructions of the help document "Modifying the JClient Login Dialog for JDBC". To get the JCLoginDialog you have to remove some lines in the bc4j.xcfg file.
    I have deleted the classes directory, rebuild the complete workspace, but I still get the exception.
    Any comments?
    Thanks,
    Markus
    Complete stacktrace:
    oracle.jbo.JboException: JBO-33001: Cannot find the configuration file com\trivadis\adf\demos\login\model\common\bc4j.xcfg in the classpath
         at oracle.jbo.client.Configuration.loadFromClassPath(Configuration.java:369)
         at oracle.jbo.common.ampool.PoolMgr.createPool(PoolMgr.java:272)
         at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:473)
         at oracle.adf.model.bc4j.DataControlFactoryImpl.findOrCreateSessionCookie(DataControlFactoryImpl.java:135)
         at oracle.adf.model.bc4j.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:220)
         at oracle.adf.model.bc4j.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:97)
         at oracle.jbo.uicli.mom.JUMetaObjectManager.loadCpx(JUMetaObjectManager.java:612)
         at com.trivadis.adf.demos.login.view.FormDeptView1.main(FormDeptView1.java:325)
    ## Detail 0 ##
    oracle.jbo.JboException: JBO-33000: Cannot find the configuration file registerConnectionsFromDocument
         at oracle.jbo.client.Configuration.registerConnectionsFromDocument(Configuration.java:1052)
         at oracle.jbo.client.Configuration.loadFromStream(Configuration.java:264)
         at oracle.jbo.client.Configuration.loadFromClassPath(Configuration.java:352)
         at oracle.jbo.common.ampool.PoolMgr.createPool(PoolMgr.java:272)
         at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:473)
         at oracle.adf.model.bc4j.DataControlFactoryImpl.findOrCreateSessionCookie(DataControlFactoryImpl.java:135)
         at oracle.adf.model.bc4j.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:220)
         at oracle.adf.model.bc4j.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:97)
         at oracle.jbo.uicli.mom.JUMetaObjectManager.loadCpx(JUMetaObjectManager.java:612)
         at com.trivadis.adf.demos.login.view.FormDeptView1.main(FormDeptView1.java:325)
    ## Detail 0 ##
    java.lang.NullPointerException
         at oracle.jbo.client.Configuration.registerConnectionsFromDocument(Configuration.java:1026)
         at oracle.jbo.client.Configuration.loadFromStream(Configuration.java:264)
         at oracle.jbo.client.Configuration.loadFromClassPath(Configuration.java:352)
         at oracle.jbo.common.ampool.PoolMgr.createPool(PoolMgr.java:272)
         at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:473)
         at oracle.adf.model.bc4j.DataControlFactoryImpl.findOrCreateSessionCookie(DataControlFactoryImpl.java:135)
         at oracle.adf.model.bc4j.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:220)
         at oracle.adf.model.bc4j.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:97)
         at oracle.jbo.uicli.mom.JUMetaObjectManager.loadCpx(JUMetaObjectManager.java:612)
         at com.trivadis.adf.demos.login.view.FormDeptView1.main(FormDeptView1.java:325)

    Repost.
    The original post date was Sep 05 2004, not Aug 17 2001. :-)

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

    Migrating project from Jdev 9.031 to Jdev 10.1.2.
    After the migration the app works fine on Jdev 10.1.2, but when deployed to local stand alone OC4J it throws the JBO 33001 error.
    I added dependency of view to the model.
    Checked the existense of bc4j.xcfg in the classes.
    I also ran the ADF Runtime installer as per the recommendations.
    Any suggestions.....
    The complete statck trace of the error is
    oracle.jbo.JboException: JBO-33001: Cannot find the configuration file /Procref/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(ContextPoolManager.java:165)
         at oracle.jbo.http.HttpContainer.findSessionCookie(HttpContainer.java:817)
         at oracle.jbo.html.jsp.datatags.ApplicationModuleTag.doStartTag(ApplicationModuleTag.java:169)
         at index.jspService(_index.java:73)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:347)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:810)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:220)
         at gov.mi.mdch.procref.MainController.processRequest(MainController.java:53)
         at gov.mi.mdch.procref.MainController.doPost(MainController.java:39)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:810)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)

    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

  • Who can help? BC4J: Cannot find the configuration file bc4j.xcfg

    Wie kan mij helpen?
    Bij het runnen van een BC4J applicatie treedt de volgende fout op, wanneer gedraaid wordt op de 9ias applicatieserver vanuit de gedeployde ear-file, (draai ik de zaak op mijn lokale OC4J dan gaat de zaak wel goed):
    Er is een fout opgetreden JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-33001: Cannot find the configuration file pilot\common\bc4j.xcfg in the classpath "
    Kijk ik echter in de WEB_INF\classes directory dan bestaat er wel degelijk een pilot\common\bc4j.xcfg file in die directory.
    Het gebeurt bij instantieren van de applicatie-module van BC4J in het volgende code-snippet
    String applicationModule = "pilot.PilotModule"; // Full name of application module
    String configuration = "PilotModuleLocal"; // Name of configuration
    PilotModuleImpl am = (PilotModuleImpl)
    Configuration.createRootApplicationModule(applicationModule,configuration);
    Ik heb Business-components gedecompileerd om te kijken waar de fout optreedt:
    en dit gebeurt in de method loadFromClassPath(String s) in de configuration class
    nadat hij buildConfigurationFileNameFromClassPath de string " pilot\common\bc4j.xcfg "
    heeft opgebouwd. Hij kan de stream dus niet inlezen.
    public void loadFromClassPath(String s)
    throws JboException
    String s1 = "/" + s;
    s1 = s1.replace(File.separatorChar, '/');
    InputStream inputstream = JBOClass.getResourceAsStream(s1);
    if(inputstream == null)
    inputstream = JBOClass.getResourceAsStream(s1.substring(1));
    if(inputstream == null)
    throw new JboException(Class.forName("oracle.jbo.common.CommonMessageBundle"), "33001", new Object[] {
    s1
    try
    loadFromStream(inputstream);
    inputstream.close();
    inputstream = null;
    catch(Exception exception)
    JboException jboexception = new JboException(Class.forName("oracle.jbo.common.CommonMessageBundle"), "33001", new Object[] {
    s
    jboexception.addToDetails(exception);
    throw jboexception;

    I'm having this same problem when I try to run my BC4J project. This has happened to me before but I forgot how it was resolved. Any ideas?

  • Urgent : everything works fine, but cannot find a .jpg file

    This is my first attemp at creating a jar file and running the running the program
    i created a jar file ran it, everything works fine but when i click the about menuitem, it throws a java nullpointer exception,
    it says it cannot find the .jpg file that is used for the about box,
    the code works fine if i run as a normal program i.e
    java <somepackage>/<classname>
    javax.swing.ImageIcon aboutimage;//in the constructor
    try{
    aboutimage = new javax.swing.ImageIcon(getClass().getResource("resources/image/"+"About.jpg")); //-- exception at this line
                   }catch(Exception e){
                        e.printStackTrace();               
                   }

    i post a bit more details in case sm1 might want to refer,
    Thanks in advance ..it's a bit long sorry for the inconv.
    I created a jar file this way,
    - first created the Manifest.txt file and added the the main class,
    follwed steps from the tutorial at sun:
    http://java.sun.com/docs/books/tutorial/deployment/jar/appman.html
    then this at command prompt
    jar cfm Aid.jar Manifest.txt IDTT/
    Now when i run the jar file every thing runs fine except for the About.jpg,
    that file doesn't show up when i click the about button in the application
    Everything works fine when i directly run the file from command prompt as java IDTT/Aid
    Error recieved:
    Exception in thread "AWT-EventQueue-0"
    java.lang.NullPointerException
    at javax.swing.ImageIcon.<init>(Unknown Source)
    at IDTT.Aid$AboutPanel.<init>(Aid.java:336)
    at IDTT.Aid.menuItem_AboutActionPerformed
    (Aid.java:304)
    this is line 336 in Aid.java:
    javax.swing.ImageIcon aboutimage = new javax.swing.ImageIcon(getClass().getResource("resources/"+"About.jpg"));
    Aid.java has package as
    package IDTT,
    the files in folder graph
    have package as
    package IDTT.graph
    "resources" is a normal folder that has a image file called About.jpg
    and another folder called "html" that contains many html files.
    there's no error for html files
    This is the package/folder tree structure
    IDTT
    |
    |- Aid.java (has main)
    |
    |- graph (a package that Aid.java uses)
    |
    |_ resources
        |
        |- image
        |      |--- About.jpg
        |
        |- html

Maybe you are looking for

  • Word and oracle reports

    I want to print a report along with a word document embedded in that. When i print the report and the embedded word document i am getting the print of oralce report and only one page of word document, rest part of the word document is not getting pri

  • TDS Certificate item details not displayed in printpreview in qualitysystem

    Dear Experts,                      I have been working on TDS certificate in SAP script and able to display the item details in the developement system. but while testing the same TDS certificate in Quality system the item details are not displayed i

  • Diffrent Database character sets?

    Can I to set up Oracle streams between 2 db's with different database character sets? In my case It would be between a UTF8 and we8iso8859P1 // Daniel Austin

  • When is Grid Control 11 due out ???? Let me see if I have this right......

    I have to install GC 10.2.0.1 (which uses an Oracle 10.1 database). Then I have to upgrade the Oracle DB to 10.2.0.3, by first installing a new 10.2.0.1 ORACLE_HOME and applying the 10.2.0.3 patchset. Then I have to apply the Grid Control 10.2.0.4 pa

  • IMac internet sharing with WinXP

    Hello everyone, I'd like to post a little issue I found with my new iMac (OS X 10.5.7). I had it connected to the internet, directly through the ethernet cable modem. I used the Internet Sharing option to share the connection through Airport. I have