We are starting this new series for every one who want to share their experiences / knowledge / queries / solutions with us. This Series can be used to post your comments/issues and let us/others reply on those issues. You can also share your experiences using comments.
After a huge success of the Forums concept, we got lot of replies/comments from you guys and the result can been seen that most of all the forum pages are full for which we would like to thank you.
Hence now we would like to encourage you all to come and reply the comments which you feel you can answer, which will give you a change to gain the Magic Points.
[TABLE=3]
[TABLE=5]
As you see that we have five categories which are self explanatory and below are some other ways by which you can gain points and be the top user on Middleware Magic.
- For each post= 30 magic points
- For each comment = 5 magic points
- For Daily login= 5 magic points
Note: Additional bonus points can be given to comments/replies which the administrator thinks is good and can help more people.
You can even check out who is on the Top 10 Magic Users on the right hand side widget.
So what are you waiting for, this is your chance to let the middleware worldΒ know where you do stand by sharing your skills and knowledge.
Few points which may help to resolve your issue quickly
- It is recommended that you provide some basic details about the issue like Operating System/ WebLogic Version/JVM vendor…etc.
- Always try to post the Server Logs/Out file which contains the complete StackTrace.
- If you are referring to any links which you are following, then please paste that link as well in your comment.
- Make sure you put your code snippet in between the sourcecode tag (see example below).
February 22nd, 2010 on 6:18 pm
Hi Joysen,
Please help here. we are constaly getting this eceptionm in weblogic for connection pool.
Error in get connection weblogic.jdbc.extensions.PoolLimitSQLException: weblogic.common.resourcepool.ResourceLimitException: No resources currently available in pool ApplDataSource to allocate to applications, please increase the size of the pool and retry..
We have double check the connection pool clousre in the application but still we are facing this issue, our appl is of async type, and we have around 100 user working, our total connection pool size is 90*3(managed servers)=270 in cluster environment, please help us, how we can efficienlty manage our connection pool. this issue is coming every 3rd day, and we have to bounce the data source.
please sugest
February 23rd, 2010 on 10:28 am
Hi Rocks,
As you have mentioned that u need to bounce the DataSource around 3rd day… apart from theis the Exception: weblogic.common.resourcepool.ResourceLimitException:
Both Points clearly indicates that there is a Leak in Connection Pool…Usually i have seen this kind of issue because of Application leavs opened references of Connection objects… Application calls “connection.close()” but not at the right place which leaves the Connection objects to survive for a long time …
Can you please confirm that all the Connection Objects are being closed inside “finally” block like:
Example:
java.sql.Connection con=null;
try{
con=dataSource.getConnection();
//Some Code
}
catch(Exception e)
{
//for something abnormal..
}
finally
{
if(con!=null)
{
try{ con.close(); }
catch(Exception ee){}
}
}
————————
http://forums.oracle.com/forums/thread.jspa?messageID=3980066�
Keep Posting π
Thanks
Jay SenSharma
February 28th, 2010 on 3:40 pm
Hi Joy,
Thanks for the reply.
I have one concern after reviewing your suggestions.
Actually what happened we pass a connection ref from our first layer to the DAL layer, and then we are creating a new connection object and assign the reference to that. after we are done with transactions we simple close the connection on the first layer itself. not on the DAL layer, as in Java all object pass by ref, do you think this can cause this connection leak issue.
also is it recommended if i put the same value in max, and init connection size parameters. what if i lost the connectivity with Database for lest say 5 minutes, does it will make all the connection closed for that moment. Could you please help me understanding how Weblogic Connection pool works. Why I am asking this question is because i am logging the connection pool hash code value, and I have never seen the same hashcode being used twice in application. every time new hashcode gets generated, otherwise as if i compare with prev experience with DBCP, We hve seen the same hash code being utilized by pool, and it gives us some guarantee that connections pool is woring fine.
Please help me clearing my doubts here. As our aplication is of credit automation nature so we are facing huge issues with Connection pool on webloigc.
February 28th, 2010 on 5:26 pm
Hi Rocks,
I think that the problem is at the DAL layer… The JDBC Connection instances are not getting freed up…That is the reason after 2 days you are getting connection leak impact on your DataSource. Whenever we get a Connection object from DataSource then WLS just picks up a Connection Object from the Pool and assign it to the application…and when we close it inside our application it means the connection object is simply returned to the pool …it is not physically destroyed. This improves the performance of the Server because Server need not to create and destroy the JDBC Connection objects again and again…. As you have mentioned that at your DAL layer you are getting the Connection object and assigning it to the application, which may be a reason of connection leak….So i think you can directly get the Connection object without using the DAL layer…Better from the DAL layer return the DataSource …but ds.getConnection() you should do inside the business methods…this way we can make sure that …once the control reaches the method…connection gets created and before leaving the method body…connection gets destroyed in the finally block.
Second thing it is always recommended that we should keep Initial Capacity and Max Capacity of the connection pool for better performance. Please refer to
http://middlewaremagic.com/weblogic/?p=586
In Connection Pool we have a property available …”Connection Creation retry Frequency” in datasource configuration page you will find this property in “advanced option”… By Chance if the Database goes down then the Connection Pool immediately gets destroyed…
We can define “Connection Creation retry Frequency” ..Now once the Database goes down according to the frequency value which we have set…WLS server will keep on trying to connect to the Database and as soon as the Database comes up…it Recreates the Connection object and places them into the pool.
In WLS There is no gurantee that the connection object which we get from the Connection pool will be always same …thats why you will always see different different HashCode values…of the connection objects.
Keep Posting π
Thanks
Jay SenSharma
March 4th, 2010 on 12:07 pm
Thanks a lot Joy for the suggestions,
One more query, i have tried configuring the test connection on reserve in my weblogic, after that i have started getting one exception after every 2 minutes
java.sql.SQLException: Closed statement.
please advise here. Also statement cache size is set to 0.
March 4th, 2010 on 12:24 pm
Hi Rocks,
We get java.sql.SQLException: Closed statement. When we close the Connection object (means return the Connection Object to the Pool but the same reference of statement object we use in another method…or in another Transcation…
Example:
class Test
{
Statement stmt;
Connection con;
public void firstMethod()
{
try{
con=dataSource.getConnection();
stmt=con.createStatement();
//…..some query execution
}
finally{
if (con!=null)
{
try { con.close(); }
catch(Exception e){}
}
}
}
public void secondMethod()
{
stmt.execute(…); //Here stmt might be already closed….because we closed the connection in firstMethod()…
}
}
————–
So make Sure that we declare the Statement object reference inside the method and not at the Class Level….
AND
the closing sequence inside the finally block should be
try{
—
—
}
finally
{
resultSet.close();
stmt.close();
con.close();
}
Thanks
Jay SenSharma
March 4th, 2010 on 1:20 pm
Hi Joy,
Thanks for the quick reply.
Actully what happens we are using orcale proxy connection. and also we are exceuting stored proc, not inline queries. is that can cuase this issue.
and the suggestion whihc you have suggested we are doing that all the jdbc resources are method level and also propr care has been taken of while passing ref to the other methods. but this is happing when we authneticate the user and opened a procy connection and then if try to execute a stored proc, in that method statement object is defined method level. no passing of ref is happening but still we are facing this issue.
Please advise.
—
thanks
Rocky Singh
March 4th, 2010 on 1:42 pm
Hi Rocky,
I am researching on it…butin the mean time can u please post your querry in
http://forums.oracle.com/forums/forum.jspa?forumID=579
as well because…I know you will get a reply immediately from “Joe Weistine” He is the Author of JDBC component for WebLogic. And He will definately reply within 1-hour.
He provides really best pointer in case of JDBC querries. After all he Author of Jdbc Components for Oracle WebLogic.
I am parallelly researching on it. Will update u soon.
Keep Posting π
Thanks
Jay SenSharma
March 5th, 2010 on 12:57 pm
Hi Joy,
Just a very small question, making connection=null after connection close, cuase any issues in weblogic connection pool, i mean does it destroy that particular connection ref.
is there any way we can check the connection status(dead/active) using JMX.
March 5th, 2010 on 1:08 pm
Hi Rocks,
No …there is no use actually to set connection=null, once the connection.close() executed sucessfully.
Because as soon as we execute connection.close() the connection object is sent back to the Pool and the connection object becomes reference less means NULL itself.
I saw your post in http://forums.oracle.com/forums/thread.jspa?threadID=1039104&tstart=0 hope soon Joe Weistiene will reply for that JDBC query.
Keep Posting π
Thanks
Jay SenSharma
March 5th, 2010 on 1:13 pm
Hi Rocks,
It is not possible to monitor the Connection object is NULL or not using JMX …because JMX cannot intercept the Connection Object once it is assigned to the Client Application.
But Yes we can monitor the Server Resources like the ConnectionPool, EJB Pool…etc which is present on the Server it self…
Keep Posting π
Thanks
Jay SenSharma
March 5th, 2010 on 1:26 pm
Thanks Joy,
Please keep me updated if you find any solution.
March 5th, 2010 on 4:16 pm
Hi Rocks,
Please update the Forum…some informations are required to Joe …http://forums.oracle.com/forums/thread.jspa?threadID=1039104&tstart=0
Thanks
March 5th, 2010 on 4:44 pm
Thansk Joy,
I have did that. Thanks for reminding.
March 8th, 2010 on 3:58 pm
Hi Joy,
Need your advise on my queries raised to Joe.
http://forums.oracle.com/forums/thread.jspa?messageID=4148896#4148896
Thanks
Rocky
March 8th, 2010 on 4:29 pm
Hi Rocks,
Solution provided by Joe Weistiene:
Whenever you are about to close a proxy connection, do this:
Cast the conn you got from our DataSource to be a weblogic.jdbc.extensions.WLConnection,
which is an Interface offering the clearStatementCache() method. Call that just before
closing the connection to put it back into the pool.
Keep Posting π
Thanks
Jay SenSharma
March 8th, 2010 on 5:24 pm
Hi Joy,
Thanks, One question for you.
is “Test Connection on Reserve” has something to do with “Statement Cache” parameter.
Can i use “Test Connection…” by setting Statement Cache size=0.
Thanks
March 8th, 2010 on 7:46 pm
Hi Rocks,
I will recommend that in your case better if you disable the StatementCache by setting it to 0. Statement Cache can dramatically increase performance, but you must consider its limitations before you decide to use it. If you see any issue because of StatementCache…then better disable it…because it has a direct impact on Prepared & Callable Statements.
StatementCache is NOT always useful: If you have a data source with 10 connections deployed on 2 servers, if you set the Statement Cache Size to 10 (the default), you may open 200 (10 x 2 x 10) cursors on your database server for the cached statements.
—————–
Test Connections on Reserve : Enabling this Attribute is fairly an expencive operation. (default is 10 seconds). There is not much relation between “Test Connections on Reserve” and “Statement-Cache”. They are very well isolated by each other. Reasone is …Statement Cache is related to Caching the Prepared&Callable statements to improve the performance. And “Test Connection On Reserve” is related to the freshness and Activness of the JDBC Connections.
Keep Posting π
Thanks
Jay SenSharma
March 12th, 2010 on 11:48 am
Hi Joy,
Need one more help.
I am not able to locate “weblogic.jdbc.extensions.WLConnection” the jar for this class.
altough i can compile my prooject using ant and setting the <>…/lib in classpath. I have seen in weblogic.jar but it is not there(WLS10.3).
Please help me getting the name of the jar.
Thanks a lot, The suggestion is working fine, and we havent seen any more problem yet, Thanks a lot for your time you have spend in answering my questions and also guidng me side by side.
Many thanks!!! once again..
Thanks
Rocks
March 12th, 2010 on 12:39 pm
Hi Rocks,
You will find that class inside : C:bea103modulescom.bea.core.datasource6_1.4.0.0.jar
keep Posting π
Thanks
Jay SenSharma
March 12th, 2010 on 2:49 pm
1). C:bea103modulescom.bea.core.datasource6_1.4.0.0.jar
2). C:bea103wlserver_10.3serverlibwljmsclient.jar
3).C:bea103wlserver_10.3serverlibwlfullclient.jar
4). C:bea103toolseclipse_pkgs2.0pkgseclipsepluginscom.bea.workshop.upgrade81.thirdparty_1.0.100.200807251732libwls-api.jar
5). C:bea103wlserver_10.3serverlibwls-api.jar
March 13th, 2010 on 6:45 pm
Hi Joy,
I have one doubt, actually few days back we were facing issues with BAD_CERTIFICATE on our WLS server. and when we debug that we found that specaially it happens when we are connecting using IE, but mozilla was working fine. and after the one of team mate told that it is a cookie issue, as we are maintaining custom cookie name. and as a load balancer we were using weblogiC proxy. after removing the cookie name it started working fine.
i am not convinced with this finding. as cookie name will never cause BAD_CERTIFICATE error, I understand I am new to WLS but one thing which I knew is that every server has a similar implementaion for few things.
server info : proxy, 3 nodes(cluster), WLS 10.3
please correct me.
March 13th, 2010 on 6:53 pm
Hi Rocks,
I have never seen any such issue…earlier where a cookie-name causes BAD CERTIFICATE…Anyway which version of Internet Explorer u are using? I have seen some Certificate issues in IE-7. You will find some known issues as well with that.
Thanks
Jay SenSharma
March 13th, 2010 on 7:03 pm
I am not sure…about the BAD CERTIFICATE issue…but you can have a look on this link as well…http://www.sslshopper.com/ssl-certificate-not-trusted-error.html
March 14th, 2010 on 8:48 pm
hi joy,
we are using ie7,ie8. also for a load balance we are using WLS proxy server, instead of Apache. is proxy can cause this issue. any idea if you have seen such things happening in weblogic.
pls advise.
March 17th, 2010 on 3:56 pm
Hi Joy,
Could you please help me how to create a read only user in weblogic, We want to create few read only users in weblogic so that they can simply review the configurations on weblogic.
Please advise.
Thanks
Rocks
March 17th, 2010 on 4:08 pm
Hi Rocks,
Create a User with any name Example : “MyReadOnlyUser” and then in Admin console security realms assign “Monitor” group to this user.
Thanks
Jay SenSharma
March 5th, 2010 on 12:54 pm
Hi Joy,
Just a very small question, in connection pool environment, making connection=null, after close, cause any issues?
please advise.
March 5th, 2010 on 4:47 pm
Hi Joy,
One query, In our case where userbase is quite big, How much Multi data source could be helpful. where mulit data source gets fit.
please help so that I can see the impact in our application.
Thanks
Rocky
March 5th, 2010 on 5:54 pm
Hi Rocks,
One MultiDataSource can contain many DataSources. So it doesnt matter you create one or more MultidataSources.
Even there is NO InitialCapacity or MaxCapacity connection kind of attributes available for Multidatasource. The sole use of MultiDataSource is to provide the following two features based on our selection
1). DataSource Load Balancing
OR
2) Data Source FailOver
Means If your UserBase is large or How many users concurrently access your applications…etc can be decided by the Normal DataSource parameters…MultiDataSource has nothing to do with this.
Keep Posting π
Thanks
Jay SenSharma
March 8th, 2010 on 4:38 pm
Hi Joy,
Thanks, One question for you.
is “Test Connection on Reserve” has something to do with “Statement Cache” parameter.
Can i use “Test Connection…” by setting Cache size=0.
Thanks
March 12th, 2010 on 11:47 am
Hi Joy,
Need one more help.
I am not able to locate “weblogic.jdbc.extensions.WLConnection” the jar for this class.
altough i can compile my prooject using ant and setting the <>…/lib in classpath. I have seen in weblogic.jar but it is not there(WLS10.3).
Please help me getting the name of the jar.
Thanks a lot, The suggestion is working fine, and we havent seen any more problem yet, Thanks a lot for your time you have spend in answering my questions and also guidng me side by side.
Many thanks!!! once again..
Thanks
Rocks
April 13th, 2010 on 4:49 pm
Hi Joy,
What is PLAN.xml and where I can locate this file.
Please throw some light to clear this doubt.
Thanks
April 19th, 2010 on 6:07 pm
Ji Joy,
I am facing this exception while running the node manager. Please help..
April 19th, 2010 on 6:14 pm
Hi Rocks,
Please post the StackTrace which u are getting. Along with The WLS Version and The Steps which u are following to start Nodemensger….
Thanks
Jay Sensharma
July 31st, 2010 on 12:20 am
hi jay
u blog helping me lot to learn weblogic..
plzzz solve this doubtβ¦.
Is one application will be in 2 clusters?
If its can how will we put those clusters in the sink to be consistent
thnks
venu
July 31st, 2010 on 10:51 am
Hi Venu,
In General Scenarios it is not recommended to deploy and try to synchronize the same application across the clusters, Even though WebLogic has this feature already availableβ¦because it requires a lots of additional resources like external LoadBalancers and a WAN/MAN Integrations.
Please refer to the following linkβ¦.you may find some related information: http://download.oracle.com/docs/cd/E12840_01/wls/docs103/cluster/failover.html#wp1040592
But itβs little costly β¦as it requires many additional resources. So it is recommended only in specific scenarios where you have very specific requirement like described in the above link.
.
.
Keep Posting
Thanks
Jay SenSharma
July 31st, 2010 on 11:00 am
thks jay
October 7th, 2010 on 3:07 pm
Hi Jay,
I have a thread issue on my PRO boxes. Weblogic processes consume all the CPU to around 98% and access the site becomes very slow. Usual time to load page of the application is 5-8 secs. but after this issue it is taking more than 20 secs. I tried restarting servers, but it seems to be a temporary solution. after 2 days the issue crops up again and CPU hits 100%. Please help to resolve this once in for all.
#### <>
#### <>
#### <>
#### <>
#### <>
#### <> <[STUCK] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' has been busy for "731" seconds working on the request "Http Request: /portal/site/sp/template.ANON_SP_LOGIN_REQD", which is more than the configured time (StuckThreadMaxTime) of "600" seconds. Stack trace:
java.lang.String.substring(String.java:1953)
java.lang.String.substring(String.java:1914)
com.hp.ac.filter.AdmissionControlFilter.getQueryValue(AdmissionControlFilter.java:966)
com.hp.ac.filter.AdmissionControlFilter.clientIsStaffUser(AdmissionControlFilter.java:674)
com.hp.ac.filter.AdmissionControlFilter.doFilter(AdmissionControlFilter.java:148)
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
com.hp.websat.timber.transaction.TransactionLoggingFilter.doFilter(TransactionLoggingFilter.java:132)
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
com.vignette.portal.website.internal.StartupProtectionFilter.doFilterSingleInvocation(StartupProtectionFilter.java:100)
com.vignette.portal.website.internal.SingleInvocationFilter.doFilter(SingleInvocationFilter.java:52)
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
com.vignette.portal.website.internal.EnvironmentalWrapperFilter.doFilterSingleInvocation(EnvironmentalWrapperFilter.java:44)
com.vignette.portal.website.internal.SingleInvocationFilter.doFilter(SingleInvocationFilter.java:52)
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3243)
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2003)
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1909)
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1359)
weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
thanks,
Chakravarthy
October 10th, 2010 on 2:44 pm
Hi, i am a beginner learning Weblogic server could you help me to know more about the best path to learn it both sections development and administration i need your reply urgently please .
October 13th, 2010 on 6:12 pm
Hi Jay;
After I redeployed an application in weblogic server (Version: 10.3.0.0)
I could not see any deployments at Summary of Deployments tab.
I have check config.xml,it is ok.I restart,admin and other server but I could not.
What can I do,
do you have any idea What I do it wrong.
thanks…
October 14th, 2010 on 11:07 am
Hi Erdem_Ustun,
This is a very abnormal behaviour. Please check the Server Logs/Stdout immediately deploying/redeploying your Application. If u see any kind of Warning or Error please share it with us. Apart from this Suppose if you are not getting any WARNNING or ERROR message in the Server logs then Please Login to AdminConsole–>Servers–>*lt;ServerName>–>Debug–> Enable the Deployment related Debug Flags to get More Debug Informations related to the deployment.
One more this i wanted to ask …After redeployment of your application you are not able to See them in the Admin Console…But have u tried to access that application? Were you able to access them? (Even when it is not showing in AdminConsole)
One more thisn you can try …Please refer to the Post : http://middlewaremagic.com/weblogic/2009/12/31/debugging-runtime-informations-at-a-glance/ And try to run the Debug Utility weblogic.Admin to see the ApplicationRuntime Informations….to check if after redeployment the Application was active or not?
Getting Application Statistics
java weblogic.Admin -url t3://localhost:7001 -username weblogic -password weblogic GET -pretty -type ApplicationRuntime
.
.
Keep Posting π
Thanks
Jay SenSharma
October 14th, 2010 on 1:57 pm
Hi Jay,
Thanks for your advices.
I could not find any solution to my problem so I closed all managed server,cluster,machine,and servers that weblogic runs on it then I started all again.I could not believe but my problem was solved. I could not understand what the reason was causing this problem.
Thanks..
October 14th, 2010 on 12:04 pm
Hi Jay,
I had replied to you on the yahoo mail ID. any updates? let me know if you need more information from me.
thanks,
Chakravarthy
October 18th, 2010 on 11:18 am
Hi Jay/Faysal,
I have installed weblogic 10.3.3 in my computer while starting admin server getting an below error.
jrocket_160_17_R28.0.0-679 was unexpected this time.
D:base_domain> (Where I have installed my domain).
Kindly advice to rectify this error .
Lakshmikara Reddy
October 19th, 2010 on 10:16 pm
Hi Balaji,
Your Error is not clear….are u getting only one line in the error? “jrocket_160_17_R28.0.0-679 was unexpected this time.”. Better if u post some snippet of your Server Log. And Please specify how r u starting your Server (using startWebLogic.sh)?
also please make sure that while posting your errors…If u see any special characters like > then please replace it with > …similarly replace all the < characters with < ………like this if your will paste your comments in the Wonders then it will be visible to us…or else with above mentioned characters your comments will not be visible to us.
.
.
Keep Posting π
Thanks
Jay SenSharma
October 23rd, 2010 on 4:11 pm
Jay thanks for u r replay .I have reinstalled weblogic server once again and working fine.
Thanks
Balaji kumar
January 13th, 2011 on 10:32 pm
Hello,
I’m polling ThreadPoolRuntimes mbeans for all instances in a list of production domains, and I’m seeing that Throughput attrib (requests per second) is very high for Admin instances. Compared to a deployed instance, where it is in order of one or two digits, for admin instances never drops from 3 or 4 digits.. do you have any clue about this? I’ve some ideas, like it could be related to HA frecuency.. but I’m unable to debug this kind of requests.
Thanks!
January 14th, 2011 on 12:17 am
Hi Mannu,
As we know that Some Special MBeans are present only inside the AdminServer and Not in the Managed Servers…Like DomainConfigurationMBean and DomainRuntimeMBean. As i can see that in your case you are using JMX which usually requires a JMX Connectivity from the AdminServer and It gets many informations through the AdminServer with the help of DomainRuntimeMBean …I doubt that in your Case the JMX query which you are firing on AdminServer to get the Managed Servers Throughput is causing the AdminServer Throughput to be very high.
Because usually AdminServer doesnot do anything once the Managed Server Comes up ..Even Managed Servers can Run in Independence mode as well… It means they don’t even require AdminServer…It means Once the ManagedServer has come up …it doesnot require any AdminServer running….
AdminServer Just push the Configuration changes/Security Changes made in the runtime to the Managed Servers…rest of the time if we donot do any configuration changes then AdminServer Sit idle.
In Your case u mentioned that these are production Servers…Means you don’t make any frequent changes in the AdminServer..So in your case the AdminServer must be sitting idle ….Until you don’t request for an data from the AdminServer…..But your JMX program is actually asking the Data frequently which might be causing the High Throughput for the admin Server. Because Pulling Runtime Data is heavy weight operation.
.
.
Keep Posting π
Thanks
Jay SenSharma
January 14th, 2011 on 12:57 am
Thanks Jay, I verified checking in the admin console and you are right, the JMX client impacts heavy when polling.
February 25th, 2011 on 2:57 pm
Hi Experts…….
May 27th, 2011 on 1:56 pm
Hi Ravish/Jay
Can I have a note on the various deployment modes in weblogic .
Thanks
May 28th, 2011 on 6:58 pm
Hi Swordfish,
Below are the links which would give you what you are looking out for
Topic: Staging Mode Descriptions and Best Practices
http://download.oracle.com/docs/cd/E12840_01/wls/docs103/deployment/deploy.html#wp1029629
Topic: Deployment Tools
http://download.oracle.com/docs/cd/E12840_01/wls/docs103/deployment/understanding.html#wp1057884
Regards,
Ravish Mody
June 22nd, 2011 on 12:08 pm
Hi Jay,
I have a managed domain on a remote box (Linux) on which i am trying to start the Node Manager.
The Node Manager just starts fine. However, i see ” Weblogic NMConnect exception on Console (Machines -> Monitoring tab)where my Admin server resides.
1) I was able to perform Horizontal clustering without doing nmEnroll() before.
2) But this time, i see the “NMConnect exception”. I also did nmEnroll() as per our notes provided on “middlewaremagic”. However, still i see ” Node manager is Inactive” with the exception given above.
3) The connectivity is fine between the two machines (Able to ping it)
Could you please let me know the resolution steps for this.
Thanks,
Hari
September 8th, 2011 on 7:48 pm
**Hi Jay,**
**I am getting the following exception while connecting to one of the Weblogic server 8.1 using JMX code, the same code is working fine while connecting to other WL 8.1 servers.**
**Weblogic servers are installed on UNIX machine. and the Client(used to get the server health and state of weblogic servers) is installed on windows machine.**
**I have also checked the /etc/hosts file on unix machine of weblogic serverβ¦the ip is mapped with the host name appropriately and the file is having full read permissions.**
**I am trying to connect to this weblogic servers using ip/hosname but getting the same below exception. This is happening for only one weblogic server, others we are able to monitor without any isue.**
**Could you please help me on this.**
Exception trace:
Thanks,
Exception trace:
<Uncaught Throwable i
n processSockets
weblogic.utils.NestedError: This address was valid earlier, but now we get: –
with nested exception:
.
java.net.UnknownHostException: dcoc9y: dcoc9y
at java.net.InetAddress.getAllByName0(InetAddress.java:1011)
at java.net.InetAddress.getAllByName0(InetAddress.java:981)
at java.net.InetAddress.getAllByName(InetAddress.java:975)
at java.net.InetAddress.getByName(InetAddress.java:889)
at weblogic.rjvm.JVMID.address(JVMID.java:452)
at weblogic.rjvm.JVMID.getAddress(JVMID.java:368)
at weblogic.rjvm.RJVMImpl.createRemoteChannel(RJVMImpl.java:272)
at weblogic.rjvm.RJVMImpl.completeConnectionSetup(RJVMImpl.java:1167)
at weblogic.rjvm.ConnectionManagerServer.handleIdentifyResponse(Connecti
onManagerServer.java:540)
at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:783)
at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:760)
at weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:105)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:
32)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
————— nested within: ——————
weblogic.utils.NestedError: This address was valid earlier, but now we get: – w
ith nested exception:
at weblogic.rjvm.JVMID.address(JVMID.java:459)
at weblogic.rjvm.JVMID.getAddress(JVMID.java:368)
at weblogic.rjvm.RJVMImpl.createRemoteChannel(RJVMImpl.java:272)
at weblogic.rjvm.RJVMImpl.completeConnectionSetup(RJVMImpl.java:1167)
at weblogic.rjvm.ConnectionManagerServer.handleIdentifyResponse(Connecti
onManagerServer.java:540)
at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:783)
at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:760)
at weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:105)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:
32)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
Thanks,
Vibhor
September 9th, 2011 on 5:04 pm
Hi Joy,
This is guru……from chennai
Am a fresher…who is working as a weblogic admin…moving on i have one doubt..That is can i able to download weblogic 11g versions from oracle website through my oracle account,which i have created through my gmail account in free of cost by accepting the license agreement?
if so let me know….thanks for your reply in advance
Regards,
GURU
September 11th, 2011 on 12:36 pm
HI Rguruweblogic,
Yes, Once you accept the license agreement Radio Button in Oracle Download page you will be able to download the WebLogic Server for Development & Testing putpose, But if you want to use that server in your Production Environment then You should contact Oracle WebLogic Support team to get the valid License along with the Support.
.
.
Keep Posting π
Thanks
Jay SenSharma
September 26th, 2011 on 9:50 am
Thanks jay,
This is Guru from chennai,
In my environment,i have installed weblogic 10.3 on windows XP,and i created one domain in that domain i have configured one managed server(both admin and managed server are in the same host) and assinged that server to one machine.
When starting this managed server it went to failed restartable state,i have checked in the server log it has given me the following error
Usage: java [-options] class [args…]
(to execute a class)
or java [-options] -jar jarfile [args…]
(to execute a jar file)
where options include:
-jrockit to select the “jrockit” VM
-client to select the “client” VM
-server to select the “server” VM [synonym for the “jrockit” VM]
The default VM is jrockit.
-cp
-classpath
A ; separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D=
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-version:
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -jre-no-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:…|:]
-enableassertions[:…|:]
enable assertions
-da[:…|:]
-disableassertions[:…|:]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:[=]
load native agent library , e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:[=]
load native agent library by full pathname
-javaagent:[=]
load Java programming language agent, see java.lang.instrument
-splash:
show splash screen with specified image
Then in the nodemanager log i got the error message as
Usage: java [-options] class [args…]
(to execute a class)
or java [-options] -jar jarfile [args…]
(to execute a jar file)
where options include:
-jrockit to select the “jrockit” VM
-client to select the “client” VM
-server to select the “server” VM [synonym for the “jrockit” VM]
The default VM is jrockit.
-cp
-classpath
A ; separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D=
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-version:
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -jre-no-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:…|:]
-enableassertions[:…|:]
enable assertions
-da[:…|:]
-disableassertions[:…|:]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:[=]
load native agent library , e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:[=]
load native agent library by full pathname
-javaagent:[=]
load Java programming language agent, see java.lang.instrument
-splash:
show splash screen with specified image
i got his kind of error of error as well
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
at java.io.InputStreamReader.read(InputStreamReader.java:167)
at java.io.BufferedReader.fill(BufferedReader.java:136)
at java.io.BufferedReader.readLine(BufferedReader.java:299)
at java.io.BufferedReader.readLine(BufferedReader.java:362)
at weblogic.nodemanager.server.Handler.run(Handler.java:66)
at java.lang.Thread.run(Thread.java:619)
I have not configured node manager as a service,Manually i have started the nodemanger.
Kindly let me know what was the bug happened here.
September 26th, 2011 on 10:45 am
HI Rguruweblogic,
As you cna see in your server log “Usage: java [-options] class [args…]” which indicates that somewhere you might have set Wrong JAVA_OPTIONS for your JRockit JVM. So it is better to check the JAVA_OPTIONS for your server as well as for NodeManager. Better if you can paste it here so that we also can have a look on it.
.
.
Keep Posting π
Thanks
Jay SenSharma
September 26th, 2011 on 5:03 pm
Hi Jay,
I am urgently in need of help.
We wanted to migrate from WLS 9.2.2.
Can u please tell which version among 10.x is best suitable to migrate from WLS 9.2.2. we are using JDK 1.5.
Do we need to do any application chnages to migrate to 10.x.
Please reply soon
I have to provide an estimate by this evening.
Regards
Latha
September 26th, 2011 on 5:21 pm
Hi Latha,
Its always recommend to upgrade to the latest version of WLS, however there are lot of things which has to be kept in mind before upgrading hence below link might help you to understand few stuff regarding it
Topic: WebLogic Server 10.3 Compatibility with Previous Releases
http://download.oracle.com/docs/cd/E12840_01/wls/docs103/upgrade/compat.html
Topic: Fusion Middleware Upgrade Guide for Oracle WebLogic Server11g Release 1 (10.3.4)
http://download.oracle.com/docs/cd/E17904_01/web.1111/e13754/toc.htm
Also below link would help you to upgrade your current WLS version to the higher version.
Topic: Upgrade from Weblogic 9.2 to Weblogic 11g 10.3.4
http://www.xbeon.com/middleware/weblogic/upgrade-weblogic-92-weblogic-11g
Few more links which would help you
Topic: 5 Upgrading a WebLogic Domain
http://download.oracle.com/docs/cd/E17904_01/web.1111/e13754/upgrade_dom.htm#i1089586
Topic: A Upgrading WebLogic Server 9.x or 10.0 Application Environments to 10.3.4
http://download.oracle.com/docs/cd/E17904_01/web.1111/e13754/upgrading9091.htm#i1055058
Regards,
Ravish Mody
September 27th, 2011 on 9:10 am
Hi Jay,
Am not Rguruweblogic, am Guru π
As you have told i thought of trying to give correct java path belongd to JRockit,
But as i said i got this below error as well in the nodemanager log
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
at java.io.InputStreamReader.read(InputStreamReader.java:167)
at java.io.BufferedReader.fill(BufferedReader.java:136)
at java.io.BufferedReader.readLine(BufferedReader.java:299)
at java.io.BufferedReader.readLine(BufferedReader.java:362)
at weblogic.nodemanager.server.Handler.run(Handler.java:66)
at java.lang.Thread.run(Thread.java:619)
Pertaining to this bug i have changed the nodemanager listener port # to 7020,
Now i got the following message in the log
In the managed server log i got the following message,
Seems with out changing the java path server was started,what i have done is i have only chaged the nodemanger listener port,
As you said i checked in the nodemanager.properties file Jrockit java path is there as below
#Fri Sep 23 07:09:02 IST 2011
DomainsFile=C:\bea\WLSERV~1.3\common\nodemanager\nodemanager.domains
LogLimit=0
PropertiesVersion=10.3
javaHome=C:\bea\JROCKI~1
AuthenticationEnabled=true
NodeManagerHome=C:\bea\WLSERV~1.3\common\nodemanager
JavaHome=C:\bea\JROCKI~1\jre
Thanks Jay
Regards,
Guru
Chennai
September 27th, 2011 on 9:13 am
Sorry jay missed to paste the log messages
following is the log message in nodemnager log
Following is the message i found in managed server log
September 27th, 2011 on 9:17 am
Hi Jay,
Am not able to paste the log messages in post,Let me try from MS word,
September 27th, 2011 on 9:32 am
Hi rguruweblogic,
If you want to paste your server log snippet here then you need to follow the syntax ….(as logs contains some XML tags so HTML ignores them) …please refer to the following link to know how to post log snippets:
http://middlewaremagic.com/weblogic/?page_id=146 Refer to Point-4
AND
http://middlewaremagic.com/weblogic/wp-content/uploads/2009/08/How_to_Post_Comments.jpg
.
.
Keep Posting π
Thanks
Jay SenSharma
September 27th, 2011 on 11:36 am
Hi Jay,
Thnaks for the reply ….
I was ordered to do a POC by deploying the ear in wls 10.0 version.
I am trying to build the ear with the build file which we used for wls 9.2 version just by changing the wl_home pointing to wls_10.0 home.
but i am getting some errors like below:
The weblogic.ejbc compiler is deprecated and will be removed in a future version of WebLogic Server. Please use weblogic.appc instead.
<Unable to load descriptor ../lib/RS_Core_Engine/MailerTemp.jar/META-INF/ejb-jar.xml of module null. The error is weblogic.descriptor.DescriptorException: VALIDATION PROBLEMS WERE FOUND
should i change the lib directory to wls_10 lib and then build..?
Thanks
Latha
September 27th, 2011 on 2:58 pm
Hi Latha,
As the error is indicating that your EJB Deployment descriptors “MailerTemp.jar/META-INF/ejb-jar.xml” has some invalid tag inside it …which might be correct in previous version of WLS but in the current version where you are trying to build and deploy it might not be right so please paste the “ejb-jar.xml” file here so that we can have a look.
You can refer to the following image to know how you can paste the XML data in the comment: http://middlewaremagic.com/weblogic/wp-content/uploads/2009/08/How_to_Post_Comments.jpg
Additionally you can try using the weblogic.DDConverter to update your deployment descriptors…. http://middlewaremagic.com/weblogic/?p=2772 which might help.
.
.
Keep Posting π
Thanks
Jay SenSharma
September 27th, 2011 on 6:24 pm
Hi Jay,
I have upgraded the deployent descriptors and tried recompiling but still the same problem persists.
please find the below weblogic-ejb-jar.xml:
Thanks
Latha
September 28th, 2011 on 12:49 pm
Hi Jay,
i am getting the below error while compiling:
<Unable to load descriptor ../lib/RS_Core_Engine/MailerTemp.jar/META-INF/ejb-jar.xml of module null. The error is weblogic.descriptor.DescriptorException: VALIDATION PROBLEMS WERE FOUND
problem: Schema document type not found for element '{http://java.sun.com/xml/ns/javaee}ejb-jar'.:
For ejb-jar.xml in wls 10.0, do we need , if we need it can u please send some sample ejb-jar.xml and weblogic-ejb-jar.xml for wls 10.0 version.
Waiitng for ur reply…
Thanks
Latha
September 28th, 2011 on 2:57 pm
Hi Latha,
The error “Schema document type not found for element ‘{http://java.sun.com/xml/ns/javaee}ejb-jar’.” indicates that your ejb-jar.xml is using a Wrong schema declaration.
I am not sure which version of EJBs are you using EJB3 or EJB2.x but as you mentioned that you are migrating from XDoclet EJBs to WLS10….and XDoclet supports only EJB2.x Beans so i think if you want to migrate it to WLS10 as EJB2.x bean only then the following kind of “ejb-jar.xml” should work fine as in the “WL_HOME/examples” directory also you can find some of the ejb-jar.xml samples…. I am pasting one of them :
.
.
Keep Posting π
Thanks
Jay SenSharma
September 28th, 2011 on 6:20 pm
Hi Jay,
I have used the same schema namespace as above, but still i ma facing the similar problem.
Should i include any doctype in ejb-jar.xml.
Regards
Madhavi
October 10th, 2011 on 1:07 pm
Hi Jay,
I have migrated to wls10.0. The build was successful, but when i am logging into my application and selecting some link in my frontend i am getting exception as
“No type with this name could be found at this location.
java.util.ArrayList colStations = new ArrayList();”
should i include any extra jars.?
please help me in this issue.
Thanks
Lath
October 10th, 2011 on 7:56 pm
Hi Lath,
looks like something is wrong happening inside the application, by looking at the above two lines of exception it is very hard to predict anything. Will it be possible for you to send the complete server log at “contact@middlewaremagic.com” so that we will try to find out.
If the description of the JSP/servlet page where the linking is causing problem will be made available then that will be more useful.
.
.
Keep Posting π
Thanks
Jay SenSharma
October 11th, 2011 on 5:29 pm
Hi Jay,
Please help me regarding hudson cvs checkout.
I have configured everything n hudson but i am getting an error as
Permission denied (publickey,keyboard-interactive).
cvs [checkout aborted]: end of file from server (consult above messages if any)
FATAL: CVS failed. exit code=1
Finished: FAILURE
where should i specify the password, even i am not getting a prompt for password entry.
Please let me know if i need to provide any additional info.
Regards
Madhavi
October 28th, 2011 on 6:20 pm
Hi Jay,
Please help me in one issue.
We are using log4j for logging.
When iam starting a process in ejb it creates a unique id which we would set to logentryobject along with component. when the process is running this unique id is printed in log statements which would be fetched using MDC.getContext(). This method soetimes returns the hastable properly and sometimes it returns null.
if it is returning null, when we are updating the status in process history it is not updating since it is not able to find the unique id of process which is becoming null.
We are running this process in parallel using weblogic workmanager.
Kindly help me in this issue.
Regards
Madhavi
October 28th, 2011 on 8:57 pm
Hi Lath,
This looks be very application specific issue and debugging that will require “adding some debug statements inside the Application code” sothat we can get to know when exactly and in which scenario the MDC.getContext() is returning null values.
If you can provide us a Simple TestCase or Reproducer with the WebLogic Version information which you are using then it would be very easy to debug the issue, as currently we are not sure what code have you written and the issue looks to be more specifically from the application side.
.
.
Keep Posting π
Thanks
Jay SenSharma
November 17th, 2011 on 7:01 pm
hi jay
issue:Could not establish a XA connection because of java.lang.NoClassDefFoundError while we are creating the datasource
os:RHEL 6.0
WLS: 10.3
JRockit_160_05
Message icon – Error Connection test failed.
Message icon – Error Could not establish a XA connection because of java.lang.NoClassDefFoundError: com/pointbase/session/sessionManagercom.bea.console.utils.jdbc.JDBCUtils.testConnection(JDBCUtils.java:564)com.bea.console.actions.jdbc.datasources.createjdbcdatasource.CreateJDBCDataSource.testConnectionConfiguration(CreateJDBCDataSource.java:369)sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)java.lang.reflect.Method.invoke(Method.java:597)org.apache.beehive.netui.pageflow.FlowController.invokeActionMethod(FlowController.java:870)org.apache.beehive.netui.pageflow.FlowController.getActionMethodForward(FlowController.java:809)org.apache.beehive.netui.pageflow.FlowController.internalExecute(FlowController.java:478)org.apache.beehive.netui.pageflow.PageFlowController.internalExecute(PageFlowController.java:306)org.apache.beehive.netui.pageflow.FlowController.execute(FlowController.java:336)org.apache.beehive.netui.pageflow.internal.FlowControllerAction.execute(FlowControllerAction.java:52)org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.access$201(PageFlowRequestProcessor.java:97)org.apache.beehive.netui.pageflow.PageFlowRequestProcessor$ActionRunner.execute(PageFlowRequestProcessor.java:2044)org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionInterceptors$WrapActionInterceptorChain.continueChain(ActionInterceptors.java:64)org.apache.beehive.netui.pageflow.interceptor.action.ActionInterceptor.wrapAction(ActionInterceptor.java:184)org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionInterceptors$WrapActionInterceptorChain.invoke(ActionInterceptors.java:50)org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionInterceptors$WrapActionInterceptorChain.continueChain(ActionInterceptors.java:58)org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionInterceptors.wrapAction(ActionInterceptors.java:87)…
thanks
November 17th, 2011 on 8:09 pm
HI Priyanka,
As the NoClassDefFoundError on class “com.pointbase.session.sessionManager” indicates that your WebLogic server’s classpath is missing the following JAR file in it: So make sure that you add this JAR file in the server’s classpath or place it inside the “$DOMAIN_HOME/lib” directory and then restart your WebLogic.
Class: com.pointbase.session.sessionManager
Package: com.pointbase.session
Library Name: pbembedded57.jar
Library Path: ${WL_HOME}/common/eval/pointbase/lib/pbembedded57.jar
.
.
Keep Posting π
Thank You
Jay SenSharma
December 26th, 2011 on 1:48 pm
Hi Guys,
Please help me out in checking weblogic application(deployments) health status(warning/ok).Also need to check Server is in warning/admin or any other state.I need all these in just one script.
December 26th, 2011 on 3:25 pm
HI Niharika,
You can merge the JMX codes mentione din the following two Articles in order to achieve what you wanted.
1). Application Status Checker JMX for WLS9.x Onwards
http://middlewaremagic.com/weblogic/?p=497
2). All WebLogic Server HealthState Checking Using JMX
http://middlewaremagic.com/weblogic/?p=2851
Also you can take help of the WLST Scripting to achieve the same:
1). Sending Email Alert for WebLogic Servers Current State
http://middlewaremagic.com/weblogic/?p=5838
2). Sending Email Alert for Application Current State
http://middlewaremagic.com/weblogic/?p=7042
.
.
Keep Posting π
Thanks
Jay SenSharma
December 26th, 2011 on 3:37 pm
Hi Niharika Neervani,
You can combine the below two articles in a single article to achieve your requirement
Topic: Sending Email Alert for Application Current State
http://middlewaremagic.com/weblogic/?p=7042
Topic: Sending Email Alert for WebLogic Servers Current State
http://middlewaremagic.com/weblogic/?p=5838
Regards,
Ravish Mody
December 26th, 2011 on 4:38 pm
Hi Guys,
I am not able to achieve what I wanted through above scripts(JMX/WLST).All that I wanted is to check health state of my server and application(deployment) .I ran above scripts and it says health as OK even though server is in warning state.
My Console shows:- q1mre1m2 RUNNING Warning
Output shows:-
Server: AdminServer State: RUNNING
Server: AdminServer State Health: HEALTH_OK
Server: q1mre1m2 State: RUNNING
Server: q1mre1m2 State Health: HEALTH_OK
December 27th, 2011 on 10:34 am
Hi Jay/Ravish,
Can you help me out in resolving the problem ?The JMX code or WLST scripting output is just showing State where Iam looking for health of an application and server.
January 2nd, 2012 on 2:56 pm
Hi,
I have a question related to the clusters
I have 2 node cluster and Apache plug in with it. I have deployed a basic servlet on the cluster which uses a DataSource to create a table in Oracle XE database , inserting a record into it and then displaying it. I need to when I access the servlet which node of the cluster it is forwarded to.
Thanks & Regards
Bulbul
January 2nd, 2012 on 3:08 pm
Hi Bulbul,
You can write the below code in your servlet, this would print in the logs of the node on which the servlet has been accessed.
System.out.println(“=== Servlet has been called === “);
Regards,
Ravish Mody
January 2nd, 2012 on 3:36 pm
Hi Bulbul,
The HttpServletRequest has a method httpServletRequest.getServerName() and httpServletRequest.getServerPort() which can be used to get the information on Whihc Server is actually processing the Clients request.
http://docs.oracle.com/javaee/6/api/javax/servlet/ServletRequest.html#getServerName()
It will be very easy as well because usually every web application uses HttpServletRequest so once you get this object inside your JSP/Servlet you can display the Server Host or PortName.
.
.
Keep Posting π
Thanks
Jay SenSharma
January 3rd, 2012 on 8:21 am
Hi,
Iam very new to WLST scripting,can you please provide the MBEANS that can check both state(eg:-RUNNING/WARNING) and health(eg:- Ok/Warning)of weblogic servers and weblogic applications(deployments).
January 5th, 2012 on 10:22 pm
Hi Niharika,
There has been already various discussions on the Health State of WebLogic related to admin-console or WLST in various forums / Oracle Forums/ And linked in groups. It seems to be an issue with WebLogic console that the real state is ambigiuos. Please refer to the following discussion : http://www.linkedin.com/groupAnswers?viewQuestionAndAnswers=&discussionID=58322623&gid=1320227&commentID=63454235
And it’s better to contact Oracle Support regarding this issue because already many people have already faced this issue of getting the Health State of WebLogic through WLST or through AdminConsole. I am sure that the vendor might already have some fixes.
.
.
Keep Posting π
Thanks
Jay SenSharma
January 4th, 2012 on 2:22 am
Hi Jay/Mody,
I am having some security audits problems in our environment. i got the following exceptions from that TENABLE Network Security Report.
the below issues are reporting against the node manager port 5556. we are using weblogic 10.3.5 version on x86_64 x86_64 x86_64 GNU/Linux.
1)
SSL
Certificate
Signed
using
Weak
Hashing
Algorithm 5556 TCP
2)
SSL
Version
2 (v2)
Protocol
Detection 5556 TCP Service detection
how to clearup these issues ? any help would be appreciated. 5556 port is the node manager port.
Thanks in advance.
January 12th, 2012 on 4:52 am
Hi there Jay,
Do you know whether Silent Domain Configuration is possible in Weblogic 10.3 and above?
The official documentation advises that using the Configuration Wizard in Silent Mode is deprecated from Weblogic9.0 however this implies that it is still possible.
I am running the following command:
./config.sh -mode=silent -silent_script=”/j2ee/domain-silent-test.xml” -log=”/j2ee/domain-creation-silent.log”
However no matter what modification I make to the silent_script file, I am met with the following error:
CFGFWK-60550: Script execution aborted. The script may contain an error. Illegal character on line 1
Given the probability that this function is no longer supported, what alternative would you recommend in order to conduct a silent domain configuration while still being able to modify the values for a different domain (not using a template file).
Your assistance is very appreciated (and not just by me!)
January 20th, 2012 on 12:42 pm
Hi ,
The WLST script below just gives information of Admin and 1 Managed Server Status , but I have more than 5 Managed Servers in my domain , how can we get information of all managed servers status.
connect(‘uid’,’pwd’,’url’)
domainConfig()
serverList=cmo.getServers();
domainRuntime()
cd(‘/ServerLifeCycleRuntimes/’)
for server in serverList:
name=server.getName()
cd(name)
serverState=cmo.getState()
if serverState==’SHUTDOWN’:
print ‘Server =’+ name +’,State =’+serverState
break
print ‘Server =’+ name +’,State =’+serverState
cd(‘..’)
Output is:-
Admin Sever —RUNNING
Managed Server —RUNNING
February 3rd, 2012 on 10:07 am
USER_MEM_ARGS=”-Dsun.rmi.dgc.server.gcInterval=3600000 -XX:+UseDefaultStackSize -Xss256k -Xms1600m -Xmx1600m -XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=384m -XX:MaxPermSize=384m -XX:+DisableExplicitGC -XX:SurvivorRatio=2 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+UseCMSCompactAtFullCollection -XX:CMSFullGCsBeforeCompaction=0 -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled -XX:+CMSIncrementalMode -XX:-CMSParallelRemarkEnabled -XX:+CMSIncrementalPacing -XX:CMSIncrementalDutyCycleMin=0 -XX:CMSIncrementalDutyCycle=10 -XX:CMSInitiatingOccupancyFraction=30 -XX:CodeCacheMinimumFreeSpace=2M -XX:ReservedCodeCacheSize=32M -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:ParallelGCThreads=2 -XX:CMSMarkStackSize=32M -XX:TargetSurvivorRatio=90 -Xloggc:${BASEDIR}/tmp/wls_${INSTANCE}_${THISSERVER}_loggc_${NOW}.$$”
These java params in the start up script are for the production mode, Is there any idea of what are the params & its values that has to be changed for the development mode? Please if anyone can help me on this issue, it would be so helpful…
February 26th, 2012 on 10:10 pm
Hi Team,
I am tried to add Role to the deployed applications. Here is the steps which i did using Admin Console however i need this activity should be done using WLST.
In the Admin Console if we navigate to the respective application deployed .
1. β>Deploymentsβ> APPlication β>Securityβ> Add a New Role β>Finish –> Click Same Application thenβ>Add Condition β> Select User β>Finish
2. Then Policies tabβ> Add Conditionβ> Add the above role created β> Finish.
Please let me know how to do this activity by using WLST. Please do help me in this .
Many Thanks
Anil
February 28th, 2012 on 10:24 pm
Hi Ankumar1974,
You can try going through the below article in the security topic
http://middlewaremagic.com/weblogic/?p=6329
Regards,
Ravish Mody
March 1st, 2012 on 4:16 pm
Hi Ravish,
Thanks for the response.I went through the security topic however i am not able to find my requirements where i have to add a role to the deployed applications as i mentioned in my previous post.
Can you please guide me on the same.
Thanks
Anil
April 9th, 2012 on 10:12 am
Hi,
I am trying to get the heap details,classes details as we can get with jmap.jconsole,jrmc in higher versionof jdk. here is my weblogic,jdk details please suggest by which tool i can get the heap details?
my os version is – SunOS hwfba06 5.8 Generic_117000-03 sun4u sparc SUNW,Sun-Fire-V240
weblogic version – 8.1sp5
sun jdk version – jdk142_08
thanks
May 16th, 2012 on 7:38 pm
Hi Team,
Our application runs on Weblogic 10.3.5.0(jvm-jrockit-jdk1.6.0_31) in production mode, but still ChangeAwareClassLoader is used and it leads to critical performance degradation – all parallel application threads try to lock on one monitor object – weblogic.utils.classloaders.ChangeAwareClassLoader. I understand that it happens when classes loaded via reflection, but it’s very hard to remove this logic, because majority of this locks comes from JSF ELResolver. This is an example stack trace from JRockIT recording:
Stack Trace Count Total
java.lang.ClassLoader.loadClass(String, boolean) 14 462 3 840 016 005 671
java.lang.ClassLoader.loadClass(String) 14 430 3 839 661 082 324
weblogic.utils.classloaders.GenericClassLoader.loadClass(String) 14 430 3 839 661 082 324
weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(String) 14 322 3 833 134 189 390
javax.el.FactoryFinder.newInstance(String, ClassLoader, Properties) 9 057 2 419 638 942 328
javax.el.FactoryFinder.find(String, String, Properties) 9 057 2 419 638 942 328
javax.el.ExpressionFactory.newInstance(Properties) 9 057 2 419 638 942 328
javax.el.ExpressionFactory.newInstance() 9 057 2 419 638 942 328
javax.el.BeanELResolver.invokeMethod(Method, Object, Object[]) 9 057 2 419 638 942 328
javax.el.BeanELResolver.invoke(ELContext, Object, Object, Class[], Object[]) 9 057 2 419 638 942 328
javax.el.CompositeELResolver.invoke(ELContext, Object, Object, Class[], Object[]) 9 057 2 419 638 942 328
com.sun.el.parser.AstValue.getValue(Object, Node, EvaluationContext) 9 057 2 419 638 942 328
com.sun.el.parser.AstValue.getValue(EvaluationContext) 9 057 2 419 638 942 328
com.sun.el.ValueExpressionImpl.getValue(ELContext) 8 793 2 352 066 884 060
com.sun.faces.facelets.el.TagValueExpression.getValue(ELContext) 8 492 2 269 483 090 797
com.sun.el.parser.AstIdentifier.getValue(EvaluationContext) 8 311 2 221 321 922 604
com.sun.el.ValueExpressionImpl.getValue(ELContext) 8 038 2 144 394 485 540
com.sun.faces.facelets.el.TagValueExpression.getValue(ELContext) 7 968 2 125 869 197 909
com.sun.el.parser.AstIdentifier.getValue(EvaluationContext) 7 965 2 125 061 604 955
com.sun.el.parser.AstValue.getValue(EvaluationContext) 7 965 2 125 061 604 955
com.sun.el.ValueExpressionImpl.getValue(ELContext) 7 947 2 120 372 288 855
com.sun.faces.facelets.el.TagValueExpression.getValue(ELContext) 7 947 2 120 372 288 855
com.sun.el.parser.AstIdentifier.getValue(EvaluationContext) 7 829 2 085 862 001 341
com.sun.el.ValueExpressionImpl.getValue(ELContext) 6 397 1 702 905 426 512
com.sun.faces.facelets.el.TagValueExpression.getValue(ELContext) 6 397 1 702 905 426 512
com.sun.el.parser.AstIdentifier.getValue(EvaluationContext) 6 397 1 702 905 426 512
com.sun.el.parser.AstValue.getValue(EvaluationContext) 6 338 1 687 224 480 224
com.sun.el.ValueExpressionImpl.getValue(ELContext) 5 941 1 581 122 335 568
com.sun.faces.facelets.el.TagValueExpression.getValue(ELContext) 5 660 1 503 824 994 620
com.sun.el.parser.AstIdentifier.getValue(EvaluationContext) 5 102 1 354 596 879 004
com.sun.el.ValueExpressionImpl.getValue(ELContext) 4 056 1 074 341 719 496
com.sun.faces.facelets.el.TagValueExpression.getValue(ELContext) 4 056 1 074 341 719 496
com.sun.el.parser.AstIdentifier.getValue(EvaluationContext) 3 711 982 338 980 650
com.sun.el.parser.AstValue.getValue(EvaluationContext) 3 446 913 442 311 746
com.sun.el.ValueExpressionImpl.getValue(ELContext) 2 458 650 138 832 528
com.sun.faces.facelets.el.TagValueExpression.getValue(ELContext) 2 220 585 812 675 869
com.sun.faces.facelets.tag.jstl.core.IndexedValueExpression.getValue(ELContext) 1 304 347 132 904 927
com.sun.el.parser.AstIdentifier.getValue(EvaluationContext) 1 304 347 132 904 927
com.sun.el.parser.AstValue.getValue(EvaluationContext) 917 245 066 762 856
com.sun.el.ValueExpressionImpl.getValue(ELContext) 555 148 884 634 159
com.sun.faces.facelets.el.TagValueExpression.getValue(ELContext) 555 148 884 634 159
javax.faces.component.ComponentStateHelper.eval(Serializable, Object) 447 118 680 278 898
javax.faces.component.ComponentStateHelper.eval(Serializable) 447 118 680 278 898
javax.faces.component.UIOutput.getValue() 350 93 907 854 779
com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(UIComponent) 350 93 907 854 779
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(FacesContext, UIComponent) 350 93 907 854 779
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(FacesContext, UIComponent) 350 93 907 854 779
javax.faces.component.UIComponentBase.encodeEnd(FacesContext) 350 93 907 854 779
org.primefaces.renderkit.CoreRenderer.renderChild(FacesContext, UIComponent) 350 93 907 854 779
org.primefaces.renderkit.CoreRenderer.renderChildren(FacesContext, UIComponent) 350 93 907 854 779
org.primefaces.component.commandlink.CommandLinkRenderer.encodeEnd(FacesContext, UIComponent) 255 67 852 464 388
javax.faces.component.UIComponentBase.encodeEnd(FacesContext) 255 67 852 464 388
org.primefaces.renderkit.CoreRenderer.renderChild(FacesContext, UIComponent) 255 67 852 464 388
org.primefaces.renderkit.CoreRenderer.renderChildren(FacesContext, UIComponent) 255 67 852 464 388
org.primefaces.component.outputpanel.OutputPanelRenderer.encodeEnd(FacesContext, UIComponent) 255 67 852 464 388
javax.faces.component.UIComponentBase.encodeEnd(FacesContext) 255 67 852 464 388
javax.faces.component.UIComponent.encodeAll(FacesContext) 255 67 852 464 388
javax.faces.component.UIComponent.encodeAll(FacesContext) 255 67 852 464 388
javax.faces.component.UIComponent.encodeAll(FacesContext) 255 67 852 464 388
javax.faces.render.Renderer.encodeChildren(FacesContext, UIComponent) 255 67 852 464 388
javax.faces.component.UIComponentBase.encodeChildren(FacesContext) 255 67 852 464 388
org.primefaces.renderkit.CoreRenderer.renderChild(FacesContext, UIComponent) 255 67 852 464 388
org.primefaces.renderkit.CoreRenderer.renderChildren(FacesContext, UIComponent) 255 67 852 464 388
org.primefaces.component.outputpanel.OutputPanelRenderer.encodeEnd(FacesContext, UIComponent) 255 67 852 464 388
Any ideas how to disable ChangeAwareClassLoader altogether? Or maybe there’s some other “standart” solution for problems like that?
August 27th, 2012 on 5:54 pm
Hi,
I have a query.
My client has an Enterprise Edition License for Oracle Weblogic Server.
I am currently using Oracle Weblogic Server 10.3.4.0 and 10.3.6.0.
Now my client is renewing the Licenses.
I want to know the license is based on what factor.
Is it the Number of Users or Hardware(CPUs)?
For eg: We all know that Oracle Database is based on the number of CPUs.
That is what I want to know.
Kindly help me with this query.
—
Andrew
October 4th, 2012 on 12:24 am
In a WLS cluster only one node can be admin server, when that host goes down we can’t login to the WLS console. In that situation how can I make another node in the cluster as admin server, could you please let me know the steps TO FAIL-OVER WLS ADMIN SERVER to one of the nodes in WLS cluster.
thanks a lot in advance
October 4th, 2012 on 1:15 am
Just to add to my previous question want to clairfy that I understand that there can be only admin server per domain. However if that server goes down, how can we promote another server as admin server. I know it cannot be automatic, but want to know the steps.
November 7th, 2012 on 4:24 pm
Hi,
I need advise on converting Single node managed sevrer (SOA+OSB+BAM) to be part of a cluster.
In short, I want to create a cluster configuration and I want to include my existing domain to be part of that cluser.
Please redirect me to any documentation (or) any high level steps.
Thanks,
November 28th, 2012 on 10:08 pm
Hi Jay,
I have a question reg the OHS plugin (mod_wl_ohs.conf) configuration.
My requirement is, I have an application deployed to both non-clustered managed server as well as two clustered instances.
How to configure the plugin to enable routing to both clustered and non-clustered servers at the same time?
Currently I have configured the Ifmodule and the Location elements manually in the mod_wl_ohs.conf where I have included the non-clustered managed server also as part of WeblogicCluster entry (managedserver:port,clusteredserver1:port,clusteredserver2:port) which actually I am not intended to do.
Pls help out
Thanks,
Madhu K
December 3rd, 2012 on 8:09 am
Thanks Rene,
I have one more question.
Does Weblogic (Oracle Weblogic Server) provides any built in SSO Agent (Similar to TAM Agent IBM WebSphere provides)which can forward SSO auth request to an external SSO Server such as Siteminder or OAM?
Thanks,
Madhu
January 5th, 2013 on 8:48 am
Hi, I will like to seek some advices from the experts here. Here it goes..
I running JSP on Oracle 11g, Weblogic 10.3.4. I have 2 managed server and a oracle admin server installed.
I am encountering an error where intermittently the log file of the 2 managed server and admin server will show java.net.SocketException: Software caused connection abort: socket write error. The application can run for 2 days without showing this error or it can show up a few times in a day. The server load are similar everday.
When this error is been encountered, the server will just stop accepting connections and will not be able to access the application. Even if I try to access the application through localhost, I will not be able to access the JSP pages and a 503 http status is shown but then I am able to access the static HTML page. I will not be able to access the Oracle 11g Weblogic admin console page as well. When I take a look at admin server log, it shows that the managed servers are disconnected from the admin server and vice versa.
Magically the application is able to recover by its own and the application is able to access again or worst, I need to restart the server as restarting the service of the application does not work.
The FTP connections that the application is connected to are closed as well.
I am able to ping to telnet to the server port. The event log doesn’t seem to be leaving any information. We did run wireshark to see the packet traffic and it seems that the application port is sending a RST, ACK packet to the load balancer.
Any kind help will greatly be appreciated. Should you need more info, feel free to ask me.
Thanks in advance.
Stacktrace:
A-000000>
January 5th, 2013 on 8:54 am
My apology for the above posting.
January 6th, 2013 on 5:47 pm
Hi Rene,
Thank you for your advise.
Currently we are using windows 2003 32 bit for the OS. The file descriptors is as default (40). While the Time_wait value is as default 240 secs.
January 10th, 2013 on 7:50 pm
Hi,
Just to update,
After around a week, the above exception happens again. We notice when we do a netstat, there is alot of Time_Wait between the application server and the load balancer. We have added the registry key to decrease the Time_Wait from the default 4 minutes to 30 secs.
Could the Time_Wait causes mentioned issue?
January 22nd, 2013 on 11:15 am
we are using weblogic 8.1 sp4 in our application and connects to a client which has weblogic 9.1 mp3
JMS Bridges are maintained at our end and topics are configured at client end. (Connectivity is not newly established)
Recently the JTA transaction count in client weblogic is getting increased continously, though there is no message sent from our side, meaning even though the JMS message is not sent the JTA transaction count is getting increased rapidly. The issue is getting sorted out only when we delete/truncate the tlogs/JDBC stores at our end which I think is not the correct resolution for the problem.
Does any one of you have any idea why is it happening? Also note that there is no non-commited transaction, all trasaction are completed. PFB snippet of small log found at our end, not sure whether this helps but do let me know if you want anything else
<JMS Debugging MSG_PATH! CLIENT/JMSProducer (id: ) : Successfully sent message ID:P>
<JMS Debugging MSG_PATH! CLIENT/JMSProducer (id: ) : Successfully sent message ID:P>
<JMS Debugging MSG_PATH! CLIENT/JMSProducer (id: ) : Successfully sent message ID:P>
<JMS Debugging MSG_PATH! CLIENT/JMSProducer (id: ) : Successfully sent message ID:P>
January 22nd, 2013 on 4:44 pm
Hi, Just an update. We are still encountering the problem based on the recommendation. Below is the dump threads that we managed to capture while we are able to connect to the admin server as we will get response 503 when connecting to admin server.
January 24th, 2013 on 9:44 pm
Hello,
It seems that the pageContext.getOut().flush() caused the socket write error. (Meaning flushing)?? It look like the stream has been closed.
We have pageContext.getOut().flush() in our doEndTag method of a Tag class as we are using JSTL tag. We call the pageContext.getOut().clearBuffer() manually and the application came alive. This include the console admin page as well which we are able to access. Just wondering, what could cause the buffer unable to flush or stream to be closed?
Any experts will like to comment.
March 3rd, 2013 on 1:54 pm
Hi Jay/Ravish,
I have added 2 managed servers to one of our servers. So totally there are 5 nodes now in the server. one of the managed servers, which was using around 0.6 GB of memory is using around 1.8 GB memory now and the graph shows constant increase alone (no decrease at all).
if I adde= more memory do you think the problem could be solved? the CPU seems to be normal as well….
Kindly help,
Thanks,
Amrita
March 8th, 2013 on 9:03 pm
Hi Rene,
thanks for the reply. Iam also thinking to find the root cause.
I used Jrockit and used the “Run Memory leak”.
I was able to find the byte[] array rate growth to be fast and when I drilled down the following 2 were around 80,000
1) weblogic.jms.common.ObjectMessageImpl
2) weblogic.jms.common.PrimitiveObjectMap
What could be the reason? Kindly suggest.
Thanks
Amrita
March 9th, 2013 on 10:37 pm
Hi Rene,
Thanks for timely reply
I havenβt configured any persistence in JMS server, but the connection factory delivery mode is now persistent.
Would this topic expire after sometime, if I make the delivery mode to non-persistent?
Thanks,
Amrita
Hi Rene,
There is some cache issue with my destination. So it ignores the topic sent.
For the topic I haven’t configured any expiration and no JMS stores.
I have asked similar questions in JMS best practices.
The only persistent configured is in connection factory for the distributed topic.
Since the destination ignores, can I assume the memory increases?
Kindly help
Thanks,
Amrita
March 18th, 2013 on 4:59 pm
We have WLS 10.1.3.5 with IDM/OAM(two domains in same server as its TEST environment) on Oracle Linux 5(64bit),when ever server reboots node manger is not starting managed servers,any clues why nodemanager is not starting managed servers..?
I have enabled CrashRecoveryEnabled=true
Here is nodemanager.properties.
——————————————————————————–
[oracle@oam nodemanager]$ cat nodemanager.properties
#Changed NM Listen Port
#Tue Mar 05 03:12:20 IST 2013
DomainsFile=/u01/Oracle/Middleware/wlserver_10.3/common/nodemanager/nodemanager.domains
LogLimit=0
DomainsDirRemoteSharingEnabled=false
PropertiesVersion=10.3
AuthenticationEnabled=true
NodeManagerHome=/u01/Oracle/Middleware/wlserver_10.3/common/nodemanager
javaHome=/u01/Oracle/Middleware/jdk160_24
JavaHome=/u01/Oracle/Middleware/jdk160_24/jre
LogLevel=INFO
DomainsFileEnabled=true
StartScriptName=startWebLogic.sh
ListenAddress=
NativeVersionEnabled=true
ListenPort=5556
LogToStderr=true
SecureListener=false
LogCount=1
StopScriptEnabled=false
DomainRegistrationEnabled=false
QuitEnabled=false
LogAppend=true
StateCheckInterval=500
CrashRecoveryEnabled=true
StartScriptEnabled=true
LogFile=/u01/Oracle/Middleware/wlserver_10.3/common/nodemanager/nodemanager.log
LogFormatter=weblogic.nodemanager.server.LogFormatter
ListenBacklog=50
here is my domain information in server.
=========================
[oracle@oam nodemanager]$ cat nodemanager.domains
#Domains and directories created by Configuration Wizard
#Tue Mar 05 05:24:37 IST 2013
OAMDomain=/u01/Oracle/Middleware/user_projects/domains/OAMDomain
IDMDomain=/u01/Oracle/Middleware/user_projects/domains/IDMDomain
March 19th, 2013 on 8:21 pm
Hi Rene,
Thanks for the explanation. I just checked the consumers for the distributed topic and I could see out of the 3 consumers, it just shows 1 or 2 and sometimes 0.
May be this is the reason why the memory increases and the number of current messages also increase?
What are the ways to increase consumer now? Will increasing heap memory for the consumer solve the issue (and also specifying XmX and XmS as same value – high) Do I re-deploy the consumer application? to add, will difference in CPU cause difference in JMS message consumption?
Kindly suggest.
Thanks,
Amrita
March 25th, 2013 on 5:08 pm
Hi Rene,
Will difference in CPU cores in servers cause this nodes to get unsynchronized?
However, I dont see any peak CPU utilization in any of the servers (within 40% in each server)
Regards,
AMrita
April 9th, 2013 on 4:45 pm
I have two managed servers in clustered when i have done the deployment with the new code. The code got applied to only one managed server not to the other. How to resolve this issue ?
April 12th, 2013 on 9:52 pm
Hi all, Does exactly know the answer to the following question.?
1. You want to use WLST to view metrics for a running domain. Which command should you issue to
navigate through the Mbean hierarchy containing the metrics?
A. runtime()
B. runtimeMbeanServer()
C. connectRuntime()
D. beginRuntime()
E. serverRuntime()
2. A customer wants to improve the availability of a web application and provide more predictable
scalability when scaling out the application.
Which Feature of WebLogic should you recommend to help solve this problem?
A. Oracle Web Grid
B. ActiveCache
C. Coherence Grid Edition
D. WebLogic Session Replication
E. Coherence Web Edition
3. Which action cannot be done in a scripted, automated fashion using WLST?
A. collecting run-time metrics and sending an email if user-defined thresholds are exceeded
B. configuring Clusters and Managed Servers
C. starting Managed Servers using the Node Manager
D. installing WebLogic binaries on a remote machine using Node Manager
E. configuring a Managed Server on a remote machine where the Node Manager isinstalled
butnootherManaged Servers from the domain exist
April 14th, 2013 on 12:08 am
Hi,
I am trying to set two way SSl client configuration setup in weblogic (WLI 10.3.0) platform where I have to send the soap request to the https webservice. I am having issue that my weblogic server not able to send the ssl client certificate to the server, but I can see in the ssl logs that my weblogic server is able to verfy the ssl certificate chain received from SSl server, when I sent the soap request to https webservice.
I tried below options, none of them are sending the client certificate to the SSL server.
1. I imported the root,server certificates to the custom trust store and ca signed client certificate to the custom key store.And selected the ‘Custom Identity and Custom Trust store’ option in the Keystores and SSL tab of my server.
2. As I am ServiceControl interface to send the soap request, this interface has option to set keystore,truststore values, I tried to set like below:
bankServiceControl.useClientKeySSL(true);
bankServiceControl.setKeystore(“D:\clientssl.jks”,”client”);
bankServiceControl.setTruststore(“D:\slresp_trust.jks”, “client”);
I found this article but this is for WLS10.3.6 which doesn’t apply to me : Specifying a Client Certificate for an Outbound Two-Way SSL Connection http://docs.tpu.ru/docs/oracle/en/fmw/11.1.1.6.0/web.1111/e13707/ssl.htm#i1194333
Any help is greatly appreciated !!
Thanks,
Suneeta
April 26th, 2013 on 9:34 am
Hi ertugrulaslan,
below are your answers for the questions, hope this helps.
1 ) E. serverRuntime()
2 ) I think its D. WebLogic Session Replication
3 ) D. installing WebLogic binaries on a remote machine using Node Manager
Regards,
Kiran
June 17th, 2013 on 3:17 pm
Hi Jay,
Is possible to configure a cluster in standalone server? deploying an application on multiple managed servers and implementing failover.
January 3rd, 2014 on 6:45 pm
Hi,
I am running weblogic version 10.3.6 in production mode. I have four EAR files deployed and has been working fine for more than a year. I have recently noticed that, all deployments have disappeared from the weblogic deployment summary window, as if someone has deleted them. Users can still login and and access the application but I can not make any administrative changes, how can I make these deployment appear again?
Thanks in advance
February 28th, 2014 on 5:05 pm
Benefits of using linux hugepages !?!
We have a weblogic domain with several maged servers and our host has lot of memory, 40 GB.
We are running Oracle Linux Server release 5.10 on Oracle VM 3.1.1
$ uname -r
2.6.18-371.1.2.0.1.el5xen
currently we have no hugepages configured. We use Jrockit:
$ ./java -version
java version “1.6.0_24”
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Oracle JRockit(R) (build R28.1.3-11-141760-1.6.0_24-20110301-1432-linux-x86_64, compiled mode)
When startin or stopping weobserve the following warning:
[ERROR][osal ] Unable to discover information about /mnt/hugepages
[WARN ][memory ] Could not acquire large pages for Java heap.
[WARN ][memory ] Falling back to normal page size.
Because hugepages are not configured and this is standard behaviour for jrockit to try and useit it givesthis waring
I would like to investigate the benefits of using hugepages
using top – shift m
Tasks: 181 total, 1 running, 179 sleeping, 0 stopped, 1 zombie
Cpu(s): 12.1%us, 2.3%sy, 7.9%ni, 76.4%id, 0.6%wa, 0.0%hi, 0.3%si, 0.4%st
Mem: 40960000k total, 40691564k used, 268436k free, 572888k buffers
Swap: 4194296k total, 252496k used, 3941800k free, 5977428k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
21976 oracle 15 0 6551m 5.2g 4968 S 8.0 13.2 92:26.65 java x_spaces_ms1_2
20879 oracle 16 0 6525m 5.1g 5012 S 0.0 13.2 102:53.12 java x_spaces_ms1_1
24135 oracle 15 0 6397m 5.1g 32m S 10.6 13.0 120:34.71 java x_customportal_ms1_2
23088 oracle 16 0 6370m 5.0g 30m S 17.3 12.9 124:14.66 java x_customportal_ms1_1
18549 oracle 17 0 3937m 2.6g 4292 S 6.0 6.8 82:46.72 java x_ucm_ms1
19030 oracle 17 0 3830m 2.5g 5236 S 3.7 6.4 22:25.06 java x_collaboration_ms1
15050 oracle 20 0 2949m 1.4g 5980 S 5.6 3.7 106:46.78 java x_policy_ms1
20062 oracle 17 0 2784m 1.4g 5240 S 4.0 3.7 19:17.70 java wls_ods1
18026 oracle 17 0 2683m 1.4g 5224 S 2.7 3.6 16:11.95 java x_admin
25117 oracle 17 0 2221m 565m 5416 S 2.3 1.4 14:45.13 java x_utilities_ms1
18635 oracle 18 0 1648m 158m 3256 S 0.0 0.4 108:22.89 java nodemanager
15020 oracle 25 0 1395m 106m 3948 S 0.0 0.3 1:27.22 java nagios
To my opnion it would probably be better to use hugepages configuration on the Linux OS. Any suggestions?
ps: vmstat shows:
$ vmstat
procs ———–memory———- —swap– —–io—- –system– —–cpu——
r b swpd free buff cache si so bi bo in cs us sy id wa st
1 0 141528 238444 637616 6155372 0 1 9 23 1 0 16 2 80 1 1
thanks in advance
March 14th, 2014 on 3:33 pm
what is machine? use it?
why we should configure machine to managed servers?
May 2nd, 2014 on 6:57 pm
Display Statistics of the following
Home >Summary of Deployments >Summary of Servers >Summary of Deployments, Web Services
Display, Active Count, Error Count etc of all my webservices
I found the MBEAN WseeV2RuntimeMBean
First script π
Usings windows 2008 server weblogic 12
1.connect(‘system’,’weblogic’,’XXXX:9999′)
2.wls:/MYNAME/ServerConfig>domainRunTime()
Change to Domain Runtime
2.1 wsl:/delteke/domainRuntime>
How to change to deployments to get the statistics
Thanks
January 22nd, 2016 on 2:06 pm
Hi,
I am using weblogic8.1 but we need to connect to the oracle 12c DB.I have created the JDBC pool,But when i press Test connection i get a error ” ora-28040 no matching authentication protocol”.
Could some one help me out how to resolve this error.
The firewall is already opened to that 12c DB instance.
Or at first place is it possible to connect from 8.1 version to oracle 12c DB?
January 22nd, 2016 on 2:24 pm
Hello Tjbgopal,
By any chance are you using “classes12.jar” JDBC Driver deployed on WebLogic 8.1 classpath? If yes, then can you please try switching to the ojdbc14.jar or any latest JDBC driver and see what happens. If that is not the case then can you please post the complete stackTrace of the error.
Also WLS 8.1 is too old and even it is EOL (End Of Life). So i am afraid that it is not even certified with Oracle 12c.
Regards
Jay SenSharma