How do Sessions work in Weblogic?

Hi,
For some reason, weblogic keeps forgetting and creating a new session everytime I send a http request. I basically login, and then make a request and it says that I can;t get it because I've logged out. Oddly enough, it doesn't have any problems when I use an IP address. It screws up when I use the computer name, which I thought was exacly the same as using an ip address.
I'm really new to Java programming, but have done a lot of c++.
I'm now adding the the SID (sessionID) to my calls to Weblogic server. eg &SID=blahblahblahasdfsda but it still makes new sessions for me at every request.
Any ideas would be great! Or let me know if you need more info. Can anyone point me to a help section on sessions and weblogic (servlet coding)?

April Ralph wrote:
How or what software do I need to work in my excel files brought over from my PC to my Mac Book Pro?
How the answer to your question is obvious to you, I have no idea, but to work in Excel files, you would need....Excel.

Similar Messages

  • How internally session works in servlet

    hi 2 all,
    My college project is simulate a Httpserver which handles request and response similar to that of Apache Tomcat.
    i want to know how session internally works. work in the sense, wt have they(Apache Tomcat) did in their HttpSession class. how and in what way the session must be maintained if i code that class of my own.
    Thaks in advance ..

    Apache Tomcat is open source so you can dowload the source and look at any classes you want. If you go to the following link:
    http://tomcat.apache.org/download-55.cgi
    and scroll down the page, you'll see links for the source code in either a tar or zip format.
    By the way, Apache Tomcat is an application server not an HttpServer. Apache also has an HttpServer. Application servers support servlets whereas HttpServers do not (they can server static content natively and dynamic content via CGI programs). HttpServers process requests and server up responses but they have no notion of a session (the http protocol is stateless). The reason I am mentioning all this is to warn you that your professor might not be thinking of the Apache Tomcat model. He might be thinking of the Apache HttpServer model. Make sure you're going down the right path before wasting any effort.

  • How to start workin with WebLogic 11g

    Hi!.
    can anyone out there guide me with how to start working with Weblogic..
    i have made a jsp page but cant deploy it.. actually i know how to on Weblogic 8 but not on this version of the S/W...
    Please give a detailed guiding about where to paste the jsp , servelets ant other pages in my folder because i cant find out where i have to paste the files to deploy them... and i cant find the weblogic builder...
    Please..

    Developing and deploying of web applications/ Enterprise applications remains the same as in wls 81.
    Please refer the following doc for deployment : http://download.oracle.com/docs/cd/E12839_01/web.1111/e13702/understanding.htm#i1051084
    For developing web application pls refer : http://download.oracle.com/docs/cd/E12839_01/web.1111/e13712/basics.htm#i153628
    Hope this helps.

  • How to deploy a session bean in Weblogic 9.2

    Hi,
    Can anyone please point me to the procedure of deploying session bean on weblogic 9.2. My operating system is Fedora 5. Please let me know the steps as i am very new to EJB.
    Regards,
    Sanjeev

    I looked for this information in ServletConfig, in ServletContext, in JVMID
    ServletConfig or ServletContext do not have anything (at least I do not see anything),
    The newsgroups recommend the following code
    public static String getLocalUrlString()
    String urlString;
    JVMID jvmid = JVMID.localID();
    urlString = jvmid.getHostAddress();
    weblogic.rjvm.Protocol proto
    =weblogic.rjvm.Protocol.getDefaultProtocol();
    int port = jvmid.getPort(proto);
    return urlString + ISoapConstants.SCHEME_DELIMITER + port;
    I also tried
    weblogic.rjvm.Protocol does not exist in current version, and I did not get any real information inside JVMID
    Also tried JVMID.localID().ports(), which returns null
    System.getProperty("weblogic.system.bindAddr"); or weblogic.system.listenPort property,
    getProperty returns null
    Tried also another approach from the newsgroups - JwsContext.
    /** @common:context */
    JwsContext context;
    String myPort = context.getService().getURL().getPort();
    String myUrl = context.getService().getURL().toString();
    context is null
    None of them worked.
    Do you have any other ideas?
    All those ideas I found in the newsgroups were to the previos version(s) of weblogic - up to 8.1. I have not found anything specific to 9.2

  • How to share Sessions between 2 Weblogic ?

    Hello,
    I've some problems in setting on Weblogic. Suppose there are 2
    Weblogic Servers, WebA and WebB. A New Session will be created if user
    go to the page in WebB from WebA. Is there any methods to share the
    Session between them ? I turned on the following properties in
    Weblogic.properties already.
    weblogic.httpd.session.persistence=true
    weblogic.httpd.session.persistentStoreType=jdbc
    weblogic.httpd.session.persistentStorePool=demoPool
    weblogic.httpd.session.persistentStoreShared=true
    But a new entry will be created as long as user go to the page at WebB
    from WebA.
    In fact, I want to use the Session entry created by WebA.
    Thx
    Lim

    You need to make sure that session tracking is enabled,
    either via cookies or url rewriting. Otherwise, the incoming
    request won't be able to tell the server which session it belongs to.
    Jason
    "Cheung" <[email protected]> wrote in message news:[email protected]..
    Hello,
    I've some problems in setting on Weblogic. Suppose there are 2
    Weblogic Servers, WebA and WebB. A New Session will be created if user
    go to the page in WebB from WebA. Is there any methods to share the
    Session between them ? I turned on the following properties in
    Weblogic.properties already.
    weblogic.httpd.session.persistence=true
    weblogic.httpd.session.persistentStoreType=jdbc
    weblogic.httpd.session.persistentStorePool=demoPool
    weblogic.httpd.session.persistentStoreShared=true
    But a new entry will be created as long as user go to the page at WebB
    from WebA.
    In fact, I want to use the Session entry created by WebA.
    Thx
    Lim

  • HOWTO:Deploy BC4J as Session Bean in Weblogic

    This document describes Howto deploy a BC4J Appmodule as EJB Session Bean to Weblogic and
    test the appmodule through the BC4J tester.
    =>create a BC4J Application using Business Components Wizard.
    =>test it using BC4J tester
    =>make the Application Module Remotable [list]
    [*]Select Appmodule and right mouse on it to select the edit option
    [*]Select Remote tab
    [*]Select the check box for Remotable Application Module
    [*]Select EJB Session Bean and shuttle it from Available list to Selected list
    [*]Click on the finish button[list]
    => Do File| Save All and a Rebuild on the project
    => create the weblogic XML Deployment Descriptor[list]
    [*]Choose File|New
    [*]Select the web objects tab
    [*]Select XML and click ok
    [*]Rename the file as ejb-jar.xml using File|Rename
    [*]Save it in the JDEV_HOME/myclasses/META-INF directory.
    [*]Open the xml file by double clicking on it.
    [*]Paste the following into the file
    <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>
    <ejb-jar>
    <enterprise-beans>
    <session>
    <ejb-name>wl.WlModule</ejb-name>
    <home>wl.common.ejb.WlModuleHome</home>
    <remote>wl.common.ejb.RemoteWlModule</remote>
    <ejb-class>wl.server.ejb.WlModuleServerEJB</ejb-class>
    <session-type>Stateful</session-type>
    <transaction-type>Bean</transaction-type>
    </session>
    </enterprise-beans>
    <assembly-descriptor>
    </assembly-descriptor>
    </ejb-jar>
    [*]Choose File|New
    [*]Select the web objects tab
    [*]Select XML and click ok
    [*]Rename the file as weblogic-ejb-jar.xml using File|Rename
    [*]Save it in the JDEV_HOME/myclasses/META-INF directory.
    [*]Open the xml file by double clicking on it.
    [*]Paste the following into the file
    <!DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB//EN' 'http://www.bea.com/servers/wls510/dtd/weblogic-ejb-jar.dtd'>
    <weblogic-ejb-jar>
    <weblogic-enterprise-bean>
    <ejb-name>wl.WlModule</ejb-name>
    <caching-descriptor>
    <max-beans-in-free-pool>100</max-beans-in-free-pool>
    <max-beans-in-cache>100</max-beans-in-cache>
    <idle-timeout-seconds>60</idle-timeout-seconds>
    </caching-descriptor>
    <jndi-name>wl.WlModule</jndi-name>
    </weblogic-enterprise-bean>
    </weblogic-ejb-jar>
    In this example "wl" is the package name and "WlModule" is the Appmodule name.[list]
    => generate the jar file for appmodule along with xml deployment descriptors[list]
    [*]from the command line in JDEV_HOME/myclasses directory run
    [*]jar cvf0 wlappmodule.jar wl META-INF[list]
    => edit the setenv.cmd file in WEBLOGIC_HOME directory[list]
    [*]set JAVA_HOME=f:\jdev32\java1.2
    [*]set JBOLIB=f:\jdev32\lib
    [*]set JDBC_CLASSES=f:\jdev32\jdbc\lib\oracle8.1.7\classes12.zip
    [*]set JBO_RUNTIME=%JBOLIB%\jboorasql.zip;%JDBC_CLASSES%;%JBOLIB%\jbodatum12.zip;%JBOLIB%\xmlparserv2.jar;%JBOLIB%\jbomt.zip;%JBOLIB%\jboejb.jar
    [*]add JBO_RUNTIME in the set CLASSPATH variable[list]
    => create a bc4j deploy batch file "Deploybc4j.cmd" in the WEB_LOGIC HOME
    which will generate the server side jar files
    @setlocal
    set JAVA=java
    set JAVAC=javac
    set BEAN_JAR=%1
    set EJB_TEMP=f:\jdev32\myclasses\wl
    set XMLPARSERV2=f:\jdev32\lib\xmlparserv2.jar;
    set JDBC_LIBS=f:\jdev32\jdbc\oracle8.1.7\lib\classes12.zip
    set JBO_EJB_RUNTIME=f:\jdev32\lib\jbomt.zip;f:\jdev32\lib\jboejb.jar;%XMLPARSERV2%;%JDBC_LIBS%
    set CLASSPATH=%CLASSPATH%;%JBO_EJB_RUNTIME%;%BEAN_JAR%;%EJB_TEMP%
    %JAVA% weblogic.ejbc -compiler javac f:\jdev32\myclasses\wlappmodule.jar f:\jdev32\myclasses\wlAppModuleGenerated.jar;f:\jdev32\lib\jbodomorcl.zip
    pushd %EJB_TEMP%
    @endlocal
    Note: substittue appropriate jar file and directory structure names
    => Run setenv.cmd
    => Run deploybc4j.cmd
    => Configure Weblogic server[list]
    If your weblogic server is residing on a different machine then
    [*]copy wlAppModuleGenerated.jar (generated jar file from deploybc4j.cmd)
    [*]Copy classes12.zip from JDEV_HOME/jdbc/lib/oracle8.1.7/ directory
    [*]Copy jbodomorcl.zip
    [*]jbodatum12.zip
    [*]xmlparserv2.jar
    [*]jbomt.zip
    [*]jboejb.jar from JDEV_HOME/lib directory
    [*]edit weblogic.properties file in WEBLOGIC_HOME directory
    [*]In the WEBLOGIC EJB DEMO PROPERTIES sectio
    [*]add weblogic.ejb.deploy=E:/weblogic/myserver/wlAppModuleGenerated.jar
    (generated jar file from deploybc4j.cmd file)
    [*]edit startweblogic.cmd file in WEBLOGIC_HOME directory
    [*]set POST_CLASSPATH=f:\jdev32\jdbc\oracle8.1.7\lib\classes12.zip;f:\jdev32\lib\jboorasql.zip;f:\jdev32\lib\jbodatum12.zip;f:\jdev32\lib\xmlparserv2.jar;f:\jdev32\lib\jbomt.zip;f:\jdev32 \lib\jboEJB.jar;f:\jdev32\lib\jbodomorcl.zip
    [*]add E:/weblogic/myserver/wlAppModuleGenerated.jar
    (generated jar file from deploybc4j.cmd file) in the weblogic_classpath setting[list]
    Note: modify the directory structure of jar files as apporpriate
    => Run the BC4J tester to test the deployed BC4J Appmodule as session bean to Weblogic[list]
    [*]Add a new library
    [*]Select the Project in which you developed the BC4J Appmodule
    [*]Project | Project Properties
    [*]select libraries tab
    [*]Click on Add
    [*]Click on New
    [*]Specify "JBO WL Client" in the NAME
    [*]Click on ... button for adding the jar files
    [*]Click on Add/Zip jar button to add the following files
    weblogicaux.jar
    jboremoteejb.zip
    jboremote.zip
    <Weblogic_home>/classes
    [*]Click on OK
    [*]Start the weblogic server
    [*]Bring the BC4J Tester by doing a right mouse on the appmodule and selecting Test option
    [*]In the Middle Tier Server Type Select "Weblogic"
    [*]Specify Host name and port # of weblogic server
    [*]Click on Connect[list]
    raghu
    null

    Although this explains how to then deploy to Weblogic on another server, it still presumes that it is installed on the same computer as JDev. I moved the weblogic.jar file over to the computer and fudged a few things to get it to work.
    Also, I am testing this with Weblogic 6.0, so some of the information does not work as prescribed. I edited the config.xml instead of the weblogic.properties file. I am trying to figure out where to put all of the *.jar and *.zip files that I copied over to the Solaris machine with Weblogic. Any suggestions?
    And one of the steps in the section to create the deploybc4j.cmd file is wrong. It says
    "%JAVA% weblogic.ejbc -compiler javac f:\jdev32\myclasses\wlappmodule.jar f:\jdev32\myclasses\wlAppModuleGenerated.jar;f:\jdev32\lib\jbodomorcl.zip"
    Which does not work. I took off the last part:
    "%JAVA% weblogic.ejbc -compiler javac f:\jdev32\myclasses\wlappmodule.jar f:\jdev32\myclasses\wlAppModuleGenerated.jar"
    and it worked. It was getting that whole last part and trying to create a directory with that name and failing.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by David Shanes ([email protected]):
    This seems to assume that JDev and Weblogic are installed on the same server (I refer to the section on setting the setenv.cmd file in the WEBLOGIC_HOME dir that includes the path to the JDev install.
    I have JDev installed on a Win 2k box and Weblogic installed on a Solaris. Any suggestions? I got all the way up to the setenv.cmd step fine.<HR></BLOCKQUOTE>
    null

  • How Transaction Manager work with Resource Manager, like Connection pool?

    hi,
    I'm using BEA Webloigc8.1 Stateless Session Bean/DAO/Oracle stored proc.
    but I'm not quite clear how Transaction Manager work with Resource Manager, like Connection pool.
    my understanding is that, in a weblogic transaction, a stateless session bean interact with several DAOs, and for each method of DAO a connection is acquired from connection pool. I've heard that the connection will not return to pool until the transaction commits.
    My question is that, does it mean that for a weblogic transaction, multiple connections might be allocated to it? and if multiple connections are allocated, then how many oracle transactions would be started? or multiple connections share the same oracle transaction?
    I didn't feel it make sense to start multiple oracle transactions, cause deadlock might be incurred in a single weblogic transaction.
    any help appreciated!

    Xin Zhuang wrote:
    hi,
    I'm using BEA Webloigc8.1 Stateless Session Bean/DAO/Oracle stored proc.
    but I'm not quite clear how Transaction Manager work with Resource Manager, like Connection pool.
    my understanding is that, in a weblogic transaction, a stateless session bean interact with several DAOs, and for each method of DAO a connection is acquired from connection pool. I've heard that the connection will not return to pool until the transaction commits.
    My question is that, does it mean that for a weblogic transaction, multiple connections might be allocated to it? and if multiple connections are allocated, then how many oracle transactions would be started? or multiple connections share the same oracle transaction?
    I didn't feel it make sense to start multiple oracle transactions, cause deadlock might be incurred in a single weblogic transaction.
    any help appreciated!Hi. If you configure your WLS DataSource to use keep a connection for
    the duration of a tx, it will do that, and in any case there can be
    no deadlock however many connections operate for a given XA transaction.
    Here is the best coding form for DAOs or any other user-written code
    for using WebLogic DataSources. This is important for two reasons:
    1 - Thread-safety is maintained as long as the connection is a
    method-level object.
    2 - It is crucial to notify WebLogic that you are done with a connection
    ASAP, by your calling close() on it. We will then put it back in the
    pool, or keep it under the covers for your next request if it's in a
    transaction etc. The pool is optimized for quick get-use-close scenarios.
    public void one_of_my_main_JDBC_Methods()
    Connection con=null; // Must be a method level object for thread-safety
    // It will be closed by the end of the method.
    try {
    con = myDataSource.getConnection(); // Get the connection in the try
    // block, directly from the WebLogic
    // datasource
    // do all the JDBC within this try block. You can pass the
    // connection to subordinate methods, but not to anywhere
    // that thinks it can use the connection later.
    rs.close(); // close any result set asap
    stmt.close(); // then close any statement asap
    // When you're done with JDBC
    con.close(); // close the connection asap
    con = null; // nullify it so the finally knows it's done
    catch (Exception e) {
    // do whatever catch stuff you want. You don't
    // need a catch block if you don't want one...
    finally {
    // It is important to close a JDBC connection ASAP when it's not needed.
    // without fail, and regardless of exit path. Do everything in your
    // finally block in it's own try-catch-ignore so everything is done.
    try { if (con != null) con.close();} catch (Exception ignore){}
    return ret;
    }

  • How Can I Use Multiple Weblogic Instances in a Single OS

    Hello Everyone,
    Actually I have to install Some different applications. Few of them need weblogic 10.3.6 and others need 10.3.4. The OS am using is Oracle  Enterprise Linux 5.
    Now I am able to install 2 separate(One of 10.3.4 and 10.3.6) instances with two different users,In two different directories.
    I have installed the weblogic 10.3.6 version with a user webadmin and installed node manager with port 5556. This is working fine.
    The main problem here is :
    In the second instance (10.3.4 ) installed with a a different user and gave the port number to NodeManager as 1600 and its not getting started. Its throwing error and also after some errors in the terminal am able to see that its reverting to port number 5556 only.
    What might be the issue?
    I have to install 2 different versions of weblogic in a single Server. But am failing with NodeManager. What Can I do to have multiple weblogic instances with multiple versions in a single server ?
    Can anyone suggest a resolution for this please ?
    Thanks in advance.

    Pl do not spam these forums with multiple posts - How Can I Use Multiple Weblogic Instances in a Single OS

  • Has anyone gotten OAM/WebLogic SSPI to work w/WebLogic Portal Server 9.2?

    Hi,
    I was wondering if anyone here has been able to get the WebLogic SSPI (10.1.4.0.1) working with WebLogic 9.2 (on Solaris 10)?
    I've gotten it installed, but when I switch from the default "myrealm" WebLogic realm to the "NetPointRealm", WebLogic will no longer start.
    After enabling security debugging in WebLogic, it appears that the user that I'm using with the startup is authenticating properly with OAM, but then that user is not getting the WebLogic "admin" role, which then causes the WebLogic boot to fail.
    I have the "admin" role in WebLogic mapped to the "Administrators" group OR the "BEA_Administrators" group, and in OAM, the user is a member of both groups, and in the WebLogic security debug, I can see that the groups are being returned, but the group names are somewhat strange (extra characters), and that may be why the role mapper may be failing (it returns "Anonymous" role).
    Jim

    Hello
    I am also facing problems with OAM 10.X to work with weblogic 9.2 on Solaris 10.
    Presently after instalation & initial configuation, when i enable Netpoint realm, server is not starting. But i can see weblogic boot user getting authenticated successfully in access server audit logs. After switching to debug mode - server startup throws error :
    <Throwing LoginException(NRE005 : Invalid member weblogic)>
    Can you please let me know how did you resolve your problem. It might give me a direction to debug.
    Thanks
    Sumit

  • Termination Workbench how will it work and factors.

    Hi,
    Termination Workbench how will it work and what are the factors need to consider at the time of implementation.
    Regards,
    BusinessSuite.

    Hi,
    When we are implementing the Termination Workbench we have to consider the following activies.
    Purpose
    This component helps in terminating an employee from the payroll.
    The Termination Workbench computes the various types of payments due to, or payable by the employee at the time of termination. For example, Gratuity, Superannuation, Leave Encashment or any pending Reimbursable allowances.
    The termination of employment may be due to the:
    Resignation of an employee
    Retirement of an employee
    Voluntary retirement or premature retirement by an employee
    Integration
    1.Contract Elements info type (0016) u2013 Where you maintain the details of the employment contract, between the company and the employee. Termination Workbench determines the notice period for termination using this info type.
    2.Date Specifications info type (0041) u2013 Where you maintain the date of Normal Retirement of the employee. Termination Workbench computes the relief on Voluntary Retirement Service benefit for the employee using the data maintained in this info type.
    3.Personal IDs info type (0185) u2013 Termination Workbench obtains the Gratuity and Superannuation Trust details for the employee from the info type.
    4.Additional Payments info type (0015) u2013 After the transaction is complete, Termination Workbench updates the payment records in the Additional Payments info type (0015). The updated amounts are disbursed to the employee through the payroll run, along with other components of the salary.
    5.Actions info type (0000) u2013 When an employee is terminated using the Termination Workbench, the Termination Workbench delimits the employee in the Actions info type (0000).
    Features
    The Termination Workbench comprises of the following processes:
    Termination transaction (PC00_M40_TERM)- Using this transaction you can specify the details of employee Gratuity, Superannuation, Leave Encashment, Voluntary Retirement Services and Reimbursable Allowances.
    The transaction reads the relevant info types and determines the amounts payable to the employee. For example, amounts payable as Gratuity, Superannuation, Notice Pay and Leave Encashment. You can modify these amounts using the transaction. When you execute the transaction, it updates the relevant wage types in the Additional Payments info type (0015). This transaction also creates a batch session for delimiting the info type records.
    Batch Input monitoring transaction (SM35) u2013 Using this transaction, you can execute the batch session created by the Termination transaction (PC00_M40_TERM). Upon execution, the batch session delimits the info types configured for delimiting, in the info group.
    The batch session also delimits the employee in the Actions info type (0000). You can set the Return Action Type for Termination Workbench feature (40TRM) for the Action Type to be defaulted in Actions info type (0000) when the info type record gets delimited.
    Payroll u2013 when you execute the payroll for the period in which the employee was terminated, the payroll processes the amounts payable at the time of termination. For example, Notice Pay, Gratuity, Superannuation and Leave Encashment. The payroll also calculates the applicable exemptions.
    Warm Regards,
    Devi.,

  • What is persistence?  How does it work?

    Hi,
    I'm a total noob. I've been reading and following examples from books but I haven't read anything about how persistence really works? How does it help my session beans to access or make transactions to the database? How does it actually work? What if I just make direct queries from my session beans without the help of the EntityManager or the Peristence API? What's the difference?
    Like this for example:
    Customer requestCustomer = em.find(Customer.class.customerId);Does it mean that the Persistence API keeps the object alive in the Customer Entity? For how long? Until the application is closed? If so, what happens if the user opens the application again and looks for that object?
    Why can't I just make a direct query to see if that customerId exists in the database?
    I hope you guys don't mind my questions... I just really want to learn this stuff and I gotta let things out of my head. Hope you can help. Thanks!

    morphian wrote:
    Hi,
    I'm a total noob. I've been reading and following examples from books but I haven't read anything about how persistence really works? How does it help my session beans to access or make transactions to the database?
    How does it actually work? What if I just make direct queries from my session beans without the help of the EntityManager or the Peristence API? What's the difference?
    You have to code the stuff that EntityManager and Persistence are doing for you.
    Like this for example:
    Customer requestCustomer = em.find(Customer.class.customerId);Does it mean that the Persistence API keeps the object alive in the Customer Entity? For how long? Until the application is closed? Complicated. Not enough info.
    If so, what happens if the user opens the application again and looks for that object?
    Open the app and the object will be refreshed from that data store. Hence the word "persistent".
    Why can't I just make a direct query to see if that customerId exists in the database?
    You can.
    I hope you guys don't mind my questions... I just really want to learn this stuff and I gotta let things out of my head. Hope you can help. Thanks!This isn't the way to do it, but it's a start.
    %

  • How can one invoke a WebLogic EJB from a BPEL Server hosted on OC4J?

    How can one invoke a WebLogic EJB from a BPEL Server hosted on OC4J?
    Reason I ask is I keep getting this error:
    javax.naming.NoInitialContextException: Cannot instantiate cla
    ss: weblogic.jndi.WLInitialContextFactory [Root exception is java.lang.ClassNotF
    oundException: weblogic.jndi.WLInitialContextFactory]
    Note: I am using <bpelx:exec> as a way to execute some java program.
    Essentially my java client (essentially an EJB client hosted on Oc4J) needs access to wlclient.jar since it needs access to weblogic.jndi.WLInitialContextFactory. I have a EJB client running on BPEL server hosted on Oc4J that needs to access some EJBs hosted on weblogic.
    Where do I place this wlclient.jar so that BPEL PM can start peacefully and at runtime discover the InitialContextFactory classes?
    Placing it in the j2ee/home/applib doesn't solve the problem. The server fails to start up if I do this
    I tried placing it in BPEL-INF\lib directory ...
    I still get the same exception...see below for exception dump
    I verified the BPEL suitcase, and it in fact does contain the jar file wlclient.jar
    integration\orabpel\domains\default\deploy contains the bpel_BPELProcess2_1.0.jar file and snapshot of that is as follows:
    <PRE>
    &#9474; bpel.xml
    &#9474; BPELProcess2.bpel
    &#9474; BPELProcess2.jpr
    &#9474; BPELProcess2.wsdl
    &#9474; bpel_BPELProcess2_1.0.jar
    &#9474; build.xml
    &#9474; buildxml.copy
    &#9474; graphics.xml
    &#9474;
    &#9500;&#9472;&#9472;&#9472;BPEL-INF
    &#9474; &#9492;&#9472;&#9472;&#9472;lib
    &#9474; myEJB.jar
    &#9474; wlclient.jar
    &#9474;
    &#9500;&#9472;&#9472;&#9472;META-INF
    &#9474; MANIFEST.MF
    &#9474;
    &#9492;&#9472;&#9472;&#9472;output
    bpel_BPELProcess2_1.0.jar
    </PRE>
    I tried using the BPEL-INF\jar directory...Is this something the obant automatically detects? or do I have to modify the build.xml? I created this directory and let Jdev deploy to local BPEL server->default domain handle it
    #####################3
    I even tried copying the wlclient.jar to
    integration\orabpel\system\classes but this doesn't help since the BPEL PM fails to start if I explode this jar into this directory.
    In short,where do I place the wlclient.jar so that this exception can be contained.
    I edited the build.xml to point to the jar, that too didn't work, unless I made some mistake in the file
    <bpelc classpath="${basedir}/BPEL-INF/classes;${home}/system/classes;${home}/lib/j2ee_1.3.01.jar;${basedir}/BPEL-INF/jar/wlclient.jar" input="${basedir}/bpel.xml" rev="${rev}" deploy="${deploy}" />
    </target>
    </project>
    DETAILS on ERROR
    I get the following error
    Process "BPELProcess2" (revision "1.0") successfully compiled.
    <2005-12-14 09:17:55,770> <INFO> <default.collaxa.cube.engine.deployment> Proces
    s "BPELProcess2" (revision "1.0") successfully loaded.
    05/12/14 09:18:36 weblogic.jndi.WLInitialContextFactory
    javax.naming.NoInitialContextException: Cannot instantiate cla
    ss: weblogic.jndi.WLInitialContextFactory [Root exception is java.lang.ClassNotF
    oundException: weblogic.jndi.WLInitialContextFactory]
    05/12/14 09:18:36 at javax.naming.spi.NamingManager.getInitialContext(Nami
    ngManager.java:652)
    05/12/14 09:18:36 at javax.naming.InitialContext.getDefaultInitCtx(Initial
    Context.java:243)
    05/12/14 09:18:36 at javax.naming.InitialContext.init(InitialContext.java:
    219)
    05/12/14 09:18:36 at javax.naming.InitialContext.<init>(InitialContext.jav
    a:195)
    05/12/14 09:18:36 at com.ejb.test.MapFinder.getDefaultMapName(Map
    Finder.java:37)
    ##################3
    with the bpelx all I have is two lines of code that creates a java object and calls a method on it.
    The method does this:
        private String initialContextFactory = "weblogic.jndi.WLInitialContextFactory";
        private String providerUrl = "t3://localhost:7001";
        private String urlPkgPrefixes = "";
        private String mapEjbJndiName = "ejb/mycompany/Redlands";
        public String getDefaultMapName() {
          try {
              Hashtable env = new Hashtable();
              env.put(Context.INITIAL_CONTEXT_FACTORY, getInitialContextFactory());
              env.put(Context.PROVIDER_URL, getProviderUrl());
              if (getUrlPkgPrefixes() != null && !getUrlPkgPrefixes().equals(""))
                  env.put(Context.URL_PKG_PREFIXES, getUrlPkgPrefixes());
              System.out.println("    " + getInitialContextFactory());
              System.out.println("    " + getProviderUrl());
              System.out.println("    " + getUrlPkgPrefixes());
              System.out.println("    " + getEjbName());
              // Get a naming context
              context = new InitialContext(env);
               Object ms  = context.lookup(getEjbName());
              MyEJBHome home = (MyEJBHome ) PortableRemoteObject.narrow(ms, MyEJBHome.class);
              myEjb = home.create();
              return myEjb.getDefaultName();
          } catch (RemoteException re){
              System.out.println(re.getCause().getMessage());
          catch (Exception ex) {
              ex.printStackTrace();
          return null; //if unable to resolve the context factory etc...
        }

    I did exactly as you suggested. I edited the application.xml and added this
    <library path="C:\ArcGIS\test\bea\wlclient.jar"/>
    I didn't add weblogic because the needed classes were all in wlclient.jar
    I also edited the BASE_OB_CLASSPATH to include this jar.
    Here is the result when I just start BPEL PM Server. Somehow BPEL PM doesn't like to have wlclient.jar in its classpath during startup.
    Failed to create "worker" bean; exception reported is: "javax.naming.NameNotFoun
    dException: remaining name: env
    at weblogic.j2eeclient.SimpleContext.lookup(SimpleContext.java:49)
    at weblogic.j2eeclient.SimpleContext.lookup(SimpleContext.java:57)
    at weblogic.j2eeclient.SimpleContext.lookup(SimpleContext.java:62)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at com.collaxa.cube.engine.ejb.impl.WorkerBean.ejbCreate(WorkerBean.java
    :49)
    at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.evermind.server.ejb.MessageDrivenHome.getInstance(MessageDrivenHo
    me.java:1235)
    at com.evermind.server.ejb.MessageDrivenHome$2.run(MessageDrivenHome.jav
    a:1150)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
    sableResourcePooledExecutor.java:186)
    at java.lang.Thread.run(Thread.java:534)
    <2005-12-29 13:39:05,281> <ERROR> <collaxa> <ServerManager::loadAllDomains>
    ORABPEL START-UP ERROR!!!!!!!!
    OraBPEL run-time system failed to start due to exception:
    Could not initialize jms connection pool.
    Could not initialize connection pool for connection factory "java:comp/env/jms/
    ollaxa/BPELInvokerQueueFactory"; the reason is remaining name: env/jms/collaxa/
    PELInvokerQueueFactory.
    Note: So what I did was to removed the entry from application.xml and tried with just obsetenv.bat having the wlclient.jar added to it. This too failed!!
    Here is a snapshot of the error I got.
    Process "BPELProcess2" (revision "1.0") successfully compiled.
    <2005-12-29 13:53:11,207> <INFO> <default.collaxa.cube.engine.deployment> Proces
    s "BPELProcess2" (revision "1.0") successfully loaded.
    05/12/29 13:53:32 Cannot instantiate class: weblogic.jndi.WLInitialContextFactor
    y
    05/12/29 13:53:32 javax.naming.NoInitialContextException: Cannot instantiate cla
    ss: weblogic.jndi.WLInitialContextFactory [Root exception is java.lang.ClassNotF
    oundException: weblogic.jndi.WLInitialContextFactory]
    05/12/29 13:53:32 at javax.naming.spi.NamingManager.getInitialContext(Nami
    ngManager.java:652)
    05/12/29 13:53:32 at javax.naming.InitialContext.getDefaultInitCtx(Initial
    Context.java:243)
    05/12/29 13:53:32 at javax.naming.InitialContext.init(InitialContext.java:
    219)
    05/12/29 13:53:32 at javax.naming.InitialContext.<init>(InitialContext.jav
    a:195)
    05/12/29 13:53:32 at com.esri.adf.ejb.test.MapFinder.getDefaultMapName(Map
    Finder.java:57)
    05/12/29 13:53:32 at bpel.p0.ExecLetBxExe1.execute(ExecLetBxExe1.java:62)
    05/12/29 13:53:32 at com.collaxa.cube.engine.ext.wmp.BPELXExecWMP.__execut
    eStatements(BPELXExecWMP.java:49)
    05/12/29 13:53:32 at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perfo
    rm(BPELActivityWMP.java:185)
    05/12/29 13:53:32 at com.collaxa.cube.engine.CubeEngine.performActivity(Cu
    beEngine.java:3398)
    05/12/29 13:53:32 at com.collaxa.cube.engine.CubeEngine.handleWorkItem(Cub
    eEngine.java:1905)
    05/12/29 13:53:32 at com.collaxa.cube.engine.dispatch.message.instance.Per
    formMessageHandler.handleLocal(PerformMessageHandler.java:75)
    05/12/29 13:53:32 at com.collaxa.cube.engine.dispatch.DispatchHelper.handl
    eLocalMessage(DispatchHelper.java:100)
    05/12/29 13:53:32 at com.collaxa.cube.engine.dispatch.DispatchHelper.sendM

  • How the balance works for http/https in CSS?

    I want to understand how the balance works for http/https in the CSS.
    As per doc,
    - http/1.0=single URL per TCP connection
    - http/1.1=persistent connection.
    Q1. my understanding is http is stateless connection so needs TCP session for each URL. how the http/1.1 works with persistent. keep the same TCP session for a multiple URL request?
    Q2. https is using single URL and continue processing until terminate the https instead of open another URL in the middle of transaction. in this case, I think the client can stick into same service based on the assumption the CSS support persistent. if then, no advanced sticky(ex, srcip) required?
    Q3. looks below both are analogy. what's difference between them?
    - balance srcip(same src IP to the same service)
    - advanced-balance sticky-srcip
    Q4. what's balance decision mechanism for "balance roundrobin" to distribute evenly? ex, in case of multiple URL request coming from same client. evenly distribute URLs?
    Regards,

    Hello,
    first let me clarify 1 point.
    HTTP/HTTPS are standards that are defined in RFC.
    For HTTP/1.1 you can check the following RFC
    http://www.faqs.org/rfcs/rfc2616.html
    Therefore, the behavior of HTTP 1.1 is not defined by the CSS.
    Q1- HTTP/1.1 simply keeps 1 TCP connection to send a received mutiplie HTTP request/response.
    HTTP/1.0 will open 1 TCP connection for every HTTP request.
    Q2- HTTPS is just HTTP over SSL.
    So basically the same rule as above applies.
    HTTP/1.1 can use 1 SSL connection for many HTTP request/response while HTTP/1.0 will use 1 SSL connection for each HTTP request.
    Therefore, if you have customer using HTTP/1.0 you need some form of stickyness to guarantee that every connections will go to the same server.
    Even if only using HTTP/1.1 you may need stickyness.
    A user could disconnect and reconnect and require to be loadbalanced to the same server as before.
    Q3- There is a big different between balance srcip and sticky-srcip.
    The balance srcip simply hash the source ip address to find the destination server.
    The problem of this method is that the loadbalancing is not guarantee to be evenly distributed between the servers.
    With sticky-srcip, you use a normal balance method like round-robin, and then you create a sticky entry in a sticky table.
    Next time this user comes back we first check the sticky entry to find the destination server.
    The advantage is that it guarantess your users will be evenly distributed among the server.
    Q4- roundrobin is applied to connection - not url [by default].
    So if you have 2 users and they both open 1 connection, the CSS will send 1 connection to 2 different servers.
    So each server has 1 connection.
    If one user sens 10 URL and the other 1 sends only 1, one server will have 10 url to process while the other only one.
    That's if you are using HTTP/1.1 and use persistent mode on the CSS.
    You can break persistency and split the url.
    I run out of space and time to explain you everything.
    I suggest you go read the RFC or a book on HTTP.
    Also read the CSS configuration guide.
    There is much more you need to know if you want to take full advantage of the CSS like cookie, ssl offloading, L7 rules vs L3/4 rules, ...
    Regards,
    Gilles.

  • How To Run OIM Under Weblogic As A Windows Service?

    Hi
    does anyone know how to run OIM under Weblogic as a windows service?
    Many thanks in advance,
    Evanela

    Hi
    Does anyone know how to run OIM under Weblogic as a windows service?
    I have used "Setting Up a WebLogic Server Instance as a Windows Service" (http://download.oracle.com/docs/cd/E12839_01/web.1111/e13708/winservice.htm#START143), but It doesn't work because OIM use the xlStartWLS.cmd file and not startWebLogic.cmd.
    thanks!
    Edited by: user13082223 on Sep 29, 2010 9:09 AM

  • How many sessions would I need for BBP?

    Hi friends,
    I am going to work on preparing a BBP document for Benefits implementation. Could you please guide me on how many sessions of workshops would I be needing for different components of Benefits module? I need to prepare presentations for each session. So, it would be great if you could also help me in dividing the module components into different sessions.
    I have to perform these activities for PA and OM modules as well.
    Your guidance would be a great help for me.
    Thanks in Advance,
    Sanjay.
    P.S. - Appropriate points will be awarded.

    Hi,
    Preparation of blue print comes after you gather all the requirements, discuss the gaps with the clients. Gathering the requirements and mapping them to SAP will be done in series of workshops. You may have two workshops for each module and two workshops to discuss integration requirements. Once you are clear on the requirements and the Gaps, plan for a workshop on initial draft blue print discussion. This discussion would be for the design and content of the BBP. Later one workshop to present the complete blueprint to the client whci would include all the main stakeholders of all the modules. Later small changes can be made with individual discussions and go for sign off.
    If you are particular abut the number of sessions, it depends on the complexity of business requirements. If the requirements are many and complex in nature, you need more sesions to understand the scenarios completely. Once you are clear with the AS IS and TO BE, preparation of BBP will become an easier task.
    Regards,
    Suhasini

Maybe you are looking for

  • Airport Express in hotels?

    It used to be that my airport express had no problems connecting to hotel ethernet systems. 90% of the time, it connected and let me set up a local network. For the past 4 months, 0% of the time it has allowed that (maybe 8 different hotels). Has som

  • Letter to Lenovo. This is what happens when you can't live up to your own advertising!!!

    THIS IS A LETTER A WROTE TO LENOVO. HOW MUCH B.S. IS THIS HUGH!? READ AND TELL ME WHAT YOU THINK... THIS IS MY SECOND ATTEMPT TO REACH SOMEONE THAT IS LITERATE!!!!!!!!!! AN APOLOGY IS NOT GONNA PUT $825 BACK IN MY POCKET! IF I WOULD HAVE KNOWN I WOUL

  • I want to update my 3250 xpressmusic (RM-38 V04.14...

    I want to update my 3250 xpressmusic (RM-38 V04.14)but in 2nd step the updater says: please note that not all models have new software available. nokia produces many different variants of each product (for different countries and languages) and not a

  • My cc apps won't install on my mac?

    Illustrator cc and Photoshop cc are updated on the creative cloud thingy, but it wont install on my mac. What should I do?

  • Reg:USEREXITS & IDOCs

    hi gurus, can anyone help me out briefly about userexits and idocs by giving an example, and in which type of scenarios we normally use those. thanks&regards Rajashekar...