Having touble getting the initial weblogic context

Hi all,
I am getting the following error when I try run the EJB client code. I have modified
the classpath to point to WLInitialContextFactory.class but still I am getting the
error. Can someone give me a pointer as what I am doing wrong here.
WebGain Java! JustInTime Compiler Version 4.00.002(x) for JDK 1.2
Copyright (C) 2000 WebGain, Inc.
** Unable to connect to the server at:
[Root exception is java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory]javax.naming.NoInitialContextException:
Cannot instantiate class: weblogic.jndi.WLInitialContextFactory
at javax.naming.spi.NamingManager.getDefaultInitialContextFactory(NamingManager.java:720)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:768)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:169)
at javax.naming.InitialContext.<init>(InitialContext.java:146)
at GreetWorld.HelloWorldClient.main(HelloWorldClient.java:18)
Thanks
Ramanan

ps: weblogic docs recommend releasing InitialContext when you're done so, as
they are often overlooked resources as well.
try
get and use context
catch( )
finally
try {    intialContext.close(); } blah blah...
"Ramanan" <[email protected]> wrote in message
news:[email protected]...
>
Hi,
Thanks for your reply. Following is my client code. I tried with yourcode too,
but am getting the same result. Is there any setting that I need to do inthe weblogic
property file or server setting?
Context ctx=null;
try
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
p.put(Context.PROVIDER_URL, "t3://localhost:80");
ctx = new InitialContext(p);
catch (NamingException ne)
ne.printStackTrace();
return;
Thanks
Ramanan
Deepak Vohra <[email protected]> wrote:
To get an initial JNDI context to the WebLogic JNDI provider:
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
// URL for the WebLogic Server
env.put(Context.PROVIDER_URL, "t3://localhost:7001");
ramanan wrote:
Hi all,
I am getting the following error when I try run the EJB client code.I have modified
the classpath to point to WLInitialContextFactory.class but still I amgetting the
error. Can someone give me a pointer as what I am doing wrong here.
WebGain Java! JustInTime Compiler Version 4.00.002(x) for JDK 1.2
Copyright (C) 2000 WebGain, Inc.
** Unable to connect to the server at:
[Root exception is java.lang.ClassNotFoundException:
weblogic.jndi.WLInitialContextFactoryjavax.naming.NoInitialContextException:
Cannot instantiate class: weblogic.jndi.WLInitialContextFactory
atjavax.naming.spi.NamingManager.getDefaultInitialContextFactory(NamingManager
.java:720)
atjavax.naming.spi.NamingManager.getInitialContext(NamingManager.java:768)
atjavax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:169)
at javax.naming.InitialContext.<init>(InitialContext.java:146)
at GreetWorld.HelloWorldClient.main(HelloWorldClient.java:18)
Thanks
Ramanan

