JNDI lookup on clustered server - Weblogic

This is a discussion on JNDI lookup on clustered server - Weblogic ; I am very new to clustering Weblogic servers, and I'm lost. Here is what my config.xml file looks like: Name="DomainAdmin" NativeIOEnabled="true" ServerVersion="8.1.0.0" StdoutEnabled="false"> IdentityAndTrustLocations="KeyStores" ListenPort="8032" Name="DomainAdmin"/> NumberOfFilesLimited="true" RotationType="byTime"/> Name="DomainProxy" NativeIOEnabled="true" StdoutEnabled="false"> ListenPort="443" Name="DomainProxy"/> NumberOfFilesLimited="true" RotationType="byTime"/> IIOPEnabled="true" ListenPort="8035" Machine="Machine1" Name="DomainAppServer1a" NativeIOEnabled="true" ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: JNDI lookup on clustered server

  1. JNDI lookup on clustered server


    I am very new to clustering Weblogic servers, and I'm lost. Here is what my config.xml
    file looks like:




    Name="DomainAdmin" NativeIOEnabled="true" ServerVersion="8.1.0.0" StdoutEnabled="false">
    IdentityAndTrustLocations="KeyStores" ListenPort="8032" Name="DomainAdmin"/>
    NumberOfFilesLimited="true" RotationType="byTime"/>

    Name="DomainProxy" NativeIOEnabled="true" StdoutEnabled="false">
    ListenPort="443" Name="DomainProxy"/>
    NumberOfFilesLimited="true" RotationType="byTime"/>


    IIOPEnabled="true" ListenPort="8035" Machine="Machine1"
    Name="DomainAppServer1a" NativeIOEnabled="true"
    ServerVersion="8.1.1.0" StdoutEnabled="false">
    ListenPort="8036" Name="DomainAppServer1a"/>
    NumberOfFilesLimited="true" RotationType="byTime"/>


    IIOPEnabled="false" ListenPort="8037" Machine="Machine1"
    Name="DomainAppServer1b" NativeIOEnabled="true" StdoutEnabled="false">
    ListenPort="8038" Name="DomainAppServer1b"/>
    NumberOfFilesLimited="true" RotationType="byTime"/>


    Name="DomainAppServer1a (migratable)"
    Notes="This is a system generated default migratable target for a server.
    Do not delete manually." UserPreferredServer="DomainAppServer1a"/>
    Name="DomainAppServer1b (migratable)"
    Notes="This is a system generated default migratable target for a server.
    Do not delete manually." UserPreferredServer="DomainAppServer1b"/>
    PostBindGIDEnabled="true" PostBindUID="DOMAIN" PostBindUIDEnabled="true">



    JNDIName="topic.someTopic" Name="someTopic" StoreEnabled="false"/>



    Realm="wl_default_realm" RealmSetup="true"/>
    Credential="..." Name="Domain"/>
    Credential="..."
    Name="Domain" RealmBootStrapVersion="1"/>



    DriverName="oracle.jdbc.driver.OracleDriver" MaxCapacity="5"
    Name="domainPOOL" Password="..."
    Properties="..." ShrinkFrequencySeconds="18000"
    Targets="DomainCluster" TestConnectionsOnCreate="true"
    TestConnectionsOnRelease="true" TestConnectionsOnReserve="true"
    TestFrequencySeconds="300" TestTableName="DUAL" URL="..."/>
    PoolName="domainPOOL" Targets="DomainCluster"/>
    StagingMode="nostage" TwoPhase="true">




    As you can, I have two servers configured in my DomainCluster. My EJB, domainejb,
    is tied to
    this cluster. I can't seem to do a JNDI lookup of this EJB, or the JMS Topic
    that I've created.
    When I attempt to do the lookup (from a client on the local machine) using the
    URL
    t3://localhost:8031, I get a NameNotFound Exception. This makes sense, because
    the
    Admin server isn't a part of the cluster. However, when I do the lookup using

    t3://localhost:8035, I get an exception that states that it could not connect
    to a host. I have
    insured that the server at this port is running, and the EJB is located in it's
    JNDI tree.

    I am stumped and could really use someone's help. Please advice.

    Thanks, Joel

  2. Re: JNDI lookup on clustered server

    Date: Wed, 23 Jul 2003 09:40:21 -0700
    From: Prasad Peddada
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3.1) Gecko/20030425
    X-Accept-Language: en-us, en
    MIME-Version: 1.0
    Newsgroups: weblogic.developer.interest.clustering
    Subject: Re: JNDI lookup on clustered server
    References: <3f1d958b$1@newsgroups.bea.com>
    In-Reply-To: <3f1d958b$1@newsgroups.bea.com>
    Content-Type: text/plain; charset=us-ascii; format=flowed
    Content-Transfer-Encoding: 7bit
    NNTP-Posting-Host: 216.148.48.18
    X-Original-NNTP-Posting-Host: 216.148.48.18
    Message-ID: <3f1eba79$1@newsgroups.bea.com>
    X-Trace: newsgroups.bea.com 1058978425 216.148.48.18 (23 Jul 2003 09:40:25 -0700)
    X-Original-Trace: 23 Jul 2003 09:40:25 -0700, 216.148.48.18
    Organization: BEA NEWS SITE
    Lines: 110
    XPident: Unknown
    Path: newsgroups.bea.com!not-for-mail
    Xref: newsgroups.bea.com weblogic.developer.interest.clustering:9479

    Joel wrote:
    > I am very new to clustering Weblogic servers, and I'm lost. Here is what my config.xml
    > file looks like:
    >
    >
    >
    >
    > > Name="DomainAdmin" NativeIOEnabled="true" ServerVersion="8.1.0.0" StdoutEnabled="false">
    > > IdentityAndTrustLocations="KeyStores" ListenPort="8032" Name="DomainAdmin"/>
    > > NumberOfFilesLimited="true" RotationType="byTime"/>
    >

    > > Name="DomainProxy" NativeIOEnabled="true" StdoutEnabled="false">
    > > ListenPort="443" Name="DomainProxy"/>
    > > NumberOfFilesLimited="true" RotationType="byTime"/>
    >
    >

    > > IIOPEnabled="true" ListenPort="8035" Machine="Machine1"
    > Name="DomainAppServer1a" NativeIOEnabled="true"
    > ServerVersion="8.1.1.0" StdoutEnabled="false">
    > > ListenPort="8036" Name="DomainAppServer1a"/>
    > > NumberOfFilesLimited="true" RotationType="byTime"/>
    >
    >

    > > IIOPEnabled="false" ListenPort="8037" Machine="Machine1"
    > Name="DomainAppServer1b" NativeIOEnabled="true" StdoutEnabled="false">
    > > ListenPort="8038" Name="DomainAppServer1b"/>
    > > NumberOfFilesLimited="true" RotationType="byTime"/>
    >
    >

    > > Name="DomainAppServer1a (migratable)"
    > Notes="This is a system generated default migratable target for a server.
    > Do not delete manually." UserPreferredServer="DomainAppServer1a"/>
    > > Name="DomainAppServer1b (migratable)"
    > Notes="This is a system generated default migratable target for a server.
    > Do not delete manually." UserPreferredServer="DomainAppServer1b"/>
    > > PostBindGIDEnabled="true" PostBindUID="DOMAIN" PostBindUIDEnabled="true">
    >
    >

    >
    > > JNDIName="topic.someTopic" Name="someTopic" StoreEnabled="false"/>
    >

    >
    >
    > > Realm="wl_default_realm" RealmSetup="true"/>
    > > Credential="..." Name="Domain"/>
    > > Credential="..."
    > Name="Domain" RealmBootStrapVersion="1"/>
    >
    >
    >
    > > DriverName="oracle.jdbc.driver.OracleDriver" MaxCapacity="5"
    > Name="domainPOOL" Password="..."
    > Properties="..." ShrinkFrequencySeconds="18000"
    > Targets="DomainCluster" TestConnectionsOnCreate="true"
    > TestConnectionsOnRelease="true" TestConnectionsOnReserve="true"
    > TestFrequencySeconds="300" TestTableName="DUAL" URL="..."/>
    > > PoolName="domainPOOL" Targets="DomainCluster"/>
    > > StagingMode="nostage" TwoPhase="true">
    >
    >

    >

    >
    > As you can, I have two servers configured in my DomainCluster. My EJB, domainejb,
    > is tied to
    > this cluster. I can't seem to do a JNDI lookup of this EJB, or the JMS Topic
    > that I've created.
    > When I attempt to do the lookup (from a client on the local machine) using the
    > URL
    > t3://localhost:8031, I get a NameNotFound Exception. This makes sense, because
    > the
    > Admin server isn't a part of the cluster. However, when I do the lookup using
    >
    > t3://localhost:8035, I get an exception that states that it could not connect
    > to a host. I have
    > insured that the server at this port is running, and the EJB is located in it's
    > JNDI tree.
    >
    > I am stumped and could really use someone's help. Please advice.
    >
    > Thanks, Joel


    Trying setting a listen address to specific ip instead of localhost
    address. Have you tried view the JNDI tree of Managed Servers from console.

    Cheers,

    -- Prasad


  3. Re: JNDI lookup on clustered server

    From: "Joel"
    Sender: "Joel"
    Reply-To: "Joel"
    Subject: Re: JNDI lookup on clustered server
    Newsgroups: weblogic.developer.interest.clustering
    X-User-Info: 163.252.218.87
    References: <3f1d958b$1@newsgroups.bea.com> <3f1eba79$1@newsgroups.bea.com>
    NNTP-Posting-Host: 163.252.218.87
    X-Original-NNTP-Posting-Host: 163.252.218.87
    Message-ID: <3f2182e7$1@newsgroups.bea.com>
    Date: 25 Jul 2003 12:20:07 -0700
    X-Trace: newsgroups.bea.com 1059160807 163.252.218.87 (25 Jul 2003 12:20:07 -0700)
    X-Original-Trace: 25 Jul 2003 12:20:07 -0700, 163.252.218.87
    Organization: BEA NEWS SITE
    Lines: 130
    XPident: Unknown
    Path: newsgroups.bea.com!not-for-mail
    Xref: newsgroups.bea.com weblogic.developer.interest.clustering:9498


    Prasad Peddada wrote:
    >Joel wrote:
    >> I am very new to clustering Weblogic servers, and I'm lost. Here is

    >what my config.xml
    >> file looks like:
    >>
    >>
    >>
    >>
    >> >> Name="DomainAdmin" NativeIOEnabled="true" ServerVersion="8.1.0.0"

    >StdoutEnabled="false">
    >> >> IdentityAndTrustLocations="KeyStores" ListenPort="8032"

    >Name="DomainAdmin"/>
    >> >> NumberOfFilesLimited="true" RotationType="byTime"/>
    >>
    >> >> Name="DomainProxy" NativeIOEnabled="true" StdoutEnabled="false">
    >> >> ListenPort="443" Name="DomainProxy"/>
    >> >> NumberOfFilesLimited="true" RotationType="byTime"/>
    >>
    >>

    >> >> IIOPEnabled="true" ListenPort="8035" Machine="Machine1"
    >> Name="DomainAppServer1a" NativeIOEnabled="true"
    >> ServerVersion="8.1.1.0" StdoutEnabled="false">
    >> >> ListenPort="8036" Name="DomainAppServer1a"/>
    >> >> NumberOfFilesLimited="true" RotationType="byTime"/>
    >>
    >>

    >> >> IIOPEnabled="false" ListenPort="8037" Machine="Machine1"
    >> Name="DomainAppServer1b" NativeIOEnabled="true" StdoutEnabled="false">
    >> >> ListenPort="8038" Name="DomainAppServer1b"/>
    >> >> NumberOfFilesLimited="true" RotationType="byTime"/>
    >>
    >>

    >> >> Name="DomainAppServer1a (migratable)"
    >> Notes="This is a system generated default migratable target

    >for a server.
    >> Do not delete manually." UserPreferredServer="DomainAppServer1a"/>
    >> >> Name="DomainAppServer1b (migratable)"
    >> Notes="This is a system generated default migratable target

    >for a server.
    >> Do not delete manually." UserPreferredServer="DomainAppServer1b"/>
    >> >> PostBindGIDEnabled="true" PostBindUID="DOMAIN" PostBindUIDEnabled="true">
    >>
    >>

    >>
    >Targets="DomainAppServer1a">
    >> >> JNDIName="topic.someTopic" Name="someTopic" StoreEnabled="false"/>
    >>

    >>
    >Targets="DomainAppServer1b"/>
    >>
    >> >> Realm="wl_default_realm" RealmSetup="true"/>
    >> >> Credential="..." Name="Domain"/>
    >> >> Credential="..."
    >> Name="Domain" RealmBootStrapVersion="1"/>
    >>
    >>
    >>
    >> >> DriverName="oracle.jdbc.driver.OracleDriver" MaxCapacity="5"
    >> Name="domainPOOL" Password="..."
    >> Properties="..." ShrinkFrequencySeconds="18000"
    >> Targets="DomainCluster" TestConnectionsOnCreate="true"
    >> TestConnectionsOnRelease="true" TestConnectionsOnReserve="true"
    >> TestFrequencySeconds="300" TestTableName="DUAL" URL="..."/>
    >> >> PoolName="domainPOOL" Targets="DomainCluster"/>
    >> >> StagingMode="nostage" TwoPhase="true">
    >>
    >>

    >>
    >>
    >> As you can, I have two servers configured in my DomainCluster. My

    >EJB, domainejb,
    >> is tied to
    >> this cluster. I can't seem to do a JNDI lookup of this EJB, or the

    >JMS Topic
    >> that I've created.
    >> When I attempt to do the lookup (from a client on the local machine)

    >using the
    >> URL
    >> t3://localhost:8031, I get a NameNotFound Exception. This makes sense,

    >because
    >> the
    >> Admin server isn't a part of the cluster. However, when I do the lookup

    >using
    >>
    >> t3://localhost:8035, I get an exception that states that it could not

    >connect
    >> to a host. I have
    >> insured that the server at this port is running, and the EJB is located

    >in it's
    >> JNDI tree.
    >>
    >> I am stumped and could really use someone's help. Please advice.
    >>
    >> Thanks, Joel

    >
    >Trying setting a listen address to specific ip instead of localhost
    >address. Have you tried view the JNDI tree of Managed Servers from console.
    >
    >Cheers,
    >
    >-- Prasad
    >


    Though some problems still remained, having the client use the weblogic.jar rather
    than the thin
    client jars (wljmsclient.jar and wlclient.jar) seemed to cure many of the issues.