Getting the InitialContext in an application client

I have an application client deployed in my application. When I run the client like this:
java -jar reconcile-client/reconcile-client.jar
It is failing with this exception when trying to look up anything through the InitialContext object:
Exception in thread "main" javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:640)
        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
        at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:280)
        at javax.naming.InitialContext.lookup(InitialContext.java:347)
        at aoc.arkansas.ReconcileClient.main(ReconcileClient.java:26)Is there another way I should be running the client? According to this link I shouldn't have to supply any information to the constructor of the InitialContext object. http://download.oracle.com/docs/cd/B32110_01/web.1013/b28221/servjndi011.htm

You missed the part where it says you have to use "oracle.j2ee.naming.ApplicationClientInitialContextFactory" and that you should see "Configuring an Oracle Initial Context Factory" (http://download.oracle.com/docs/cd/B32110_01/web.1013/b28221/servjndi011.htm#CIACBCHB). Follow that link and you'll find you have to pass in a map with the "java.naming.factory.initial" property set to that factory, and with the "java.naming.provider.url" property set up to point to the OC4J server.

Similar Messages

  • I keep getting the error message "apple application support is required to run itunes. Please uninstall itunes and then install it again." I've done this twice and still keep getting the same message...I'm at wits end Please HELP!!!

    I keep getting the error message "apple application support is required to run itunes. Please uninstall itunes and then install it again." I've done this twice and still keep getting the same message...I'm at wits end Please HELP!!!

    Let's try a standalone Apple Application Support install. It still might not install, but fingers crossed any error messages will give us a better idea of the underlying cause of the issue.
    Download and save a copy of the iTunesSetup.exe (or iTunes64setup.exe) installer file to your hard drive:
    http://www.apple.com/itunes/download/
    Download and install the free trial version of WinRAR:
    http://www.rarlab.com/
    Right-click the iTunesSetup.exe (or iTunes64Setup.exe), and select "Extract to iTunesSetup" (or "Extract to iTunes64Setup"). WinRAR will expand the contents of the file into a folder called "iTunesSetup" (or "iTunes64Setup").
    Go into the folder and doubleclick the AppleApplicationSupport.msi to do a standalone AAS install.
    Does it install properly for you? If so, does iTunes launch properly now?
    If instead you get an error message during the install, let us know what it says. (Precise text, please.)

  • Have a new itouch. I'm having trouble downloading iTunes. I keep getting the error message: Apple Application software was not found. Apple application support is required to run iTunesHelper. Please uninstall iTunes, then install iTues again. Error 2.

    I have a new iTouch. I'm having trouble downloading iTunes. I keep getting the error message: "Apple Application Software was not found. Apple application support is required to run iTunesHelper. Please uninstall iTunes, then install iTunes again. Error 2." I have uninstalled and tried installing again and get the same error message. What do i need to do?
    Lg

    Install 7-Zip (free), or a free trial of WinRAR, and use one of them to extract the contents of the iTunesSetup.exe or iTunesSetup64.exe installer file, then try installing AppleApplicationSupport.msi as a standalone component. Even if it won't install you may get a more useful error message as to why not.
    tt2

  • When installing Flash Player I get the prompt to close Dashboard Client. What is that and how do I close it?

    When installing Flash Player I get the prompt to close Dashboard Client. What is that and how do I close it?

    This link to a thread on this Adobe Flash Player forum explains how to kill (strong word) the dashboard client:
    Dashboard Client
    I assume you are using a Mac.

  • PSE 9 was running fine but will not start now and I get the following message:  This application has requested the Runtime to terminate in an unusual way.

    PSE 9 was running fine but will not start now and I get the following message:  This application has requested the Runtime to terminate in an unusual way.
    I have an HP Desktop running XP Professional and tried Restore but it didn"t help. I was just going to uninstall and re-install but I can't get in to deactivate.

    See if anything here helps:
    Troubleshoot C++ runtime errors | Adobe products | Windows

  • I'm getting the error msg "apple application support was not found.  Apple application support is required to run itunes. error 2.  How can i fix this?

    Hi,  I was running itunes software just fine. I got some malware and unintalled everything that was from apple.  Now, I reinstalled itunes but can't run it because I get the msg "Apple application support was not found. Apple application support is required to run itunes. Error msg 2.
    What can I do to fix this?
    Thank you.

    With the Error 2, let's try a standalone Apple Application Support install. It still might not install, but fingers crossed any error messages will give us a better idea of the underlying cause of the issue.
    Download and save a copy of the iTunesSetup.exe (or iTunes64setup.exe) installer file to your hard drive:
    http://www.apple.com/itunes/download/
    Download and install the free trial version of WinRAR:
    http://www.rarlab.com/download.htm
    Right-click the iTunesSetup.exe (or iTunes64Setup.exe), and select "Extract to iTunesSetup" (or "Extract to iTunes64Setup"). WinRAR will expand the contents of the file into a folder called "iTunesSetup" (or "iTunes64Setup").
    Go into the folder and doubleclick the AppleApplicationSupport.msi to do a standalone AAS install.
    Does it install properly for you?
    If instead you get an error message during the install, let us know what it says. (Precise text, please.)

  • How can I wait till data is loaded and get the latest entities in HTML CLient

    This is my first try using a JavaScript component. I found a nice timeline-Scheduler on github:
    Timeline Javascript Scheduler
    I made an nearly empt new Screen and I am using LS only to get the data and to switch to the next date.
    This works fine for the first date I set in the created.
    But if I change to the next day, there are still the just loaded records. When I switch again to the following date I get the records from the day before...
    myapp.dispo.divcontainer_render = function (element, contentItem) {
    // We need this div for the timeline
    $(element).append('<div class="calendar"></div><div class="realtime-info"></div>');
    //Bind to the date
    contentItem.dataBind("screen.suchDispodat", function (value) {
    var querydat = value;
    var items = [];
    var sections = [];
    //The querydat is set to the right date but the records I get are from the last executed query.
    contentItem.screen.getQuerydispobydatfahrerorderfahrer(querydat).then(function (result) {
    var dispos = result.data;
    dispos.forEach(function (dispo) {
    How can I bind the refresh to something like data loaded?
    Helmut

    From:
    http://blogs.msdn.com/b/lightswitch/archive/2012/12/19/enhancing-lightswitch-controls-with-jquery-mobile-michael-zlatkovsky.aspx
    "You could use setTimeout (which is sometimes necessary – see Joe’s Custom Controls post
    for an example)"
    Unleash the Power - Get the LightSwitch 2013 HTML Client / SharePoint 2013 book
    http://LightSwitchHelpWebsite.com

  • How can i get the privilege to uninstall applications

    Hello,
    i am knew with mac and i am trying to uninstall some applications with ccleaner, but then i get the message that "i don´t have the privilege to perform this operation¨... any help?
    Thanks,
    Pierre

    If you want to delete applications, go to the developers web site and look for un-installation instructions.  Use of so called 'uninstall' apps are not to be relied upon.  Elements of the application to be deleted can and are easily missed.
    Ciao.

  • HT6001 I have tried numerous time to update iTunes to Version 11.1.4.  Each time it has failed. I get the message of "This application has failed to start because MSVCR80.dll was not found".  Also I get a message of "Error 7". Advise please.

    I have tried numerous time to update iTunes to version 11.1.4.  It has failed every time.  Now I can't even get into iTunes on my PC.  The message I get is "This application has failed to start because MSVCR60.dll was not found.  Re-installing the application may fix the problem."  Okay. Which application?  What steps are needed for this process?
    Also, I get this message "iTunes was not installed correctly.  Please reinstall iTunes.  Error 7 (Windows error 126)"  Could someone please assist me in the steps necessary to remedy this issue.  Thanks.

    For many users at this point in time (iTunes 11.1.4.62) uninstalling iTunes alone is not enough and they may need to undertake further steps...
    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

  • When starting iTunes get the following message " Apple Application Support is required" uninstall and re-install iTunes. Question will I lose all records currently in iTunes ??  H=

    Get a message on Itunes to uninstall and re-install Itunes since " Apple Application Support is required" Will this cause me to lose all records? Is there some to avoid this have tried to repair No LUCK

    Let's try a standalone Apple Application Support install. It still might not install, but fingers crossed any error messages will give us a better idea of the underlying cause of the issue.
    Download and save a copy of the iTunesSetup.exe (or iTunes64setup.exe) installer file to your hard drive:
    http://www.apple.com/itunes/download/
    Download and install the free trial version of WinRAR:
    http://www.rarlab.com/
    Right-click the iTunesSetup.exe (or iTunes64Setup.exe), and select "Extract to iTunesSetup" (or "Extract to iTunes64Setup"). WinRAR will expand the contents of the file into a folder called "iTunesSetup" (or "iTunes64Setup").
    Go into the folder and doubleclick the AppleApplicationSupport.msi to do a standalone AAS install.
    Does it install properly for you? If so, does iTunes launch properly now?
    If instead you get an error message during the install, let us know what it says. (Precise text, please.)

  • Can't install updates for Flash, get the "unable to install application configuration" error message

    I'm using Windows 7 32-bit with Firefox 17.0.1 -- everything's up to date.  I keep getting this error every time I try to update an Adobe add-on using the idiot stub installer -- I don't have this problem with a full installer, such as I've been able to find for Shockwave.  Why can't I donwload a full installer for Flash or Reader and avoid this stupid problem???  It started about two or three Windows updates ago, and nothing else is now on my system.  I don't really care who's responsible (Windows/Microsoft or Adobe) -- I jut want the blasted things to update and work.  HELP!!!

    Back up all data before proceeding.
    Launch the Keychain Access application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    Use the search box in the toolbar of the Keychain Access window to search for an item named "Safari Extensions List". If found, delete it. Quit Keychain Access.
    Quit and relaunch Safari.

  • Getting the IP address of RMI clients

    I have developed an RMI server class and a RMI client class, each with its own Remote Interface.
    I want both clients and server to call methods from each other to exchange data.
    Here is what I have coded.
    The server object starts by creating a Name registry "LocateRegistry.createRegistry(1099)"), and then binds itself to it, using name "server".
    On another machine, a client is created. It creates a Name Registry too and binds itself to it (using a unique name).
    Then the client asks the server's remote registry for a remote reference to the server (it knows the server's IP adress and it knows that the registry is on port 1099).
    It then calls a connect(clientName, clientRegistryPort) remote procedure which provides the server with the client's name and registry port, as the arguments suggests.
    The goal is to enable the server to get a remote reference to the client.
    But my problem is, to do this the server needs the client's IP address. I am sorry if this looks like a dumb question, but how can the server know the client's IP address ?
    Of course the client could send it, but wouldn't it be a more elegant method if the server to found it by itself (after all, a connection is already established since the client has called a method on the server) ? Does RMI provide a method for this ? Do you think that my general solution is correct ?

    The goal is to enable the server to get a remote
    reference to the client.You don't need a client-side Registry to accomplish that. Just pass a reference to the client-side remote object via a remote method call to the server.

  • Getting the latest file from application server

    Hi,
    I have to retrieve the latest file posted in R/3 from the application server to ISU which conatins the file name with timestamp.
    regards
    Mac

    Hi,
    so use fm EPS_GET_DIRECTORY_LISTING
    and sort corresp. table DIR_LIST
    A.

  • I am getting the following error on MI client Side

    Location: /PROFESSIONAL/start
    Internal Servlet Error:
    java.lang.RuntimeException: Not implemented for com.sap.ip.me.persist.fileio.spi.AttributeTypeExt$AttributeTypeBigInteger
         at com.sap.ip.me.persist.fileio.spi.AttributeTypeExt.startsWith(AttributeTypeExt.java:92)
         at com.sap.ip.me.persist.fileio.spi.RelationalOpTypeExt$6.matches(RelationalOpTypeExt.java:169)
         at com.sap.ip.me.persist.fileio.spi.QueryConditionSingle.matches(QueryConditionSingle.java:127)
         at com.sap.ip.me.persist.fileio.spi.LogicalOpTypeExt$1.matches(LogicalOpTypeExt.java:46)
         at com.sap.ip.me.persist.fileio.spi.QueryConditionComposite.matches(QueryConditionComposite.java:62)
         at com.sap.ip.me.persist.fileio.spi.ObjectTable.get(ObjectTable.java:501)
         at com.sap.ip.me.persist.fileio.spi.PersistenceManagerImpl.get(PersistenceManagerImpl.java:281)
         at com.sap.ip.me.persist.core.IPersistenceManagerTXWrapper.get(IPersistenceManagerTXWrapper.java:103)
         at com.sap.ip.me.smartsync.persadp.PersistenceAdapterImpl.get(PersistenceAdapterImpl.java:550)
         at com.sap.ip.me.smartsync.data.RowManager.get(RowManager.java:74)
         at com.sap.ip.me.smartsync.data.SyncBoDataFacadeImpl.getRows(SyncBoDataFacadeImpl.java:289)
         at Professional.Sync.getRowInstances(Sync.java:84)
         at Professional.Sync.readEntitiesFromDB(Sync.java:311)
         at Professional.bean.DataHandler.instance(DataHandler.java:42)
         at Professional.Servletpage.getBeansFromContext(Servletpage.java:136)
         at Professional.Servletpage.doHandleEvent(Servletpage.java:116)
         at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGetNotThreadSafe(AbstractMEHttpServlet.java:347)
         at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGet(AbstractMEHttpServlet.java:689)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.service(AbstractMEHttpServlet.java:313)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:806)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
         at java.lang.Thread.run(Thread.java:534)

    you have used
    RelationalOperatorType.STARTS_WITH
    in your code which is not supported for the type AttributeType.BigInteger.
    This type will work only for String type fields.
    regards
    jo

  • I am getting the following error on MI client

    thanks jo 4 ur help ,
    Error: 500
    Location: /PROFESSIONAL/start
    Internal Servlet Error:
    java.lang.NullPointerException
         at Professional.Sync.getHeaderFieldNames(Sync.java:104)
         at Professional.Sync.readEntities(Sync.java:256)
         at Professional.bean.DataHandler.instance(DataHandler.java:49)
         at Professional.Servletpage.getBeansFromContext(Servletpage.java:129)
         at Professional.Servletpage.doHandleEvent(Servletpage.java:109)
         at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGetNotThreadSafe(AbstractMEHttpServlet.java:347)
         at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGet(AbstractMEHttpServlet.java:689)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.service(AbstractMEHttpServlet.java:313)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:806)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
         at java.lang.Thread.run(Thread.java:534)
    code/////////////////////////////////////
    public String[] getHeaderFieldNames(String syncBoName) {
               try
                SyncBoDescriptor sbd = descriptorFacade.getSyncBoDescriptor(syncBoName);
    <b> RowDescriptor trd = sbd.getTopRowDescriptor();</b>
               String[] arrayFieldNames = new String[trd.getFieldCount()];
               tableHeaderNamesToDisplay = new String[trd.getFieldCount()];
               int i = 0;
               if (trd.getFieldCount() > 0) {
                    FieldDescriptorIterator fdi = trd.getAllFieldDescriptors();
                    while (fdi.hasNext()) {
                         // load array with name foer headers defined in the properties file
                         arrayFieldNames<i> = fdi.next().getFieldName();
                         tableHeaderNamesToDisplay<i> = GetProperties.getString(arrayFieldNames<i>);
                         i++;
                    return arrayFieldNames;
               } else {
                    System.out.println("SmartSyncDBAccess.getHeaderFieldNames - Array of Header Field Names is empty");
                    return null;
              catch(Exception e)
                                            System.out.println(e.getMessage());
                                            System.out.println(e.getStackTrace());
                                            System.out.println(e.toString());
                                  return null;
    its pointing to this line
    <b> RowDescriptor trd = sbd.getTopRowDescriptor();</b>
    thnks jo

    hi sara,
    check if you the syncbo name you are passing to the
    getHeaderFieldNames(String syncBoName)
    exist in your xml metadata. if this is a new syncbo which you have just added,
    you might need to redeploy your application with the updated xml metadata in
    it. you can then try to list up what syncbos you have in your application.
    regards
    jo

Maybe you are looking for

  • MacBook  to a Windows Laptop - Rats

    OK, here is the scoop... I am in need of a new laptop for work. Our tech admin is PC/Windows ONLY! I love my MacBook, have for years, would like to buy another one, but no go. Trust me I have tried to convince him (yes, Windows via BootCamp and the w

  • Internet and Server is red

    My wireless router is working perfectly fine. I have tried turning it on and turning it off but the red lights dont leave and I can't access the internet. what can I do to fix this issue?

  • Netbeans and Monaco

    I have installed netbeans and ttf-linux-monaco from repo. Looks strange, but there is no Monaco in list of fonts in netbeans. How to set Monaco as main font in Netbeans? Manual setting from config file is useless.

  • CS6 perpetual license after Photoshop Photography Program

    It has been my understanding that if one takes advantage of the Photoshop Photography Program (PPP) offer for current users of PS CS3 or above (the one that expires December 31), that the existing perpetual license will remain in effect, and that CS6

  • Elements 6 for Mac

    Elements 6 disc won't load on Mac OSX 10.6.2. Can anyone help? I have a new hard drive.