• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 726
  • Last Modified:

Weblogic Cluster

Hi,
I have a Administration server and 2 managed servers which forms a cluster ,all these on a single machine.

I deployed my application in the cluster and it was successful.
When i tried to access the application using the url of one of the managed servers in cluster,it displays the index page.When i navigate to the next page it throws me the following error,

"javax.naming.NameNotFoundException: Unable to resolve 'AdminSessionFacade' Resol
ved  [Root exception is javax.naming.NameNotFoundException: Unable to resolve 'A
dminSessionFacade' Resolved ]; remaining name 'AdminSessionFacade'"

Can any one help out in this.
-Murali*
0
Murali Murugesan
Asked:
Murali Murugesan
1 Solution
 
illusionz70Commented:
hi ,
if you are clearly hitting the url through a managed server address ,  then it must not be a cluster issue .
what is adminsessionfacade ? is it smthn in ur web application?
0
 
Murali MurugesanFull stack Java developerAuthor Commented:

Adminsessionfacade is the session EJB for which i am doing an lookup.During which it gives the above error.

-Murali*




0
 
illusionz70Commented:
has the ejb been deployed in the cluster as well ..
the exception you have got means that the ejb was not found in the JNDI tree for the cluster .
For the weblogic admin server's config.xml see if the above ejb has been deployed . (attribute deployed=true)
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
Murali MurugesanFull stack Java developerAuthor Commented:
Yes the ejb deployed well.And also it gets displayed in the JNDI tree of both the managed  servers.
This is the entry in config.xml

<EJBComponent Name="AdminSessionFacade.jar" Targets="MyCluster" URI="AdminSessionFacade.jar"/>
0
 
illusionz70Commented:
you imported the ejb classes in your calling jsp?
0
 
Murali MurugesanFull stack Java developerAuthor Commented:
No its called thro the action class.Actually i am using struts framework.
The thing is i have deployed the same application in the administration server and it worked properly without any problem.

Now i am trying to do the same using clusters.
0
 
hamoodCommented:
You can access any managed server through your admin server. Admin server is responsible for forwarding the request to manged server. So access it through admin server. In your case you have deployed the application on the one machine. Have your application properly deployed on the cluster. Check it from Weblogic console.

Hamood
0
 
kiranhkCommented:
what is the value u  r using for provider URL while creating the Initial Context. Give the URL and port number of your managed server and then try....
0
 
Murali MurugesanFull stack Java developerAuthor Commented:
Hamood,
I have checked from the admin console and the application got deployed successfully without any problems.

Kiran:
Can u just brief me wht is this initial Context, u mean to say the Cluster Address URL?.
0
 
illusionz70Commented:
i dont think you access managed servers thru admin server . you need the admin server only to bring up the managed servers since admin server has the config file.i still feel the problem is that the ejb is unavailable for the managed server.you may have done the following but i still repeat .... set the targets for ejb for the appropriate cluster . also try deploying the ejb for the managed server(individually setting the target server).
0
 
Murali MurugesanFull stack Java developerAuthor Commented:
Now i am able to lookup the ejb's.
The problem is jndi.properties file was pointing to the administration server alone.
So i changed those to use the managed server URL too.

Still i have some doubts like,
What should be the URL used to access a cluster.

Managed server               URL
------------------------------------------------
server1                            localhost:5001
server2                            localhost:6001

whether i need to use any one of these urls to access my application? If so,
Shutting down the single managed server (say server1) makes me unable to access the application.

The thing is i need to access the application deployed in cluster , on shutting down one of the managed server must still able to continue with accessing the application using the other managed server.

Can some one help out for this?.

0
 
illusionz70Commented:
you will have to use a proxy for that.....

you can set up another instance of weblogic server ( managed server) as a proxy server . look into weblogic docs for more info. this proxy server will then automatically load balance between both your managed servers.
0
 
Murali MurugesanFull stack Java developerAuthor Commented:
Thanx for all the Help.
I have successfully configured the cluster.The problem was the folder hierarchy.Missed out an intermediate folder and the path became invalid.

Found & resolved it myself..Thanx Once again to all.

Thanx
-Murali*
0
 
moduloCommented:
PAQed with points refunded (125)

modulo
Community Support Moderator
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now