Help on Coherence + Weblogic Cluster configuration

Hi,
I am new to Coherence. I am exploring coherence to fulfill one of my requirement.
My requirement : I have an application deployed on a Web logic Server clustered environment. I need to cache the application specific data(java maps) and that should be available for all nodes of the WLS cluster. The application data that's being cached, can be updated from any of the node from the WLS cluster and updated application data from the cache should be available for all the nodes of the WLS cluster. The nodes in the WLS cluster resides in different machines from different locations.
Can I use coherence as a caching services for my requirement?
If Yes, do I need to start a coherence cache server on each node of the WLS cluster?
If yes, do I need to specially configure these cache servers, so that these cache servers would communicate each other in case of any data updates in the cache?
It will be great help if you could also provide sample configurations to achieve the above scenarios.
Thanks in advance!
regards,
Srinivas M

You can start one cache server in the network by using for example
# home directory
BEA_HOME="/home/oracle/bea"
export BEA_HOME
# java vendor (for example Oracle or Sun)
JAVA_VENDOR="Oracle"
export JAVA_VENDOR
# cache server klasse
CACHE_SERVER_CLASS="com.tangosol.net.DefaultCacheServer"
export CACHE_SERVER_CLASS
# coherence options
COHERENCE_OPTIONS="-Dtangosol.coherence.management=all"
export COHERENCE_OPTIONS
COHERENCE_OPTIONS="${COHERENCE_OPTIONS} -Dtangosol.coherence.management.remote=true"
#COHERENCE_OPTIONS="${COHERENCE_OPTIONS} -Dtangosol.coherence.cacheconfig=WEB-INF/classes/session-cache-config.xml"
#COHERENCE_OPTIONS="${COHERENCE_OPTIONS} -Dtangosol.coherence.session.localstorage=true"
WL_HOME="${BEA_HOME}/wlserver_10.3"
export WL_HOME
BEA_JAVA_HOME="${BEA_HOME}/jrockit_160_05_R27.6.2-20"
export BEA_JAVA_HOME
SUN_JAVA_HOME="${BEA_HOME}/jdk160_11"
export SUN_JAVA_HOME
if [ "${JAVA_VENDOR}" = "Oracle" ]; then
     JAVA_HOME="${BEA_JAVA_HOME}"
     export JAVA_HOME
     MEM_ARGS="-jrockit -Xms512m -Xmx512m -Xss128k -Xgcprio:throughput"
     export MEM_ARGS
fi
if [ "${JAVA_VENDOR}" = "Sun" ]; then
     JAVA_HOME="${SUN_JAVA_HOME}"
     export JAVA_HOME
     MEM_ARGS="-server -Xmx512m -Xms512m -Xmn256m -Xss128k -XX:PermSize=128m -XX:MaxPermSize=128m -XX:+UseParallelGC -XX:ParallelGCThreads=2 -XX:+UseParallelOldGC -XX:+AggressiveOpts -XX:+UseBiasedLocking"
     export MEM_ARGS