Similar Messages

  • How to get the SharePoint user context available in custom federated search connector?

    Hi,
    I'm investigating the possibilities for developing a federated search connector for SharePoint 2013 Online. This should allow us to search a customer's database through our custom developed application (both on premise). We intend to develop
    an remote federated search connector (using OpenSearch protocol) and configure a result source in SharePoint for that connector.
    The problem I'm struggling with is that I want different search results from this ressult source based on the permissions of the user that is executing the search. The admin should find a lot because he has permissions on certain items in the custom
    application. The employee should find just a few because he has no permissions on certain items in the custom application. We developed the custom application ourselveds and the search in that application is taking permissions into account: it doesn't
    return results if a user doesn't have sufficient permissions. That part works just fine.
    However, to be able to use that, the remote federated search connector must be able to identify the user that is executing the search in SharePoint Online. So: how do I get the SharePoint user context in the remote federated search connector?
    I know I can configure the replacement token {User.Name} in the result source configuration, but that gives me the name of the user only. This is insufficient to get an identity, principal, token or whatever, that let's me log in into our custom
    application.
    I also know that in a provider hosted app, user context is passed through from SharePoint and is known within the remote app. But since result sources need fixed (or anonymous) credentials configuration for connecting to the remote federated search connector,
    all users will be using the same credentials. This makes me assume these credentials are for securing communication and cannot be used within the execution of the search within the remote federated search connector.
    At the moment, I'm stuck. Any help will be greatly appreciated.
    Cheers,
    Ruud.

    Hi,
    Per my knowledge, we cannot get the SharePoint user context available in custom federated search connector with other methods.
    Here is a similar thread for your reference:
    https://answers.atlassian.com/questions/263735/atlassian-sharepoint-connector-federated-search-authentication-and-authorization
    Thanks,
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • How to get the initial (first) transaction

    Hi, everybody.
    I need to get the initial (or first) transaction, from which the current was called. Does anybody know how?
    Example: Tr. FEBAN after some operations calls FB05, then in OPENFI-logic SY-TCODE = 'FB05'. How can I get 'FEBAN'.
    Maybe there are some system functions?
    Thanks.

    Hi Aidar,
    Unfortunately, there are some insurmountable barriers in SAP. When a transaction calls another one using CALL TRANSACTION, a new internal mode is created, that cannot see the first one, except when programs communicate explicitly between the 2 using the SAP memory (get parameter id, set parameter id), ABAP memory (export to memory id/import from...), shared memory.
    Only Chen's answer makes sense here. You may also debug just before the CALL TRANSACTION 'FB05' or LEAVE TO TRANSACTION 'FB05' (by debug you can simply add a soft "breakpoint at statement" CALL TRANSACTION or LEAVE TO TRANSACTION to make the system halt automatically when the statement is reached) where you'll maybe find some data transferred to the memories I mentioned above, which you could then read from your code to know to say if it comes from FEBAN.
    Sandra

  • How to get the initial state of JSF PAGE IN ORACLE ADF

    Hi everybody
    my Jdeveloper version is 12.1.3
    I'm building my JSF pages based on a template that has a navigation pane which contains command navigation items , every one of them (command navigation items) appears as a link at runtime and calls a JSF page , I wish to get the initial state for any page when leaving it then entering such page again , and I would like to know what is the suitable place to write the code to do this task.
    many thanks !

    Clear the cache by adding the following to each jsf page.
    <%
    response.setHeader("Cache-Control","no-cache"); 
    response.setHeader("Pragma","no-cache");
    %>

  • I am trying to connect my Sony DCR-TRV350 to iMovie so that I can make DVD's from family videos.  I am having problems getting the video camera connected.  Any advice on how to do this?

    I am trying to connect my Sony DCR-TRV350 to iMovie so that I can make DVD's from family videos.  I am having problems getting the video camera connected.  Any advice on how to do this?

    What happens when, after you connect your cam, you go to File > Import Media?
    But before that, does your cam require you to export your video files upon USB connection? I have a JVC Everio HD and I have to "Export to Library" from the cam's menu first-thing. This was true even in prior iMovie versions.

  • I am having trouble with the initial connection. I have isolated the problem to the cable/ connection. My new hdmi cable has a resolution up to 1080p...does the resolution matter?is this the right hdmi cable for the apple tv?

    I am having trouble with the initial connection of the apple tv. I have isolated the problem to the cable/connection. My new hdmi cable has a resolution up to 1080p...does the resolution matter?is this the right hdmi cable for the apple tv?

    There are only two types of HDMI cables (standard and high speed - listen to all 1.2, 1.3 etc etc nonsense they will try to tell in the store) both types will work with the Apple TV.
    The cable may be faulty though, have you got another to try, what exactly is happening.

  • HT1904 I'm having trouble getting the digital booklet when I download an album. What do I need to do?  I get an error message saying the booklet can't be downloaded at this time.

    I'm having trouble getting the digital booklet when I download an album. What do I need to do?  I get an error message saying the booklet can't be downloaded at this time.

    Hello Bdev15,
    I would be concerned too if the songs I purchased from iTunes were not downloading to my iPhone. You have taken some great troubleshooting steps already, and thank you for providing the details of the steps you too.  I have a few additional suggestions to get it downloaded to your iPhone.
    First, I recommend checking to see if the download was interrupted:
    If your download was interrupted using your iPhone, iPad, or iPod touch
    From the Home screen, tap the iTunes app.
    For iPhone or iPod touch, tap More > Downloads. For iPad, tap Downloads.
    Enter your account name and password if prompted.
    Tap the blue download arrow to resume.
    iTunes: How to resume interrupted iTunes Store downloads
    http://support.apple.com/kb/ht1725
    If the songs still do not download, next I recommend downloading the songs when connected to another network.  For example, if you are using the cellular network, you could switch to Wi-Fi, or you could try an alternate Wi-Fi network.  Follow the steps in the section titled "iPhone, iPad, or iPod touch > Music" in the article below to download the songs:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/ht2519
    If you are still not able to download the songs, you can report an issue with these purchases using the steps in this article:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    http://support.apple.com/kb/ht1933
    Best,
    Sheila M.

  • I am running OSX 10.8.3,when i try to open iDVD i get the initial screen but when i try to choose an option all i get is 'Downloading Themes' which just continues. I have left it for over an hour?

    I am running OSX 10.8.3,when i try to open iDVD i get the initial screen but when i try to choose an option all i get is 'Downloading Themes' which just continues. I have left it for over an hour?

    Where did you get iDVD to put on your Mac?  The downloading themes are no longer available from Apple. If you copied it from a Mac that had all the themes look for the iDVD folder on that Mac which should be in the HD/Library/Applications Support folder or the Users/Home/Library/Applications Support folder.  Copy it to the HD/Library/Applications Support folder for Mt Lion.
    If you have to purchase an iLife disc in order to obtain the iDVD application remember that the iLife 11 disc only provides  themes from iDVD 5-7.  The Software Update no longer installs the earlier themes when starting from the iLIfe 11 disk nor do any of the iDVD 7 updaters available from the Apple Downloads website contain them. 
    Currently the only sure fire way to get all themes is to start with the iLife 09 disc:
    This shows the iDVD contents in the iLife 09 disc via Pacifist:
    You then can upgrade from iDVD 7.0.3 to iDVD 7.1.2 via the updaters at the Apple Downloads webpage.
    OT

  • Having trouble getting the cloud icon on the iPad and sending apps to the cloud

    Having trouble getting the cloud icon to my iPad and sending apps to the cloud

    Not sure what you are referring to, there is no iCloud icon and you don't send apps to the cloud.

  • Different ways to get the initial context within the container

    Hi there,
    Simple question concerning WLS61:
    Is there a difference between getting the context like this:
    Context ctx = T3Services.getT3Services().name().getInitialContext();
    and getting it like:
    Context ctx = new InitialContext();
    The only difference I see is that the second version is portable.
    Is there a performance difference?
    Thanks
    Juerg

    Hi Floris,
    You can also use RANK: http://www.dba-oracle.com/oracle_news/oracle_faq/faq_beg_sql_top_n_rows.htm
    Regards Pete

  • Unable to get the JDBC from context

    Dear experts
    I am new to Sun Application Server and I am trying hard to get the JDBC/ JMS connection factory via context factory.
    I tried two ways, one is the method in the development guide to get troough IIOP connection
    Properties lProps = new Properties();
    lProps.put(Context.INITIAL_CONTEXT_FACTORY, com.sun.jndi.cosnaming.CNCtxFactory);
    lProps.put(Context.PROVIDER_URL, "iiop://192.168.0.1:33700")
    Object lvLookupObj = ivContext1.lookup("java:comp/env/jdbc/myJDBC");
    Another way is just new a blank inital context and lookup for the same thing.
    Both run in a JSP which packed in a war and deployed.
    For the first method, I got this:
    Unable to create IIOP listener on the specified host/port: all interfaces/33700"
    For 2nd method, I got this:
    javax.naming.NameNotFoundException
    Anyone can tell me what I have done wrong? since I have followed the development guide and the other seems also do in the same way. I checked the JNDI in the node agent which shows the JDBC factory is deployed and appear in the JNDI.
    Many thanks in advance.

    What media are you trying to import?  There won't be any media returned with get_media unless you but media in to begin with using the set_media cmd.  However, it's preferable to use the media MDEX rather than storing media in the ECR.

  • How-to get the JSF application context path?

    I want to do a redirect from within a JSF backing bean. How do I get the application context path?
    I plan to do this in the constructor of the backing beans in order to validate the user has previously logged in.
    public BackingBeanName()
    FacesContext facesContext = FacesContext.getCurrentInstance();
    HttpSession session = HttpSession)facesContext.getExternalContext().getSession(false);
    HttpServletRequest request = (HttpServletRequest)facesContext.getExternalContext().getRequest();
    userid = (String)session.getAttribute("userid");
    if (userid == null) {
    logger.info("userid attribute is not in session");
    ExternalContext ec = facesContext.getExternalContext();
    appContextPath = ???????????????????????;
    String redirectTo = appContextPath + "/logon.jsp";
    try {
    ec.redirect(redirectTo);
    catch (IOException e) {
    String msg = "redirect to " + redirectTo + " failed";
    logger.severe(msg);
    return; // throw an exception instead of return;
    Regards,
    Al Malin

    Frank, your suggestion of using JSF global navigation to the logon page looks like what I need but I need some advice implementing it.
    My backing bean constructor looks like this:
    public Search()
    FacesContext facesContext = FacesContext.getCurrentInstance();
    String userid = GpaUtil.getSessionUserid(facesContext);
    if (userid == null)
    logger.info("session userid not found, going to logon page");
    ??????? What goes here ????????
    ??????? I think I need to fire an event but I'm not sure how to do it, ????????
    ??????? let alone if this is what needs to be done ????????
    ??????? or even if this is the right spot in the code ????????
    gpas = ProductApproval.retrieveList("1=1","1");
    FWIW, the navigation rule looks like this:
    <navigation-rule>
    <navigation-case>
    <from-outcome>goLogon</from-outcome>
    <to-view-id>/logon.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    Your help is greatly appreciated.
    Regards,
    Al Malin

  • Get the printer Graphics context before printing

    My applikation can print multiple pages where each page may look different. So I decided to implement the Pageable interface. When I create the object which implements the Pageable interface I must create the pages (which implement the Printable interface) of my print job. The number of pages depends of the size of some text paragraphs.
    My problem is that I must know the Graphics context object which will be used for printing when I create the pages of my print job because I must use the Graphics context to measure text. But I can not see a possibility to get the Graphics context before the actual printing starts with printJob.print(...).
    Has anyone an idea how I can solve the problem?

    Hi,
    if its a Smartform we can find the device in structure ssfcompop-tddest. Usually we define one structure with same type and pass the value to Smartform Function Module in driver program...
    If its a 'SAP SCRIPT' u can find the device in structure 'ITCPO-tddest', we pass this value to 'OPEN_FORM' Function Module in driver program.
    Hope it helps!!
    Regards,
    Pavan

  • I am having troubles getting the symbols from my keyboard

    Hello
    I have a HP Omni 100 PC, and I cannot get the symbols (puntations, question mark, accents etc) from my keyboard, I have tried to reconfigure the keyboard, changed the language and everything but nothing seems to work, when I am writing emails, documents or posting in internet, my text goes without punctations symbols, and beside of being annoying it is very confusing for the readers as they dont have a clue if I am making questions or a statement, could you help me with this issue (imagine a question mark here)
    Thanks

    Hello Tita2014,
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I understand that you are having issues where certain characters are now showing up from your keyboard on your HP Omni 100 PC and you are looking for some assistance. I would be happy to assist you, but first I would encourage you to post your product number for your computer. I am linking an HP Support document below that will show you how to find your product number. As well, if you could indicate which operating system you are using. And whether your operating system is 32-bit or 64-bit as with this and the product number I can provide you with accurate information.
    How Do I Find My Model Number or Product Number?
    Which Windows operating system am I running?
    Is the Windows Version on My Computer 32-bit or 64-bit?
    Please re-post with the requested information and I would be happy to provide you with assistance. Thank you for posting on the HP Forums. Have a great day!
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    Dunidar
    I work on behalf of HP
    Find out a bit more about me by checking out my profile!
    "Customers don’t expect you to be perfect. They do expect you to fix things when they go wrong." ~ Donald Porter

  • Anyone else having issue getting the "swipe up" to work to access control center on Iphone5?

    Hi, just upgraded to IOS7 on both my Iphone5 and 3rd Gen Ipad.  While I can easily swipe up to get into Control Center on Ipad, same is not at all true for the Iphone5.  Takes about ten tries to get the control center to open by swiping up on Iphone5, whether on home screen or lock screen.  Anyone else having this issue?  Wonder if there is a way to fix it (reinstall IOS 7 I guess somehow?).  Control Center is a great improvement, but not if I can't open it!

    Well, see here for another guy who had same issue: 
    https://discussions.apple.com/message/23013426#23013426
    and my response is there (appears to be an Otterbox issue is upshot).

Maybe you are looking for

  • Table editor row identification for an action on table row

    Hi Experts, I have a table editor with 5 columns and one of the column is a LinkToAction element. Now when i have multiple lines in this table, I want to know on action of click of the linktoaction of a particular row, i want the row number and its d

  • Creating pageformat for smartform

    hi everyone, i want to create a new page format for smartform,can any one help me out inthis. thanks.

  • Installation detail of oracle data miner

    Dear member i have download oracle data miner i want to know what is the sytem requirement and other oracle product for using data miner , i mean i wann installation guide for data miner

  • Logical IO Current Mode for MV Refresh

    Guys, I am seeing a materialized view refresh output in tkprof which is showing a large number of current mode reads (about 4x the consistent gets). There is an index on the materialized view. TKPROF does not show a DELETE for the materialized view.

  • Increment in query

    Hi , I have one column in which data is stored as follows colParent 30 30 30 165 165 165 165 44 45 45 The Problem is I wanted to add one more row at run time called as colCounter which will be as colParent | colCounter 30 1 30 2 30 3 165 1 165 2 165