Accessing specific app server instance with proxy

We are running WLS 6.1 SP4 and WebLogic Portal 4.0 SP3. We are running a cluster
with an apache web server out front acting as a proxy. We have HTTP_PORT defined
as 80 in web.xml for the Apache server. The app servers are running on port 8501.
We've noticed that when we try to access our application on a specific app server
by going to the app server address and port directly, the URL's that are created
in the response HTML pages by the createWebflowURL tags contain the web server
port instead of the app server port.
We're wondering if there is anything that we can configure so that a client can
come in through the web server or through a specific app server instance and have
the application URL's still work (i.e. handle both cases dynamically). While
the createWebflowURL tag seems to use request.getServerName() it does not seem
to use request.getServerPort() as we'd expect. Instead, it uses the hard-coded
HTTP_PORT or the app server port if HTTP_PORT is not specified.
Any ideas? Without this, it appears difficult to execute tests on a specific
app server for monitoring purposes when running with a proxy server and a cluster.
Regards,
Jeff

For anybody who reads this expecting a resolution, I eventually found out the cause of the problem... Dodgy nvram. After looking a little closer, I noticed the date had reset to pre-epoch and was not getting more than 3 seconds past the hour. After resetting the date/time, the same problem was apparent. I reported this to Sun who swapped out the nvram and everything is back to normal.
Oh, and when I set the date to post-epoch, the JVM worked fine again.

