Accessing weblogic runtime context

We are using Weblogic Server 8.1. We are not using Weblogic workshop. How should
an application access the runtime instances of the Weblogic classes in weblogic.jar?
Can you please provide a short code example to get me going? Thank you.

Dear Satish,
Try the link which describes GP api and may help u
http://help.sap.com/javadocs/nwce/current/gp/com/sap/caf/eu/gp/co/api/package-summary.html
Regards,
Sri

Similar Messages

  • Accessing Weblogi JNDI

    i'm trying to access weblogic JNDI from my code and it gaves me this Error:
    Caused by: javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://localhost:7001: Destination unreachable; nested exception is:
         java.net.ConnectException: Connection refused: connect; No available router to destination]
         at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:40)
         at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:783)
         at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:365)
         at weblogic.jndi.Environment.getContext(Environment.java:315)
         at weblogic.jndi.Environment.getContext(Environment.java:285)
         at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
         at javax.naming.InitialContext.init(InitialContext.java:223)
         at javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:134)
         at com.etech.common.ldap.ad.UserLdapHandler.initLdapContext(UserLdapHandler.java:141)
         ... 42 more
    Caused by: java.net.ConnectException: t3://localhost:7001: Destination unreachable; nested exception is:
         java.net.ConnectException: Connection refused: connect; No available router to destination
         at weblogic.rjvm.RJVMFinder.findOrCreateInternal(RJVMFinder.java:216)
         at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:170)
         at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:153)
         at weblogic.jndi.WLInitialContextFactoryDelegate$1.run(WLInitialContextFactoryDelegate.java:344)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:339)
         ... 50 more
    the enviroment i use is like this :
    environment.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    environment.put(Context.PROVIDER_URL, "t3://localhost:7001");
    environment.put(Context.REFERRAL, "follow");
    Any help will be great.

    i'm trying to access weblogic JNDI from my code and it gaves me this Error:
    Caused by: javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://localhost:7001: Destination unreachable; nested exception is:
         java.net.ConnectException: Connection refused: connect; No available router to destination]
         at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:40)
         at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:783)
         at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:365)
         at weblogic.jndi.Environment.getContext(Environment.java:315)
         at weblogic.jndi.Environment.getContext(Environment.java:285)
         at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
         at javax.naming.InitialContext.init(InitialContext.java:223)
         at javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:134)
         at com.etech.common.ldap.ad.UserLdapHandler.initLdapContext(UserLdapHandler.java:141)
         ... 42 more
    Caused by: java.net.ConnectException: t3://localhost:7001: Destination unreachable; nested exception is:
         java.net.ConnectException: Connection refused: connect; No available router to destination
         at weblogic.rjvm.RJVMFinder.findOrCreateInternal(RJVMFinder.java:216)
         at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:170)
         at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:153)
         at weblogic.jndi.WLInitialContextFactoryDelegate$1.run(WLInitialContextFactoryDelegate.java:344)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:339)
         ... 50 more
    the enviroment i use is like this :
    environment.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    environment.put(Context.PROVIDER_URL, "t3://localhost:7001");
    environment.put(Context.REFERRAL, "follow");
    Any help will be great.

  • Concurrent access to initial context?

    Using WebLogic Server 6.0
    I wrote a simple stand alone Java client (see code below) that
    performs the following steps:
    1. Gets the Initial Context for the WLS JNDI
    2. Closes the initial context
    3. Goes into an indefinite loops (to keep the client alive)
    I start up one client and it performs steps 1, 2, and 3 and is
    sitting at step3.
    Then I start up another client. It hangs at step 1 until I kill
    the first client.
    It cannot obtain the initial context while the first client is
    running.
    I do not understand this behavior! Is this behavior correct?
    If so, could somebody
    explain why it works this way. The initial context is used to
    lookup our EJBs. If two
    clients cannot access the Initial Context at the same time, won't
    this be a major
    bottle neck when using EJBs?
    Please help!
    Here's is the code for the client....
    public static void main(String args[])
         try
         Context ctx = null;
         System.out.println("Before get context.");
         Hashtable env = new Hashtable();
         env.put(Context.INITIAL_CONTEXT_FACTORY,
              "weblogic.jndi.WLInitialContextFactory");
         env.put(Context.PROVIDER_URL,
              "t3://localhost:7001");
         ctx = new InitialContext(env);
         System.out.println("Initial context created.");
         ctx.close();
         System.out.println("Closed context.");
         // Hang
         while(true){}
         catch (Exception e)
         e.printStackTrace();

    Yes - it was the CPU problem. If I use Thread.sleep(...) it works fine.
    I had a feeling it was a mistake on my part. Thanks for the help.
    Robert Patrick <[email protected]> wrote:
    There is definitely something else going on here. Try adding a
    Thread.sleep(1000) inside your while loop to prevent the process from
    spinning and eating up all the CPU...
    MK Parini wrote:
    Using WebLogic Server 6.0
    I wrote a simple stand alone Java client (see code below) that
    performs the following steps:
    1. Gets the Initial Context for the WLS JNDI
    2. Closes the initial context
    3. Goes into an indefinite loops (to keep the client alive)
    I start up one client and it performs steps 1, 2, and 3 and is
    sitting at step3.
    Then I start up another client. It hangs at step 1 until I kill
    the first client.
    It cannot obtain the initial context while the first client is
    running.
    I do not understand this behavior! Is this behavior correct?
    If so, could somebody
    explain why it works this way. The initial context is used to
    lookup our EJBs. If two
    clients cannot access the Initial Context at the same time, won't
    this be a major
    bottle neck when using EJBs?
    Please help!
    Here's is the code for the client....
    public static void main(String args[])
    try
    Context ctx = null;
    System.out.println("Before get context.");
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory");
    env.put(Context.PROVIDER_URL,
    "t3://localhost:7001");
    ctx = new InitialContext(env);
    System.out.println("Initial context created.");
    ctx.close();
    System.out.println("Closed context.");
    // Hang
    while(true){}
    catch (Exception e)
    e.printStackTrace();

  • Can I get a weblogic Initial context without importing all weblogic classes ?

    can I get a weblogic Initial context (with weblogic.jndi.WLInitialContextFactory)
    without importing all weblogic classes ?

    I ran my client through all its functions.
    I then took the access.log file and parsed out a list of all the class
    files that were downloaded and built a script to create my
    weblogiclient.jar file.
    Before running the client we had to:
    With WL5.1 I think we had to unjar the weblogicaux.jar file into the
    serverclasses directory so the client could load them all individually.
    Make sure you clean up after you are done with this.
    With WL 6 we did not have to do that.
    The access.log file is the key to building your own client jar file.
    We also require the use of the Java 1.3 plug-in by our clients (for
    Applets) so we can do multiple Jar caching.
    Tom
    Dominique Jean-Prost wrote:
    Hello tom
    What do you mean by "use the Weblogic class loader" ?
    Could you explain whath you exactly did to find all the classes you need ?
    regards.
    dom
    <nospam@nospam> a écrit dans le message news: 3ABF3EC2.9010200@nospam...
    You need the classes one way or another. BUT you do not have to
    redistribute the whole Weblogic.jar file. Use the Weblogic class
    loader then run your program. The weblogic access.log should have a
    listing of all the classes you need to use and you can build your own
    sub-jar. My experience is that this new jar is significantly smaller.
    Ours is around 600K instead of 15MB.
    Tom
    Dimitri Rakitine wrote:
    Yes, if, for example, you can network classload from WebLogic. Talking
    to a WebLogic
    server means WebLogic RMI (unless you use RMI/IIOP in which case youdont need any
    WebLogic classes) which needs WebLogic-specific classes, so you clientapplication needs
    to get them from somewhere - local classpath or remote WebLogic server.
    David Dahan <[email protected]> wrote:
    I mean without a classpath to all weblogic classes.
    can I get a weblogic Initial context (with
    weblogic.jndi.WLInitialContextFactory)
    without importing all weblogic classes ?

  • Not able to set Weblogic Runtime on eclipse while adding new weblogic srvr

    Hi Everyone,
    I downloaded Oracle Integration pack for eclipse by clicking at "Download additional server adapters". I am not able to set Weblogic Runtime on eclipse while adding new weblogic server.
    I am trying to give following values:
    Name :Oracle WebLogic Server 10gR3 (2)
    Weblogic home :C:\bea\wlserver_10.3
    Java home: C:\bea\jrockit_160_05
    Below it I am getting "No applicable extension found" and finish button is greyed out.
    Please help in telling what is wrong. Never faced such an issue.
    Thanks
    SM

    I found this problem too.
    OS:windows7、eclipse:helios、oepe:Part of Oracle Enterprise Pack for Eclipse 11.1.1.7.3
    <workspace>\.metadata\.log:
    !ENTRY org.eclipse.osgi 2 1 2012-06-05 00:16:06.357
    !MESSAGE NLS unused message: enter_new_hit_count in: org.eclipse.wst.jsdt.debug.internal.ui.messages
    !ENTRY org.eclipse.osgi 2 1 2012-06-05 00:16:06.357
    !MESSAGE NLS unused message: exception_occurred_setting_bp_properties in: org.eclipse.wst.jsdt.debug.internal.ui.messages
    !ENTRY org.eclipse.osgi 2 1 2012-06-05 00:16:06.357
    !MESSAGE NLS unused message: hit_count_must_be_positive in: org.eclipse.wst.jsdt.debug.internal.ui.messages
    !ENTRY org.eclipse.osgi 2 1 2012-06-05 00:16:06.357
    !MESSAGE NLS unused message: no_description_provided in: org.eclipse.wst.jsdt.debug.internal.ui.messages
    !ENTRY org.eclipse.osgi 2 1 2012-06-05 00:16:06.357
    !MESSAGE NLS unused message: scripts in: org.eclipse.wst.jsdt.debug.internal.ui.messages
    !ENTRY org.eclipse.osgi 2 1 2012-06-05 00:16:06.357
    !MESSAGE NLS unused message: select_javascript_file in: org.eclipse.wst.jsdt.debug.internal.ui.messages
    !ENTRY org.eclipse.osgi 2 1 2012-06-05 00:16:06.357
    !MESSAGE NLS unused message: set_bp_hit_count in: org.eclipse.wst.jsdt.debug.internal.ui.messages
    !ENTRY org.eclipse.osgi 2 1 2012-06-05 00:16:06.357
    !MESSAGE NLS unused message: suspend_target in: org.eclipse.wst.jsdt.debug.internal.ui.messages
    !ENTRY org.eclipse.osgi 2 1 2012-06-05 00:16:06.357
    !MESSAGE NLS unused message: suspend_thread in: org.eclipse.wst.jsdt.debug.internal.ui.messages
    !ENTRY org.eclipse.osgi 2 1 2012-06-05 00:16:06.357
    !MESSAGE NLS unused message: the_argument_0_is_not_valid in: org.eclipse.wst.jsdt.debug.internal.ui.messages
    I tried the weblogic 10.3.1、10.3.3、10.3.4、10.3.5 still show the info that "No applicable extension found" and finish button is greyed out.
    What is the reason?
    thanks!

  • Access 2007 Runtime & Windows 8.1

    Has anyone had success installing Access 2007 Runtime on Windows 8.1? (This particular computer only has Office Home installed).
    When I attempted this, the Runtime program seemed to install okay (opened a copy of AccessRuntime.exe as Administrator) -- at least there were no error messages, but there was also no "installation completed" message at the end (should there
    have been?)-- the status bar completed to 100% and then the installation window closed.
    When I attempted to open either an mdb or accbd file by double-clicking the file, the 2007 Runtime installation window opened and upon completion of the installation followed by a window asking "How do you want to open this file?"
    A box was checked for "Use this app for all .mdb files" (or accbd files). You could either check or uncheck this line.
    Below that line was the icon for Access and "Keep using Microsoft Office Access". Clicking this option started the Runtime installation process again, then returning to this same window asking how I wanted to open the file.
    There was a third option -- "more apps". Navigating to Program Files / Microsoft Office / Office12 and selecting msaccess.exe returned me to the same loop -- Runtime installation and "How do you want to open this file?".
    Have I missed something in this process?
    (Edit: maybe I should have made sure I unchecked the option to "Use this app to open all .mdb files"
    before choosing "more apps" and then Office12/msaccess.exe?)
    -- I'm hoping this has nothing to do with it, but this was being done on a new Dell laptop, which happened to be sitting next to a Windows 7 desktop, which was on at the time and which does have the full version of Access 2007 installed. During the above
    process I noticed a lot of hard drive activity on the desktop computer. Coincidence? Related somehow to the laptop's wireless capabilities? arrgghh.
    Thanks for any help,
    Mark

    I doubt the desktop is connecting to the laptop. What I suspect is that the office version is not the same version as Access. This might cause what we developers call the coffee break install. Access 2007 and Office 2010 or later have conflicting DLLs so
    Access has to write to the registry every time it opens.
    Match the runtime version to the current Office version and I bet that problem goes away.
    Bill Mosca
    www.thatlldoit.com
    http://tech.groups.yahoo.com/group/MS_Access_Professionals

  • Way to get access to the context menu

    I assume there is no official way to get access to the context menu, so you can add a menu item when, say, you right-click on a photo in the publish service collection. You can tweak the behaviour for the two existing items, but there does not seem to be a way to add your own.
    Regular menu Export, Library, Help menu items are too coarse, as they apply across the whole app. It would be nice to be able to add an item that invokes a script to do some stuff to the item.
    I can hack in a workaround using the various edit collection callbacks, but this is a kludge of the highest order.

    Context menu access would be nice. If squeaking helps, maybe an FR - I've already cast one, and assume Adobe only counts one per person...

  • To access a dynamic context node defined in a Used Component

    Hi Gurus,
    I need your help with something.
    I have a dynamic context node in ComponentA. I want it in Component B too.
    Component B uses Component A, but I am not able to get access to the context node.
    Is it possible to do this? Any suggestions how to proceed.
    PS: I am trying to do a dynamic mapping. The initial scenario was here, Set data into Model Node on Navigating from a View
    Thanks in advance,
    Anjana R.
    Message was edited by:
            Anjana Raghav

    Hi Gurus,
    Its working now. Earlier, the code was something like this....
    IWDNodeInfo compNode = wdThis.wdGet<i>Comp</i>Interface().wdGetAPI().getContext().getRootNodeInfo().getChild(nodeNm);
    viewNodeInfo.setMapping(compNode,true);
    and was trying to map it using
    iewNodeInfo.addMappedAttribute("order",".<i>Comp</i>."+ nodeNm + ".order");     
    Now, I am mapping like this.
    viewNodeInfo.addMappedAttribute("order","order");
    Thanks,
    Anjana R.

  • Access to Faces context

    Hello all,
    I am wondering how can I get access of faces context from POJO .
    Thanks.

    You have to use single quotes around the paramater name. I.e.
    <managed-property>
    <property-name>jdbcURL</property-name>
    <value>#{initParam['edu.stanford.smdjsf.jdbcURL']}</value>
    </managed-property>

  • Access to Stiky context menu ?

    Hi guys,
    is there any way to access to stiky context menu ?
    I want remove the "text style" menu.
    Itried the AVAppRegisterForContextMenuAddition for "Page" and Select, but this is not working on note and other stuff??
    (VC++, sdk 8)

    You mean the contextual menu that is brought up inside of a pop-up note? I don't believe that you can intercept that menu.
    Can you explain why you need to do so?

  • Perl based client to access weblogic web services

    Hello All,
    Do we have sample code where Perl (Soap::Lite) client will access weblogic based web services using https protocol?
    Regards,
    ssaxena

    Hello All,
    Do we have sample code where Perl (Soap::Lite) client will access weblogic based web services using https protocol?
    Regards,
    ssaxena

  • Office 2013 SP1 is here - when will Access 2013 Runtime get the service pack?

    Office 2013 SP1 is here - when will Access 2013 Runtime get the service pack? ie. When will we see Access 2013 Runtime Service Pack 1?

    Hi,
    There has no exact information about the Access 2013 Runtime Service Pack 1 now. We can continue to pay attention about it in the Microsoft Official website.
    Regards,
    George Zhao
    TechNet Community Support

  • I get an error message "application attempted to access C   runtime library incorrectly" when I try to update or reinstall iTunes. How can I resolve this issue?

    I get a Windows error message "application attempted to access C++ runtime library incorrectly" when I try to update or to reinstall iTunes. How do I resolve this issue?

    Hi there MRDLS,
    I would recommend taking a look at the troubleshooting steps found in the article below.
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    -Griff W.

  • HT1926 Tried to install latest iTunes update but get "A program is trying to illegally access C+Runtime..." and iTunes won't run

    Tried to install latest iTunes update, but got "A program is trying to illegally
    access C+ Runtime file.." and iTunes won't launch. Tried latest Windows update
    Service Pack and no joy.

    Try the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • CGLIB classes in WebLogic runtime

    I understand that WebLogic provide support for Spring and i see all the Spring repackaged Jars in Weblogic modules dir (including ASM libs).
    Similarly do we have CGLIB classes available in WebLogic runtime or some location by default?
    Or user should manually download it an add to the run time? In this case can we package the CGLIB jars to an application EAR or it must be available in the WL system class path?

    I've never heard of this library and I don't think WLS has this inside.
    All FWM libs and licenses are listed here:
    http://download.oracle.com/docs/cd/E14571_01/core.1111/e13777/toc.htm
    Even with Spring, you need to package spring.jar with your app.
    http://download.oracle.com/docs/cd/E14571_01/web.1111/e15511/deploy_jscal_apps.htm#sthref42
    WLS repackages Spring for some internal features, but that is not exposed to WLS users.

Maybe you are looking for

  • Tags: PSE6 versus Windows Live Photo Gallery

    Hi, I'm a Photoshop Elements 6 user who's mostly please with the program. I've avoided the organizer because tags assigned there don't seem to show up in Windows or Live photo gallery. Does anyone know if this has been fixed for PSE8? I am interested

  • Call for Diadem 9.01 simple axis rescaling procedure

    Hello, Being at start of axis system definition it is not too obvious for me how to simply (!) obtain another axes scales than those being predefined ( linear, logarithmic ... in the axis system menu "Curve and axis definition\Axis definition\2D-axis

  • How can I run 2 differeny Firefox versions

    I have Win 7 x64 operating system. How can I run two different FireFox versions? I want to be able to run FF3.6 and FF10 But it seems its set up the way that I can only install one of them.

  • Chase credit card 2 apps 1 pull?

    Greetings all, quick question, i just applied for a chase sapphire preffered, can i use the same pull to apply for a business card?

  • Adobe Professional Suite-07

    Good Afternoon. I have created a form that I wish to have my user area to fill in and email to one or more managers for approval.  The problem is:  Most users only have Adobe Reader and can not save a filled in/completed copy of the form.   Currently