WLS6.0-cluster
hi all,
I happened to see your contributions to the news groups and thought you would
help me understand a particular scenario.
We have 2 solaris boxes..(each one – 2 cpu).
Is it ok if we run the admin server on one box and run 2 server instances on the
other box.
Now we want to create a cluster of the 2 server instances running on box 2.
Through the admin console running on box 1, we created the ‘machine’
entry for the box2 and then created entries for the two server instances.
We then created a new cluster and assigned the 2 server instances to this cluster.
We defined the cluster address, multicast addr and other entries.
In the admin server’s domain we create 2 start scripts to start the servers
as managed servers requesting their config info from the admin server.
Now how do we deploy a .EAR file among this cluster…does selecting the targets
for the .ear as the cluster simply deploy the file?? Do we need to have matching
directory entries on the second box running the 2 server instances??
Since the 2 servers are on the same machine..how do we create separate ‘applications’
directories?? OR do we have just one ‘applications’ directory on that
machine hosting these 2 servers.
Our .EAR file has 1 web archive and 4 jar files.
Does clustering mean deploying this .EAR file among the 2 server instances?? Or
should we consider intelligently placing the .ear contents among different nodes
of the cluster??
Please help me understand this better..
Thanks & regards
jyothi
Hi,
Yes you could set up your hosts file as
myCluster 192.168.1.11
myCluster 192.168.1.12
myCluster 192.168.1.13
and use "t3://myCluster:7001" to lookup your clustered EJB.
Peace,
Lynch
"Lieyong Fu" <[email protected]> ¼¶¼g©ó¶l¥ó news:3b8e7dcf$[email protected]..
>
> I've got only broken pieces of information about setting up a cluster DNS
name
> (so that you can use it as url for JNDI connection) from WLS6.0
documentations.
> One place it says (actually suggested) to use cluster's DNS name, the
other place
> says that the DNS name for the cluster can be defined by the
weblogic.cluster.name
> property (Didn't say how ?) and it is a command-line property which is set
when
> the cluster is started. I'm sure it is not the "Name" of a cluster in the
Admin
> console. May be it is set up in the host file?
> Thanks,
> Lieyong
Similar Messages
-
I've got only broken pieces of information about setting up a cluster DNS name
(so that you can use it as url for JNDI connection) from WLS6.0 documentations.
One place it says (actually suggested) to use cluster's DNS name, the other place
says that the DNS name for the cluster can be defined by the weblogic.cluster.name
property (Didn't say how ?) and it is a command-line property which is set when
the cluster is started. I'm sure it is not the "Name" of a cluster in the Admin
console. May be it is set up in the host file?
Thanks,
Lieyong
Hi,
Yes you could set up your hosts file as
myCluster 192.168.1.11
myCluster 192.168.1.12
myCluster 192.168.1.13
and use "t3://myCluster:7001" to lookup your clustered EJB.
Peace,
Lynch
"Lieyong Fu" <[email protected]> ¼¶¼g©ó¶l¥ó news:3b8e7dcf$[email protected]..
>
> I've got only broken pieces of information about setting up a cluster DNS
name
> (so that you can use it as url for JNDI connection) from WLS6.0
documentations.
> One place it says (actually suggested) to use cluster's DNS name, the
other place
> says that the DNS name for the cluster can be defined by the
weblogic.cluster.name
> property (Didn't say how ?) and it is a command-line property which is set
when
> the cluster is started. I'm sure it is not the "Name" of a cluster in the
Admin
> console. May be it is set up in the host file?
> Thanks,
> Lieyong
-
WLS6.1 Cluster Exception
Hi,
I am using an 8 server Weblogic 6.1 Cluster on AIX. It gives the following exception
when I try to access the application.
<Dec 10, 2001 5:13:43 PM CST> <Error> <HTTP> <[WebAppServletContext(1564960562,wise,/wise)]
Servlet failed with Exception java.lang.ClassCastException: weblogic.servlet.internal.session.MemorySessionContext
Start server side stack trace: java.lang.ClassCastException: weblogic.servlet.internal.session.MemorySessionContext
at weblogic.servlet.internal.session.SessionData.getContext(SessionData.java:270)
at weblogic.servlet.internal.session.ReplicatedSessionData.becomeSecondary(ReplicatedSessionData.java:178)
at weblogic.cluster.replication.WrappedRO.<init>(WrappedRO.java:34) at weblogic.cluster.replication.ReplicationManager$wroManager.create(ReplicationManager.java:352)
at weblogic.cluster.replication.ReplicationManager.create(ReplicationManager.java:1073)
at weblogic.cluster.replication.ReplicationManager_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java(Compiled Code))
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java(Compiled
Code)) at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java(Compiled
Code)) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java(Compiled Code))
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120) End server side stack
trace
at weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:85)
at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java(Compiled Code))
at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java(Compiled Code)) at $Proxy118.create(Unknown
Source) at weblogic.cluster.replication.ReplicationManager.trySecondary(ReplicationManager.java(Compiled
Code)) at weblogic.cluster.replication.ReplicationManager.createSecondary(ReplicationManager.java(Compiled
Code)) at weblogic.cluster.replication.ReplicationManager.register(ReplicationManager.java:393)
at weblogic.servlet.internal.session.ReplicatedSessionData.<init>(ReplicatedSessionData.java:119)
at weblogic.servlet.internal.session.ReplicatedSessionContext.getNewSession(ReplicatedSessionContext.java:193)
at weblogic.servlet.internal.ServletRequestImpl.getNewSession(ServletRequestImpl.java:1948)
at weblogic.servlet.internal.ServletRequestImpl.getSession(ServletRequestImpl.java:1729)
at jsp_servlet.__Login._jspService(__Login.java:86) at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2456)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2039)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java(Compiled Code)) at
weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Any idea what this is related to?
Thanks for any help
Sowjanya
hi,
i am also getting similar error..
any clues, how to resolve this problem ?
cc to Sowjanya:appreciate if u culd let me know, how u hv solved it ?
cheers
jagdip
-
Session Bean Client Hangs when one Server in Cluster Fails
We are testing several failure scenarios and one has come up that concerns us.
Some background: Were running a WLS6.1 cluster on two separate machines. We
start a test client consisting of 50 active threads and let them start calling
into a session bean. After a couple minutes we pull the network plug out of one
of the machines to simulate an uncontrolled crash of the machine. Once the plug
is pulled the clients hang and of more concern any new clients that we startup
also hang. Has anyone successfully solved this problem?When we kill one of Weblogic instances in the cluster none of the clients fail.
All of our clients fail-over to the remaining servers. It's pulling the network
plug to our of the server that causes everything to hang. Not just or test client,
but the other servers in the cluster hang. The control panel doesn't respond
at all either. We currently have a support case open with BEA #348184 about this.
We've gotten a prompt response in which we were asked to modify our configuration
by deploying our beans to each individual server rather than the cluster. We
did this, but the results so far have not changed.
Thanks for the feedback,
Howard.
"Ade Barkah" <[email protected]> wrote:
We haven't encountered something like that, so it could be a setup problem.
Can you verify that the t3 url hostname the client threads use resolves
to the
ip addresses of each machine in the cluster? Are all machines in the
cluster
listening at the same port number? Also, does it matter if you kill one
of the
weblogic processes instead of pulling the plug? (i.e., if you leave the
network
layer up?)
Check also that your threads aren't simply blocking each other when the
server
goes down? E.g. start multiple test client processes with one thread
each just
to test.
What we notice is (with round-robin cluster policy), as we bring down
one of
the servers, the clients will continue to work on the second server,
but will slow
down between method invocations as they still attempt to connect to the
downed
server.
After a short period of time (~30 seconds) the clients will fully switch
to the
second machine and processing continues at full speed again, until the
downed
machine is brought back up, at which point work is distributed evenly
again.
Also, when the first server is brought down, some of the clients may
terminate
with a PeerGoneException (or something similar to that.) So unless your
threads
are catching exceptions, they might terminate as well.
regards,
-Ade
"howard spector" <[email protected]> wrote in message news:[email protected]...
We are testing several failure scenarios and one has come up that concernsus.
Some background: Were running a WLS6.1 cluster on two separate machines.We
start a test client consisting of 50 active threads and let them startcalling
into a session bean. After a couple minutes we pull the network plugout of one
of the machines to simulate an uncontrolled crash of the machine. Once the plug
is pulled the clients hang and of more concern any new clients thatwe startup
also hang. Has anyone successfully solved this problem? -
I am having trouble with a wls6.1 cluster. I am trying write a pdf out
via a servlet. When I run the following code with the cluster turned
off I have no problems. If I turn it on the servlet is returning no
data. I am including the servlet and the stack trace in case someone
can help. GenericFileObject.getTheFile returns a byte array.
Jeff
public void service(HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException {
DataOutputStream activityreportOut = new
DataOutputStream(response.getOutputStream());
try {
HttpSession session=request.getSession(true);
response.setContentType("application/pdf");
String fileid = request.getParameter("fileid");
String type=request.getParameter("type");
byte[] buffer;
ClientFacadeHome cfhome = (ClientFacadeHome)
EJBHomeFactory.getInstance().getBeanHome(Constants.CLASS_CLIENT_FACADE,
Constants.JNDI_CLIENT_FACADE);
ClientFacade cf= cfhome.create();
GenericFileObject file =(GenericFileObject)
cf.getFile(fileid,type);
buffer =(byte[]) file.getThefile();
activityreportOut.write(buffer);
catch (Exception e){
e.printStackTrace();
activityreportOut.flush();
java.io.IOException: Broken pipe
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(Unknown Source)
at weblogic.servlet.internal.ChunkUtils.writeChunkTransfer(ChunkUtils.java:189)
at weblogic.servlet.internal.ChunkUtils.writeChunks(ChunkUtils.java:165)
at weblogic.servlet.internal.ChunkOutput.flush(ChunkOutput.java:248)
at weblogic.servlet.internal.ChunkOutput.checkForFlush(ChunkOutput.java:306)
at weblogic.servlet.internal.ChunkOutput.write(ChunkOutput.java:197)
at weblogic.servlet.internal.ChunkOutputWrapper.write(ChunkOutputWrapper.java:121)
at weblogic.servlet.internal.ServletOutputStreamImpl.write(ServletOutputStreamImpl.java:155)
at java.io.DataOutputStream.write(Unknown Source)
at java.io.FilterOutputStream.write(Unknown Source)
at com.bi.micardis.security.clientaction.ActivityAndScriptServlet.service(ActivityAndScriptServlet.java:41)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2456)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2039)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
"Subir Das" <[email protected]> wrote:
>So, Applet#1 will always talk to the servlet hosted by WLInstance#1 and
>Applet#2
>will always talk to the servlet hosted by WLInstance#2.
This statement is not entirely true.
Suppose WLInstance#1 were to be brought down (for whatever reason), Applet#1 will
then talk to servlet hosted by WLInstance#2.
Server pinning could be modified by different load balancing algorithms, configurable
via containers (or hardware).
So don't count on which servlet instance your applet is going to be served by.
Instead consider to give a second look into the design of the servlet data structure
(object):
1.Read from data store, if it has been persisted.
2.If the data is client related then consider sticking the data into session, which
would then replicate to other WL instances.
3.Stateless EJB in a cluster ? Don' know much about this(yet).
My 2 cents..Good luck.
Rama
-
Hi.
I have a web app in a .war format running on two nodes in a WLS6.0sp2 cluster
(round-robin). When I try to access the JSP's that access session data, I get
the following error.
Can somebody tell me what the stack trace I have posted below means? (This is
from one of the nodes, altough I see the same thing on the other node). The symptom
of the exception seems to be that some of the data seems to be replicated while
some is not.
Thanks in advance,
Saman
<Mar 18, 2002 1:16:12 PM EST> <Error> <Kernel> <ExecuteRequest failed
weblogic.cluster.replication.NotFoundException: Lost 2 updates of 5509919717493478763
at weblogic.rmi.internal.AbstractOutboundRequest.sendReceive(AbstractOutboundRequest.java:90)
at weblogic.cluster.replication.ReplicationManager_WLStub.update(ReplicationManager_WLStub.java:316)
at weblogic.cluster.replication.ReplicationManager.updateSecondary(ReplicationManager.java:426)
at weblogic.servlet.internal.session.ReplicatedSessionData.sync(ReplicatedSessionData.java:398)
at weblogic.servlet.internal.session.ReplicatedSessionContext.sync(ReplicatedSessionContext.java:147)
at weblogic.servlet.internal.ServletRequestImpl.syncSession(ServletRequestImpl.java:1535)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:1310)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1631)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
--------------- nested within: ------------------
weblogic.utils.NestedError: Could not find secondary on remote server - with nested
exception:
[weblogic.cluster.replication.NotFoundException: Lost 2 updates of 5509919717493478763]
at weblogic.servlet.internal.session.ReplicatedSessionData.sync(ReplicatedSessionData.java:405)
at weblogic.servlet.internal.session.ReplicatedSessionContext.sync(ReplicatedSessionContext.java:147)
at weblogic.servlet.internal.ServletRequestImpl.syncSession(ServletRequestImpl.java:1535)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:1310)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1631)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>
<Mar 18, 2002 1:16:12 PM EST> <Info> <Cluster> <Got stale replication request
for object 5509919717493478763>
<Mar 18, 2002 1:16:12 PM EST> <Info> <Cluster> <Got stale replication request
for object 5509919717493478763>
You didn't tell if you were using a proxy in front of the cluster. If you are not,
that's a problem. Make sure that there are no problems with multicast.
Cheers,
-- Prasad
"Kumar Allamraju" <[email protected]> wrote:
>Have you applied any rolling patches?
>if not, can you upgrade to the latest SP and see if that solves the problem.
>
>If you still see the problem, contact support and reference CR045425
>
>--
>Kumar
>
>"Saman Aria" <[email protected]> wrote in message
>news:[email protected]...
>>
>> Hi.
>>
>> I have a web app in a .war format running on two nodes in a WLS6.0sp2
>cluster
>> (round-robin). When I try to access the JSP's that access session data,
>I
>get
>> the following error.
>> Can somebody tell me what the stack trace I have posted below means? (This
>is
>> from one of the nodes, altough I see the same thing on the other node).
>The symptom
>> of the exception seems to be that some of the data seems to be replicated
>while
>> some is not.
>>
>> Thanks in advance,
>>
>> Saman
>>
>> <Mar 18, 2002 1:16:12 PM EST> <Error> <Kernel> <ExecuteRequest failed
>> weblogic.cluster.replication.NotFoundException: Lost 2 updates of
>5509919717493478763
>> at
>weblogic.rmi.internal.AbstractOutboundRequest.sendReceive(AbstractOutboundRe
>quest.java:90)
>> at
>weblogic.cluster.replication.ReplicationManager_WLStub.update(ReplicationMan
>ager_WLStub.java:316)
>> at
>weblogic.cluster.replication.ReplicationManager.updateSecondary(ReplicationM
>anager.java:426)
>> at
>weblogic.servlet.internal.session.ReplicatedSessionData.sync(ReplicatedSessi
>onData.java:398)
>> at
>weblogic.servlet.internal.session.ReplicatedSessionContext.sync(ReplicatedSe
>ssionContext.java:147)
>> at
>weblogic.servlet.internal.ServletRequestImpl.syncSession(ServletRequestImpl.
>java:1535)
>> at
>weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
>ntext.java:1310)
>> at
>weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
>:1631)
>> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
>> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>> --------------- nested within: ------------------
>> weblogic.utils.NestedError: Could not find secondary on remote server
>-
>with nested
>> exception:
>> [weblogic.cluster.replication.NotFoundException: Lost 2 updates of
>5509919717493478763]
>> at
>weblogic.servlet.internal.session.ReplicatedSessionData.sync(ReplicatedSessi
>onData.java:405)
>> at
>weblogic.servlet.internal.session.ReplicatedSessionContext.sync(ReplicatedSe
>ssionContext.java:147)
>> at
>weblogic.servlet.internal.ServletRequestImpl.syncSession(ServletRequestImpl.
>java:1535)
>> at
>weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
>ntext.java:1310)
>> at
>weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
>:1631)
>> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
>> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>> >
>> <Mar 18, 2002 1:16:12 PM EST> <Info> <Cluster> <Got stale replication
>request
>> for object 5509919717493478763>
>> <Mar 18, 2002 1:16:12 PM EST> <Info> <Cluster> <Got stale replication
>request
>> for object 5509919717493478763>
>
>
-
I am trying to build a IIOP client using C++ via Tuxedo 8.0 with RP0056 connecting
to wls6.1 cluster(two servers)
I am trying to do the failover in the client like the following:
int argc1 = 5;
bool orbInit = false;
try
if(!orbInit) {
char *options[] = {"Client", "-ORBid", "BEA_IIOP", "-ORBInitRef", "NameService=corbaloc:iiop:host1:7001/NameService"};
cout << "init 1" << endl;
char **p = options;
orb = CORBA::ORB_init(argc1, p);
orbInit = true;
catch(...)
cout << "ORB_init failed" << endl;
orbInit = false;
CORBA::release( orb );
try{
cout << "init 2" << endl;
char *options[] = {"Client", "-ORBid", "BEA_IIOP", "-ORBInitRef", "NameService=corbaloc:iiop:host2:7001/NameService"};
char **p = options;
orb1 = CORBA::ORB_init(argc1, p);
cout << "done" << endl;
catch(...)
cout << "ORB_init failed again" << endl;
orbInit = false;
If the host1 is up the above code works.
If the host1 is down and host2 is up, I got error. It seems the second ORB_init which
is trying to init with the host2 info would fail even if I did the cleanup work for
the first ORB.
Any help is appreciated very much.
Steve"steven " <[email protected]> writes:
Hi Steve,
This looks like the same question I got asked internally
recently,didn't you receive an answer? You should have? More below.
I am trying to build a IIOP client using C++ via Tuxedo 8.0 with RP0056 connecting
to wls6.1 cluster(two servers)
I am trying to do the failover in the client like the following:
int argc1 = 5;
bool orbInit = false;
try
if(!orbInit) {
char *options[] = {"Client", "-ORBid", "BEA_IIOP", "-ORBInitRef", "NameService=corbaloc:iiop:host1:7001/NameService"};
cout << "init 1" << endl;
char **p = options;
orb = CORBA::ORB_init(argc1, p);
orbInit = true;
catch(...)
cout << "ORB_init failed" << endl;
orbInit = false;
CORBA::release( orb );
try{
cout << "init 2" << endl;
char *options[] = {"Client", "-ORBid", "BEA_IIOP", "-ORBInitRef", "NameService=corbaloc:iiop:host2:7001/NameService"};
char **p = options;
orb1 = CORBA::ORB_init(argc1, p);
cout << "done" << endl;
catch(...)
cout << "ORB_init failed again" << endl;
orbInit = false;
If the host1 is up the above code works.
If the host1 is down and host2 is up, I got error. It seems the second ORB_init which
is trying to init with the host2 info would fail even if I did the cleanup work for
the first ORB.Apparently the Tux ORB caches a bunch of references, you have to be
really careful to remove all object references and shutdown the orb
properly before starting a new one - otherwise you will just get back
the original again.
Its also conceivable that having done all this there is a latent
bug. If this is the case you should go through support to get it
fixed.
andy -
IIS WLS6.1 SP3 and cluster load balancing
I am setting up an installation with IIS, WLS6.1 SP3 using a cluster. Monitoring
the instances in the cluster the entire load is going to one instance. If that
instance is stopped the other takes over, no problem. If I set DynamicServerList
to off in the iisproxy.ini file the load balances correctly.
Is there a way to ensure WLS sends the dynamic server list as advertised? Failing
that what are the problems that may arrise from not using the Dynamic Server List?I would like to see the entries in your iisproxy.ini file?
Can you post 'em?
Kumar
Danny Newman wrote:
I am setting up an installation with IIS, WLS6.1 SP3 using a cluster. Monitoring
the instances in the cluster the entire load is going to one instance. If that
instance is stopped the other takes over, no problem. If I set DynamicServerList
to off in the iisproxy.ini file the load balances correctly.
Is there a way to ensure WLS sends the dynamic server list as advertised? Failing
that what are the problems that may arrise from not using the Dynamic Server List? -
How do i setup WTC in cluster environment using WLS6.1 sp3?
Hello:
the situation is:
(1)Two solaris machines.
(2)one WLS domain.
(3)one admin server and four managed servers in this domain.
(4)we cluster these 4 managed servers.
(5)each machine contains 2 managed server.
Here is the problem,
when we start managed servers in the same machine, the wtc is ok, but when we start managed servers in diffent machine, the wtc fail.
here is the error message:
[Error][Cluster][Conflict start: You tried to bind an object under the name tuxedo.services.TuxedoConnection in the JNDI tree. The object you have bound from 10.64.32.188 is non clusterable and you have tried to bind more than once from two or more servers. Such objects can only deployed from one server.]
[Error][Cluster][Conflict start: You tried to bind an object under the name tuxedo.services.TuxedoConnection in the JNDI tree. The object you have bound from 10.64.32.187 is non clusterable and you have tried to bind more than once from two or more servers. Such objects can only deployed from one server.]
So, how can i setup wtc in cluster environment using WLS 61. sp3?
Regards,
cjyangcjyang <[email protected]> writes:
[Error][Cluster][Conflict start: You tried to bind an object under the name tuxedo.services.TuxedoConnection in the JNDI tree. The object you have bound from 10.64.32.188 is non clusterable and you have tried to bind more than once from two or more servers. Such objects can only deployed from one server.] I believe that this is a known problem and that WTC clustering is not
supported in WLS 6.1.
andy -
Data Caching in a WLS6 Cluster - Storage Location
I want to cache read-only reference/code table data that will run in a clustered
WLS6 environment. It's a JSP application and I am storing a complete HTML Select
Control per reference/code table data in the cache. The question is where to cache
it? I was going to put it in the ServletContext (JSP "application" implicit object),
but the ServletContext is not replicated. I considered using JNDI, but there are
problems with duplicate name errors when another server who doesn't originally
bind the object tries to lookup, change and rebind the object. I guess JMS Multicasting
is an option, but I don't want to implement JMS just for an application data cache.
Any suggestions for a simple reference/code table read-only caching strategy that
will work in a clustered WLS6 environment? I know how to do everything except
how to have it available and in sync on all servers in a clustered environment?
Any suggestions?Read-Only entity ejb?
.raja
P.S. Also read Rob Wollen's post in the JDBC news group where he explains
the new features with example.
<Chris Olsen chris.olsen> wrote in message
news:3b09493f$[email protected]..
>
I want to cache read-only reference/code table data that will run in aclustered
WLS6 environment. It's a JSP application and I am storing a complete HTMLSelect
Control per reference/code table data in the cache. The question is whereto cache
it? I was going to put it in the ServletContext (JSP "application"implicit object),
but the ServletContext is not replicated. I considered using JNDI, butthere are
problems with duplicate name errors when another server who doesn'toriginally
bind the object tries to lookup, change and rebind the object. I guess JMSMulticasting
is an option, but I don't want to implement JMS just for an applicationdata cache.
Any suggestions for a simple reference/code table read-only cachingstrategy that
will work in a clustered WLS6 environment? I know how to do everythingexcept
how to have it available and in sync on all servers in a clusteredenvironment?
>
>
Any suggestions? -
Strange WLS6.sp2 Oracle DB Reconnect issue in a Cluster but ONLY on the Admin server
Any Ideas? ->
I am having a issue when our oracle db server goes down and when we try
to reconnect the Pool via weblogic I am getting this error. This only
happens on the Admin server for the cluster, none of the managed servers get
this and they all seem to be ok. Any ideas?
-Pete
**** Below is the stack trace:
java.sql.SQLException: Io exception: Broken pipe
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:156)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
at
oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:1329
at
oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:1232)
at
oracle.jdbc.driver.OracleStatement.doExecuteWithBatch(OracleStatement.java:1
353)
at
oracle.jdbc.driver.OracleStatement.doExecute(OracleStatement.java:1760)
at
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java
:1805)
at
oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedState
ment.java:322)
at
oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.j
ava:366)
at
weblogic.jdbc.pool.PreparedStatement.execute(PreparedStatement.java:45)
at
weblogic.jdbc.rmi.internal.PreparedStatementImpl.execute(PreparedStatementIm
pl.java:289)
at
weblogic.jdbc.rmi.SerialPreparedStatement.execute(SerialPreparedStatement.ja
va:398)Hi,
As i understand is OS is clustered not the db. Better is to manually shutdown the db clean and then start it.
TO start login through sqlplus sys as sysdba
1. startup
2. Once its done, start the listener
3. Start the application
Anand -
Connecting managed server to cluster's administration server
Hello,
I have a problem when trying to connect managed server to cluster's
administration server.
When starting the managed server I get a security exception:
[javax.naming.AuthenticationException [Root exception is
java.lang.SecurityException: Administrators must log in over admin port with
admin protocol.]]
weblogic.management.configuration.ConfigurationException: admin URL:
t3://192.168.14.15:7001 - with nested exception:
[javax.naming.AuthenticationException [Root exception is
java.lang.SecurityException: Administrators must log in over admin port with
admin protocol.]]
at
weblogic.management.Admin.initializeRemoteAdminHome(Admin.java:893)
at weblogic.management.Admin.start(Admin.java:303)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:331)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:169)
at weblogic.Server.main(Server.java:35)
I get the same result when testing the connection setup with
java weblogic.Admin -url 192.168.14.15:7001 -username system -password xyz
CONNECT 1
Background for this problem:
I'm trying to evaluate WLS6.0 clustering for my RMI services. I have two
machines setup with my test domain (DEdomain) and one cluster (DECluster)
within it.
In administration server (machine A) I defined two servers to be run in
machine A and machine B:
DEserver2 in machine B (to be started as managed server) and DEserver3
in machine A
I'm going to bind a same service into these above servers of my DECluster.
In machine B's startManagedWeblogic.sh I have:
java -ms64m -mx64m -classpath
$CLASSPATH -Dweblogic.Domain=DEdomain -Dweblogic.Name=$SERVER_NAME -Dweblogi
c.management.server=$ADMIN_URL -Djava.security.policy==$WL_HOME/lib/weblogic
.policy -Dweblogic.management.username=system -Dweblogic.management.password
=$WLS_PW weblogic.Server
In machine A I have administration server DEserver1 listening port 7001.
And for the domain and cluster building I followed all relevant e-docs
manual pages. It's still somewhat blurry what kind of preparations I have to
make in managed server side to join the domain; for example do I have to
have identical domain directory structure within machine B and do I have to
configure something with admin console or is everything handled by
connecting to the administation server and reading the domain's config.xml
from machine A.
I'm sure I have missed some fundamental idea for building clustered services
and would greatly appreciate if someone had any good tips or ideas.
Best regards,
HarriHi Kumar,
and thank you. That fixed my problem
Best regards,
Harri
"Kumar Allamraju" <[email protected]> wrote in message
news:[email protected]...
It appears you had set the administration port & listen port on the admin
server.
Logging onto admin server via admin port is broken currently. I wouldsuggest
you to set only listen port
and see how that goes.
Kumar
"Harri Töhönen" wrote:
Hello,
I have a problem when trying to connect managed server to cluster's
administration server.
When starting the managed server I get a security exception:
[javax.naming.AuthenticationException [Root exception is
java.lang.SecurityException: Administrators must log in over admin portwith> > admin protocol.]
weblogic.management.configuration.ConfigurationException: admin URL:
t3://192.168.14.15:7001 - with nested exception:
[javax.naming.AuthenticationException [Root exception is
java.lang.SecurityException: Administrators must log in over admin portwith> > admin protocol.]
at
weblogic.management.Admin.initializeRemoteAdminHome(Admin.java:893)
at weblogic.management.Admin.start(Admin.java:303)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:331)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:169)
at weblogic.Server.main(Server.java:35)
I get the same result when testing the connection setup with
java weblogic.Admin -url 192.168.14.15:7001 -username system -password
xyz
CONNECT 1
Background for this problem:
I'm trying to evaluate WLS6.0 clustering for my RMI services. I have two
machines setup with my test domain (DEdomain) and one cluster(DECluster)
within it.
In administration server (machine A) I defined two servers to be run in
machine A and machine B:
DEserver2 in machine B (to be started as managed server) andDEserver3
in machine A
I'm going to bind a same service into these above servers of myDECluster.
>>
In machine B's startManagedWeblogic.sh I have:
java -ms64m -mx64m -classpath
$CLASSPATH -Dweblogic.Domain=DEdomain -Dweblogic.Name=$SERVER_NAME -Dweblogi
>>
c.management.server=$ADMIN_URL -Djava.security.policy==$WL_HOME/lib/weblogic
>>
.policy -Dweblogic.management.username=system -Dweblogic.management.password
=$WLS_PW weblogic.Server
In machine A I have administration server DEserver1 listening port 7001.
And for the domain and cluster building I followed all relevant e-docs
manual pages. It's still somewhat blurry what kind of preparations Ihave to
make in managed server side to join the domain; for example do I have to
have identical domain directory structure within machine B and do I haveto
configure something with admin console or is everything handled by
connecting to the administation server and reading the domain'sconfig.xml
from machine A.
I'm sure I have missed some fundamental idea for building clusteredservices
and would greatly appreciate if someone had any good tips or ideas.
Best regards,
Harri -
Problems with firing a cluster 2nd time
hi all,
we have 4 instances of wls6.0 running on 2 solaris boxes.
one instance is the admin and the rest are in a cluster..
after deploying the app homogeneously among the cluster..
i started the node1 of the cluster(after i started the admin..)
the app came up and was running well..then i shutdown the admin..still the app
is running fine on the 1st node of the cluster..but after testing it for a while
i brought down this node..then i restarted the admin and then the node 1..and
this time the app is not coming up and the server complains of deployment errors!!
we configured a dns-host name for the cluster..
could someone help me gain an insight into this??
thanks,
sai
hi all,
we have 4 instances of wls6.0 running on 2 solaris boxes.
one instance is the admin and the rest are in a cluster..
after deploying the app homogeneously among the cluster..
i started the node1 of the cluster(after i started the admin..)
the app came up and was running well..then i shutdown the admin..still the app
is running fine on the 1st node of the cluster..but after testing it for a while
i brought down this node..then i restarted the admin and then the node 1..and
this time the app is not coming up and the server complains of deployment errors!!
we configured a dns-host name for the cluster..
could someone help me gain an insight into this??
thanks,
sai
-
Starting weblogic cluster and admin server on Win 2000 platform
Hi! Here's my problem scenario:
I'm running my WLS 8.1 application as WLS cluster on Win 2000 platform. I have
3 replicated WLS servers in my cluster and of course one WLS server as admin server
(4 WLS servers all together). I'm starting my WLS application using Win services
which behind a scene call win 2000 comand interpreter batch-file to start the
servers. Currently I have 4 different win 2000 services each calling different
batch-files to start a WLS server (4 all together). Here's my question:
Is there any way to start my cluster (3 managed WLS servers) and WLS admin server
from single win 2000 command file (using single win 2000 service). Using win 2000
AT-command interpreter command I can start executables and command(s) and command-files
at background at specific date and time, but I want to start my WLS application
on every win 2000 platform boot, is there any way to achieve this ???
Best Regards!
Jamihi,
Thanks for stepping up!
But I wasn't using any clustering or loadbalancing.
Just a simple Admin server, Managed server set up.
256 Meg, Pentium box running Win 2000 premium edition.
I tried tweeking around the heap size too.... coz' the operations were slogging
like anything...
Bal
"Raja Mukherjee" <[email protected]> wrote:
It seems like network issue....do you have Windows Clustering/Load Balancing
service turned on by any chance? I would also use netmon to see the traffic
between the ips....
..raja
"Bala" <[email protected]> wrote in message
news:3b3a6c00$[email protected]..
hi,
I am looking at a strange behaviour with WLS6.0SP1 installed on WINDOWS2000 Premium.
I brought up the Admin server and a Managed server. After a while theAdmin Server
is compeletely
losing the control of the managed server (for no reason).
when I tried monitoring the managed server from the console, I couldnot
access
the manager server
and the status down (red ball). I tried restarting the Admin Server
in the discover mode - NO LUCK.
But when I restart the Managed server and go to the Web Based Admin
Console and refresh, it worked. But I dont think we should be doingthat
in a
production environment.
Did anybody come across such a problem before ???
Is this a problem with Win 2000 ???
coz' it never happened with NT workstation
thanks in advance -
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
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
Maybe you are looking for
-
Hello All, Does anyone know how to restrict your children's Itunes purchases to gift cards only and remove my credit card information from their Apple ID's and devices? Appreciate your thoughts, Brian
-
I would like to upload a excel file using jsp
Hi, I would like to upload the excel file using jsp in my netbeans ide. Please help. I don Know what is the error in this jsp file. It is not showing any thing and the file is also not getting uploaded. Please gothru the code below. <%@ taglib uri="/
-
Im getting the following error when sync. ???? Cant trace it please help Sync session exception stack trace: java.sql.SQLException: ORA-00932: inconsistent datatypes: expected DATE got NUMBER at oracle.jdbc.dbaccess.DBError.throwSqlException(DBE
-
Dear All, I have a standard object 0CPR_GUID. we have loaded the attribute and hierarchy for the same. But i am not able to see the corresponding text for any of the hierarchy node. Text table for the 0CPR_GUID is only having 4 records. Problem here
-
Getting campaign data from external system to display campaigns/offers
Hi, I have to find a solution for a campaign requirement for my company. The user centric campaigns are managed by a external system provider who process billing statements (eg if you see your paper credit card statement, you see special offers, camp