Singletons in WebLogic cluster

In my clustered EJB application, there are 3 stateless session beans that need to run as singleton services on exactly one node. So I implemented the interface weblogic.cluster.singleton.SingletonService in these beans with the activate and deactivate methods. The beans and all classes of the application are contained in an ear file I deploy to the entire cluster. Then I configured the bean classes as singletons using the WebLogic console administration (cluster details -> singleton service). After I activated this in changes center, I see a ClassNotFoundException with the class name of one of the beans. So I extracted the ear file to the domain/lib directory, restarted the server and tried again to configure the singleton classes. This time the activation failed because of another reason (HibernateException). I think the reason is, this operation is done in the context of my administration server, not of the cluster server. It seems this doesn't work.
Is it possible to deploy the EJB application with the beans as singletons?
I already found another solution: to set the maximum number of beans in weblogic-ejb-jar.xml, field max-beans-in-free-pool, to 1. This solution is a little bit dirty, after starting the servers, I get an exception on all other nodes complaining that it is not possible to deploy this bean. What I don't know: how would it be handled, if the node with the deployed beans is shut down? Are the beans deployed on the other nodes automatically (as I expect for singleton services) or keep undeployed?
Thanks in advance!
BTW: I'm using WebLogic 10.3 on Windows.

Maybe this will help: http://middlewaremagic.com/weblogic/?p=5799
Also to make Hibernate run on WebLogic you have perform certain steps, there is
problem with the antlr version that ships with Hibernate as another version of
antlr is already loaded in the system classpath of WebLogic.
Some instructions are presented here: http://middlewaremagic.com/weblogic/?p=5861