Similar Messages

  • JNDI Lookup for multiple server instances with multiple cluster nodes

    Hi Experts,
    I need help with retreiving log files for multiple server instances with multiple cluster nodes. The system is Netweaver 7.01.
    There are 3 server instances all instances with 3 cluster nodes.
    There are EJB session beans deployed on them to retreive the log information for each server node.
    In the session bean there is a method:
    public List getServers() {
      List servers = new ArrayList();
      ClassLoader saveLoader = Thread.currentThread().getContextClassLoader();
      try {
       Properties prop = new Properties();
       prop.setProperty(Context.INITIAL_CONTEXT_FACTORY, "com.sap.engine.services.jndi.InitialContextFactoryImpl");
       prop.put(Context.SECURITY_AUTHENTICATION, "none");
       Thread.currentThread().setContextClassLoader((com.sap.engine.services.adminadapter.interfaces.RemoteAdminInterface.class).getClassLoader());
       InitialContext mInitialContext = new InitialContext(prop);
       RemoteAdminInterface rai = (RemoteAdminInterface) mInitialContext.lookup("adminadapter");
       ClusterAdministrator cadm = rai.getClusterAdministrator();
       ConvenienceEngineAdministrator cea = rai.getConvenienceEngineAdministrator();
       int nodeId[] = cea.getClusterNodeIds();
       int dispatcherId = 0;
       String dispatcherIP = null;
       String p4Port = null;
       for (int i = 0; i < nodeId.length; i++) {
        if (cea.getClusterNodeType(nodeId[i]) != 1)
         continue;
        Properties dispatcherProp = cadm.getNodeInfo(nodeId[i]);
        dispatcherIP = dispatcherProp.getProperty("Host", "localhost");
        p4Port = cea.getServiceProperty(nodeId[i], "p4", "port");
        String[] loc = new String[3];
        loc[0] = dispatcherIP;
        loc[1] = p4Port;
        loc[2] = null;
        servers.add(loc);
       mInitialContext.close();
      } catch (NamingException e) {
      } catch (RemoteException e) {
      } finally {
       Thread.currentThread().setContextClassLoader(saveLoader);
      return servers;
    and the retreived server information used here in another class:
    public void run() {
      ReadLogsSession readLogsSession;
      int total = servers.size();
      for (Iterator iter = servers.iterator(); iter.hasNext();) {
       if (keepAlive) {
        try {
         Thread.sleep(500);
        } catch (InterruptedException e) {
         status = status + e.getMessage();
         System.err.println("LogReader Thread Exception" + e.toString());
         e.printStackTrace();
        String[] serverLocs = (String[]) iter.next();
        searchFilter.setDetails("[" + serverLocs[1] + "]");
        Properties prop = new Properties();
        prop.put(Context.INITIAL_CONTEXT_FACTORY, "com.sap.engine.services.jndi.InitialContextFactoryImpl");
        prop.put(Context.PROVIDER_URL, serverLocs[0] + ":" + serverLocs[1]);
        System.err.println("LogReader run [" + serverLocs[0] + ":" + serverLocs[1] + "]");
        status = " Reading :[" + serverLocs[0] + ":" + serverLocs[1] + "] servers :[" + currentIndex + "/" + total + " ] ";
        prop.put("force_remote", "true");
        prop.put(Context.SECURITY_AUTHENTICATION, "none");
        try {
         Context ctx = new InitialContext(prop);
         Object ob = ctx.lookup("com.xom.sia.ReadLogsSession");
         ReadLogsSessionHome readLogsSessionHome = (ReadLogsSessionHome) PortableRemoteObject.narrow(ob, ReadLogsSessionHome.class);
         status = status + "Found ReadLogsSessionHome ["+readLogsSessionHome+"]";
         readLogsSession = readLogsSessionHome.create();
         if(readLogsSession!=null){
          status = status + " Created  ["+readLogsSession+"]";
          List l = readLogsSession.getAuditLogs(searchFilter);
          serverLocs[2] = String.valueOf(l.size());
          status = status + serverLocs[2];
          allRecords.addAll(l);
         }else{
          status = status + " unable to create  readLogsSession ";
         ctx.close();
        } catch (NamingException e) {
         status = status + e.getMessage();
         System.err.println(e.getMessage());
         e.printStackTrace();
        } catch (CreateException e) {
         status = status + e.getMessage();
         System.err.println(e.getMessage());
         e.printStackTrace();
        } catch (IOException e) {
         status = status + e.getMessage();
         System.err.println(e.getMessage());
         e.printStackTrace();
        } catch (Exception e) {
         status = status + e.getMessage();
         System.err.println(e.getMessage());
         e.printStackTrace();
       currentIndex++;
      jobComplete = true;
    The application is working for multiple server instances with a single cluster node but not working for multiple cusltered environment.
    Anybody knows what should be changed to handle more cluster nodes?
    Thanks,
    Gergely

    Thanks for the response.
    I was afraid that it would be something like that although
    was hoping for
    something closer to the application pools we use with IIS to
    isolate sites
    and limit the impact one badly behaving one can have on
    another.
    mmr
    "Ian Skinner" <[email protected]> wrote in message
    news:fe5u5v$pue$[email protected]..
    > Run CF with one instance. Look at your processes and see
    how much memory
    > the "JRun" process is using, multiply this by number of
    other CF
    > instances.
    >
    > You are most likely going to end up on implementing a
    "handful" of
    > instances versus "dozens" of instance on all but the
    beefiest of servers.
    >
    > This can be affected by how much memory each instance
    uses. An
    > application that puts major amounts of data into
    persistent scopes such as
    > application and|or session will have a larger foot print
    then a leaner
    > application that does not put much data into memory
    and|or leave it there
    > for a very long time.
    >
    > I know the first time we made use of CF in it's
    multi-home flavor, we went
    > a bit overboard and created way too many. After nearly
    bringing a
    > moderate server to its knees, we consolidated until we
    had three or four
    > or so IIRC. A couple dedicated to to each of our largest
    and most
    > critical applications and a couple general instances
    that ran many smaller
    > applications each.
    >
    >
    >
    >
    >

  • How to Non-ACC Client connect Sun App Server 8 with SSL

    I have create a Rich Client(Non-ACC) that connect to Sun App Server 8 with IIOP(8001) and is working fine. However, when I try to connect to same server with using SSL (8002) and throw exception during lookup a Bean as below.
    Please help!!
    Server Configuration
    ================
    IIOP Port(s): 8001, 8002, 8003
    All listener ports are enabled
    Client Coding
    ===========
    env.put(javax.naming.Context.PROVIDER_URL, "iiop://"+url);
    env.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"com.sun.appserv.naming.S1ASCtxFactory");
    System.setProperty("javax.net.ssl.keyStoreType", "jks");
    System.setProperty("javax.net.ssl.keyStore", "D:\\Sun\\AppServer\\domains\\adsr\\config\\keystore.jks");
    System.setProperty("javax.net.ssl.keyStorePassword", "password");
    System.setProperty("javax.net.ssl.trustStore", "D:\\Sun\\AppServer\\domains\\adsr\\config\\cacerts.jks");
    System.setProperty("javax.net.ssl.trustStorePassword", "password");
    System.setProperty("com.sun.CORBA.connection.ORBSocketFactory", "com.sun.enterprise.iiop.IIOPSSLSocketFactory");
    ic = new InitialContext(env);
    Object objref = ic.lookup("ejb20/statelessSession/EntControllerHome");
    Exception
    ========
    [java] Mar 18, 2005 4:43:59 PM com.sun.corba.ee.spi.logging.LogWrapperBasedoLog
    [java] INFO: "IOP00710299: (INTERNAL) Successfully created IIOP listener on the specified host/port: all interfaces/4645"
    [java] Mar 18, 2005 4:44:00 PM com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl readFully
    [java] WARNING: "IOP00410215: (COMM_FAILURE) Read of full message failed :
    bytes requested = 12 bytes read = 7 max wait time = 300 total time spent waiting = 364"
    [java] org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 215 completed: No
    [java] at com.sun.corba.ee.impl.logging.ORBUtilSystemException.transportReadTimeoutExceeded(ORBUtilSystemException.java:2629)
    [java] at com.sun.corba.ee.impl.logging.ORBUtilSystemException.transportReadTimeoutExceeded(ORBUtilSystemException.java:2655)
    [java] at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.readFully(SocketOrChannelConnectionImpl.java:676)
    [java] at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.read(SocketOrChannelConnectionImpl.java:545)
    [java] at com.sun.corba.ee.impl.protocol.giopmsgheaders.MessageBase.readGIOPHeader(MessageBase.java:119)
    [java] at com.sun.corba.ee.impl.transport.CorbaContactInfoBase.createMessageMediator(CorbaContactInfoBase.java:153)
    [java] at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.readBits(SocketOrChannelConnectionImpl.java:325)
    [java] at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.handleEvent(SocketOrChannelConnectionImpl.java:1175)
    [java] at com.sun.corba.ee.impl.transport.SelectorImpl.run(SelectorImpl.java:275)
    [java] javax.naming.CommunicationException: Can't find SerialContextProvider [Root exception is org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 208 c
    ompleted: Maybe]
    [java] at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:133)
    [java] at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:290)
    [java] at javax.naming.InitialContext.lookup(InitialContext.java:347)
    [java] at com.shkco.jaf.test.JAFLogonTest.connect(JAFLogonTest.java:110)
    [java] at com.shkco.jaf.test.JAFLogonTest.setUp(JAFLogonTest.java:134)
    [java] at junit.framework.TestCase.runBare(TestCase.java:125)
    [java] at junit.framework.TestResult$1.protect(TestResult.java:106)
    [java] at junit.framework.TestResult.runProtected(TestResult.java:124)

    I don't think tomcat supports the ejb-ref portion of web.xml. If you're using ejbs your best bet is to use a web container within a J2EE implementation.
    --ken                                                                                                                                                                                                                                                                                                                                           

  • Upgrade 32–bit Sun DSEE Server Instances with 64-bit RHEL 4.6?

    I want to update 32–bit Sun DSEE Server Instances with 64-bit RHEL 4.6 to 64-bit ODSEE 11.1.1.5.0 with 64-bit RHEL 4.6.
    Thanks

    But it will be on the same physical machine or on a separate server? How big will be the DB?
    Will be in the same topology? Separate topologies?
    If you can afford some downtime and you've got different machines, you could plan a 'cold' migration:
    - Stop the old DS instance
    - Export to LDIF with NO REPLICA INFORMATION (this will also clean up a bit the DB!)
    - Copy schema and indexes definition from source to target environment.
    - Import from LDIF to the new DS topology
    After that you'll have to tune the new environment, in terms of memory , entry cache, indexes, etc...
    HTH,
    Maco

  • Iplanet 6 - set jdk for specific web server instance

    I am running iPlanet 6 with many web server instances. All web server instances are using the same jdk except for one which I must upgrade.
    Is there a way to set the jdk for a single web server instance?

    It is possible in V6.0 too:
    1. Copy start-jvm script from https-admserv/ into each https-* that needs a different JVM.
    2. Modify it to load the appropriate JVM
    3. Modify each https-*/start script to use this new start-jvm script instead of the one in https-admserv.
    Frankly speaking it is not my idea and it is not officially documented by Sun but it works!

  • Physical setup of Infrastructure & App Server Instances

    Hello,
    We are going to develop a huge application using BC4J and JClient. Almost 350 users will be connected with the system round the clock. System should be available 24 hours. What should be physical setup of Infrastructure and application server instances, also keep machine failure in mind ???
    What is in my mind is -->>>
    i) Two database servers, if one machine is failed, other will be available for service.
    ii) Two machines having application server instances, if one machine is failed, other will be available for service.
    iii) One machine for infrastructure, if that machine is fialed, what will happen ??? Is it possible to have infrastructure on two machines and having same configuration ???
    iv) If we count it, there are 7-8 server machines, which are very costly. What should be the approach in this regard. ???
    waiting,
    Tahir.

    Hi Kumar,
    Refer this link it may help you.....!!!
    Re: Load Balancing in PI
    Regards,
    Raj

  • Connecting to a specific SQL Server instance?

    Hi all,
    I create a new connection for SQL Server, specify the host and the port number that SQL Browser is listening on (my servers have dynamic ports, not static), and I can connect succesfully to the local SQL Server Instance on that machine, which is SQL Server 2000. However, I also have a SQL Server 2005 and 2008 running on that machine as well, and wish to connect to them.
    The SQL Server tab doesn't ask for an instance name at all, so I don't know how to do that. I suppose I could make my ports static for each instance, but the point of using SQL Browser is that you don't need to do that. SQL Browser acts almost like a DNS server for any sql requests coming to that machine.
    Is there any way to specify which instance name you want to connect to rather than a port #?

    Ok, that worked. Now for another question, why isn't the connection retreiving the database I selected in the SQL Server tab? It's only retrieving the master database if I connect as sa (master is the default database for SA). How do I set it up to use a different database, or do cross database queries? I suppose I could make a user for each database, but that doesn't fix the second issue.
    I think I might just be stuck using two different tools for these two very different products.

  • EJB call across server instance with multiple Datasource

    Hi,
              I posted in the EJB group and was told people here will be able to help.
              I'm currently facing a serious integration problem. The problem occurs when an EJB in my application (my instance) tries to call another EJB in a separate application (in another instance). Hope someone can help me to overcome this.
              My setup is WLS 8.1 SP2 (1 domain, 2 instances) with Oracle 9i.
              The scenario is as follows:
              EJB A (tx required) in instance A calls EJB B (tx required) in instance B.
              EJB A uses datasource A in instance A to update database A and EJB B uses datasource B in instance B to update database B.
              When I tried with both datasources using non-XA driver and both using XA driver the result is the same, EJB A executes fine and can successfully invoke the method on EJB B. But when EJB B tries to lookup the datasource B, it goes to instance A to do that and of course fails to find it.
              It only works when I create and deploy datasource B (XA) to instance A as well, meaning I now have datasources A and B in instance A.
              It all works well when I use a servlet(e.g.) in instance A to call EJB B. Leading me to suspect that the error could be due to some problems or behaviour which I may have missed out during the propagation of the transaction or the EJB context.
              This behaviour seems very illogical, can someone please enlighten me. Any help will be very much appreciated.
              Thanks,
              Kelvin

    You might try asking this over in the transaction group:
    http://forums.bea.com/bea/forum.jspa?forumID=2052
    -thorick

  • SAN certificate for external access for edge server and reverse proxy

    Hello
    I have a question related to the certificate planning for LYNC 2013 EDGE SERVER .
    For external access and mobile user's , Iwant to enable all the feature for external user's .
    im planning to purchase san certificate ,
    my first question do I need only one SAN for both my edge server and the reverse proxy ?
    my second question about the name's that shoud be added to the certificate ?
    sip.mydomain.com
    av.mydomain.com
    webconf.mydomain.com
    what else I should add ? I want to add the names for all feature access.
    Kind Regards
    MK

    Your Front End Pool should only contain front end servers, does it also contain your edge and back end? If so, this is a misconfiguration.
    If you're planning to implement high availability, you'll want a different internal web services FQDN name than your pool name (unless you load balance the entire pool with a hardware load balancer).
    You'll want your external web services FQDN to be different from your pool name if you want to use the mobile client on the internal network.  Once you've come up with a new and otherwise unused FQDN for this purpose, you'll want that as additional
    SAN on your cert.
    Since you're not using this for the internal certificate, you can also pull admin.mydomain.com and LYNC2013-FE.mydomain.com off of the cert as those are needed internally only. 
    Lyncdiscoverinternal you can leave on if you need your internal mobile clients to not throw certificate errors because they don't trust your internal certificate authority, but this name would then need to be pointed to a reverse proxy or something that
    can present the third party certificate.
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question please click "Mark As Answer".
    SWC Unified Communications
    This forum post is based upon my personal experience and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Error while starting the app server instance

    Hi,
    When I am starting the stand-alone instance on app sever, i am getting the following error:
    An error has occurred.
    Operation 'start' failed in 'server' Config Mbean. Target exception message: The node agent could not start instance imgr. It is starting and must be stopped.
    Could you please tell what might be wrong.
    Regards.

    I got this same error and it turned out to be because one of the developers had changed the line AS_JAVA="/usr/jdk/entsys-j2se" in /opt/sun/appserver/config/asenv.conf
    to point to a 1.4.2_10 jre. (/usr/jdk/entsys-j2se was a symlink to /usr/java/jdk1.5.0_04/)
    I changed it to an installation of 1.4.2_09 sdk that we had previously installed on their and everything worked fine.
    I don't know whether it was because it pointed to a jre as opposed to an sdk or whether the jre was incorrectly installed. (it's a much around box, so everyone's allowed to do pretty much whatever they want to it)
    Hope this helps,
    Adam

  • How to access Flash Apps over https with a self signed certificate?

    I have a Flex app that needs to access data from a SOAP web service over https with a self signed certificate. The app needs to ignore the https warnings, just as a browser would warn & allow the user to proceed. Buying a valid signed certificate is not an option for us.
    It works fine over http.
    How can I achieve this?
    I read that URLRequest has a property: authenticate, that I can set to false. However, this property is available only for Adobe AIR applications from what I can see. This doesn't seem available for Flex apps.
    I have tried this in both Flex 3 & the latest Flash Builder 4. Have the same issue in both cases.
    Help appreciated.
    Thanks

    You'd really need to ask in the Flex or Flash Builder forums as this is a front end code modification and Flash Player can't do any of that.

  • Trying to access Windows 2003 Server share with Mac OS 9.04

    Hi
    I cannot connect to a Windows 2003 Server share on my 2003 domain. I can access the share with my MacBook (10.4.9) & my G4. I have File Services for Mac installed & can ping the server from all OS 9 Mac.
    Can anyone give me some tips?
    MacBook     Administrator

    How are you trying to connect to the server? Via AppleTalk or IP? (What utility are you using to ping the server from the Mac OS 9 machine?) Since you're not providing any information about error messages you're receiving or the symptoms of your problem I can only provide the following information.
    If you're selecting the server from a list in the Chooser and clicking the OK button then the connection should switch to IP automatically. Make sure your Mac has TCP/IP enabled and is receiving an IP address or that you have an appropriate IP address hard-coded. You can try forcing an IP connection by entering the IP address or DNS name of the server in the Chooser rather than selecting it from the list in the Chooser.
    Or you can try forcing an AppleTalk connection by selecting the server in the Chooser and holding down the Option key as you click the Connect button. If you're asked to enter your name and password then you're communicating properly with the server. This is, however, a very slow connection compared to IP.
    Finally, be sure you update to the latest version of Mac OS 9, which is 9.2.2 <http://docs.info.apple.com/article.html?artnum=75288>.
    Hope this helps! bill
    1 GHz Powerbook G4   Mac OS X (10.4.9)  

  • Why can't I access the APP web site with my iPad3??

    I just purchased an iPad3 and really like it.  I tapped the APP icon to load a few APPs but it would not open.  I get the grey-white page with an hour glass spinning.  After a few minutes the page closes and kicks me back to the iPad desk top.  I tried this several times with the same result.  I tried to open the APP web site by going through the Safari browsers but ended up getting the same results.  Anyone know why the APP page will not open???

    I'm talking about wanting an APP so you go to the APP web site and browse for your APP.  When you find one you like you down load it.  There is an APP icon that is already loaded on computers, lap tops, iPhones, and iPads.

  • How to access the apps server inside guest  from host.

    my setup is
    windows 7 - host
    OEL 5 - virtualbox guest
    i have it setup with bridged networking with static IP 192.168.1.91.
    my virtualbox guest is running oracle ebs 12. i can access from firefox inside the guest the url http://xt12:8000
    i can ping the guest ip from host .
    however when i try to open the url(http://192.168.1.91:8000) from Internet Explorer browser inside the host it do not open.
    appreciate any suggestion.
    thanks in advance.
    -Kart

    user12046749 wrote:
    however when i try to open the url(http://192.168.1.91:8000) from Internet Explorer browser inside the host it do not open.
    appreciate any suggestion.Check iptables inside the guest: a default Oracle Linux install has the firewall enabled, which will block inbound connections.

  • Accessing a remote server from withing pl/sql

    Can anybody throw light on how to send a request to a remote server from within pl/sql. Based on a request from the client i need to reach the remote server (with a different web server capable of sending data ), get the details from it proccess the data sent by it and send the response back to the client.
    can anybody let me know if this is possible or is there someway of doing this..

    I think you may have the answer to my question (funny, but the one supposed to answer is asking).
    How can i make an application that can lookup EJBs in a remote server?
    I tried doing like i did from a servlet but every kind of exceptions arrise when i run it with the java command.
    From what i could understand from your question this is not the way i should do it. So, which one is the way?
    Greetings,
    Nicol�s

Maybe you are looking for

  • Cmd-k doesn't work with Leopard to access Win XP

    With 10.5.4 on an iBook I was able to get to Win XP shared files just fine. With 10.5.6 on a new Macbook I've been unable to get this to work despite having fully researched the situation with Google and having tried all the suggestions that apparent

  • Why are the first items to be played opening at the end?

    This problem occurs on podcasts, videos, and songs: when an item is played, it opens at the end rather than the beginning, so the next item in the list plays instead. Sometimes if I click on the item again, it starts from the beginning, but equally a

  • Paging problem while opening new window with getURL from presentation fullscreen exe

    Can any one please help me out from this, I have the flash presentation exe with some pdf links when I click on the pdf link it will come at the top for a first time and send it back to my exe presentation. after every click on the pdf link each brow

  • Show text filled with video.

    I have a solid layer, a text layer and a video. I need to erase the solid layer only in the part where the text comes and show video behind it. How can I do this?

  • ClassCastException starting managed server.

    I get the following exception when trying to start our managed server: ####<Jun 25, 2002 1:35:55 PM MDT> <Critical> <WebLogicServer> <nisku> <ga2> <main> <kernel identity> <> <000364> <Server failed during initialization. Exception:java.lang.ClassCas