fi
# classpath for the cache server
CLASSPATH="${WL_HOME}/coherence/coherence.jar"
export CLASSPATH
# start the cache server
${JAVA_HOME}/bin/java ${MEM_ARGS} ${COHERENCE_OPTIONS} ${CACHE_SERVER_CLASS}The -Dtangosol.coherence.management=all option gives you some handy information on what the cache is doing by using for example the mbean browser provided by jconsole or jrockit mission control.
You can create an application in which you create a cache, the following shows an example of a servlet
import com.tangosol.net.CacheFactory;
import com.tangosol.net.NamedCache;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Random;
public class TestServlet extends HttpServlet {
    private NamedCache movies;
    public void init() throws ServletException {
        movies = CacheFactory.getCache("repl-movies");
        movies.put(10, new Movie(10, "Rear Window", "Alfred Hitchcock"));
        movies.put(20, new Movie(20, "Vertigo", "Alfred Hitchcock"));
        movies.put(30, new Movie(30, "Double Indemnity", "Billy Wilder"));
        movies.put(40, new Movie(40, "Touch of Evil", "Orson Welles"));
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        Integer[] integers = {10, 20, 30, 40};
        Random random = new Random();
        while (true) {
            movies.get(integers[random.nextInt(4)]);
}Package the servlet into for example a WAR file and deploy it to a configured WebLogic cluster.
By accessing servlet on the different nodes of the cluster a new cache gets created and added to the
already running DefaultServer.
The hard part is to configure your cache. As you can see in the servlet init we ue something like CacheFactory.getCache("repl-movies");
Coherence default with some example cache configurations which are contained in the coherence.jar (coherence-cache-config.xml).
The following entry is used
<cache-mapping>
      <cache-name>repl-*</cache-name>
      <scheme-name>example-replicated</scheme-name>
</cache-mapping>
<replicated-scheme>
      <scheme-name>example-replicated</scheme-name>
      <service-name>ReplicatedCache</service-name>
      <backing-map-scheme>
        <local-scheme>
          <scheme-ref>unlimited-backing-map</scheme-ref>
        </local-scheme>
      </backing-map-scheme>
      <autostart>true</autostart>
</replicated-scheme>A replicated cache is probably what you need as well. As you want all the data to be available on all nodes. If you want to use
your own cache configuration you can add the option -Dtangosol.coherence.cacheconfig (see the start script for the default server)
A good introduction on Coherence can be found here:
http://www.packtpub.com/article/installing-coherence-3.5-and-accessing-the-data-grid-1
and
http://www.packtpub.com/article/installing-coherence-3.5-and-accessing-the-data-grid-2?utm_source=rk_coherence_abr1_0310&utm_medium=content&utm_campaign=ramsai

Similar Messages

  • Help required in Weblogic 6 - Creation & Configuration of Web Application

    Forum Home > Enterprise JavaBeans[tm]
    Topic: Help required in Weblogic 6 - Creation & Configuration of Web Application
    Duke Dollars
    2 Duke Dollars assigned to this topic. Reward the best responses to your question
    using the icons below, or transfer additional Duke Dollars to this topic.
    Welcome moinshariff!
    Watching this topic.
    Previous Topic Next Topic
    This topic has 1 reply on 1 page (Most recent message: Jan 23, 2002 1:05 AM)
    Author: moinshariff Jan 22, 2002 4:55 AM
    Hi,
    I am using Weblogic 6. I have created a new Web
    Application called Web (I have not used the DefaultWebApp_myserver).
    And I have the following settings:
    Name : Web
    URI : Web
    and Path : C:\Web
    and placed my JSP files under c:\Web\
    I am able to access the first page, but after that I am not able to access the
    second page.
    I get "Error 404--Not Found" on the browser. Basically the class file is not getting
    created under /Web-inf/_tmp_war_myserver_myserver_Web/jsp_servlet/ folder .
    I tried a work around for this. I copied all my files under one more folder called
    web and placed this under C:\Web
    The it works. Now I have 2 copied off all the files, 1 copy under c:\web and another
    copy under c:\web\web\.
    If I have the files under DefaultWebApp_myserver and have the setting as
    Name: DefaultWebApp_myserver
    URI: DefaultWebApp_myserver
    Path: .\config\mydomain\applications
    everything works fine.
    Can any one please let me know if there is any configuration which has to be done
    so that I do not duplicate the code in 2 directories
    Thanks in advance.
    Regards,
    Moin

    Forum Home > Enterprise JavaBeans[tm]
    Topic: Help required in Weblogic 6 - Creation & Configuration of Web Application
    Duke Dollars
    2 Duke Dollars assigned to this topic. Reward the best responses to your question
    using the icons below, or transfer additional Duke Dollars to this topic.
    Welcome moinshariff!
    Watching this topic.
    Previous Topic Next Topic
    This topic has 1 reply on 1 page (Most recent message: Jan 23, 2002 1:05 AM)
    Author: moinshariff Jan 22, 2002 4:55 AM
    Hi,
    I am using Weblogic 6. I have created a new Web
    Application called Web (I have not used the DefaultWebApp_myserver).
    And I have the following settings:
    Name : Web
    URI : Web
    and Path : C:\Web
    and placed my JSP files under c:\Web\
    I am able to access the first page, but after that I am not able to access the
    second page.
    I get "Error 404--Not Found" on the browser. Basically the class file is not getting
    created under /Web-inf/_tmp_war_myserver_myserver_Web/jsp_servlet/ folder .
    I tried a work around for this. I copied all my files under one more folder called
    web and placed this under C:\Web
    The it works. Now I have 2 copied off all the files, 1 copy under c:\web and another
    copy under c:\web\web\.
    If I have the files under DefaultWebApp_myserver and have the setting as
    Name: DefaultWebApp_myserver
    URI: DefaultWebApp_myserver
    Path: .\config\mydomain\applications
    everything works fine.
    Can any one please let me know if there is any configuration which has to be done
    so that I do not duplicate the code in 2 directories
    Thanks in advance.
    Regards,
    Moin

  • Caching read-only data in a weblogic cluster: Need Help

    Hello,
    I'm working on the development of a web site that will be based on a weblogic cluster spread across several weblogic instances running on several unix boxes.
    To avoid frequent hits to the database, I would like hold a huge amount of data in the application's in-memory cache. The idea is to query the database at startup and store the results in memory for the life of the JVM.
    I have three questions around this:
    1. Is it advisable to store this data in the form of read-only entity beans?
    2. If not, what other options do I have?
    3. In some rare cases, a back-end script might change (and commit) data contained in one or two of these 64000 records. What is the best way of propagating these data changes across the cluster?
    Any help in this regard would be greatly appreciated.
    Regards,
    Dipak Jha

    Could somebody please guide me on this?
    Dipak Jha

  • Cluster Configuration in WebLogic 10.3.5

    I have some doubts about clustering in WebLogic.
    1) I have created two MS(Managed Servers) in one machine: MS1(port 7003),MS2(port 7013). The MS2 should be the backup for MS1 when something wrong happens. So MS1 and MS2 have to be agreggated to my cluster configuration or just MS2?
    2) I have created the cluster ,with the Admin Console, assuming I have to agregate just MS2. ¿Do I need to do another configuration? I don't know exactly what are the steps to complete the cluster.

    Hi,
    You are going in the right track.
    First make sure that you have a standalone server,in your case (AdminServer) to distribute the requests to the other Managed servers.
    1)Create the two managed servers.
    2)Add all the servers in the cluster
    3)create a machine and add MS1 and MS2.
    4)Run the node manager from the directory <oracle_home>/wlserver10.3/server/bin/nodemanager.cmd
    5)Now try to start the managed servers.
    optionally...add the below argument in the managed servers... Home >Summary of Servers >Summary of Clusters >Cluster_1 >ms1
    -Xms512m -Xmx512m -XX:MaxPermSize=512m
    Clustering achieved-
    But wait, now this is not the end of things... :)
    Now you need to achieve Load balancing, to actually see how the clustering behaves.
    cheers,
    salil

  • 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.
              >
              >
              

  • 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

  • Issue listeneing queue from Weblogic Cluster server with multiple managed server

    Haveing issue listeneing queue from Weblogic Cluster server with multiple managed server.
    Weblogic Cluster structure is like
    Weblogic Cluster01
      --ManagedServer01(http://server01.myhost.com:7001)
      --ManagedServer02(http://server02.myhost.com:7001)
    JMS Servers
      JMSserver01 targeting: ManagedServer01
      JMSserver02 targeting: ManagedServer02
      JMSmodule
      ConnectionFactory01 targeting:JMSserver01,JMSserver02
      UDQueue01 targeting:JMSserver01,JMSserver02
    Uniform Distributed Queue in Monitoring tab showing like this
      mysystemmodule!JMSserver01@UDQueue01
      mysystemmodule!JMSserver02@UDQueue01
    So when I am sending message to any Host(by specifying the provider URL) its distributing equally on both server like
      mysystemmodule!JMSserver01@UDQueue01 10
      mysystemmodule!JMSserver02@UDQueue01 10
    But when try to listen message from these queue, it is listening from one server, for which URL given to connect.
      mysystemmodule!JMSserver01@UDQueue01 0
      mysystemmodule!JMSserver02@UDQueue01 10
    untill I connect to other server by giveing its URL, will not able to access other message left on the queue.
    Solutions that tried
      1) we have tried give both server URL coma sparated in provider URL
    we need to configur same scenario for 5 managed server with 3 listener on other servers.
    Do any one have solution for this.

    You need to have:
    1. Consumers connected to each UDQ member
    OR
    2. If no consumers in some of the members is expected, you can configure Forward Delay (specify the amount of time, in seconds, that a queue member with messages, but with no consumers, will wait before forwarding its messages to other queue members that do have consumers):
    http://docs.oracle.com/cd/E12839_01/apirefs.1111/e13952/taskhelp/jms_modules/distributed_queues/ConfigureUDQGeneral.html
    For example you can set it to 10 (10s)
    Additional Information here:
    http://docs.oracle.com/cd/E23943_01/web.1111/e13727/dds.htm#i1314228
    http://docs.oracle.com/cd/E23943_01/apirefs.1111/e13951/mbeans/DistributedQueueBean.html?skipReload=true#ForwardDelay
    How Does JMS Load Balancing Work with Distributed Queues and Uniform Distributed Queues? (Doc ID 827294.1)
    I hope this helps
    Best Regards
    Luz

  • Web Proxying to a WebLogic Cluster using the HTTPS protocol

    Hi all,
    I am recently involved into JWS proxying to WebLogic Cluster.
    I don't have any technical problems at the moment but "conceptual" problems, that is:
    - my jws proxy server should connect to a WebLogic Cluster through a Bea plugin configured wish SSL parameters;
    - my jws proxy server should pass the incoming request using a load-balancing algorithm among the two nodes of the cluster, that are actually installed on two different machines;
    - the jws proxy server doesn't seem to accept multiple certificates.
    My question is: how can I configure my proxy plugin to route the incoming requests to my WebLogic Cluster using the https protocol? As a matter of fact, each certificate should be hostname dependent, and it looks like that the proxy plugin doesn't accept a multiple certificate configuration (and it should actually match the CN entry in the certificates with the actual hostnames of the nodes).
    Any hint?
    Thx a lot,
    Luca

    It is supported in 5.2
              - Prasad
              Wei Guan wrote:
              > As I knew of, secure proxying is not supported yet.
              > --
              > Cheers - Wei
              > Bob Kiep <[email protected]> wrote in message
              > news:8bvvc7$7uf$[email protected]..
              > > The NSAPI plugin cannot perform SSL proxying, as documented at the bottom
              > of
              > > this message (taken from
              > > http://www.weblogic.com/docs/admindocs/nsapi.html#background). When
              > > Weblogic is the proxy, can I do SSL? If someone could send me the link to
              > > where is states whether is SSL or not would be very helpful.
              > >
              > > "The plug-in is for an environment where NES serves static pages, and a
              > > Weblogic Server (operating in a different process, possibly on a different
              > > host) is delegated to serve dynamic pages (such as JSPs or pages generated
              > > by HTTP Servlets). The connection between WebLogic Server and the NSAPI
              > > plug-in is clear text http, not SSL. To the end user -- the browser -- the
              > > HTTP requests delegated to WebLogic appear to come from the same source as
              > > the static pages. In other words, WebLogic on the back-end is invisible.
              > > Additionally, the HTTP-tunneling facility of the WebLogic client-server
              > > protocol can operate through the plug-in, providing access to all WebLogic
              > > services (not just dynamic pages). "
              > >
              > >
              Cheers
              - Prasad
              

  • Weblogic cluster

    All,Could anyone pls. provide me some information on how to setup a cluster across the multiple machines ? Any documentation which talks about cluster configuration etc.... or your thoughts..I am using Weblogic 6.0 on Solaris.Thanks for your help in advance!-Mohan
              

              You need an IP for every instance you want to run regardless
              of managed or admin.
              So from the sounds of it, you need 3.
              You don't need separate NIC cards, only IP's.
              These can be virtual.
              Here is a for example. Call Box X ren call Box Y stimpy
              This will be the machine names in the admin console.
              Set up Servers in the console.
              There should be one called myserver (unless you changed it)
              DO NOT CLONE!!! there appears to be a bug.
              Call server 1 app1 and server 2 app2.
              app1 is box x (ren)
              app2 is box y (stimpy)
              Assign listen address ips (these will be the machine ip's for
              this, real or virtual)
              listen port, keep it 7001. all three will run on this.
              Also set up a cluster in the machine console.
              Assgin the cluster address as ren,stimpy or whatever the real
              mahcine names are.
              set multicast (237.0.0.1) works.
              There are limits for this, I am unsure what they are exactly (range)
              that is it
              startManagedWebLogic.cmd app1 http://10.255.2.98:7001
              startManagedWebLogic.cmd app2 http://10.255.2.98:7001
              where 10.255.2.98 is the admin server.
              wala, you are running a cluster.
              see if that all works.
              later,
              cb4158
              "smith" <[email protected]> wrote:
              >
              >I will tell you my situation. I have a Unix Box X and Unix Box Y and
              >installed
              >WLS6.0sp1 on both m/cs. I want to create a wl server on X and Y and use
              >them using
              >a cluster.
              >I am strucked at creating second server on m/c Y. Is this server should
              >be under
              >same domain(the domain on X where admin server resides)?
              >Can you give me some brief steps for my situation(one admin server and
              >one WLM
              >server on X and on WLM server on Y) so that I will get rid of my stupid
              >doubts.
              >
              >Thanks
              >Smith
              >
              >
              >"cb4158" <[email protected]> wrote:
              >>
              >>Yes, you need an installation per box with a license file
              >>per box that supports clustering.
              >>
              >>I read the post to say that there were 2 installs per box.
              >>That is too many.
              >>
              >>The second box will not run the admin and only the managed
              >>server that will connect to the admin via:
              >>
              >>startManagedWebLogic.cmd (managedservername) http://adminname:port
              >>
              >>let me know what other issues you are having and I will try to help.
              >>
              >>cb4158
              >>
              >>
              >>
              >>"smith" <[email protected]> wrote:
              >>>
              >>>Hi brown,
              >>>
              >>>Thanks for responding. I got couple of questions.
              >>>If I want to use two unix boxes(one weblogic server on each box and
              >>one
              >>>admin
              >>>server on one box) do I need to have weblogic installation on each
              >box
              >>>or not?
              >>>If not how to use the second unix box(second weblogic server)?
              >>>
              >>>These things I couldn't find in documentation.Please do give me reply.
              >>>
              >>>Thanks
              >>>Smith
              >>>
              >>>
              >>>
              >>>"cb4158" <[email protected]> wrote:
              >>>>
              >>>>Also see the post that I provided to mira,
              >>>>4819 Re: read only -ejb - "cb4158" , 30 Apr 2001
              >>>>Tells some of the key points.
              >>>>
              >>>>let me know any specifics.
              >>>>
              >>>>"smith" <[email protected]> wrote:
              >>>>>
              >>>>>Hi Guys,
              >>>>>
              >>>>>I am also facing same problem. If you are done same thing please
              >>>>>post it.
              >>>>>I have gone through that documentation which mohan mentioned.But
              >I
              >>>couldn't
              >>>>>find
              >>>>>how to add servers on different m/c to cluster.
              >>>>>
              >>>>>smith
              >>>>>
              >>>>>"Kumar Allamraju" <[email protected]> wrote:
              >>>>>>I would suggest you to look at this doc first
              >>>>>>http://e-docs.bea.com/wls/docs60/adminguide/config.html
              >>>>>>
              >>>>>>and let us know if you have any specific questions.
              >>>>>>
              >>>>>>--
              >>>>>>Kumar
              >>>>>>
              >>>>>>
              >>>>>>"Mohan" <[email protected]> wrote in message
              >>>>>>news:[email protected]...
              >>>>>>> All,Could anyone pls. provide me some information on how to setup
              >>>>>a
              >>>>>>cluster across the multiple machines ? Any documentation which talks
              >>>>>>about
              >>>>>>cluster configuration etc.... or your thoughts..I am using Weblogic
              >>>>>6.0
              >>>>>>on
              >>>>>>Solaris.Thanks for your help in advance!-Mohan
              >>>>>>
              >>>>>>
              >>>>>
              >>>>
              >>>
              >>
              >
              

  • Weblogic cluster for 24x7 environment and a front OHS server

    Hi experts,
    We are going to set up a reliable J2EE application server environment by using clustering webgoic servers on TWO nodes, and a front OHS https server in DMZ for load balancing.
    I am new to weblogic cluster and load balance by OHS. I have visited this forum for Fusion MiddleWare clustering etc. Can some experts share some light on this?
    Will our deployment architecture be able to handle the J2EE applications failover? In other word, we can restart one of Weblogic Managed Servers when a new release of J2EE codes are re-deployed without impacting business end users’s usage?
    Problems we want to solve:
    1. All J2EE applications are available for 24x7 even when new J2EE codes are released and deployed on weblogic Managed Servers ANY TIME, side-by-side deployment and restart a managed server if we need to clean the HTTP cache.
    2. The J2EE applications should be accessed by external and internal users with a Single Access Point, like
    https://apps.company1.com/j2ee1
    https://apps.company2.com/j2ee1
    https://apps.company1.com/j2ee2
    https://apps.company2.com/j2ee2
    All J2EE applications (j2ee1, j2ee2, j2ee3 etc) should be deployed on both of weblogic Servers in a cluster, and pointing to a SAME backend database.
    Can some experts share with us the best practices on components and configurations? Thanks.

    Seems your architecture is like Browser => OHS ( DMZ ) => Weblogic => DB OR Browser => HLB( like bigip ) => OHS ( DMZ ) => Weblogic => DB
    Cluster is the solution for load balancing however if you are using OHS for redirection to weblogic then OHS does the load balancing in round robin way. using cluster in this way has a benefit of in case of any one of your managed server is down the OHS will divert connection request to any one of the active managed server ( you have to turn on dynamic list on at OHS ).
    http://weblogicserveradministration.blogspot.com/2010/10/load-balancing-in-weblogic-server.html
    Failover is something different, if in case any of the any managed server goes down then your user you get the application session from another server but new one, means the the tasks not saved by the users on earlier session will lost. for that yo need to use cluster and then need to enable the session replication. another best option is you can use the coherence web if you are using latest versions of weblogic supporting coherence web. with that you not need to worry on user sessions and you can start any of the managed server anytime without worrying about the user sessions.
    http://weblogicserveradministration.blogspot.com/2010/10/manage-http-session-states-session.html
    http://weblogicserveradministration.blogspot.com/2011/05/oracle-coherence-37-coherenceweb.html
    http://weblogicserveradministration.blogspot.com/2010/11/clustering-part-i.html
    another way is, you can use side by side deployment feature in case you don't want shutdown your application completely, with this, old connections and new requests will goes to old application and once new application activated all new requests will come to new application and once all requests on old application will complete that application will retire automatically.
    Regards
    Mukesh Negi
    http://weblogicserveradministration.blogspot.com

  • 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

  • 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

  • Live migration to HA failed leaving VHD on local storage and VM in cluster = Unsupported Cluster Configuration

    Hi all
    Fun one here, I've been moving non-HA VMs to a HA and everything has been working perfectly until now.  All this is being performed on Hyper-V 2012R2, Windows Server 2012R2 and VMM 2012R2.
    For some reason on the VMs failed the migration with an error 10608 "Cannot create or update a highly available virtual machine because Virtual Machine Manager could not locate or access Drive:\Folder"  The odd thing is the drive\folder is
    a local storage one and I selected a CSV in the migration wizard.
    The net result is that the VM is half configured into the cluster but the VHD is still on local storage.  Hence the "unsupported cluster configuration" error.
    The question is how do I roll back? I either need to get the VM out of the cluster and back into a non-HA state or move the VHD onto the CSV.  Not sure if the latter is really a option.
    I've foolishly clicked "Ignore" on the repair so now I can't use the "undo" option (brain fade moment on my part).
    Any help gratefully received as I'm a bit stuck with this.
    Thanks
    Rob

    Hi Simar
    Thanks for the advice, I've now got the VM back in a stable state and running HA.
    Just to finish off the thread for future I did the following
    - Shutdown the VM
    - Remove the VM from the Failover Cluster Manager (as you say this did leave the VM configuration intact)
    - I was unable to import the VM as per your instructions so I copied the VHD to another folder on the local storage and took a note of the VM configuration.
    - Deleted the VM from VMM so this removed all the configuration details/old VHD.
    - Built a new VM using the details I saved from the point above
    - Copied the VHD into the new VMs folder and attached it to the VM.
    - Started it up and reconfigured networking
    - Use VMM to make the VM HA.
    I believe I have found the reason for the initial error, it appears there was a empty folder in the Snapshot folder, probably from an old Checkpoint that hadn't cleaned up properly when it was deleted.
    The system is up and running now so thanks again for the advice.
    Rob

Maybe you are looking for

  • Flashparer 2 and Windows 7

    I can't run Flashpaper 2 on my new Window 7 machine.        Any ideas?

  • Context Menu: Facebook Home (News Feed) Images Are Not Recognized

    You only see context menu items if they apply to the situation. If you right-click on an image, you will see items such as: View Image, Copy Image, Copy Image Location, Save Image As, etc. There is no exception for images which are a hyper-link. But

  • How to pause, say press enter to continue...

    Hi all, is there any scripts or documents for pause, say press enter to continue...? thanks andrew

  • Adding JUnit Extension to 10.1.3

    I'm looking for a way to add the JUnit extension to JDeveloper 10.1.3 production release (not EA) while I don't have direct internet access from my terminal. I read this forum posting: Re: adding JUnit extension to 10.1.3EA and it seemed to address t

  • Time Machine/Time Capsule with Old Computer

    I have migrated all of the contents of my old, slow MacBookPro to my new MacBook Pro. My time capsule keeps giving me messages that I have exhausted available space and must delete old backups. I would like to delete the thirty backups for my old com