Similar Messages

  • Singleton Classes in Weblogic cluster

    Hi
    Our application is having singleton classes which we refresh programatically ;though very rarely. We need to move our application into a weblogic cluster. The sigleton class refresh also needs to reflect across the servers :
    I could see the SingletonService API here http://download.oracle.com/docs/cd/E12839_01/apirefs.1111/e13941/weblogic/cluster/singleton/SingletonService.html. This contain an activate() and deactivate() .Can we call this activate() method to refresh the singleton object whenever there is a refresh required ? Can we define multiple singleton service classes in the cluster ?
    Thanks
    Suneesh

    I've same issue with singleton service...
    1) I’ve created a cluster MyCluster with Man1 & Man2 managed instances.
    2) I’ve created singleton.jar out of TestCache.java, which is a singleton cache and have deployed it to the MyCluster.
    3) I’ve created man.jar out of StartupClassMan.java, which is a startup class and have deployed it to the MyCluster. And I’ve specified this as startup class for the whole MyCluster.
    4) For MyCluster, I’ve specified com.mytest.TestCache.class as singleton service with preferred server as Man1 with migratable to Man2.
    5) I run Man1, startup class StartupClassMan is invoked and it gets reference to TestCache, populates the cache & prints size as 1.
    6) Now when I run Man2, startup class StartupClassMan is invoked and it get references to TestCache & populates the cache & prints size as 1 only.
    For some reason, TestCache is not considered as true singleton. If it is true singleton, running Man2 should have printed size 2 as Man1 has already put one entry into the cache.
    And I also don't see activate & deactivate method being called when I run Man1 or Man2 servers. Any help on this is really appreciated.
    package com.mytest;
    import java.util.Map;
    import java.util.HashMap;
    public class TestCache implements weblogic.cluster.singleton.SingletonService
    private static TestCache testCache = new TestCache();
    private Map<String, String> mapCache = new HashMap<String, String>();
    private TestCache() {}
    public void activate() {
    System.out.println("TestCache activate called");
    public void deactivate() {
    System.out.println("TestCache deactivate called");
    public static TestCache getTestCache() {
    return testCache;
    public void put(String key, String value) {
    mapCache.put(key, value);
    public String get(String key) {
    return mapCache.get(key);
    public void remove(String key) {
    mapCache.remove(key);
    public int size() {
    return mapCache.size();
    package com.mytest;
    public class StartupClassMan
    public static void main(String args[]) {
    System.out.println("StartupClassMan loaded");
    TestCache testCache = TestCache.getTestCache();
    testCache.put("Man1","Man1");
    System.out.println("size: "+testCache.size());
    }

  • Using weblogic.cluster.singleton.SingletonService

    We have written a Singleton class implementing this interface
    weblogic.cluster.singleton.SingletonService
    http://otndnld.oracle.co.jp/document/products/wls/docs100/javadocs/weblogic/cluster/singleton/SingletonService.html
    and have seen on one occasion a thread dump which shows 2 instances of the class actively running at the same time
    the docs say
    This interface defines a stateless lightweight singeton service that has the following contract:
    Activate is invoked on one and only one server in a cluster
    The question is whether this implies there is only one instance within that server at any time, or can multiple exist?

    No, only one instance will be started at one single managed server in the cluster.

  • Singleton class in WebLogic Cluster

    Hi,
    We have an application set-up in a weblogic cluster.
    We have a singleton class in the application.
    Since we have two managed servers in the cluster the singleton has two instances, one in each server.
    So the basic purpose of use of singleton is lost.
    Could anyone please give some alternative implementation.
    Regards
    Gunajit K

    One alternative is to set up some type of centralized store for the information you are trying to share between VMs. I would look at what you are trying to do with the singleton and make some descisions.
    Specifically, I would at least look at how much access you will need to the data, how much network traffic it will take to send it to each node in your cluster, and what kind of transactional integrity you require.
    A JMS publish/subscribe topic would be a good solution if you are caching some type of data that changes relatively infrequently. You could set this up yourself or check out SpiritSoft's Spirit Cache product (no, I don't work for SpiritSoft).
    Or you could simply store the information in some type of database and access it via EJBs or JDBC or whatever you like.
    Clearly, the performance of such a store will not be as quick as the in-memory access a Singleton provides inside a single JVM. So be careful about what solution you choose and be sure to optimize its performance as best you can.

  • Timesten database driver is not supported in Weblogic cluster mode??

    Does anybody encounter this situation??
    I have 2 managed server in a Weblogic cluster domain and there is DataSource for them.
    In each managed server, I setup Timesten client correctly to connect to Timesten Oracle DB cache server.
    But when we start each of managed server, I will get exception:
    ####<Nov 22, 2010 6:03:24 PM CST> <Critical> <WebLogicServer> <Machine1> <Main Thread> <<WLS Kernel>> <1290420204498> <BEA-000386> <Server subsystem failed. Reason: java.lang.AssertionError:
    java.lang.AssertionError: Unsupported database driver
    at weblogic.cluster.singleton.QueryHelperImpl.getTimeFunction(QueryHelperImpl.java:88)
    at weblogic.cluster.singleton.QueryHelper.getLeaseOwnerQuery(QueryHelper.java:110)
    at weblogic.cluster.singleton.DatabaseLeasingBasis.pingDB(DatabaseLeasingBasis.java:411)
    at weblogic.cluster.singleton.DatabaseLeasingBasis.getJDBCConnection(DatabaseLeasingBasis.java:465)
    at weblogic.cluster.singleton.DatabaseLeasingBasis.getJDBCConnection(DatabaseLeasingBasis.java:507)
    at weblogic.cluster.singleton.DatabaseLeasingBasis.findOwner(DatabaseLeasingBasis.java:305)
    at weblogic.cluster.singleton.LeaseManager.findOwner(LeaseManager.java:218)
    at weblogic.cluster.singleton.MigratableServerService.findSingletonMaster(MigratableServerService.java:201)
    at weblogic.cluster.singleton.ReplicatedSingletonServicesStateManager.syncStateFromActiveStateManager(ReplicatedSingletonServicesStateManager.java:618)
    at weblogic.cluster.singleton.ReplicatedSingletonServicesStateManager.<init>(ReplicatedSingletonServicesStateManager.java:168)
    at weblogic.cluster.singleton.SingletonMonitor.<init>(SingletonMonitor.java:97)
    at weblogic.cluster.singleton.SingletonMaster.<init>(SingletonMaster.java:44)
    at weblogic.cluster.singleton.MigratableServerService.initialize(MigratableServerService.java:142)
    at weblogic.cluster.singleton.MigratableServerService.start(MigratableServerService.java:436)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    But if I create a standalone domain, still use the same datasource(still this timesten server), weblogic server can start successfully.
    BR,
    Peng
    Edited by: user8028210 on Nov 25, 2010 1:18 AM
    Edited by: user8028210 on Nov 25, 2010 1:19 AM

    Does anybody encounter this situation??
    I have 2 managed server in a Weblogic cluster domain and there is DataSource for them.
    In each managed server, I setup Timesten client correctly to connect to Timesten Oracle DB cache server.
    But when we start each of managed server, I will get exception:
    ####<Nov 22, 2010 6:03:24 PM CST> <Critical> <WebLogicServer> <Machine1> <Main Thread> <<WLS Kernel>> <1290420204498> <BEA-000386> <Server subsystem failed. Reason: java.lang.AssertionError:
    java.lang.AssertionError: Unsupported database driver
    at weblogic.cluster.singleton.QueryHelperImpl.getTimeFunction(QueryHelperImpl.java:88)
    at weblogic.cluster.singleton.QueryHelper.getLeaseOwnerQuery(QueryHelper.java:110)
    at weblogic.cluster.singleton.DatabaseLeasingBasis.pingDB(DatabaseLeasingBasis.java:411)
    at weblogic.cluster.singleton.DatabaseLeasingBasis.getJDBCConnection(DatabaseLeasingBasis.java:465)
    at weblogic.cluster.singleton.DatabaseLeasingBasis.getJDBCConnection(DatabaseLeasingBasis.java:507)
    at weblogic.cluster.singleton.DatabaseLeasingBasis.findOwner(DatabaseLeasingBasis.java:305)
    at weblogic.cluster.singleton.LeaseManager.findOwner(LeaseManager.java:218)
    at weblogic.cluster.singleton.MigratableServerService.findSingletonMaster(MigratableServerService.java:201)
    at weblogic.cluster.singleton.ReplicatedSingletonServicesStateManager.syncStateFromActiveStateManager(ReplicatedSingletonServicesStateManager.java:618)
    at weblogic.cluster.singleton.ReplicatedSingletonServicesStateManager.<init>(ReplicatedSingletonServicesStateManager.java:168)
    at weblogic.cluster.singleton.SingletonMonitor.<init>(SingletonMonitor.java:97)
    at weblogic.cluster.singleton.SingletonMaster.<init>(SingletonMaster.java:44)
    at weblogic.cluster.singleton.MigratableServerService.initialize(MigratableServerService.java:142)
    at weblogic.cluster.singleton.MigratableServerService.start(MigratableServerService.java:436)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    But if I create a standalone domain, still use the same datasource(still this timesten server), weblogic server can start successfully.
    BR,
    Peng
    Edited by: user8028210 on Nov 25, 2010 1:18 AM
    Edited by: user8028210 on Nov 25, 2010 1:19 AM

  • Timesten database driver is not supported in Weblogic Cluster mode domain??

    Does anybody encounter this situation??
    I have 2 managed server in a Weblogic cluster domain and there is DataSource for them.
    In each managed server, I setup Timesten client correctly to connect to Timesten Oracle DB cache server.
    But when we start each of managed server, I will get exception:
    ####<Nov 22, 2010 6:03:24 PM CST> <Critical> <WebLogicServer> <Machine1> <Main Thread> <<WLS Kernel>> <1290420204498> <BEA-000386> <Server subsystem failed. Reason: java.lang.AssertionError:
    java.lang.AssertionError: Unsupported database driver
    at weblogic.cluster.singleton.QueryHelperImpl.getTimeFunction(QueryHelperImpl.java:88)
    at weblogic.cluster.singleton.QueryHelper.getLeaseOwnerQuery(QueryHelper.java:110)
    at weblogic.cluster.singleton.DatabaseLeasingBasis.pingDB(DatabaseLeasingBasis.java:411)
    at weblogic.cluster.singleton.DatabaseLeasingBasis.getJDBCConnection(DatabaseLeasingBasis.java:465)
    at weblogic.cluster.singleton.DatabaseLeasingBasis.getJDBCConnection(DatabaseLeasingBasis.java:507)
    at weblogic.cluster.singleton.DatabaseLeasingBasis.findOwner(DatabaseLeasingBasis.java:305)
    at weblogic.cluster.singleton.LeaseManager.findOwner(LeaseManager.java:218)
    at weblogic.cluster.singleton.MigratableServerService.findSingletonMaster(MigratableServerService.java:201)
    at weblogic.cluster.singleton.ReplicatedSingletonServicesStateManager.syncStateFromActiveStateManager(ReplicatedSingletonServicesStateManager.java:618)
    at weblogic.cluster.singleton.ReplicatedSingletonServicesStateManager.<init>(ReplicatedSingletonServicesStateManager.java:168)
    at weblogic.cluster.singleton.SingletonMonitor.<init>(SingletonMonitor.java:97)
    at weblogic.cluster.singleton.SingletonMaster.<init>(SingletonMaster.java:44)
    at weblogic.cluster.singleton.MigratableServerService.initialize(MigratableServerService.java:142)
    at weblogic.cluster.singleton.MigratableServerService.start(MigratableServerService.java:436)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    But if I create a standalone domain, still use the same datasource(still this timesten server), weblogic server can start successfully.
    BR,
    Peng

    Hi,
    I have use WebLogic Server Console, tree: Services -> JDBC -> Connection Pools. Then I have choose 'Configure a new JDBC Connection Pool...':
    1.) as 'Database Type:' I have select MySQL (version using com.mysql.jdbc.Driver) -> click 'Continue' button;
    2.) 'Database Name:' = OSS; 'Host Name' = localhost; 'Port' = 3306; 'Database User Name:' = root; -> click 'Continue' button;
    3.) 'Driver Classname:' = com.mysql.jdbc.Driver; 'URL:' = jdbc:mysql://localhost:3306/OSS; 'Database User Name:' = root; 'Properties:' = user=root -> click to 'Test Driver Configuration' button.
    After click on test driver button I get message: JDBC driver is not on the CLASSPATH.
    But when I check System variables (in Control Panel -> System) I have set up following:
    CLASSPATH=.;C:\DB2\java\db2java.zip;C:\DB2\java\db2jcc.jar;C:\DB2\java\sqlj.zip;C:\DB2\java\db2jcc_license_cu.jar;C:\DB2\bin;C:\DB2\java\common.jar;C:\DBS\JDBC\db2\db2.jar;C:\DB2\BIN;c:\mysql.jar
    The last value is 'c:\mysql.jar' and that's the mysql jdbc driver located on c:\.
    I don't understand why weblogic cannot find it.
    Any idea?
    Thanks in advance for help,
    with best regards,
    Julian Legeny

  • Implementing Singletons in a cluster

    Hi all,
    I have the following question: is it possible to implement a Singleton in a EJB
    cluster? What about using a Stateless Session Bean with max-cache setting to 1
    ?(for container that support it). This way the container will create a single
    instance and serialize access to it....what do you think about it??
    Francesco

    Hello,
    I recalled this time-ago posting. I'd like to
    expand it a bit.
    bind a remote object to a jndi entry.
    That won't work with Weblogic ... it is possible to end up >with two singletonsdue to how WL JNDI works.
    Why binding a remote object in JNDI tree will end up with
    more instance of the object? Pardon my un-experience with clustering but I thought
    WL replicates JNDI
    tree between instances in the cluster....why other instance
    of the cluster don't get the same replica-object?
    A further issue: are there any problems with using a static field in an EJB that's
    in a cluster?
    Thanks a lot
    Francesco
    "Cameron Purdy" <[email protected]> wrote:
    That won't work with Weblogic ... it is possible to end up with two
    singletons due to how WL JNDI works.
    Peace,.
    Cameron Purdy
    Tangosol, Inc.
    Clustering Weblogic? You're either using Coherence, or you should be!
    Download a Tangosol Coherence eval today at http://www.tangosol.com/
    "tony pan" <[email protected]> wrote in message
    news:3cab973a$[email protected]..
    If you really want to do it, bind a remote object to a jndi entry.ServerSide has
    an example. But be sure it is really what you want.
    "Cameron Purdy" <[email protected]> wrote:
    What are you trying to accomplish with a singleton in the cluster?
    Peace,
    Cameron Purdy
    Tangosol, Inc.
    Clustering Weblogic? You're either using Coherence, or you should
    be!
    Download a Tangosol Coherence eval today at http://www.tangosol.com/
    "Francesco" <[email protected]> wrote in message
    news:[email protected]..
    Hi all,
    I have the following question: is it possible to implement a Singletonin
    a EJB
    cluster? What about using a Stateless Session Bean with max-cache
    setting
    to 1
    ?(for container that support it). This way the container will createa
    single
    instance and serialize access to it....what do you think about it??
    Francesco

  • Is Weblogic Cluster  supports Application scope Objects?

              Our Application is mainly depends on Application scope objects. On one m/c, it
              is perfect.
              Now, we want to support the failover , load balancing ... (High Availability).
              I know, weblogic cluster supports HttpSessions, EjbObjects ... etc. What about
              Application scope objects.
              we are planning for weblogic server which supports the our requirements.
              If not, what is the solution to make it work by using Weblogic server.
              for eg: I can give what type of application we are developing --- similar to
              textchat.
              our application is real time application.
              

    Even a singleton is not good enough as singletons are good only in the VM they were
              created it. One way is to have a distributed object such as a stateful session bean of
              which only one instance exists. U can create it at startup and store its handle in
              some persistent storage as well as a singleton. This ensures that even if the
              singleton doesnt contain it the refgerence to it can be obtained.
              There will be some problems with this setup as people should not allow it to create
              instances of it . Any such endeavor will lead to a CacheFullException.
              But essentially that seems possible.
              Even the 2.3 Servlet specification mandates that ServletContext and Application level
              object is only valid inside the JVM which created it. HttpSessions are replicated
              SessionContexts are not and are not likely to be in any J2EE application server
              Sameer
              Devi wrote:
              > One more comment from my side,
              > U mentioned "EXCEPT FOR JNDI" , if this is possible, how can we acheive?
              > Can U give brief description ? Take textchat example itself? since, our application
              > is almost have same mechanism. If it is < 1 sec delay means acceptable for this
              > release.
              >
              > Thanks,
              > Devi
              >
              > "Cameron Purdy" <[email protected]> wrote:
              > >Weblogic doesn't support replicated / synchronized app scope objects
              > >across
              > >a cluster except for JNDI, which is probably not a good solution for
              > >what
              > >you are describing.
              > >
              > >If you need a real-time shared fault-tolerant fail-overable high-performance
              > >load-balanced high-scale data store, then let me know when you find one
              > >;-)
              > >.... seriously, there are not a whole lot of good general purpose solutions
              > >in this space. There are some things to look at but they are all expensive:
              > >
              > >Persistent PowerTier on top of Oracle - a caching entity EJB server
              > >Jasmine (or whatever it is called this week) - an object oriented
              > >distributed data store
              > >....
              > >
              > >Peace,
              > >
              > >--
              > >Cameron Purdy
              > >Tangosol Inc.
              > ><< Tangosol Server: How Weblogic applications are customized >>
              > ><< Download now from http://www.tangosol.com/download.jsp >>
              > >
              > >
              > >"Devi" <[email protected]> wrote in message
              > >news:[email protected]...
              > >>
              > >> Our Application is mainly depends on Application scope objects. On
              > >one
              > >m/c, it
              > >> is perfect.
              > >> Now, we want to support the failover , load balancing ... (High
              > >Availability).
              > >>
              > >> I know, weblogic cluster supports HttpSessions, EjbObjects ... etc.
              > > What
              > >about
              > >> Application scope objects.
              > >> we are planning for weblogic server which supports the our requirements.
              > >>
              > >> If not, what is the solution to make it work by using Weblogic server.
              > >> for eg: I can give what type of application we are developing ---
              > >similar to
              > >> textchat.
              > >> our application is real time application.
              > >>
              > >
              > >
              

  • Singleton Service in Cluster

    Has anybody created the singleton servince in cluster and migrated once the server goes down. If so can you please share the sameple and steps for the migration.
    Thanks,

    Here is an example on how to create a singleton service: http://middlewaremagic.com/weblogic/?p=5799
    Example on configuring migration can be found here: http://middlewaremagic.com/weblogic/?p=7188

  • File accessing in weblogic cluster 10.3

    I have a cluster with 2 instances.
    the requirement is like an legacy system putting files in a directory.my ejb timer in weblogic cluster should read the file and process , but the same file should not be read by both instancess in the cluster.if a file is accessed by one instance then other instace should take another file.pls provide the java code and configuration for this.

    Hi,
    i tried to create a managed server in wls 10.3 and while starting the ms's it is giving a warning that it is not rechable.
    Basically i need to migrate a application running in a jboss to wls 10.3.
    a sessionbean implemented TimedObject (ie,that i mention as timer),migrate it ro weblogic singleton.
    do i need to implement singleton interface in the session bean itself?
    like testsessionbean implements TimedObject , weblogic.cluster.SingletonService ,
    (it should be part of ejb project and the ear contains the ejb project and web project)
    can i put the file accessing funtionality to activate()?
    how can i call it from timerejb.
    if u give me a sample code with timer ejb accessing singleton it will be helpfull for me
    thanks

  • ACFS recomandations for weblogic cluster

    Hi,
    Can some one help me to findout material(step by step) for ACFS usage with weblogic clustering.
    Originally I started thread here :
    Re: ACFS recomandations for weblogic cluster
    Thanks in advance for valuable time
    Datla

    The first question you need to ask yourself is for what purpose do i need this type of filesystem when using a WebLogic Cluster?
    The first which comes to mind is the migration of so-called singleton service, such as JMS Servers, persistence stores and JTA.
    For example, when a machine fails, we must bring the services, running on the failed machine, up on other machines. The JTA
    service plays a critical role in recovery from a failure scenario where transactions are involved. In-flight transactions can hold locks
    on underlying resources. If the transaction manager is not available to recover these transactions, resources may hold on to these
    locks for a long time. This makes it difficult for an application to function properly. JTA service migration is possible only if the server's
    default persistent store (where the JTA logs are kept) is accessible to the server to which the service will migrate.
    This where a shared storage mechanism comes into play - to store files which need to be accessible from every server. The concept
    of ACFS which is useful in this scenario is the mount model (http://download.oracle.com/docs/cd/E14072_01/server.112/e10500/asmfilesystem.htm#CACJGEAC)
    To set-up a mount point you can follow the steps presented here: http://download.oracle.com/docs/cd/E15051_01/wls/docs103/cluster/service_migration.html#wp1049463
    This link contains the steps in order to configure JMS migration: http://download.oracle.com/docs/cd/E15051_01/wls/docs103/cluster/service_migration.html#wp1065826
    This link contains the steps in order to configure JTA migration: http://download.oracle.com/docs/cd/E15051_01/wls/docs103/cluster/service_migration.html#wp1054024

  • How to setup weblogic cluster in 6.1 SP4

              Hi All,
              I have a Licensed weblogic in my solaris servers. I need to test weblogic clustering
              . How can i simulate weblogic clustering is there is any easy steps to do that
              and what should i do in order to make my EJB`s cluster aware. And some ppl say
              that i need to take a seperate weblogic cluster license other than the weblogic
              license.Kindly help me in proceeding further
              Thanks in advance
              Bala.J
              

    Hi
    I have same problem at beforetime.
    You can do follow:
    Step 1:
    copy rt.jar form JDK 1.2.1\jre\lib\jar
    to J2EE1.2.1\lib\system\
    Step 2:
    Set J2ee_classpath = c:\j2ee1.2.1\lib\system\rt.jar
    Step 3:
    Restart computer and J2ee
    You can try it
    Help can help you
    David

  • Having issue with start weblogic cluster with tangosol cluster

    Hi,
    Oracle Coherence Version 3.3.1/389p1
    Grid Edition: Development mode
    We are using Weblogic 8.1.5 with Tangosol 3.3.1 on Linux servers.
    And we added the initializing logic in the servlet's init() method to get all NamedCaches and put into the ServletContext.
    When we start weblogic cluster, the first weblogic member will startup successfully with following messages :
    <Nov 7, 2007 10:12:30 AM EST> <Info> <HTTP> <BEA-101047> <[2007-11-07 10ServletContext(id=259640596,name=clusterqa,context-path=)] initObjects: init>:12:31.565 Oracle Coherence 3.3.1/389p1 <Info> (thread=Main Thread, member=n/a): Loaded operational configuration from resource "zip:/home/server/clusterqa/wls81/DOCVIEW/docqa1/.wlnotdelete/extract/docqa1_DOC_clusterqa/jarfiles/WEB-INF/lib/coherence.jar!/tangosol-coherence.xml"
    2007-11-07 10:12:31.598 Oracle Coherence 3.3.1/389p1 <Info> (thread=Main Thread, member=n/a): Loaded operational overrides from file "/home/www/WEB-INF/lib/tangosol-coherence-override.xml"
    Oracle Coherence Version 3.3.1/389p1
    Grid Edition: Development mode
    Copyright (c) 2000-2007 Oracle. All rights reserved.
    2007-11-07 10:12:31.938 Oracle Coherence GE 3.3.1/389p1 <Info> (thread=Main Thread, member=n/a): Loaded cache configuration from file "/home/www/WEB-INF/lib/pub-search-cache-config.xml"
    2007-11-07 10:12:31.983 Oracle Coherence GE 3.3.1/389p1 <Info> (thread=Main Thread, member=n/a): sun.misc.AtomicLong is not supported on this JVM; using a synchronized counter. Though safe to ignore, you may upgrade to BEA's 1.5 JVM to fix this issue.
    2007-11-07 10:12:33.267 Oracle Coherence GE 3.3.1/389p1 <Warning> (thread=Main Thread, member=n/a): UnicastUdpSocket failed to set receive buffer size to 1428 packets (2096304 bytes); actual size is 89 packets (131071 bytes). Consult your OS documentation regarding increasing the maximum socket buffer size. Proceeding with the actual value may cause sub-optimal performance.
    2007-11-07 10:12:34.118 Oracle Coherence GE 3.3.1/389p1 <D5> (thread=Cluster, member=n/a): Service Cluster joined the cluster with senior service member n/a
    2007-11-07 10:12:37.508 Oracle Coherence GE 3.3.1/389p1 <Info> (thread=Cluster, member=n/a): Created a new cluster with Member(Id=1, Timestamp=2007-11-07 10:12:33.323, Address=10.5.176.86:8088, MachineId=48982, Edition=Grid Edition, Mode=Development, CpuCount=4, SocketCount=2) UID=0x0A05B056000001161AAB782BBF561F98
    2007-11-07 10:12:37.736 Oracle Coherence GE 3.3.1/389p1 <D5> (thread=Invocation:Management, member=1): Service Management joined the cluster with senior service member 1
    2007-11-07 10:12:38.168 Oracle Coherence GE 3.3.1/389p1 <D5> (thread=DistributedCache, member=1): Service DistributedCache joined the cluster with senior service member 1
    <Nov 7, 2007 10:12:38 AM EST> <Info> <HTTP> <BEA-101047> <[ServletContext(id=259640596,name=clusterqa,context-path=)] xslProcessor: init>
    But trying to start the second weblogic member server, the startup process is stucked after tangosol cache initialization and the second weblogic member server never up running. Please see following messages :
    <Nov 7, 2007 9:49:38 AM EST> <Info> <HTTP> <BEA-101047> <[ServletContext(id=153019550,name=clusterqa,context-path=)] initDSNames: init>
    <Nov 7, 2007 9:49:42 AM EST> <Info> <HTTP> <BEA-101047> <[ServletContext(id=153019550,name=clusterqa,context-path=)] initObjects: init>
    2007-11-07 09:49:43.156 Oracle Coherence 3.3.1/389p1 <Info> (thread=Main Thread, member=n/a): Loaded operational configuration from resource "zip:/home/server/clusterqa/wls81/DOCVIEW/docqa2/.wlnotdelete/extract/docqa2_DOC_clusterqa/jarfiles/WEB-INF/lib/coherence.jar!/tangosol-coherence.xml"
    2007-11-07 09:49:43.188 Oracle Coherence 3.3.1/389p1 <Info> (thread=Main Thread, member=n/a): Loaded operational overrides from file "/home/www/WEB-INF/lib/tangosol-coherence-override.xml"
    Oracle Coherence Version 3.3.1/389p1
    Grid Edition: Development mode
    Copyright (c) 2000-2007 Oracle. All rights reserved.
    2007-11-07 09:49:43.528 Oracle Coherence GE 3.3.1/389p1 <Info> (thread=Main Thread, member=n/a): Loaded cache configuration from file "/home/www/WEB-INF/lib/pub-search-cache-config.xml"
    2007-11-07 09:49:43.571 Oracle Coherence GE 3.3.1/389p1 <Info> (thread=Main Thread, member=n/a): sun.misc.AtomicLong is not supported on this JVM; using a synchronized counter. Though safe to ignore, you may upgrade to BEA's 1.5 JVM to fix this issue.
    2007-11-07 09:49:44.829 Oracle Coherence GE 3.3.1/389p1 <Warning> (thread=Main Thread, member=n/a): UnicastUdpSocket failed to set receive buffer size to 1428 packets (2096304 bytes); actual size is 89 packets (131071 bytes). Consult your OS documentation regarding increasing the maximum socket buffer size. Proceeding with the actual value may cause sub-optimal performance.
    2007-11-07 09:49:45.419 Oracle Coherence GE 3.3.1/389p1 <D5> (thread=Cluster, member=n/a): Service Cluster joined the cluster with senior service member n/a
    2007-11-07 09:49:45.555 Oracle Coherence GE 3.3.1/389p1 <Info> (thread=Cluster, member=n/a): Failed to satisfy the variance: allowed=16, actual=47
    2007-11-07 09:49:45.555 Oracle Coherence GE 3.3.1/389p1 <Info> (thread=Cluster, member=n/a): Increasing allowable variance to 19
    2007-11-07 09:49:46.040 Oracle Coherence GE 3.3.1/389p1 <Info> (thread=Cluster, member=n/a): This Member(Id=2, Timestamp=2007-11-07 09:49:45.69, Address=10.5.176.85:8088, MachineId=48981, Edition=Grid Edition, Mode=Development, CpuCount=4, SocketCount=2) joined cluster with senior Member(Id=1, Timestamp=2007-11-07 09:45:10.205, Address=10.5.176.86:8088, MachineId=48982, Edition=Grid Edition, Mode=Development, CpuCount=4, SocketCount=2)
    Could you please explain why it happens, and what should I do to resolve this issues ?
    Many Thanks,
    Bing

    Hi, Gene
    Thank you for the response. I will send you our full log files and thread dumps.
    I just want to give you more details about our cases :
    1. This only happened without starting cache servers (com.tangosol.net.DefaultCacheServer).
    2. And our application which are running on weblogic cluster will just call "CacheFactory.getCache("XXX")", and running as the Tangosol DataClient.
    3. All weblogic member servers will be up running successfully if our cache servers are up running.
    Also I tried to test another case :
    Suppose all weblogic instances and cache server instances are up running. Now I trying to restart (kill weblogic instance process and restart) one of the weblogic member, It will up running successfully only if add some sleep times after killing weblogic processes and restarting it. Looks like tangosol cluster need certain time to aware the member has left cluster, then the restart process will be successful.
    Questions :
    1. Should we start our weblogic cluster only after cache server cluster is up running ?
    2. How do we decide how many time we should wait before start new process to join the cache cluster ?
    Could you please help to explain this one for me and let us if there anyway we can do to avoid the problem.
    Many Thanks !!!
    Bing

  • No communication between the two nodes in weblogic cluster

    Hi All,
    We have installed weblogic cluster in our environment(LINUX 64-Redhat.5).On one node admin server ,managed server1,on second node we have managed server2.When we try to deploy application on one node it is not getting reflected in othe node.We have ran datagram test to check communication between 2 node.
    Here we observed that listener and pulisher are picking wrong IPs not the server Ips.
    can any one explain why and what is the problem.
    thanks,
    sudheer.

    Hi Sudheer,
    While performing the datagram test you mention the ports and ip so I am not sure how they are picking wrong ip and port. Follow the instructions to perform the test http://coherence.oracle.com/display/COH35UG/Performing+a+Datagram+Test+for+Network+Performance
    Re the deployments, you need to ensure that multicast is enabled in your environment and both your managed server are in the same subnet otherwise you need to specify WKA for unicast communication. I am assuming that you are building SOA infrastructure as it internally uses Coherence for deploying applications and you can follow the instructions http://download.oracle.com/docs/cd/E15523_01/core.1111/e12036/extend_soa.htm#CHDEAFJH else use the intructions as mentioned here http://download.oracle.com/docs/cd/E17904_01/web.1111/e13709/features.htm
    Hope this helps!
    Cheers,
    NJ

  • Single sign-on in weblogic cluster?

              I am using wls 7.0 sp1 that form a cluster by two managed servers each at different
              physical machine.
              In front of the servers, a hardware load-balancer providing a virtual ip that
              mapped to the real ip of the 2 machines.
              I deployed a web application to the cluster. The html & jsp files are all protected
              by Form Based Authorization.
              My expectation is, whenever I sign-on to the first managed server, the login credential
              should also be valid for the second managed server.
              But it is not the case.
              My situation is:
              - open brower with url: http://virtual.ip:7001/admin.jsp
              - the load balancer map the request to my first managed server.
              - the response from the first managed server prompt the login page for username
              and password.
              - after POST the information, my target admin.jsp page display properly.
              - when I click the link within the admin.jsp page, eg. http://virtual.address:7001/status.jsp
              there is two possibilities:
              1. the load balancer route the request to the first managed server and everything
              well.
              or
              2. the load balancer route the request to the second managed server and response
              with login page again.
              The second case is definitely not what I expected.
              Question:
              Is it the default behavior of Weblogic cluster on the single sign-on? I think
              my login is against a WLS domain (at least a cluster), not to a specific web server!
              Any comments are welcome.
              

              Note my answer is not directly related to your question, but it might help.
              From my experience to configure WL cluster with hardware load balancer, the session
              stick (layer 7 switch) should be used (either using the session cookie, or ServerID
              cookie). That is, unless one instance is down, all requests from the same session
              are better go to the same server. I ever tried round-robin or random load balance
              policy at hardware load balancer without session stick, and the result was as
              disappointing as you have seen.
              "franky c." <[email protected]> wrote:
              >
              >
              >I am using wls 7.0 sp1 that form a cluster by two managed servers each
              >at different
              >physical machine.
              >In front of the servers, a hardware load-balancer providing a virtual
              >ip that
              >mapped to the real ip of the 2 machines.
              >I deployed a web application to the cluster. The html & jsp files are
              >all protected
              >by Form Based Authorization.
              >
              >My expectation is, whenever I sign-on to the first managed server, the
              >login credential
              >should also be valid for the second managed server.
              >
              >But it is not the case.
              >
              >My situation is:
              >- open brower with url: http://virtual.ip:7001/admin.jsp
              >- the load balancer map the request to my first managed server.
              >- the response from the first managed server prompt the login page for
              >username
              >and password.
              >- after POST the information, my target admin.jsp page display properly.
              >- when I click the link within the admin.jsp page, eg. http://virtual.address:7001/status.jsp
              > there is two possibilities:
              > 1. the load balancer route the request to the first managed server
              >and everything
              >well.
              > or
              > 2. the load balancer route the request to the second managed server
              >and response
              >with login page again.
              >
              >The second case is definitely not what I expected.
              >
              >Question:
              >Is it the default behavior of Weblogic cluster on the single sign-on?
              >I think
              >my login is against a WLS domain (at least a cluster), not to a specific
              >web server!
              >
              >
              >Any comments are welcome.
              >
              >
              

Maybe you are looking for

  • Need help with modelling

    Hi, I have an u201CInventory Controllingu201D InfoCube (Cube 1) and defined queries on this InfoCube, which works fine. The time characteristic u201CFiscal year / periodu201D in this cube is derived from MKPF-BLDAT (Document Date in Document). And I

  • Mac Mini late 2012 BootCamp 5 Window 8.1 installation error "EFI Boot"

    I've been trying to install Windows 8.1. I use bootcamp 5. Nothing went wrong in the processes. Until the computer reboot and came to partition seletion for booting windows intallation. it didn't let me go any further from this process. I got the mes

  • Recommended Dimension language code approach matching SEO/ISO standards?

    Hi All, I noted that some language codes are alluded to in the developer guide for configuring Dimensions, but are not listed in their entirity. - en_US (US English) - de_DE (German) - de_CH (Swiss German) - de_AT (Austrian German) Is there a defined

  • Converting Word 98 Files to Word 2008 files

    I am trying to move Word files from a Power Mac G3 9.1 to a iMac 10.5.5. I am able to move the files but the kind is a Unix executable file that word 2008 will not open by double clicking the file. I can open them from Word 2008 directly, however I h

  • How to edit the IDM_SCHEMA_CONFIGURATION.xml

    Can anyone help me? I edited the CONFIGURATION:IDM_SCHEMA_CONFIGURATION.xml file and added employeeId to the following attribute(shown in bold): <IDMAttributeConfigurations> ...abbr. <IDMAttributeConfiguration name='email' syntax='STRING'/> *<IDMAttr