I couldn’t locate the data folder in the admin server. I am using the weblogic 8.1.3 version which doesn’t have the servers folder. The admin server is just present in the domain folder and when i go into that admin server folder, i cannot see the data folder.
All the folders that i could see are
.internal, .wldonotdelete, ldap, pstore and stage and a few files.
This is rakesh again. I have one more issue. In the same architecture described before, there are two security reams configured. One is the default and the other is one specific to an application. I changed the realm configuration in “domain-wide configuration” in the console menu to the default one from the specific one. Now, when i try to open the console using the command prompt, there was an error regarding the admin console username and password and the command prompt disappeared abruptly. Now i deleted the boot.properties file and created a new one with clear text username and password. But i get this following error.
weblogic.security.securityinitializationexception authentication for user weblogic denied
Apart from Deleting the “boot.properties” file …additionally u need to delete the “data” directory as well from the following location “<DOMAIN_HOME>serversAdminServer”. Because inside the “data” directory you will find the “ldap” data files …which is old…So u must delete the “data” directory…then try to start the Server.
i deleted the directory already, but whenever i start the admin server from startweblogic.cmd, i get the same error and the ldap folder gets newly created.
Also, the boot.properties file i created is not getting encrypted. And, when ever i use startweblogic.cmd its asking me for a username and password. But i have already defined the boot.properties file.
Now try to start your Server. Note Dont Put any heading or Trailing Space apart from above two lines in this file. Use “dir” (Windows) or “ls” (Unix) commands to make sure that the file name is “boot.properties” and NOT anything else like “boot.properties.txt”
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
Hello Jay
We have a Production Server, which has one domain and this domain has one application. Its using weblogic 9.1.0.0.
I have seen that there is one Admin Server and 1 Managed Server and the application has been deployed onto the Managed Server and the application is working fine.
I see that the admin console is not accessible. When i saw config.xml i can see that the Admin Server port is not configured.
So my Question is if, i change the config.xml file to configure an admin port for the console to run, do i need to restart the Server. If so, since it is a production Server and there are few other applications running on it. So i have to inform everybody.
SO if i configure the admin port in config.xml do i need to restart the admin server or not ???
I just want to know, that, in my environment, weblogic 9.1, 1 domain, 1 admin server and 1 managed server. There is one application deployed onto the managed server.
the admin server isnt’t configured to use any listen address or listen port
but i can access the application by using the url which is deployed on to the managed server.
So, how do i give the port number, so that i can access the admin console without restarting the server.
By default the AdminServer will run on 7001 Listen Port and on “localhost” Listen Address…until we don’t change it. If you want to change the Listen Port of the Server then Dynamically (Without restart) you can do it from AdminConsole.
You can even do it using JMX or WLST code. Like:
we have a production server, which has 1 admin server and 1 managed server. There is an application deployed onto the managed server. The admin server is not running, but the Managed Server is running in MSI Mode. and the application is also working fine. But we need to update the application, so, we need to stop the application. SO how do we stop the application, i am unable to use the admin console, so i cannot do it from the console. So is there a way to stop it. Also, can we start the application without restarting the amanaged server, because if we restart the managed server, since the admin server is not running, i guess it will not start(The managed Server). Can you please help.
MSI mode of Managed Server only gurantees that Managed Servers can be started without AdminServer Running…because In this case Managed Server uses the “msi-config.xml” file which is basically the “config.xml” file of the time when the AdminServer was last running.
AdminServer only has a right to make any configuration changes or to deploy / undeploy /redeploy Application/resources on any Server/Clusters…so it is not possible to make any modifications on the Applications which are running on ManagedServers. You will have to start the AdminServer in order to make any changes in the application.…there is no other way.
Once the admin Server is running you can deploy/redeploy/undeploy the applications either using weblogic.Deployer utility or through the AdminConsole.
Can you provide me some tools (names) for monitoring weblogic application server regarding the performance, and also a few tools for monitoring the applications.
I know a few tools, but i don’t know whether they are cost effective efficient, so i want to get an expert review on a few tools
1) a tool for monitoring weblogic performance like server performance, like java heap size, memory stats and other performance metrics
2) a tool for monitoring the applications deployed on weblogic server, their performance, how much amount of memory they take and other performance metrics.
Hi Rakesh,
Using Tools like JConsole (available inside JAVA_HOMEbin directory) is good for JVM and Heap monitoring which is free as well. Like: http://java.sun.com/developer/technicalArticles/J2SE/monitoring/
Apart from this if you want to check the through put of a perticular application and performance then you can use tools like JMeter.http://middlewaremagic.com/weblogic/2010/05/17/wls-performace-testing-using-jmeter/
There are some more WebApp (MBean based) applications available free in the Google…like “wlnav.war” which can be used to monitor the WebLogic.
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
Hi Rakesh,
Java2Demo.jar is an Executable Jar file…so as soon as you double click on it in WINDOWS …it will automatically start working… Because it requires only JRE to run.
But when we talk about the EAR or WAR file …it requires a Container (WebContainer/Enteropise Container) where it can be run. So if you want to analyze EAR / WAR then you must analyze your Server where the Applications are deployed. Please refer to the JConsole documentation for more details.
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
This question is about JSP, Servlets and Session in Weblogic web container.
I use Weblogic 10.0 MP2 and i have a web app and ejb app in my EAR project.
In my index.jsp i receive a String with user info like [user|name|lastname|idProfile|appName] and i need to use this information in others part of my web app, in 3 servlets to be exact.
So what i did is create a session like this in the index.jsp:
HttpSession session = request.getSession(true);
.
. creating html form stuff
.
out.println(
“” +
)
}
Ok when i view the source code in my index.jsp the params looks ok (i put a input hidden with the pstrParamsLogin). But when i look for the source code in my servlet the input hidden is NULL 🙁
Can u help me with this? i need to get those values but i can not pass them via HTTP POST or GET :_
Hi Mgaldames,
Can u please try to remove the below line in your “index.jsp” HttpSession sesion = request.getSession(); because by default the HttpSession will be available in the JSP page. Make sure that you use the Inbuilt “session” variable and Not your own defined “sesion”.
Change the following in your “InfoServlet.java” Servlet as well…. HttpSession session = request.getSession(false); // Donot pass TRUE as u passed in your original code.
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
i think in my last msg the string inside out.println is not showed so i will put again.. if im wrong plz delete this msg admin:
out.println(
<input type=’hidden’ name=’pstrParamsLogin’ value='”+ session.getAttribute(“pstrParasLogin”) “‘ />
);
This new question is related to JavaMail API and Weblogic 10.0 MP2
BTW thanx so much for ur help in the last question 😀
Ok i am using WLS 10.0MP2 and i want to use the last JavaMail API 1.4.3 and the Weblogic use version 1.4.0.2 of this API.
If i want to use 1.4.3 should i reference the packages in the <prefer-application-packages> on weblogic-applicacion.xml and put the jar in APP-INF/lib?
Hi Mgaldames,
Yes, if you want to use a different version of Mail API JAR inside your application then you have only 2 Options…
1). If you have an EAR Application then use on “weblogic-applicacion.xml” and put the jar in APP-INF/lib
2). If you have a Simple WAR Application them inside “WEB-INFlib” directory and then write the “weblogic.xml” file with the following Part of entry inside it.
<container-descriptor>
<prefer-web-inf-classes>ltrue</prefer-web-inf-classes>
</container-descriptor>
NOTE: above Tags will not be able to override the Classes which are loaded as part of the Boot Strap ClassLoader of the JVM. Means the Basic classes which are loaded as part of “endorsed” directory of JVM or from the rt.jat or tools.jar.
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
The env is dev env, windows 2k3 and weblogic 9.2.3.0
Our setup has 1 admin server with 2 managed servers that form a cluster and an application that has been deployed on to the cluster.
But recently we found that the cluster license or the license.bea file was invalid or corrupted.
So, i created a new managed server and trying to change the target for the application to the newly created managed server, which is not present in the cluster.
I am getting an error.
#### <> <Failure occured in the execution of deployment request with ID '1290202178146' for task 'weblogic.deploy.configChangeTask.3'. Error is: 'weblogic.application.CannotRedeployException: Module 'SAAEJB.jar' has the same ClassLoader as the Application 'SAA'. Consider redeploying the entire application.'
weblogic.application.CannotRedeployException: Module 'SAAEJB.jar' has the same ClassLoader as the Application 'SAA'. Consider redeploying the entire application.
at weblogic.application.internal.AppClassLoaderManagerImpl.updatePartialDeploySet(AppClassLoaderManagerImpl.java:288)
at weblogic.application.internal.flow.TailModuleRedeployFlow.validateClassLoaderStructure(TailModuleRedeployFlow.java:135)
at weblogic.application.internal.flow.TailModuleRedeployFlow.validateRedeploy(TailModuleRedeployFlow.java:97)
at weblogic.application.internal.BaseDeployment$ValidateRedeployStateChange.next(BaseDeployment.java:801)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
at weblogic.application.internal.BaseDeployment.validateRedeploy(BaseDeployment.java:301)
at weblogic.application.internal.BaseDeployment.stop(BaseDeployment.java:394)
at weblogic.application.internal.DeploymentStateChecker.stop(DeploymentStateChecker.java:264)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.stop(AppContainerInvoker.java:252)
at weblogic.deploy.internal.targetserver.operations.ModuleRedeployOperation.moduleLevelRedeploy(ModuleRedeployOperation.java:133)
at weblogic.deploy.internal.targetserver.operations.ModuleRedeployOperation.doPrepare(ModuleRedeployOperation.java:79)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:718)
at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1185)
at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:247)
at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:157)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.prepare(DeploymentReceiverCallbackDeliverer.java:40)
at weblogic.deploy.service.internal.statemachines.targetserver.AwaitingContextUpdateCompletion.callDeploymentReceivers(AwaitingContextUpdateCompletion.java:156)
at weblogic.deploy.service.internal.statemachines.targetserver.AwaitingContextUpdateCompletion.handleContextUpdateSuccess(AwaitingContextUpdateCompletion.java:66)
at weblogic.deploy.service.internal.statemachines.targetserver.AwaitingContextUpdateCompletion.contextUpdated(AwaitingContextUpdateCompletion.java:32)
at weblogic.deploy.service.internal.targetserver.TargetDeploymentService.notifyContextUpdated(TargetDeploymentService.java:225)
at weblogic.deploy.service.internal.DeploymentService$1.run(DeploymentService.java:189)
at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
Also, i have noticed that what ever changes i make and click on activate changes, this is the error thats coming.
Hi Rakesh,
It looks like a Class Loader is not able to find the required classes in it’s owm repository when you are trying to redeploy the application. So you can try the following things…
1). Take a backup of the “config.xml” file in AdminServer.
2). Now edit the original “config.xml” file on AdminServer and remove the <app-deployment> Tag which points to your Application which is causing the redeployment issue. Like following kind of entry u need to remove for your application
Example:
3). Restart the Admin Server.
4). Now restart your Managed Server where u wanted to deploy/redeploy the application.
5). Now freshly redeploy the application.
Round-robin : –
It will cycles through a list of managed servers in order. Like MS-1 then MS-2 and then MS-3, again now the request would go to MS-1 then MS-2 and MS-3 that way.
Weight-based:
We can assign that MS-1 should have 60% of load and others should have 20 % each load. This way 60 % of request load is given to MS-1. This algorithm is used when you know that your MS-1 can handle that much load and other 2 servers cannot handle that much load.
Random:
As the name speaks for itself the lad balancing of the requests are routed to servers at randomly to any servers.
Now it is totally dependent of the environment which algorithm is good for your architecture. However default value is Round-robin.
Horizontal Clustering
This means that clustering is done with 2 or more boxes having n-number of managed servers in it but in the same cluster. Example is shown below.
Box-1
MS-1 => C1
MS-2 => C1
Box-2
MS-3 => C1
MS-4 => C1
Vertical Clustering
This means that clustering in done in one box with n-numbers of managed servers.Example is shown below
Hi Rakesh,
From WebLogic Configuration wise you need not to make any additional change rather than creating simple Horizontal Clustering as described in the following Post: http://middlewaremagic.com/weblogic/?p=971
You need to just make sure that there is no Network Communication issue or No Multicast issue between PRODSERVER1, PRODSERVER2
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
Also, when i restart the weblogic server services from the “services” in the “administrative tools” in the control panel, the app runs fine for 3 or 4 days and then the same error occurs and then after restarting the app, it runs fine for another 3 or 4 days and the same thing happens.
Hi Rakesh,
The javax.transaction.HeuristicMixedException: (weblogic.jdbc.wrapper.JTSXAResourceImpl, HeuristicHazard. Exception indicates there is a SEVERE Fatal Failure occured during Transaction. And in your case the cause of this looks like “Software caused connection abort: socket write error”.
Please check for any kind of Network Bleach during the Tmestamp in which you saw this error, The Above transaction failure can also happen due to access read write operation at Operating System level.
But if you are facing this kind of issue very frequently (as u mentioned after every 3-4 days), I will recommend you to open a Oracle WebLogic Support ticket in this regards. Because Transaction Failure once or twice is OK but if it happens that means there immediate and in deapth analysis is required.
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
I have installed weblogic in /opt/A and /opt/B directory.There are 2 domains. One in /opt/A and other in /opt/B. These 2 domains are independent and there is no port conflicts .
The admin server that belongs to A is on 7001 and for B is on 9001
Its not a Weblogic bug is totally a browser behaviour. I believe this issue you might be facing this issue when opening the console with two tabs on FireFox / Chrome browser.
These browsers keeps that session open for the same site or application which can been also seen if you open a Gmail account and when just type orkut.com in the new tab of the same browser then it would automatic get into your profile page (i.e. if both site uses the same username and password) which is called SSO Single Sign On this is done because you have already given the credentials in the first tab.
However in the case of WLS it makes the previous session closed so that a new session can be opened, this is a default behaviour and does not looks like a bug.
1) This is not SSO.As the admin server for both weblogic have different password and user name.These are 2 different application all togather installed on the same box.
2) I tested this with same browser having 2 instances open then accessing the admin console of both the weblogic.In this case also we are logging out of previously opened
3) Why then same thing does not happen when we access admin server for weblogic which is installed on 2 different boxes.In this case, weblogic opens fines and we can work for both the server.
Try to login the Admin close which is on the same box but one Admin Console having th port 7001 and other 9001 from the same browser on firefox or chrome as the browser.
In your Chrome browser try to open a new browser window from the following path and do the same test again.
Wrench(tools) menu / open new window without history or New incognito window
This time I think you would get your answer. 🙂
With the above new window it would work fine when you open two admin consoles using different port number, because now this new window would not be attached to any session to the previous windows or tabs hence it starts a new session for itself only. The same case was for IE6 also when opened in 2 different windows.
Hope these test would explains that its a browsers feature and not WLS bug.
It is understandable that when we open admin console in private browsing then then we will not hit this issue.
But can we avoid this even if we have server on the same box by some configuration
WebLogic Server uses software modules called muxers to read incoming requests on the server and incoming responses on the client.
These muxers are of two classified into Two types.
1.Java muxer
2.Native muxer.
Native provide superior scalability because they implement a non-blocking thread model.
When a native muxer is used, the server creates a fixed number of threads dedicated to reading incoming requests.
BEA recommends using the default setting of selected for the Enable Native IO parameter which allows the server automatically selects the appropriate muxer for the server to use.
Most application servers use thread pools to manage execution tasks of a certain type. A thread pool is merely a collection of threads set aside for a specific task. In the example thread above, I’ve shown you a thread from the WebLogic thread pool (or queue) named “weblogic.socket.Muxer”. A pool of these “Muxer threads” is set aside by WebLogic to manage reading and writing data for network connections coming into WebLogic.
Thread dump log:-
“ExecuteThread: ’1′ for queue: ‘weblogic.socket.Muxer’” id=28 idx=0×68 tid=24640 prio=5 alive, in native, blocked, daemon — Blocked trying to get lock: java/lang/String@0x15a00898[fat lock] at jrockit/vm/Threads.waitForUnblockSignal()V(Native Method) at jrockit/vm/Locks.fatLockBlockOrSpin(Locks.java:1679)[optimized] at jrockit/vm/Locks.lockFat(Locks.java:1780)[optimized] at jrockit/vm/Locks.monitorEnterSecondStageHard(Locks.java:1312)[optimized] at jrockit/vm/Locks.monitorEnterSecondStage(Locks.java:1259)[optimized] at jrockit/vm/Locks.monitorEnter(Locks.java:2466)[optimized] at weblogic/socket/EPollSocketMuxer.processSockets(EPollSocketMuxer.java:153) at weblogic/socket/SocketReaderRequest.run(SocketReaderRequest.java:29) at weblogic/socket/SocketReaderRequest.execute(SocketReaderRequest.java:42) at weblogic/kernel/ExecuteThread.execute(ExecuteThread.java:145) at weblogic/kernel/ExecuteThread.run(ExecuteThread.java:117) at jrockit/vm/RNI.c2java(IIIII)V(Native Method
In Production Environment We must enable Native I/O. The default value is 33.I am also using the Same value but frequently i get “”ExecuteThread: ’1′ for queue: ‘weblogic.socket.Muxer’” id=28 idx=0×68 tid=24640 prio=5 alive, in native, blocked, daemon — Blocked trying to get lock: ” .
In oracle document the default value is based on your enviroment. What calculation we have to change the Socket Readers Default value.
Hi Vinoth,
There is no standard formula to calculate this thing. The value comes out after a load test on that particular environment.
If it was possible through a standard Formulas to calculate the same then Oracle would have already provided it. 😉
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
Hi gurus,
I have deployed an war file application containing media files (pic.jpg and sound.avi)in weblogic 10.3.4.0
Although it works successfully, the problem is it takes a lot of time of open up as far as media goes. However the same war file being deployed in Tomcat does not take time at all. It opens up in less than 3 seconds. but in weblogic it opens up after 10 seconds which is very slow.
The database connection string is not inside weblogic, it is contained inside the war file. Moreover the database that holds these media files is MYSQL. I had coordinated with the MySql DBA and asked for every possiblity like index building or re-building, plus schema analysing. They did it all from their end. However the same result persists for weblogic. This is a project about to go live. And we want to perfect it. Please help.
It seem that 10 seconds is fare enough speed, however if you have already tune-up from your DB side and still want to improve the response time then we would suggest you to have a case opened with the Oracle Support team and check with them as they would have a better idea on it, also do not forget to share it with us so that others can get benefits out of it.
Hi ,
i am having a problem coming up with a solution …
My design is like as this ..
1. I am calling a backend webservice,that is providing me an id value with time window of 14 minutes of activeness to call other backend services.
2. what i wanted is the pooling of these id’s so as to make a session pool, where i can store and consume these id’s by checking there timestamp not to be greater than 14 minutes .
3. Suppose id is being in use for 2 minutes for one flow to work, then again id is being pushed to session pool as the id is still active to be used for other callouts /flows
4. so what type of pooling technique should i used , is there any weblogic session pooling capablity is there , eiter should i go for DB Pooling or queues .
Please provide the needfull !!!
Hi Abhinav,
Making a Hashtable at application level and putting the ID and it’s timestamp in that should work i think in this case.
If you have a Clustered setup then You can bind this Hashtable object to the Cluster wide JNDI tree. Database also can be a good option but database interaction is little causly compared to Direct JNDI lookup…so performace wise Database usages will not be best in this case.
Please refer to the following article to bind any object inside the JNDI tree of a Server/ClusterNodes: http://middlewaremagic.com/weblogic/?p=1809
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
I recently got this error in Production Environment.In this error they doesn’t mentioned the Application Name for Stuck thread.How to resolve this issue in Production Environment.
Error Log:-
####Apr 27, 2011 2:21:19 PM IST> Error> WebLogicServer> localhost> psMS1> [ACTIVE] ExecuteThread: ‘0’ for queue: ‘weblogic.kernel.Default (self-tuning)’> WLS Kernel>> > > 1303894279235> BEA-000337> [STUCK] ExecuteThread: ‘1’ for queue: ‘weblogic.kernel.Default (self-tuning)’ has been busy for “612” seconds working on the request “weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl@1cf6244”, which is more than the configured time (StuckThreadMaxTime) of “600” seconds. Stack trace:
Thread-22 “[STUCK] ExecuteThread: ‘1’ for queue: ‘weblogic.kernel.Default (self-tuning)'” alive, in native, suspended, waiting, priority=1, DAEMON> {
— Waiting for notification on: java.lang.UNIXProcess@2c75ea5[fat lock]
java.lang.Object.wait(Object.java:???)
java.lang.Object.wait(Object.java:485)
java.lang.UNIXProcess.waitFor(UNIXProcess.java:164)
in.sis.ps.jms.ddc.JavaProcess.executebatchfile(JavaProcess.java:10)
in.sis.ps.jms.ddc.ReceiveBatchFile.onMessage(ReceiveBatchFile.java:49)
sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:???)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:27)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:575)
com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:102)
com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:86)
com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:102)
com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:151)
$Proxy138.onMessage(Unknown Source)
weblogic.ejb.container.internal.MDListener.execute(MDListener.java:403)
weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:352)
weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:264)
weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4564)
weblogic.jms.client.JMSSession.execute(JMSSession.java:4060)
weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3746)
weblogic.jms.client.JMSSession.access$000(JMSSession.java:114)
weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5096)
weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
weblogic.work.ExecuteThread.execute(ExecuteThread.java:198)
weblogic.work.ExecuteThread.run(ExecuteThread.java:165)
HI Vinoth,
Based on a single thread Trace it is not possible to tell what exactly could be the problem. For thread dump analysis at lease 4-5 thread dumps are required each should be taken in the interval of 10 seconds each.
Based on the Above stackTrace …If you will see the same stackTrace for other Threads as well which are STUCK then you will need to contact your Application developer team and should ask them to recheck the code of following API: in.sis.ps.jms.ddc.JavaProcess.executebatchfile(JavaProcess.java:10)
Here it looks like application is trying to process some batch activities or batch files which is taking more time …so please look at the code or look at the Operating System if for Batch processing enough resources like memory and CPUs are available or not.
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
Hi Ravibopara,
Stage mode deployment is a good option for production environment.
To maintain different versions of application you can refer to the following article: http://middlewaremagic.com/weblogic/?p=394
To Dynamically change some part of the application module or few JSPs without redeploying the whole app you can refer to the partial deployment feature of WebLogic as explained in the following link: http://middlewaremagic.com/weblogic/?p=578
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
I am coming up with a problem related to coherence handling and usage .
My design is that i want to make a cache that would be having a key but would map to multiple values,
such that with a single key i would be able to get multiple different records
Real use case is as follows :
1.
A backend service is providing me an different session_id for a similar request every time i make a call to that session web service.
2.
To fully utilize the session_id time usage window, i want that, every time a backend call is made, session_id’s generated would be stored up in the cache,
with a same key “ACTIVE” in a cache and after the workflow gets over, i again wanted that session_id’s to be updated in the cache but with a different key “IDLE”
3.
Would it be possible to have ‘1’ to ‘Many’ mapping possible in cache, here 1 refers to cache key (“ACTIVE/IDLE”) and many refers to cache values(session_id’s)
Cache_1 FIRST CASE:
Key Value’S
ACTIVE 1234
ACTIVE 9876
ACTIVE 8889
ACTIVE 5555
ACTIVE 7787
AFTER THE FLOW IS OVER AND WE NEEED TO UPDATE THE CACHE
Cache_1 SECOND CASE :
Key Value’S
IDLE 1234
IDLE 9876
IDLE 8889
Please provide suggestion to handle the above usecase
Regards,
Abhinav Gupta
public class Active implements Serializable {
private Integer activeID;
private List<Integer> sessionIDs;
// accessors
// implement equals and hashcode based on activeID
}
To use the Active entity you can use something like
NamedCache cache = CacheFactory.getCache("active");
Active active = new Active();
active.setActiveID(10);
List<Integer> activeSessionIDs = new ArrayList<Integer>();
active.setSessionIDs(activeSessionIDs);
activeSessionIDs.add(2256);
cache.put("ACTIVE", active);
We are planning to upgrade from weblogic 10.3.3 to 10.3.4 version.
There are 45 applications running in pre-production.
Could you please share some good practices for upgrading from 10.3.3 to 10.3.4?
Is it possible to upgrade without disturbing existing domains as there are lot of data sources, JMX Modules, users, arguments…
NOTE: WebLogic Server applications do not need to be undeployed. In most cases, WebLogic Server applications can be run without modifications in the new WebLogic Server 10.3.3 or WLS10.3.4 application environment.
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
Hi All,
I am facing some issue bringing up the admin server. Let me give some background first!
Environment: QA
OS: Red hat OS running on VMWare
Weblogic: 10.3.0
JVM: Jrockit
Nodemanager: scriptbased
System admin team upgraded the RAM from 8GB to 16GB on VMware. Before they did their task I had to shutdown the application. So I shutdown the 3 managed servers and admin server from the console.
After they bought the servers back up online after RAM upgrade, I tried to bring up admin console by using the script ./nmstartAdmin.sh but admin server did not start and here is what I saw in console logs:
Can you please let me know what the issue could be? I am totally stuck! How should I bring up the admin now??
I did not get any pointers to solve this issue from oracle forums as well. One of the solution I found said to remove the file adminserver.lok and restart! I tried this solution but it didnt work!
HI Prasad,
We need to check the log of Admin Server to know why the Admin Server did not come back. Can you please paste the Server log of Admin server? Looks like your Logs which you tried to display is not visible here so in order to paste your Logs/Exceptions you can do the following: http://middlewaremagic.com/weblogic/wp-content/uploads/2009/08/How_to_Post_Comments.jpg
Or send us the AdminServer log and related data in “contact@middlewaremagic.com”
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
Hi Pradeep,
In your Server log i can see the following Error Code “BEA-000362” and the problem looks like the filw “-rw-r–r– 1 wlsplat wls 0 Jul 29 18:02 SOMENAME_admin.lok”.
So please try the following:
1). Stop the AdminServer
2). Delete the file “$DOMAIN_HOME/servers/AdminServer/tmp/SOMENAME_admin.lok”
3). then restart your servers.
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
Hi Jay,
I tried that one but it didnt work! Infact I took a backup of tmp folder and removed it entirely and then tried to restart. For some reason none of these steps are working!
BTW, what does this error mean Jay? I know it is something to do with locks! But honestly I am unable to figure out the fix for this one!
There is No way or Tool available to migrate the users from weblogic embedded ldap to another third party ldap server and vice-versa. The WebLogic’s Embeded LDAPs Data can be imported and exported to another WebLogic Domain only (Not to external ldaps).
In order to export WebLogic’s Ldap infrmations liek Username/passwords you cna do the following:
1). Login to WebLogic AdminConsole of (Suppose Domain_A)
SecurityRealms–>myrealm–>Migration (Tab)–> Export (Subtab)–>Export Directory onServer (Enter path of some existing dorectory here) then click on Export button. This is create some files (which contains user informations which can e imported to any pther WebLogic Domain)
2). To Import the above User Data into the embedded LDAP of another weblogic Domain you can do the following:
SecurityRealms–>myrealm–>Migration (Tab)–> Export (Subtab)–>Import
But there is no such tool available to migrate the External LDAP user database to the WebLogic’s Embedded LDAP, so this you will have to do manually. Or you can refer to the following WLST Script to do the same thing in less manual way. http://middlewaremagic.com/weblogic/?p=4981
how do i create a weblogic url without using a port number. This is the issue. I have the QA environment in windows 2k3, in weblogic 9.2.2.0 version, and this machine hosts several applications.
Any third party tool you recommend to deploy weblogic to multiple hosts. Say i want to deploy weblogic binaries 40 hosts and then run wlst on each to create the domains.
Issue:while adding the targets in the subdeployment
OS: RHEL 6 – 32bit
WLS: 10.3.0
Jdk: Sun 1.6_20 , Xms256 Xmx512
in the medrec sample application it is showing the target as MedRecJMSServer, but when we are trying to give the target as qacls it is only showing MedRecJMSServer in the qa envinronment. please suggest us how to overcome that problem.
Tags
These are the params for the startup script of the production mode, I just want a general idea of what are the values that can be changed when it is used for the development mode?
I am a begineer, if anyone can help on this issue, it would be great. Thanks
Hi Ravish/Jay/Ray,
In general sense, can you guess give some idea on what to consider while setting up throttling numbers for http (number of sessions, http connection), JMS (message flow, bytes) etc with explanation and some example? I know this is probably a vague question but if you can give explanation would be great.
Thanks guys for your help and greatly appreciate it..
I am getting the following browser error after doing deployment from weblogic.deployer in ” EXPLODED DIRECTORY ” fashion.Please respond what can the issue be
***********************************
Error 403–Forbidden
From RFC 2068 Hypertext Transfer Protocol — HTTP/1.1:
10.4.4 403 Forbidden
*******************************
command used is
java weblogic.Deployer -adminurl t3://localhost:7001 -username weblogic -password weblogic -name envAudit -deploy D:datajmx_projectenvAudit.war
i have apppended the .war name behind the “envAudit” directory to deploy the application in exploded format.
plssssssssssssssssssss respond
Hi vikramjeet,
403 Error is an HTTP Response code which indicates that You dont have required credentials or permission to access the application. It has nothing to do with “weblogic.Deployer” or “Exploded Deployment”.
Just open the “envAudit.war/WEB-INF/web.xml” file and then check if there is any <security-constraint> or <role-name> is defined or not ?
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
Hi Team,
Can you please provide me the scripts which automatically sends an email to us when the Weblogic servers are in Warning state or shutdown state. Thank you.
Hi All,
I am facing an issue that one of my managed server in SOA domain was running but with an warning message of STUCK THREAD. when I investigated in logs I found as follows:
LOGS:
#### <> <Disable and freeze users called on connection pool "SOADataSource-rac4" by "”.>
#### <> < ResourceAllocationException thrown by resource adapter on call to ManagedConnectionFactory.createManagedConnection(): “Internal error: Cannot obtain XAConnection weblogic.common.ResourceException:
SOADataSource(SOADataSource-rac1): Pool SOADataSource-rac1 is Suspended, cannot allocate resources to applications..
SOADataSource(SOADataSource-rac2): Pool SOADataSource-rac2 is Suspended, cannot allocate resources to applications..
SOADataSource(SOADataSource-rac3): Pool SOADataSource-rac3 is Suspended, cannot allocate resources to applications..
SOADataSource(SOADataSource-rac4): Pool SOADataSource-rac4 is Suspended, cannot allocate resources to applications..
at weblogic.jdbc.common.internal.MultiPool.searchHighAvail(MultiPool.java:505)
at weblogic.jdbc.common.internal.MultiPool.findPool(MultiPool.java:178)
at weblogic.jdbc.common.internal.ConnectionPoolManager.reserve(ConnectionPoolManager.java:89)
at weblogic.jdbc.jta.DataSource.getXAConnectionFromPool(DataSource.java:1677)
at weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:446)
at weblogic.jdbc.jta.DataSource.connect(DataSource.java:403)
But all my applications are working up & running.
Please help me in resolving this issue ASAP.
public class LogInPassthroughAction extends Action {
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
try {
System.out.println("In LogInPassthroghAction:");
HttpSession session = request.getSession(false);
if (session != null) {
session.invalidate();
}
String userId = request.getParameter("j_username").trim();
System.out.println("The user ID which is entered is "+userId);
String password = request.getParameter("j_password");
System.out.println("The Password which is entered is "+password);
if ((password != null) && (password.length() > 8)) {
password = password.substring(0, 8);
System.out.println("The Password after making it as substring "+password);
} else {
throw new Exception("To Login use pwd > 8 chars");
}
session = request.getSession(true);
List assignedRoles = new ArrayList();
RAMUser user = new RAMUser(userId, "fName", "lname", "email@domain.com", "456-456-4561", assignedRoles);
session.setAttribute("user", user);
return mapping.findForward("success");
} catch (Exception e) {
ActionErrors errors = new ActionErrors();
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(
"error.authentication.required"));
request.setAttribute(Globals.ERROR_KEY, errors);
}
return mapping.findForward("fail");
}
}
I have to configure SSO using SAML 2.0 in WLS 10.3.
I have 2 domains and 2 apps deployed on each domain.
In one domain LDAP authenticator is configured with external LDAP. Any user present in external LDAP can have access to both the apps. My SSO configuration works well for development environment.
Now for production environment, I read in oracle documentation that RDBMS security store is required for SAML 2.0. I didn’t configure it for development environment. My query is if I configure RDBMS security store for production environment, what will happen to my external LDAP? How authentication will take place in that case and can RDBMS security store and external LDAP coexist?
I do not why you should have an JDBC store, do they give a specific reason for this in the documentation? Your users are probably located in your external LDAP and not in the database. I think you can go for the configuration you have performed in the development environment. Also when you look for another tutorial (an old one, but still very good), you can find it here: http://www.oracle.com/technetwork/articles/entarch/sso-with-saml-099684.html
Thanks for your response. I am using SSO with SAML 2.0. With SAML 1.1, RDBMS security store is not required. As per oracle documentation, to configure SSO with SAML 2.0, the RDBMS security store is required by the SAML 2.0 security providers in production environments so that the data they manage can be synchronized across all the WebLogic Server instances that share that data.
Here is the documentation url : http://docs.oracle.com/cd/E23943_01/web.1111/e13707/saml.htm#i1107165
First of all, thanks for this wonderful website, I’m constantly checking this site and is giving me so much knowledge!
I’m wondering if you have any experience with weblogic server 10.3.2 + terracotta. We are experiencing some performance problems with weblogic portal 10.3.0 + wls 10.3.0 and we are migrating to wlp and wls 10.3.2 64 bits to overcome that. But I have the CTO pushing me to use terracotta before tuning wls 😛
We have to define that yet. Probably, the first approach will be second-level cache, but I think that for some portals that just expose content from a content manager, we could use a caching for html generated pages. We have other portal that has authentication so I don’t know if we can to leverage ehcache or big memory.
Am very new to Weblogic. Now I have to setup an environment, where Admin server and 2 managed servers will be in three different physical machines. Obviously they will be having 3 different IP.
Node manager will be there to make all the 3 servers up and running.
Now, I want to know that for this setup, I need to install 3 weblogic instances in those 3 different machines?
If so, then how managed server 1 and managed server 2 has to be defined. Will they be managed servers or the admin servers there can act as managed servers for me?
I also have to have a apache proxy in between.
Please clear my understandings and please give me clear steps to achieve this.
I do have another query, most java options start with “-D”. What does this -D stand for? can I have the list of all the java options and there use please??….
Regards:
Nihar R
Hi Magic Team,
What do we generally mean by “Clearing the cache” for weblogic?? which folders in the weblogic domain need clean up or which files need to be cleared/deleted for cache clearing. Please let me know.
Hi magic Team,
This is related to IBM Websphere,it’s a general issue i think.
Issue:- In a DEV JVM we have 15 applications. when we try to start a application from console it is taking 6 minutes to start. When i restart the JVM it is taking 5 minutes. The same applications in testing environment it is taking secs to start. Configuarations are same in both DEV & QA. when iam starting application from console ,i tried to monitor cpu usage(linux) using TOP command DMGR pid using 150% and JVM pid using 130% of CPU. I tried to generate thread dumps ,i could not find anything form dumps. One more thing when i tailed SystemOut.logs i dont see any errors. no cpu starvation,no hungs,no outof memory.
Can anyone please give some ideas how i can resolve this issue.
I had an issue ,while trying to target the datasource to Managed servers.
below errors i can see in Console..
Error weblogic.application.ModuleException:
Error weblogic.common.ResourceException: Could not create pool connection. The DBMS driver exception was: ORA-28000: the account is locked.
in which logs can i check the Conectionpool/DB related errors ?
i found some exeptions in one instance logs…
<> <Stack trace assoc
iated with message 001129 follows:
java.sql.SQLException: ORA-28000: the account is locked
I am having some issues with LDAP connectivity to OID from a weblogic 10.3.4 installation. Basically what seems to happen is that after a certain amount of time the connection seems to drop and not re-connect. I would like to monitor active LDAP connections via a WLST script. However I cannot find a suitable mbean to give me this info. Anybody know where I can look?
Here is the issue that we are facing in our production environment. Need your help to resolve.
We have ten managed servers grouped in a cluster. For the zip download requests (download servlet), the requests were taking more time than the WLIOtimeoutsec and then getting replicated to other online nodes in cluster. This behavior making the application slow.
we are restarting all managed nodes one by one ( rolling restarts) to bring back the application stable. We contacted oracle support but no help.
Below are the entries in apache web httpd.conf file. We don’t have session replication enabled in weblogic.
SetHandler weblogic-handler
WebLogicCluster XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
WLCookieName PRDDC1
KeepAliveEnabled ON
DynamicServerList OFF
WLSocketTimeOutSecs 10
WLIOTimeoutSecs 3600
MaxSkipTime 10
ConnectTimeoutSecs 30
Debug OFF
WLForwardUriUnparsed ON
DebugConfigInfo ON
Can you please help us in this issue and how to stop these download requests getting replicated to other nodes in cluster?
I need urgent help.
I lately I have been plague with errors in my Weblogic Server w.r.t to DB connection.
JDBC version = Oracle Driver Thin for Service Connections version 9.0.1 and later.
Weblogic version = 10.3.4.0
DB version = 9.2.0.8
JDK version = java version “1.6.0_21”
issues are, users keep getting getting Java errors while accessing sub-modules inside the application that directly request data from an oracle DB table.
errors type:
1:
#### <> <Stack trace associated with message 001129 follows:
java.sql.SQLRecoverableException: IO Error: Socket read timed out
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:419)
at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:538)
at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:228)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(ConnectionEnvFactory.java:350)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:236)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1249)
at weblogic.common.resourcepool.ResourcePoolImpl$ResourcePoolMaintanenceTask.timerExpired(ResourcePoolImpl.java:2718)
at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
Caused By: oracle.net.ns.NetException: Socket read timed out
at oracle.net.ns.Packet.receive(Packet.java:331)
at oracle.net.ns.DataPacket.receive(DataPacket.java:104)
at oracle.net.ns.NetInputStream.getNextPacket(NetInputStream.java:315)
at oracle.net.ns.NetInputStream.read(NetInputStream.java:260)
at oracle.net.ns.NetInputStream.read(NetInputStream.java:185)
at oracle.net.ns.NetInputStream.read(NetInputStream.java:102)
at oracle.jdbc.driver.T4CSocketInputStreamWrapper.readNextPacket(T4CSocketInputStreamWrapper.java:124)
at oracle.jdbc.driver.T4CSocketInputStreamWrapper.read(T4CSocketInputStreamWrapper.java:80)
at oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(T4CMAREngine.java:1136)
at oracle.jdbc.driver.T4CMAREngine.unmarshalSB1(T4CMAREngine.java:1113)
at oracle.jdbc.driver.T4C8TTIpro.receive(T4C8TTIpro.java:128)
at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1078)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:308)
at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:538)
at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:228)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(ConnectionEnvFactory.java:350)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:236)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1249)
at weblogic.common.resourcepool.ResourcePoolImpl$ResourcePoolMaintanenceTask.timerExpired(ResourcePoolImpl.java:2718)
at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:419)
at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:538)
at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:228)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(ConnectionEnvFactory.java:350)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:236)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1249)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1166)
at weblogic.common.resourcepool.ResourcePoolImpl.reclaimReservedResources(ResourcePoolImpl.java:1477)
at weblogic.common.resourcepool.ResourcePoolImpl.disablePool(ResourcePoolImpl.java:1447)
at weblogic.common.resourcepool.ResourcePoolImpl.forceSuspend(ResourcePoolImpl.java:288)
at weblogic.jdbc.common.internal.ConnectionPool.forceSuspend(ConnectionPool.java:194)
at weblogic.common.resourcepool.ResourcePoolImpl.processFailCountExceededDisableThreshold(ResourcePoolImpl.java:1747)
at weblogic.common.resourcepool.ResourcePoolImpl$Group.incrementTestFailCount(ResourcePoolImpl.java:2347)
at weblogic.common.resourcepool.ResourcePoolImpl$Group.access$200(ResourcePoolImpl.java:2210)
at weblogic.common.resourcepool.ResourcePoolImpl.checkResource(ResourcePoolImpl.java:1681)
at weblogic.common.resourcepool.ResourcePoolImpl.checkAndReturnResource(ResourcePoolImpl.java:1588)
at weblogic.common.resourcepool.ResourcePoolImpl.checkAndReturnResource(ResourcePoolImpl.java:1577)
at weblogic.common.resourcepool.ResourcePoolImpl.testUnusedResources(ResourcePoolImpl.java:2021)
at weblogic.common.resourcepool.ResourcePoolImpl.access$1800(ResourcePoolImpl.java:41)
at weblogic.common.resourcepool.ResourcePoolImpl$ResourcePoolMaintanenceTask.timerExpired(ResourcePoolImpl.java:2697)
at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
Caused By: oracle.net.ns.NetException: The Network Adapter could not establish the connection
at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:375)
at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:422)
at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:686)
at oracle.net.ns.NSProtocol.connect(NSProtocol.java:246)
at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1056)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:308)
at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:538)
at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:228)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(ConnectionEnvFactory.java:350)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:236)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1249)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1166)
at weblogic.common.resourcepool.ResourcePoolImpl.reclaimReservedResources(ResourcePoolImpl.java:1477)
at weblogic.common.resourcepool.ResourcePoolImpl.disablePool(ResourcePoolImpl.java:1447)
at weblogic.common.resourcepool.ResourcePoolImpl.forceSuspend(ResourcePoolImpl.java:288)
at weblogic.jdbc.common.internal.ConnectionPool.forceSuspend(ConnectionPool.java:194)
at weblogic.common.resourcepool.ResourcePoolImpl.processFailCountExceededDisableThreshold(ResourcePoolImpl.java:1747)
at weblogic.common.resourcepool.ResourcePoolImpl$Group.incrementTestFailCount(ResourcePoolImpl.java:2347)
at weblogic.common.resourcepool.ResourcePoolImpl$Group.access$200(ResourcePoolImpl.java:2210)
at weblogic.common.resourcepool.ResourcePoolImpl.checkResource(ResourcePoolImpl.java:1681)
at weblogic.common.resourcepool.ResourcePoolImpl.checkAndReturnResource(ResourcePoolImpl.java:1588)
at weblogic.common.resourcepool.ResourcePoolImpl.checkAndReturnResource(ResourcePoolImpl.java:1577)
at weblogic.common.resourcepool.ResourcePoolImpl.testUnusedResources(ResourcePoolImpl.java:2021)
at weblogic.common.resourcepool.ResourcePoolImpl.access$1800(ResourcePoolImpl.java:41)
at weblogic.common.resourcepool.ResourcePoolImpl$ResourcePoolMaintanenceTask.timerExpired(ResourcePoolImpl.java:2697)
at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
Caused By: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at oracle.net.nt.TcpNTAdapter.connect(TcpNTAdapter.java:150)
at oracle.net.nt.ConnOption.connect(ConnOption.java:130)
at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:353)
at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:422)
at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:686)
at oracle.net.ns.NSProtocol.connect(NSProtocol.java:246)
at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1056)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:308)
at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:538)
at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:228)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(ConnectionEnvFactory.java:350)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:236)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1249)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1166)
at weblogic.common.resourcepool.ResourcePoolImpl.reclaimReservedResources(ResourcePoolImpl.java:1477)
at weblogic.common.resourcepool.ResourcePoolImpl.disablePool(ResourcePoolImpl.java:1447)
at weblogic.common.resourcepool.ResourcePoolImpl.forceSuspend(ResourcePoolImpl.java:288)
at weblogic.jdbc.common.internal.ConnectionPool.forceSuspend(ConnectionPool.java:194)
at weblogic.common.resourcepool.ResourcePoolImpl.processFailCountExceededDisableThreshold(ResourcePoolImpl.java:1747)
at weblogic.common.resourcepool.ResourcePoolImpl$Group.incrementTestFailCount(ResourcePoolImpl.java:2347)
at weblogic.common.resourcepool.ResourcePoolImpl$Group.access$200(ResourcePoolImpl.java:2210)
at weblogic.common.resourcepool.ResourcePoolImpl.checkResource(ResourcePoolImpl.java:1681)
at weblogic.common.resourcepool.ResourcePoolImpl.checkAndReturnResource(ResourcePoolImpl.java:1588)
at weblogic.common.resourcepool.ResourcePoolImpl.checkAndReturnResource(ResourcePoolImpl.java:1577)
at weblogic.common.resourcepool.ResourcePoolImpl.testUnusedResources(ResourcePoolImpl.java:2021)
at weblogic.common.resourcepool.ResourcePoolImpl.access$1800(ResourcePoolImpl.java:41)
at weblogic.common.resourcepool.ResourcePoolImpl$ResourcePoolMaintanenceTask.timerExpired(ResourcePoolImpl.java:2697)
at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
and many more.
Please give me your email ID so I could upload the relevant log information.
Hello All, I really appreciate the kind of work your are doing through this blog. It is really helpful.
I have some questions regarding WebLogic redeployment. We are using WebLogic 10.3.5. We have two data centers, so when there is a new release we take one out of traffic and deploy. Our deployments are in nostage mode which are deployed on a cluster (spread horizontal and cluster). We place deployments in same location on all machines of cluster.
Process we follow to deploy new wars and ears:
Stop cluster
Replace the Wars and Ears with new files
Start cluster.
So my question is whether we are following correct process, are new Wars and Ears deployed when cluster is started or do we need to delete ‘tmp’ and ‘cache’ folders inside /servers//. Sometimes we find issues with this process so we delete ‘tmp’ and ‘cache’ and restart to resolve the issue.
In previous post I mean
“cluster (spread horizontal and vertical)”
‘tmp’ and ‘cache’ folders inside ‘domainhome’/servers/’jvm’/
– http://psoug.org/oraerror/ORA-01017.htm
“The core issue with an ORA-01017 error is an invalid user ID and passwords combination, but other than an incorrect password, there are user ID issues that may contribute to the ORA-01017 error:
It may be that the user ID is invalid for the target system – The user ID exists as the username column in the dba_users view.
select username from dba_users;
Check your $ORACLE_SID environmental parameter. If your $ORACLE_SID is set to the wrong system ID then you may get a ORA-01017 error because you are connecting to the wrong database.
If using external OS user authentication (ops$ or remote_os_authent) you need to verify that the user ID is valid. You can tell if you are using external authentication because you connect without providing a user/password combination, and only provide a forward slash to the connect string, (e.g. connect / as sysdba;).
Check your tnsnames.ora to ensure that the TNS service name points to the correct server and instance name. If you specify an incorrect tnsnames.ora service name, then the user ID and password may not exist in that database.”
As per our client security standard we must disable the http port for weblogic admin server. We must access the weblogic admin console through https by using third party SSL certificate. If we start the managed server we saw the “<Emergency <Management <BEA-141151 <The admin server could not be reached at https://localhost:7002. ".
<Emergency <Management <BEA-141151 <The admin server could not be reached at https://localhost:7002.
<Info <Configuration Management <BEA-150018 <This server is being started in managed server independence mode in the absence of the admin server.
We already updated the Admin server url in startManagedWebLogic.sh script ( ADMIN_URL="https://localhost:7002" ) and also include the third party ssl certificate details in the startManagedWebLogic.sh script.
Then we only see the information message in weblogic managed server log file.
<Jan 13, 2013 8:31:14 PM KST <Notice <Security <BEA-090169 <Loading trusted certificates from the jks keystore file /lapps/oracle/wls1034/domains/Test-domain/JKS/test.apa.in.com.trust.jks.
<Jan 13, 2013 8:39:19 PM KST <Info <Management <BEA-141107 <Version: WebLogic Server 10.3.3.0 Fri Apr 9 00:05:28 PDT 2010 1321401
<Jan 13, 2013 8:39:22 PM KST <Info <Configuration Management <BEA-150018 <This server is being started in managed server independence mode in the absence of the admin server.
Could you please provide valuable steps to resolve the issue.
I want to installed Application server (weblogic, Jboss) and configure domain in the server. But i don’t have any server for installing these middlware software.
Can anyone please give idea and steps how can i make my laptop as localhost(server) and installed in it.
I am naive in this subject matter so, if anyone can explain in steps i would really appreciate it.
I have setup admin port and able to login to the console with the admin port.
However when i try to start the managed server i am unable to do so.
#### <> <An error occurred while establishing a connection back to the admin
stration server t3s://X.X.X.X:9002 during startup. Since bootstrap succeeded check that t3s://X.X.X.X:9002 uniquely identifies the administrati
on server.
javax.naming.ServiceUnavailableException [Root exception is java.rmi.NoSuchObjectException: The object identified by: '31' could not be found. Either it was
has not been exported or it has been collected by the distributed garbage collector.]
Admin Server : 7001
SSl : 7101
MS : 7002 SSL : 7102
Admin Port : 9002
Need some knowledge on Statemenmt timeout of datasource in weblogic 11g. we set the statement timeout as 120 secs. we are using oracle 11g DB. we are calling a stored procedure from the java application which is deployed on weblogic 11g. when the stored proc is running abnormally in some scenarios and takes more then 120 secs the execution is not timing out but it is marked as stuck thread.
is the statement timeout is not working?? we are using callable statement. is there any way to set timeout in 11g ??
I need to record the activity log going on in the weblogic environemnt servers like who logged when and who did what for both my WLS (12c) application server and OHS (11) web server also. Can someone please help me.. Thanks in Advance.
Thanks for the reply. Yes you are right the session timeout can be set in many places. And web.xml value will override all other timeout values.
But the issue is,as i have mentioned already in the above description yesterday, the web.xml in the war has session timeout defined for 240 minutes(4 hours). And it will still getting timed-out only for few users within 30 mins.
Hi, I am planning for a Secondary Site(DR) for the Weblogic Portal 10.3.2. At present we are having a Primary Site having an Admin Server and 5 Managed Servers. The Database is Oracle RAC with Standby Database available at the Secondary Site replicated using Data Guard.
Now how do i configure and create a Secondary Admin Server . We are using a RDBMS Security Realm at the primary site.
I tried copying the complete installation of Primary Site to the Secondary site servers . Changed the JDBC where ever required . Also changed the IP’s in the config.xml. Howerever upon trying the start the Admin Server the following error appears :
<The realm "myreal
m" failed to be loaded: weblogic.security.service.SecurityServiceException: java
.lang.AssertionError: java.lang.reflect.InvocationTargetException.
weblogic.security.service.SecurityServiceException: java.lang.AssertionError: ja
va.lang.reflect.InvocationTargetException
at weblogic.security.service.CSSWLSDelegateImpl.initializeServiceEngine(
CSSWLSDelegateImpl.java:342)
at weblogic.security.service.CSSWLSDelegateImpl.initialize(CSSWLSDelegat
eImpl.java:221)
I am facing an issue in OSB ,where backend response is coming as null if testing end to end and if testing only PS we are getting proper response.
enabled tracing on services only getting soap envelope in response.
However if backend responds with valid error message it is working fine.
problem is coming only when it is a success from backend “$body” is coming as blank.
Our oracle DB was upgraded to 12c but weblogic is still running on version 8.1 and we are facing a ora exception as below in the connection pool.
” ora-28040 no matching authentication protocol”.
How can we get rid of this error from weblogic end.
Can some one please provide a solution on the same?
As you mentioned that your DB was recently upgraded to 12c hence i am suspecting that it might be due to a known issue of Oracle. Bug 14575666
>>> In 12.1, the default value for the SQLNET.ALLOWED_LOGON_VERSION parameter has been updated to 11. This means that database clients using pre-11g JDBC thin drivers cannot authenticate to 12.1 database servers unless theSQLNET.ALLOWED_LOGON_VERSION parameter is set to the old default of 8.
This will cause a 10.2.0.5 Oracle RAC database creation using DBCA to fail with the ORA-28040: No matching authentication protocol error in 12.1 Oracle ASM and Oracle Grid Infrastructure environments. Workaround: Set SQLNET.ALLOWED_LOGON_VERSION=8 in the oracle/network/admin/sqlnet.ora file. OR
Try using the latest oracle JDBC driver on the WLS side.
August 17th, 2010 on 1:12 am
The wl version i am using is weblogic 8.1.3 in windows server 2k.
There is an application running on my domain that has an username and password login page, after entering the details they get into furthur pages.
But i am getting emails from users saying that they are unable to login to the aqpplication
The error they are getting is “The username and password entered is incorrect”
Also, when i check the log file, below is the description i can see,
165.140.24.158 – – [09/Aug/2010:11:55:49 -0700] “GET /Saba/Desktop HTTP/1.1” 302 0
165.140.24.158 – – [09/Aug/2010:11:55:49 -0700] “GET /Saba/loginAsGuest.jsp;jsessionid=MgP1Ft6vxGNsBQfN6hNpLvchQGyQJs8ymMNLsYpJfGWhPm62tDvG!1719407306 HTTP/1.1” 200 505
165.140.24.158 – – [09/Aug/2010:11:55:50 -0700] “POST /Saba/j_security_check HTTP/1.1” 302 0
165.140.24.158 – SabaSite|en_US|sabaguest [09/Aug/2010:11:55:50 -0700] “GET /Saba/Desktop HTTP/1.1” 302 0
165.140.24.158 – SabaSite|en_US|sabaguest [09/Aug/2010:11:55:50 -0700] “GET /Saba/Desktop HTTP/1.1” 200 0
165.140.24.158 – SabaSite|en_US|sabaguest [09/Aug/2010:11:55:50 -0700] “GET /Saba/assets/wdk/scripts/wdkapi.js HTTP/1.1” 304 0
165.140.24.158 – SabaSite|en_US|sabaguest [09/Aug/2010:11:55:50 -0700] “GET /Saba/Desktop_wdk/index/prelogin.rdf HTTP/1.1” 200 0
165.140.24.158 – SabaSite|en_US|sabaguest [09/Aug/2010:11:55:51 -0700] “GET /Saba/assets/wdk/css/defaultTheme.css HTTP/1.1” 304 0
165.140.24.158 – SabaSite|en_US|sabaguest [09/Aug/2010:11:55:51 -0700] “GET /Saba/assets/common/img/1×1.gif HTTP/1.1” 304 0
165.140.24.158 – SabaSite|en_US|sabaguest [09/Aug/2010:11:55:51 -0700] “GET /Saba/assets/common/img/logo.gif HTTP/1.1” 304 0
165.140.24.158 – SabaSite|en_US|sabaguest [09/Aug/2010:11:55:51 -0700] “GET /Saba/assets/common/img/cnr_tl.gif HTTP/1.1” 304 0
165.140.24.158 – SabaSite|en_US|sabaguest [09/Aug/2010:11:55:51 -0700] “GET /Saba/assets/common/img/cnr_tr.gif HTTP/1.1” 304 0
165.140.24.158 – SabaSite|en_US|sabaguest [09/Aug/2010:11:55:51 -0700] “GET /Saba/assets/common/img/icon_bullet.gif HTTP/1.1” 304 0
165.140.24.158 – SabaSite|en_US|sabaguest [09/Aug/2010:11:55:51 -0700] “GET /Saba/assets/common/img/cnr_bl.gif HTTP/1.1” 304 0
165.140.24.158 – SabaSite|en_US|sabaguest [09/Aug/2010:11:55:51 -0700] “GET /Saba/assets/common/img/saba_sm.gif HTTP/1.1” 304 0
165.140.24.158 – SabaSite|en_US|sabaguest [09/Aug/2010:11:55:51 -0700] “GET /Saba/assets/common/img/cnr_br.gif HTTP/1.1” 304 0
165.140.24.158 – SabaSite|en_US|sabaguest [09/Aug/2010:11:56:02 -0700] “POST /Saba/Desktop_wdk/index/startIndex.rdf HTTP/1.1” 200 0
165.140.24.158 – SabaSite|en_US|sabaguest [09/Aug/2010:11:56:03 -0700] “GET /Saba/Desktop_wdk/index/prelogin.rdf?subTypeKey=&wdkPrevLinkCxtName=&j_username=duartke1&_wdkCmd=&portal=&linkCxt=&clientMainPresentation=&_wdkCmdMgr=&j_password=xxxxxxx&actionKey=&loginErrorMsg=The+user+name+or+password+entered+is+incorrect. HTTP/1.1” 200 0
165.140.24.158 – SabaSite|en_US|sabaguest [09/Aug/2010:11:56:14 -0700] “POST /Saba/Desktop_wdk/index/startIndex.rdf HTTP/1.1” 200 0
165.140.24.158 – SabaSite|en_US|sabaguest [09/Aug/2010:11:56:15 -0700] “GET /Saba/Desktop_wdk/index/prelogin.rdf?subTypeKey=&wdkPrevLinkCxtName=&j_username=kduartke1&_wdkCmd=&portal=&linkCxt=&clientMainPresentation=&_wdkCmdMgr=&j_password=xxxxxxx&actionKey=&loginErrorMsg=The+user+name+or+password+entered+is+incorrect. HTTP/1.1” 200 0
and when i check the cmd prompt where weblogic is running,
I see following errors.
BEA 090150, Trusted CA certificate expired.
BEA-101242, Failed to roll HTTP log file for the webserver:
——————————————————————————–
and finally when i access the application, i get the following message at the command prompt where the weblogic is running
Loaded Saba’s weblogic EJB Adapter
ERROR! Database NLS Settings not correct for saba site :
——————————————————————————–
Loaded Saba’s weblogic Web server adapter
ERROR! Incorrect transformer version : Xalan 2.4.1 Make sure the application server/JDK is configured to use xalan.jar version 2.5.1
Thanks in advance
August 18th, 2010 on 11:34 pm
There is a web application in production server.
The weblogic is working fine. But, when i try to access that application in the browser, i get the following error.
(305) Internal Error – A fatal exception occurred. javax.transaction.HeuristicMixedException: (weblogic.jdbc.wrapper.JTSXAResourceImpl, HeuristicHazard, (javax.transaction.xa.XAException: Io exception: Software caused connection abort: socket write error))
null
Can you please help me resolve it
Thanks in Advance
August 19th, 2010 on 12:26 am
Hello Jay,
I couldn’t locate the data folder in the admin server. I am using the weblogic 8.1.3 version which doesn’t have the servers folder. The admin server is just present in the domain folder and when i go into that admin server folder, i cannot see the data folder.
All the folders that i could see are
.internal, .wldonotdelete, ldap, pstore and stage and a few files.
August 19th, 2010 on 11:22 am
Hi Rakesh,
if you are using WLS8.x then u need to delete the “ldap” directory placed inside your AdminServer directory.
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
August 18th, 2010 on 10:06 pm
Hello Admin,
This is rakesh again. I have one more issue. In the same architecture described before, there are two security reams configured. One is the default and the other is one specific to an application. I changed the realm configuration in “domain-wide configuration” in the console menu to the default one from the specific one. Now, when i try to open the console using the command prompt, there was an error regarding the admin console username and password and the command prompt disappeared abruptly. Now i deleted the boot.properties file and created a new one with clear text username and password. But i get this following error.
weblogic.security.securityinitializationexception authentication for user weblogic denied
Can you please help me resolve this issue.
Thanks in Advance
August 18th, 2010 on 10:59 pm
Hi Rakesh,
Apart from Deleting the “boot.properties” file …additionally u need to delete the “data” directory as well from the following location “<DOMAIN_HOME>serversAdminServer”. Because inside the “data” directory you will find the “ldap” data files …which is old…So u must delete the “data” directory…then try to start the Server.
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
August 19th, 2010 on 11:33 pm
i deleted the directory already, but whenever i start the admin server from startweblogic.cmd, i get the same error and the ldap folder gets newly created.
Also, the boot.properties file i created is not getting encrypted. And, when ever i use startweblogic.cmd its asking me for a username and password. But i have already defined the boot.properties file.
August 20th, 2010 on 12:23 am
Hi Rakesh,
Please create the “boot.properties” inside the <DOMAIN_HOME> root directory…
Example: C:bea816user_projectsdomainsFirstDomain
Dont put any addtional Character or Additional Space in this File. Just Put the following two Lines inside this “boot.properties” file:
username=YourNewAdminUsername
password=YourNewAdminPassword
Now try to start your Server. Note Dont Put any heading or Trailing Space apart from above two lines in this file. Use “dir” (Windows) or “ls” (Unix) commands to make sure that the file name is “boot.properties” and NOT anything else like “boot.properties.txt”
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
August 21st, 2010 on 3:53 am
i got it.
I have used a series of WLST commands
thank you
August 20th, 2010 on 10:50 pm
Hello Jay
We have a Production Server, which has one domain and this domain has one application. Its using weblogic 9.1.0.0.
I have seen that there is one Admin Server and 1 Managed Server and the application has been deployed onto the Managed Server and the application is working fine.
I see that the admin console is not accessible. When i saw config.xml i can see that the Admin Server port is not configured.
So my Question is if, i change the config.xml file to configure an admin port for the console to run, do i need to restart the Server. If so, since it is a production Server and there are few other applications running on it. So i have to inform everybody.
SO if i configure the admin port in config.xml do i need to restart the admin server or not ???
August 23rd, 2010 on 10:04 pm
ohh ok
i didn’t do the change yet
is there a way to give the admin port without restarting the server.
August 24th, 2010 on 10:17 pm
Hello admin,
I just want to know, that, in my environment, weblogic 9.1, 1 domain, 1 admin server and 1 managed server. There is one application deployed onto the managed server.
the admin server isnt’t configured to use any listen address or listen port
but i can access the application by using the url which is deployed on to the managed server.
So, how do i give the port number, so that i can access the admin console without restarting the server.
August 24th, 2010 on 10:25 pm
Hi Rakesh,
By default the AdminServer will run on 7001 Listen Port and on “localhost” Listen Address…until we don’t change it. If you want to change the Listen Port of the Server then Dynamically (Without restart) you can do it from AdminConsole.
You can even do it using JMX or WLST code. Like:
http://middlewaremagic.com/weblogic/2010/02/25/changing-adminserver-port-using-jmx/ (JMX solution)
http://forums.oracle.com/forums/thread.jspa?threadID=1037611&tstart=0 (WLST Solution)
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
August 26th, 2010 on 10:33 pm
Hello Admins
Production Server, weblogic 9.1, windows
we have a production server, which has 1 admin server and 1 managed server. There is an application deployed onto the managed server. The admin server is not running, but the Managed Server is running in MSI Mode. and the application is also working fine. But we need to update the application, so, we need to stop the application. SO how do we stop the application, i am unable to use the admin console, so i cannot do it from the console. So is there a way to stop it. Also, can we start the application without restarting the amanaged server, because if we restart the managed server, since the admin server is not running, i guess it will not start(The managed Server). Can you please help.
Thanks in advance
August 26th, 2010 on 10:40 pm
Hi Rakesh,
MSI mode of Managed Server only gurantees that Managed Servers can be started without AdminServer Running…because In this case Managed Server uses the “msi-config.xml” file which is basically the “config.xml” file of the time when the AdminServer was last running.
AdminServer only has a right to make any configuration changes or to deploy / undeploy /redeploy Application/resources on any Server/Clusters…so it is not possible to make any modifications on the Applications which are running on ManagedServers. You will have to start the AdminServer in order to make any changes in the application.…there is no other way.
Once the admin Server is running you can deploy/redeploy/undeploy the applications either using weblogic.Deployer utility or through the AdminConsole.
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
September 15th, 2010 on 11:55 pm
Hello Admin
Can you provide me some tools (names) for monitoring weblogic application server regarding the performance, and also a few tools for monitoring the applications.
I know a few tools, but i don’t know whether they are cost effective efficient, so i want to get an expert review on a few tools
1) a tool for monitoring weblogic performance like server performance, like java heap size, memory stats and other performance metrics
2) a tool for monitoring the applications deployed on weblogic server, their performance, how much amount of memory they take and other performance metrics.
Thanks in advance
September 16th, 2010 on 12:02 am
Hi Rakesh,
Using Tools like JConsole (available inside JAVA_HOMEbin directory) is good for JVM and Heap monitoring which is free as well. Like: http://java.sun.com/developer/technicalArticles/J2SE/monitoring/
Apart from this if you want to check the through put of a perticular application and performance then you can use tools like JMeter. http://middlewaremagic.com/weblogic/2010/05/17/wls-performace-testing-using-jmeter/
There are some more WebApp (MBean based) applications available free in the Google…like “wlnav.war” which can be used to monitor the WebLogic.
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
September 17th, 2010 on 10:12 pm
hello Jay,
can you tell me how to configure a SNMP with weblogic for its monitoring or post a link where i can use it.
Thanks in Advance
September 20th, 2010 on 11:01 pm
Hello Jay,
if below is the statement to start JConsole
JDK_HOME/bin/java -Dcom.sun.management.jmxremote -jar JDK_HOME/demo/jfc/Java2D/Java2Demo.jar
and use jconsole in JAVA_HOME to start Jconsole, it works fine for the sample jar applications already there in the folder.
So, how do we use this jconsole to monitor war or ear applications ???
how do we start/use JConsole for other war and ear applications and monitor other applications b?
September 21st, 2010 on 10:12 am
Hi Rakesh,
Java2Demo.jar is an Executable Jar file…so as soon as you double click on it in WINDOWS …it will automatically start working… Because it requires only JRE to run.
But when we talk about the EAR or WAR file …it requires a Container (WebContainer/Enteropise Container) where it can be run. So if you want to analyze EAR / WAR then you must analyze your Server where the Applications are deployed. Please refer to the JConsole documentation for more details.
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
September 21st, 2010 on 7:08 pm
This question is about JSP, Servlets and Session in Weblogic web container.
I use Weblogic 10.0 MP2 and i have a web app and ejb app in my EAR project.
In my index.jsp i receive a String with user info like [user|name|lastname|idProfile|appName] and i need to use this information in others part of my web app, in 3 servlets to be exact.
So what i did is create a session like this in the index.jsp:
index.jsp:
<%@ page contentType=”text/html;charset=UTF-8″ session=”true” language=”java” import=”java.util.*”%>
<%
HttpSession sesion = request.getSession();
String strParamsLogin = request.getParameter(“pstrParamsLogin”);
sesion.setAttribute(“pstrParamsLogin”, strParamsLogin);
%>
After that if i need to use that information in other servlet i requested like this:
InfoServlet.java:
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
HttpSession session = request.getSession(true);
.
. creating html form stuff
.
out.println(
“” +
)
}
Ok when i view the source code in my index.jsp the params looks ok (i put a input hidden with the pstrParamsLogin). But when i look for the source code in my servlet the input hidden is NULL 🙁
Can u help me with this? i need to get those values but i can not pass them via HTTP POST or GET :_
Thanx in advance
September 22nd, 2010 on 8:54 am
Hi Mgaldames,
Can u please try to remove the below line in your “index.jsp”
HttpSession sesion = request.getSession(); because by default the HttpSession will be available in the JSP page. Make sure that you use the Inbuilt “session” variable and Not your own defined “sesion”.
Change the following in your “InfoServlet.java” Servlet as well….
HttpSession session = request.getSession(false); // Donot pass TRUE as u passed in your original code.
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
September 21st, 2010 on 7:11 pm
i think in my last msg the string inside out.println is not showed so i will put again.. if im wrong plz delete this msg admin:
out.println(
<input type=’hidden’ name=’pstrParamsLogin’ value='”+ session.getAttribute(“pstrParasLogin”) “‘ />
);
October 14th, 2010 on 6:48 pm
This new question is related to JavaMail API and Weblogic 10.0 MP2
BTW thanx so much for ur help in the last question 😀
Ok i am using WLS 10.0MP2 and i want to use the last JavaMail API 1.4.3 and the Weblogic use version 1.4.0.2 of this API.
If i want to use 1.4.3 should i reference the packages in the <prefer-application-packages> on weblogic-applicacion.xml and put the jar in APP-INF/lib?
Thanx in advance for ur advice 😀
October 14th, 2010 on 8:02 pm
Hi Mgaldames,
Yes, if you want to use a different version of Mail API JAR inside your application then you have only 2 Options…
1). If you have an EAR Application then use on “weblogic-applicacion.xml” and put the jar in APP-INF/lib
2). If you have a Simple WAR Application them inside “WEB-INFlib” directory and then write the “weblogic.xml” file with the following Part of entry inside it.
<container-descriptor>
<prefer-web-inf-classes>ltrue</prefer-web-inf-classes>
</container-descriptor>
NOTE: above Tags will not be able to override the Classes which are loaded as part of the Boot Strap ClassLoader of the JVM. Means the Basic classes which are loaded as part of “endorsed” directory of JVM or from the rt.jat or tools.jar.
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
November 20th, 2010 on 3:16 am
hello Admin,
The env is dev env, windows 2k3 and weblogic 9.2.3.0
Our setup has 1 admin server with 2 managed servers that form a cluster and an application that has been deployed on to the cluster.
But recently we found that the cluster license or the license.bea file was invalid or corrupted.
So, i created a new managed server and trying to change the target for the application to the newly created managed server, which is not present in the cluster.
I am getting an error.
Also, i have noticed that what ever changes i make and click on activate changes, this is the error thats coming.
Can you please help
Thanks in advance
rakesh
November 20th, 2010 on 3:19 am
I have tried to redeploy the application, but it failed, and also this application has 1 war file and 1 ejb archive combined as a ear file.
November 20th, 2010 on 12:45 pm
Hi Rakesh,
It looks like a Class Loader is not able to find the required classes in it’s owm repository when you are trying to redeploy the application. So you can try the following things…
1). Take a backup of the “config.xml” file in AdminServer.
2). Now edit the original “config.xml” file on AdminServer and remove the <app-deployment> Tag which points to your Application which is causing the redeployment issue. Like following kind of entry u need to remove for your application
Example:
3). Restart the Admin Server.
4). Now restart your Managed Server where u wanted to deploy/redeploy the application.
5). Now freshly redeploy the application.
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
November 22nd, 2010 on 8:53 am
Hi Jay
What are the different cluster algorithms followed . What are different cluster mechanisms?
Which cluster mechanisms is widely used?
Thanks
Swordfish’
November 22nd, 2010 on 1:48 pm
Hi swordfish,
There are three types of cluster algorithms
Round-robin : –
It will cycles through a list of managed servers in order. Like MS-1 then MS-2 and then MS-3, again now the request would go to MS-1 then MS-2 and MS-3 that way.
Weight-based:
We can assign that MS-1 should have 60% of load and others should have 20 % each load. This way 60 % of request load is given to MS-1. This algorithm is used when you know that your MS-1 can handle that much load and other 2 servers cannot handle that much load.
Random:
As the name speaks for itself the lad balancing of the requests are routed to servers at randomly to any servers.
Now it is totally dependent of the environment which algorithm is good for your architecture. However default value is Round-robin.
Hope this would help you.
Regards,
Ravish Mody
November 22nd, 2010 on 2:07 pm
Thanks in tons man for the info, Would you be able to jot down quickly about horizotal & vertical clustering as well.
Thanks in advance
Sanjib
November 22nd, 2010 on 2:17 pm
Hi swordfish,
You are always welcome. 🙂
Horizontal Clustering
This means that clustering is done with 2 or more boxes having n-number of managed servers in it but in the same cluster. Example is shown below.
Box-1
MS-1 => C1
MS-2 => C1
Box-2
MS-3 => C1
MS-4 => C1
Vertical Clustering
This means that clustering in done in one box with n-numbers of managed servers.Example is shown below
Box-1
MS-1 => C1
MS-2 => C1
MS-3 => C1
MS-4 => C1
For more information on Horizontal Clustering check out the below post
WebLogic Clustering in Remote Boxes
Hope this would help you.
Regards,
Ravish Mody
November 23rd, 2010 on 3:36 am
hello Admin
This is the production environment with windows2k3 server and we are using weblogic 9.2.2.0.
I have a question.
We have a production VM that will host the admin servers for the managed servers that are going to run in other boxes.
PRODSERVER1(VM) has 1 admin server, AS for Domain A
PRODSERVER2 (Physical) has 2 managed servers MS1 and MS2
PRODSERVER2 (Physical) has 2 managed Servers MS3 and MS4
and we want to create a horizontal Cluster between these managed servers as follows
MS1 and MS3 form C1
MS2 and MS4 form C2
Different applications will be on both the clusters.
Is this possible. I know its possible but i dont know how to execute this plan.
Can you please help me. We are trying to have this plan for other domains for the production environment.
Thanks in advance
November 23rd, 2010 on 11:26 am
Hi Rakesh,
From WebLogic Configuration wise you need not to make any additional change rather than creating simple Horizontal Clustering as described in the following Post: http://middlewaremagic.com/weblogic/?p=971
You need to just make sure that there is no Network Communication issue or No Multicast issue between PRODSERVER1, PRODSERVER2
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
November 23rd, 2010 on 7:46 am
Good morning Ravish
Another good explanation with a simple example.
Thank you
Sanjib
December 20th, 2010 on 11:38 pm
Hello Admin,
The env is production env, in windows and weblogic 8.1.3
There is a web application in production server.
when i try to access that application in the browser, i get the following error.
(305) Internal Error – A fatal exception occurred. javax.transaction.HeuristicMixedException: (weblogic.jdbc.wrapper.JTSXAResourceImpl, HeuristicHazard, (javax.transaction.xa.XAException: Io exception: Software caused connection abort: socket write error))
null
Also, when i restart the weblogic server services from the “services” in the “administrative tools” in the control panel, the app runs fine for 3 or 4 days and then the same error occurs and then after restarting the app, it runs fine for another 3 or 4 days and the same thing happens.
Thanks in Advance
Rakesh
December 21st, 2010 on 12:20 am
Hi Rakesh,
The javax.transaction.HeuristicMixedException: (weblogic.jdbc.wrapper.JTSXAResourceImpl, HeuristicHazard. Exception indicates there is a SEVERE Fatal Failure occured during Transaction. And in your case the cause of this looks like “Software caused connection abort: socket write error”.
Please check for any kind of Network Bleach during the Tmestamp in which you saw this error, The Above transaction failure can also happen due to access read write operation at Operating System level.
But if you are facing this kind of issue very frequently (as u mentioned after every 3-4 days), I will recommend you to open a Oracle WebLogic Support ticket in this regards. Because Transaction Failure once or twice is OK but if it happens that means there immediate and in deapth analysis is required.
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
December 21st, 2010 on 5:31 pm
Jay,
I have installed weblogic in /opt/A and /opt/B directory.There are 2 domains. One in /opt/A and other in /opt/B. These 2 domains are independent and there is no port conflicts .
The admin server that belongs to A is on 7001 and for B is on 9001
When i am open the browser and try to access admin server http://10.197.1.7:7001/console and http://10.197.1.7:9001/console.
Then i will get log out from the Admin server which is already open.
Is this the weblogic behavior or bug ?
However if i open the two admin server in different browser ( IE and chrome ) then things work fine.
Any comments on this behavior?
Thanks
Sumit
December 21st, 2010 on 7:43 pm
Hi Sumit,
Its not a Weblogic bug is totally a browser behaviour. I believe this issue you might be facing this issue when opening the console with two tabs on FireFox / Chrome browser.
These browsers keeps that session open for the same site or application which can been also seen if you open a Gmail account and when just type orkut.com in the new tab of the same browser then it would automatic get into your profile page (i.e. if both site uses the same username and password) which is called SSO Single Sign On this is done because you have already given the credentials in the first tab.
However in the case of WLS it makes the previous session closed so that a new session can be opened, this is a default behaviour and does not looks like a bug.
Hope that would help.
Regards,
Ravish Mody
December 21st, 2010 on 9:18 pm
Ravish,
1) This is not SSO.As the admin server for both weblogic have different password and user name.These are 2 different application all togather installed on the same box.
2) I tested this with same browser having 2 instances open then accessing the admin console of both the weblogic.In this case also we are logging out of previously opened
3) Why then same thing does not happen when we access admin server for weblogic which is installed on 2 different boxes.In this case, weblogic opens fines and we can work for both the server.
Thanks
Sumit
December 21st, 2010 on 10:56 pm
Hi Sumit,
Can you try one test for us.
Try to login the Admin close which is on the same box but one Admin Console having th port 7001 and other 9001 from the same browser on firefox or chrome as the browser.
Now do the same thing in IE browser like in IE6.
And share the output with us.
Regards,
Ravish Mody
December 23rd, 2010 on 1:15 pm
Ravish,
I tried it on IE6 . I open the application on same browser but on different tab. In this case i am getting log out from one of the admin console.
However if i open the admin console on IE6 on 2 different instance of IE then it works fine.
In case of chrome i am getting log out in both the scenario.
Thanks
Sumit
December 23rd, 2010 on 2:10 pm
Hi Sumit,
Great, Now try this out
In your Chrome browser try to open a new browser window from the following path and do the same test again.
Wrench(tools) menu / open new window without history or New incognito window
This time I think you would get your answer. 🙂
With the above new window it would work fine when you open two admin consoles using different port number, because now this new window would not be attached to any session to the previous windows or tabs hence it starts a new session for itself only. The same case was for IE6 also when opened in 2 different windows.
Hope these test would explains that its a browsers feature and not WLS bug.
To get more info on it have a look at below link
http://www.google.com/support/chrome/bin/answer.py?answer=95464&hl=en-US
Regards,
Ravish Mody
December 23rd, 2010 on 5:05 pm
Ravish,
It is understandable that when we open admin console in private browsing then then we will not hit this issue.
But can we avoid this even if we have server on the same box by some configuration
Thanks
Sumit
December 24th, 2010 on 12:59 am
Hello Ravish/Jay,
Can you suggest me a website or some material like videos and etc for Oracle weblogic portal.
Thanks
Rakesh
February 22nd, 2011 on 9:54 pm
…
Hi,
can someone let me know what are the key technical differences between Weblogic Vs WebSphere?
how to decide which one to use?
February 23rd, 2011 on 12:02 am
Hi Sumanth,
Following link will give you some idea on this: http://it.toolbox.com/blogs/enterprise-apps/jboss-vs-weblogic-vs-websphere-33552
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
March 8th, 2011 on 3:02 pm
Hi Jay,
WebLogic Server uses software modules called muxers to read incoming requests on the server and incoming responses on the client.
These muxers are of two classified into Two types.
1.Java muxer
2.Native muxer.
Native provide superior scalability because they implement a non-blocking thread model.
When a native muxer is used, the server creates a fixed number of threads dedicated to reading incoming requests.
BEA recommends using the default setting of selected for the Enable Native IO parameter which allows the server automatically selects the appropriate muxer for the server to use.
Most application servers use thread pools to manage execution tasks of a certain type. A thread pool is merely a collection of threads set aside for a specific task. In the example thread above, I’ve shown you a thread from the WebLogic thread pool (or queue) named “weblogic.socket.Muxer”. A pool of these “Muxer threads” is set aside by WebLogic to manage reading and writing data for network connections coming into WebLogic.
Thread dump log:-
“ExecuteThread: ’1′ for queue: ‘weblogic.socket.Muxer’” id=28 idx=0×68 tid=24640 prio=5 alive, in native, blocked, daemon — Blocked trying to get lock: java/lang/String@0x15a00898[fat lock] at jrockit/vm/Threads.waitForUnblockSignal()V(Native Method) at jrockit/vm/Locks.fatLockBlockOrSpin(Locks.java:1679)[optimized] at jrockit/vm/Locks.lockFat(Locks.java:1780)[optimized] at jrockit/vm/Locks.monitorEnterSecondStageHard(Locks.java:1312)[optimized] at jrockit/vm/Locks.monitorEnterSecondStage(Locks.java:1259)[optimized] at jrockit/vm/Locks.monitorEnter(Locks.java:2466)[optimized] at weblogic/socket/EPollSocketMuxer.processSockets(EPollSocketMuxer.java:153) at weblogic/socket/SocketReaderRequest.run(SocketReaderRequest.java:29) at weblogic/socket/SocketReaderRequest.execute(SocketReaderRequest.java:42) at weblogic/kernel/ExecuteThread.execute(ExecuteThread.java:145) at weblogic/kernel/ExecuteThread.run(ExecuteThread.java:117) at jrockit/vm/RNI.c2java(IIIII)V(Native Method
In Production Environment We must enable Native I/O. The default value is 33.I am also using the Same value but frequently i get “”ExecuteThread: ’1′ for queue: ‘weblogic.socket.Muxer’” id=28 idx=0×68 tid=24640 prio=5 alive, in native, blocked, daemon — Blocked trying to get lock: ” .
In oracle document the default value is based on your enviroment. What calculation we have to change the Socket Readers Default value.
Regards,
S.Vinoth Bab
March 9th, 2011 on 12:22 am
Hi Vinoth,
There is no standard formula to calculate this thing. The value comes out after a load test on that particular environment.
If it was possible through a standard Formulas to calculate the same then Oracle would have already provided it. 😉
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
March 14th, 2011 on 6:34 pm
Hi gurus,
I have deployed an war file application containing media files (pic.jpg and sound.avi)in weblogic 10.3.4.0
Although it works successfully, the problem is it takes a lot of time of open up as far as media goes. However the same war file being deployed in Tomcat does not take time at all. It opens up in less than 3 seconds. but in weblogic it opens up after 10 seconds which is very slow.
The database connection string is not inside weblogic, it is contained inside the war file. Moreover the database that holds these media files is MYSQL. I had coordinated with the MySql DBA and asked for every possiblity like index building or re-building, plus schema analysing. They did it all from their end. However the same result persists for weblogic. This is a project about to go live. And we want to perfect it. Please help.
Fabian.
March 26th, 2011 on 4:07 pm
Hi Fabian,
It seem that 10 seconds is fare enough speed, however if you have already tune-up from your DB side and still want to improve the response time then we would suggest you to have a case opened with the Oracle Support team and check with them as they would have a better idea on it, also do not forget to share it with us so that others can get benefits out of it.
Regards,
Ravish Mody
April 15th, 2011 on 11:04 pm
Hi ,
i am having a problem coming up with a solution …
My design is like as this ..
1. I am calling a backend webservice,that is providing me an id value with time window of 14 minutes of activeness to call other backend services.
2. what i wanted is the pooling of these id’s so as to make a session pool, where i can store and consume these id’s by checking there timestamp not to be greater than 14 minutes .
3. Suppose id is being in use for 2 minutes for one flow to work, then again id is being pushed to session pool as the id is still active to be used for other callouts /flows
4. so what type of pooling technique should i used , is there any weblogic session pooling capablity is there , eiter should i go for DB Pooling or queues .
Please provide the needfull !!!
Abhinav
April 16th, 2011 on 12:15 am
Hi Abhinav,
Making a Hashtable at application level and putting the ID and it’s timestamp in that should work i think in this case.
If you have a Clustered setup then You can bind this Hashtable object to the Cluster wide JNDI tree. Database also can be a good option but database interaction is little causly compared to Direct JNDI lookup…so performace wise Database usages will not be best in this case.
Please refer to the following article to bind any object inside the JNDI tree of a Server/ClusterNodes:
http://middlewaremagic.com/weblogic/?p=1809
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
April 27th, 2011 on 3:46 pm
Hi Jay,
I recently got this error in Production Environment.In this error they doesn’t mentioned the Application Name for Stuck thread.How to resolve this issue in Production Environment.
Error Log:-
####Apr 27, 2011 2:21:19 PM IST> Error> WebLogicServer> localhost> psMS1> [ACTIVE] ExecuteThread: ‘0’ for queue: ‘weblogic.kernel.Default (self-tuning)’> WLS Kernel>> > > 1303894279235> BEA-000337> [STUCK] ExecuteThread: ‘1’ for queue: ‘weblogic.kernel.Default (self-tuning)’ has been busy for “612” seconds working on the request “weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl@1cf6244”, which is more than the configured time (StuckThreadMaxTime) of “600” seconds. Stack trace:
Thread-22 “[STUCK] ExecuteThread: ‘1’ for queue: ‘weblogic.kernel.Default (self-tuning)'” alive, in native, suspended, waiting, priority=1, DAEMON> {
— Waiting for notification on: java.lang.UNIXProcess@2c75ea5[fat lock]
java.lang.Object.wait(Object.java:???)
java.lang.Object.wait(Object.java:485)
java.lang.UNIXProcess.waitFor(UNIXProcess.java:164)
in.sis.ps.jms.ddc.JavaProcess.executebatchfile(JavaProcess.java:10)
in.sis.ps.jms.ddc.ReceiveBatchFile.onMessage(ReceiveBatchFile.java:49)
sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:???)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:27)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:575)
com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:102)
com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:86)
com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:102)
com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:151)
$Proxy138.onMessage(Unknown Source)
weblogic.ejb.container.internal.MDListener.execute(MDListener.java:403)
weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:352)
weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:264)
weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4564)
weblogic.jms.client.JMSSession.execute(JMSSession.java:4060)
weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3746)
weblogic.jms.client.JMSSession.access$000(JMSSession.java:114)
weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5096)
weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
weblogic.work.ExecuteThread.execute(ExecuteThread.java:198)
weblogic.work.ExecuteThread.run(ExecuteThread.java:165)
Regards,
S.Vinoth Babu
April 27th, 2011 on 3:55 pm
HI Vinoth,
Based on a single thread Trace it is not possible to tell what exactly could be the problem. For thread dump analysis at lease 4-5 thread dumps are required each should be taken in the interval of 10 seconds each.
Based on the Above stackTrace …If you will see the same stackTrace for other Threads as well which are STUCK then you will need to contact your Application developer team and should ask them to recheck the code of following API:
in.sis.ps.jms.ddc.JavaProcess.executebatchfile(JavaProcess.java:10)
Here it looks like application is trying to process some batch activities or batch files which is taking more time …so please look at the code or look at the Operating System if for Batch processing enough resources like memory and CPUs are available or not.
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
May 2nd, 2011 on 10:30 am
Hi Jay,
I have a couple of questions related to deployment
We are following stage method of deployments in our Production environment.
Would like to know how to maintain different versions of the deployed application.
We also need the procedure for applying dymanic changes to the deployed code like changes to jsp..without redeploying the code.
We have also tried making the changes directly to Managed Servers tmp directory and restarting the application. However we still access the same JSP
Would need your help to understand the behaviour.
Regards
ravi
May 2nd, 2011 on 6:56 pm
Hi Ravibopara,
Stage mode deployment is a good option for production environment.
To maintain different versions of application you can refer to the following article: http://middlewaremagic.com/weblogic/?p=394
To Dynamically change some part of the application module or few JSPs without redeploying the whole app you can refer to the partial deployment feature of WebLogic as explained in the following link: http://middlewaremagic.com/weblogic/?p=578
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
May 3rd, 2011 on 11:11 am
Hi Rene,
I am coming up with a problem related to coherence handling and usage .
My design is that i want to make a cache that would be having a key but would map to multiple values,
such that with a single key i would be able to get multiple different records
Real use case is as follows :
1.
A backend service is providing me an different session_id for a similar request every time i make a call to that session web service.
2.
To fully utilize the session_id time usage window, i want that, every time a backend call is made, session_id’s generated would be stored up in the cache,
with a same key “ACTIVE” in a cache and after the workflow gets over, i again wanted that session_id’s to be updated in the cache but with a different key “IDLE”
3.
Would it be possible to have ‘1’ to ‘Many’ mapping possible in cache, here 1 refers to cache key (“ACTIVE/IDLE”) and many refers to cache values(session_id’s)
Cache_1 FIRST CASE:
Key Value’S
ACTIVE 1234
ACTIVE 9876
ACTIVE 8889
ACTIVE 5555
ACTIVE 7787
AFTER THE FLOW IS OVER AND WE NEEED TO UPDATE THE CACHE
Cache_1 SECOND CASE :
Key Value’S
IDLE 1234
IDLE 9876
IDLE 8889
Please provide suggestion to handle the above usecase
Regards,
Abhinav Gupta
May 4th, 2011 on 1:25 pm
What you can do is create an entity, for example
To use the
Active
entity you can use something likeInstead of using Serializable you can also use the POF, examples of which you can find in the post Coherence and Hibernate: Decoupling the Database.
July 1st, 2011 on 11:15 am
Hi Jay,
The stuck thread is occurred in our Environment due to Microsoft Active Directory (LDAP) Lock. Kindly give the valuable advise to resolve that issue.
Error Log:-
===========
which is more than the configured time (StuckThreadMaxTime) of “600″ seconds. Stack trace:
Thread-58 “[STUCK] ExecuteThread: ’3′ for queue: ‘weblogic.kernel.Default (self-tuning)’” <alive, in native, suspended, priority=1, DAEMON {
java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:???)
java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:331)
^– Holding lock: java.net.SocksSocketImpl@b36c6d0[thin lock]
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:192)
java.net.PlainSocketImpl.connect(PlainSocketImpl.java:173)
java.net.SocksSocketImpl.connect(SocksSocketImpl.java:311)
java.net.Socket.connect(Socket.java:490)
java.net.Socket.connect(Socket.java:469)
java.net.Socket.<init(Socket.java:354)
java.net.Socket.<init(Socket.java:180)
netscape.ldap.LDAPConnSetupMgr.connectServer(LDAPConnSetupMgr.java:490)
netscape.ldap.LDAPConnSetupMgr.openSerial(LDAPConnSetupMgr.java:433)
netscape.ldap.LDAPConnSetupMgr.connect(LDAPConnSetupMgr.java:273)
netscape.ldap.LDAPConnSetupMgr.openConnection(LDAPConnSetupMgr.java:188)
^– Holding lock: netscape.ldap.LDAPConnSetupMgr@b36c5b9[thin lock]
netscape.ldap.LDAPConnThread.connect(LDAPConnThread.java:104)
^– Holding lock: netscape.ldap.LDAPConnThread@b36c5c5[thin lock]
netscape.ldap.LDAPConnection.connect(LDAPConnection.java:1070)
^– Holding lock: netscape.ldap.LDAPConnection@b36c577[thin lock]
netscape.ldap.LDAPConnection.connect(LDAPConnection.java:962)
netscape.ldap.LDAPConnection.referralConnect(LDAPConnection.java:4921)
netscape.ldap.LDAPConnection.performReferrals(LDAPConnection.java:5065)
netscape.ldap.LDAPConnection.checkSearchMsg(LDAPConnection.java:2632)
netscape.ldap.LDAPSearchResults.fetchResult(LDAPSearchResults.java:521)
^– Holding lock: netscape.ldap.LDAPSearchResults@b36c10a[thin lock]
^– Holding lock: netscape.ldap.LDAPSearchResults@b36c10a[thin lock]
netscape.ldap.LDAPSearchResults.hasMoreElements(LDAPSearchResults.java:455)
weblogic.security.providers.authentication.LDAPAtnMemberGroupsNameList.advance(LDAPAtnMemberGroupsNameList.java:106)
weblogic.security.providers.utils.ListerManager.advance(ListerManager.java:233)
weblogic.security.providers.authentication.LDAPAtnDelegate.advance(LDAPAtnDelegate.java:1284)
weblogic.security.providers.authentication.LDAPAtnLoginModuleImpl.addAllGroups(LDAPAtnLoginModuleImpl.java:442)
weblogic.security.providers.authentication.LDAPAtnLoginModuleImpl.addAllGroups(LDAPAtnLoginModuleImpl.java:442)
weblogic.security.providers.authentication.LDAPAtnLoginModuleImpl.addGroups(LDAPAtnLoginModuleImpl.java:434)
weblogic.security.providers.authentication.LDAPAtnLoginModuleImpl.login(LDAPAtnLoginModuleImpl.java:138)
com.bea.common.security.internal.service.LoginModuleWrapper$1.run(LoginModuleWrapper.java:110)
com.bea.common.security.internal.service.LoginModuleWrapper.login(LoginModuleWrapper.java:101)
sun.reflect.GeneratedMethodAccessor2618.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:575)
javax.security.auth.login.LoginContext.invoke(LoginContext.java:720)
javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
javax.security.auth.login.LoginContext.login(LoginContext.java:566)
com.bea.common.security.internal.service.JAASLoginServiceImpl.login(JAASLoginServiceImpl.java:77)
sun.reflect.GeneratedMethodAccessor265.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:575)
com.bea.common.security.internal.utils.Delegator$ProxyInvocationHandler.invoke(Delegator.java:57)
$Proxy16.login(Unknown Source)
weblogic.security.service.internal.WLSJAASLoginServiceImpl$ServiceImpl.login(WLSJAASLoginServiceImpl.java:83)
com.bea.common.security.internal.service.JAASAuthenticationServiceImpl.authenticate(JAASAuthenticationServiceImpl.java:74)
sun.reflect.GeneratedMethodAccessor263.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:575)
com.bea.common.security.internal.utils.Delegator$ProxyInvocationHandler.invoke(Delegator.java:57)
$Proxy34.authenticate(Unknown Source)
weblogic.security.service.WLSJAASAuthenticationServiceWrapper.authenticate(WLSJAASAuthenticationServiceWrapper.java:29)
weblogic.security.service.PrincipalAuthenticator.authenticate(PrincipalAuthenticator.java:338)
weblogic.servlet.security.internal.SecurityModule.checkAuthenticate(SecurityModule.java:214)
weblogic.servlet.security.internal.SecurityModule.checkAuthenticate(SecurityModule.java:186)
weblogic.servlet.security.internal.FormSecurityModule.processJSecurityCheck(FormSecurityModule.java:234)
weblogic.servlet.security.internal.FormSecurityModule.checkUserPerm(FormSecurityModule.java:202)
weblogic.servlet.security.internal.FormSecurityModule.checkAccess(FormSecurityModule.java:45)
weblogic.servlet.security.internal.ServletSecurityManager.checkAccess(ServletSecurityManager.java:57)
weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2138)
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2060)
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1399)
weblogic.work.ExecuteThread.execute(ExecuteThread.java:198)
weblogic.work.ExecuteThread.run(ExecuteThread.java:165)
Regards,
S.Vinoth Babu
July 21st, 2011 on 12:08 pm
Hi Team,
We are planning to upgrade from weblogic 10.3.3 to 10.3.4 version.
There are 45 applications running in pre-production.
Could you please share some good practices for upgrading from 10.3.3 to 10.3.4?
Is it possible to upgrade without disturbing existing domains as there are lot of data sources, JMX Modules, users, arguments…
Thanks for your work!
Sunny
July 21st, 2011 on 12:32 pm
HI Sunny,
You can use WebLogic’s Domain Upgrade Wizard to upgrade your 10.3.3 Domains to WLS10.3.4 Domains without making any changes to your 45 applications. Please refer to the following link: http://download.oracle.com/docs/cd/E14571_01/web.1111/e13754/upgrade_dom.htm#i1066465
NOTE: WebLogic Server applications do not need to be undeployed. In most cases, WebLogic Server applications can be run without modifications in the new WebLogic Server 10.3.3 or WLS10.3.4 application environment.
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
July 26th, 2011 on 11:31 pm
Thank you very much Jay!
July 31st, 2011 on 6:40 am
Hi All,
I am facing some issue bringing up the admin server. Let me give some background first!
Environment: QA
OS: Red hat OS running on VMWare
Weblogic: 10.3.0
JVM: Jrockit
Nodemanager: scriptbased
System admin team upgraded the RAM from 8GB to 16GB on VMware. Before they did their task I had to shutdown the application. So I shutdown the 3 managed servers and admin server from the console.
After they bought the servers back up online after RAM upgrade, I tried to bring up admin console by using the script ./nmstartAdmin.sh but admin server did not start and here is what I saw in console logs:
Can you please let me know what the issue could be? I am totally stuck! How should I bring up the admin now??
I did not get any pointers to solve this issue from oracle forums as well. One of the solution I found said to remove the file adminserver.lok and restart! I tried this solution but it didnt work!
Any help will be appreciated!
Thanks,
Prasad.
July 31st, 2011 on 9:38 am
HI Prasad,
We need to check the log of Admin Server to know why the Admin Server did not come back. Can you please paste the Server log of Admin server? Looks like your Logs which you tried to display is not visible here so in order to paste your Logs/Exceptions you can do the following: http://middlewaremagic.com/weblogic/wp-content/uploads/2009/08/How_to_Post_Comments.jpg
Or send us the AdminServer log and related data in “contact@middlewaremagic.com”
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
July 31st, 2011 on 11:01 pm
Thank you Jay. I have sent the related info to contact@middlewaremagic.com
Prasad.
August 1st, 2011 on 10:51 pm
Hi Pradeep,
In your Server log i can see the following Error Code “BEA-000362” and the problem looks like the filw “-rw-r–r– 1 wlsplat wls 0 Jul 29 18:02 SOMENAME_admin.lok”.
So please try the following:
1). Stop the AdminServer
2). Delete the file “$DOMAIN_HOME/servers/AdminServer/tmp/SOMENAME_admin.lok”
3). then restart your servers.
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
August 1st, 2011 on 11:22 pm
Hi Jay,
I tried that one but it didnt work! Infact I took a backup of tmp folder and removed it entirely and then tried to restart. For some reason none of these steps are working!
BTW, what does this error mean Jay? I know it is something to do with locks! But honestly I am unable to figure out the fix for this one!
Thanks,
Prasad
August 2nd, 2011 on 8:00 pm
Hi Jay,
How can I import users from LDAP to weblogic ldap?
There are two ldap configuration: One is Embedded ldap under domain, Second one is ldap configuration under myrealm. What is different between them?
August 2nd, 2011 on 9:18 pm
Hi Raahi,
There is No way or Tool available to migrate the users from weblogic embedded ldap to another third party ldap server and vice-versa. The WebLogic’s Embeded LDAPs Data can be imported and exported to another WebLogic Domain only (Not to external ldaps).
In order to export WebLogic’s Ldap infrmations liek Username/passwords you cna do the following:
1). Login to WebLogic AdminConsole of (Suppose Domain_A)
SecurityRealms–>myrealm–>Migration (Tab)–> Export (Subtab)–>Export Directory onServer (Enter path of some existing dorectory here) then click on Export button. This is create some files (which contains user informations which can e imported to any pther WebLogic Domain)
2). To Import the above User Data into the embedded LDAP of another weblogic Domain you can do the following:
SecurityRealms–>myrealm–>Migration (Tab)–> Export (Subtab)–>Import
But there is no such tool available to migrate the External LDAP user database to the WebLogic’s Embedded LDAP, so this you will have to do manually. Or you can refer to the following WLST Script to do the same thing in less manual way.
http://middlewaremagic.com/weblogic/?p=4981
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
September 20th, 2011 on 1:02 am
hello Jay,
how do i create a weblogic url without using a port number. This is the issue. I have the QA environment in windows 2k3, in weblogic 9.2.2.0 version, and this machine hosts several applications.
There is an application named ecounsel.
so, i access it using http://qamachinename.na.novartis.net:portnumber/suite8/ecounsel.htm,
the network team had created a DNS entry for qamachinename.na.novartis.net as
development-ecounsel.nvd.novartis.intra,
http://qamachinename.na.novartis.net:portnumber/suite8/ecounsel.htm
with development-ecounsel.nvd.novartis.intra
how do i go about this, can i use virtual hosting, because it will be useful only for one app with port 80,
please help ???
now they want to access the
September 20th, 2011 on 1:04 am
they want me to configure in weblogic in such a way that
http://qamachinename.na.novartis.net:portnumber/suite8/ecounsel.htm
points to development-ecounsel.nvd.novarti.intra
November 11th, 2011 on 12:33 am
Any third party tool you recommend to deploy weblogic to multiple hosts. Say i want to deploy weblogic binaries 40 hosts and then run wlst on each to create the domains.
November 29th, 2011 on 6:04 pm
Issue:while adding the targets in the subdeployment
OS: RHEL 6 – 32bit
WLS: 10.3.0
Jdk: Sun 1.6_20 , Xms256 Xmx512
in the medrec sample application it is showing the target as MedRecJMSServer, but when we are trying to give the target as qacls it is only showing MedRecJMSServer in the qa envinronment. please suggest us how to overcome that problem.
Tags
February 3rd, 2012 on 10:19 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 are the params for the startup script of the production mode, I just want a general idea of what are the values that can be changed when it is used for the development mode?
I am a begineer, if anyone can help on this issue, it would be great. Thanks
February 12th, 2012 on 2:27 am
Hi Ravish/Jay/Ray,
In general sense, can you guess give some idea on what to consider while setting up throttling numbers for http (number of sessions, http connection), JMS (message flow, bytes) etc with explanation and some example? I know this is probably a vague question but if you can give explanation would be great.
Thanks guys for your help and greatly appreciate it..
Regards
James.
February 12th, 2012 on 11:08 pm
I am getting the following browser error after doing deployment from weblogic.deployer in ” EXPLODED DIRECTORY ” fashion.Please respond what can the issue be
***********************************
Error 403–Forbidden
From RFC 2068 Hypertext Transfer Protocol — HTTP/1.1:
10.4.4 403 Forbidden
*******************************
command used is
java weblogic.Deployer -adminurl t3://localhost:7001 -username weblogic -password weblogic -name envAudit -deploy D:datajmx_projectenvAudit.war
i have apppended the .war name behind the “envAudit” directory to deploy the application in exploded format.
plssssssssssssssssssss respond
February 14th, 2012 on 11:58 pm
Hi vikramjeet,
403 Error is an HTTP Response code which indicates that You dont have required credentials or permission to access the application. It has nothing to do with “weblogic.Deployer” or “Exploded Deployment”.
Just open the “envAudit.war/WEB-INF/web.xml” file and then check if there is any <security-constraint> or <role-name> is defined or not ?
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
April 18th, 2012 on 12:32 am
Hi Team,
Can you please provide me the scripts which automatically sends an email to us when the Weblogic servers are in Warning state or shutdown state. Thank you.
April 18th, 2012 on 8:34 pm
Hi All,
I am facing an issue that one of my managed server in SOA domain was running but with an warning message of STUCK THREAD. when I investigated in logs I found as follows:
LOGS:
#### <> <Disable and freeze users called on connection pool "SOADataSource-rac4" by "”.>
#### <> < ResourceAllocationException thrown by resource adapter on call to ManagedConnectionFactory.createManagedConnection(): “Internal error: Cannot obtain XAConnection weblogic.common.ResourceException:
SOADataSource(SOADataSource-rac1): Pool SOADataSource-rac1 is Suspended, cannot allocate resources to applications..
SOADataSource(SOADataSource-rac2): Pool SOADataSource-rac2 is Suspended, cannot allocate resources to applications..
SOADataSource(SOADataSource-rac3): Pool SOADataSource-rac3 is Suspended, cannot allocate resources to applications..
SOADataSource(SOADataSource-rac4): Pool SOADataSource-rac4 is Suspended, cannot allocate resources to applications..
at weblogic.jdbc.common.internal.MultiPool.searchHighAvail(MultiPool.java:505)
at weblogic.jdbc.common.internal.MultiPool.findPool(MultiPool.java:178)
at weblogic.jdbc.common.internal.ConnectionPoolManager.reserve(ConnectionPoolManager.java:89)
at weblogic.jdbc.jta.DataSource.getXAConnectionFromPool(DataSource.java:1677)
at weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:446)
at weblogic.jdbc.jta.DataSource.connect(DataSource.java:403)
But all my applications are working up & running.
Please help me in resolving this issue ASAP.
Thanks
Lokesh
June 2nd, 2012 on 10:57 am
HI Jay/Ravish/Rene , I have an issue, pls help me.
I have a struts application which is deployed on weblogic server 9.2.
When I am entering credentials in login.jsp page ,and once I press the submit the page, it is showing HTTP 500 error page.
As per my knowledge every thing is configured properly.
The Jsp page is
——————————–
LOGINa
User:
Password:
———————————
web.xml
————————–
abc
action
org.apache.struts.action.ActionServlet
config
/WEB-INF/struts-config.xml
debug
2
detail
2
validate
true
2
resource
action
*.do
index.jsp
/WEB-INF/struts-bean.tld
/WEB-INF/struts-bean.tld
/WEB-INF/struts-html.tld
/WEB-INF/struts-html.tld
/WEB-INF/struts-logic.tld
/WEB-INF/struts-logic.tld
/WEB-INF/struts-nested.tld
/WEB-INF/struts-nested.tld
/WEB-INF/struts-template.tld
/WEB-INF/struts-template.tld
/WEB-INF/struts-tiles.tld
/WEB-INF/struts-tiles.tld
resource
————————————
struts-config.xml
——————————-
June 2nd, 2012 on 11:08 am
Sorry I forgot
tags.
The Jsp page is
——————————–
LOGINa
User:
Password:
———————————
web.xml
————————–
abc
action
org.apache.struts.action.ActionServlet
config
/WEB-INF/struts-config.xml
debug
2
detail
2
validate
true
2
resource
action
*.do
index.jsp
/WEB-INF/struts-bean.tld
/WEB-INF/struts-bean.tld
/WEB-INF/struts-html.tld
/WEB-INF/struts-html.tld
/WEB-INF/struts-logic.tld
/WEB-INF/struts-logic.tld
/WEB-INF/struts-nested.tld
/WEB-INF/struts-nested.tld
/WEB-INF/struts-template.tld
/WEB-INF/struts-template.tld
/WEB-INF/struts-tiles.tld
/WEB-INF/struts-tiles.tld
resource
————————————
struts-config.xml
——————————-
June 2nd, 2012 on 11:16 am
jsp page
——————————–
<code><?xml version="1.0" encoding="UTF-8"?>
<code><web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="WebApp_ID" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<code><display-name>mbsfactorsportal<code></display-name>
<code><servlet>
<code><servlet-name>action<code></servlet-name>
<code><servlet-class>org.apache.struts.action.ActionServlet<code></servlet-class>
<code><init-param>
<code><param-name>config<code></param-name>
<code><param-value>/WEB-INF/struts-config.xml<code></param-value>
<code></init-param>
<code><init-param>
<code><param-name>debug<code></param-name>
<code><param-value>2<code></param-value>
<code></init-param>
<code><init-param>
<code><param-name>detail<code></param-name>
<code><param-value>2<code></param-value>
<code></init-param>
<code><init-param>
<code><param-name>validate<code></param-name>
<code><param-value>true<code></param-value>
<code></init-param>
<code><load-on-startup>2<code></load-on-startup>
<code><run-as>
<code><role-name>resource<code></role-name>
<code></run-as>
<code></servlet>
<code><servlet-mapping>
<code><servlet-name>action<code></servlet-name>
<code><url-pattern>*.do<code></url-pattern>
<code></servlet-mapping>
<code><welcome-file-list>
<code><welcome-file>index.jsp<code></welcome-file>
<code></welcome-file-list>
<code><jsp-config>
<code><taglib>
<code><taglib-uri>/WEB-INF/struts-bean.tld<code></taglib-uri>
<code><taglib-location>/WEB-INF/struts-bean.tld<code></taglib-location>
<code></taglib>
<code><taglib>
<code><taglib-uri>/WEB-INF/struts-html.tld<code></taglib-uri>
<code><taglib-location>/WEB-INF/struts-html.tld<code></taglib-location>
<code></taglib>
<code><taglib>
<code><taglib-uri>/WEB-INF/struts-logic.tld<code></taglib-uri>
<code><taglib-location>/WEB-INF/struts-logic.tld<code></taglib-location>
<code></taglib>
<code><taglib>
<code><taglib-uri>/WEB-INF/struts-nested.tld<code></taglib-uri>
<code><taglib-location>/WEB-INF/struts-nested.tld<code></taglib-location>
<code></taglib>
<code><taglib>
<code><taglib-uri>/WEB-INF/struts-template.tld<code></taglib-uri>
<code><taglib-location>/WEB-INF/struts-template.tld<code></taglib-location>
<code></taglib>
<code><taglib>
<code><taglib-uri>/WEB-INF/struts-tiles.tld<code></taglib-uri>
<code><taglib-location>/WEB-INF/struts-tiles.tld<code></taglib-location>
<code></taglib>
<code></jsp-config>
<code><security-role>
<code><role-name>resource<code></role-name>
<code></security-role>
<code></web-app>
June 2nd, 2012 on 11:21 am
struts-config.xml
—————————————–
<action path="/login" type="com.fanniemae.mbstax.action.LogInPassthroughAction">
<forward name="success" path="/search.jsp" contextRelative="true"/>
<forward name="fail" path="/index.jsp" contextRelative="true"/>
</action>
<action path="/logout" type="com.fanniemae.mbstax.action.LogOutAction">
<forward name="success" path="/logout.jsp" contextRelative="true"/>
</action>
June 2nd, 2012 on 11:23 am
Action class
———————————
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.struts.Globals;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import com.fanniemae.disclosure.common.security.RAMUser;
public class LogInPassthroughAction extends Action {
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
try {
System.out.println("In LogInPassthroghAction:");
HttpSession session = request.getSession(false);
if (session != null) {
session.invalidate();
}
String userId = request.getParameter("j_username").trim();
System.out.println("The user ID which is entered is "+userId);
String password = request.getParameter("j_password");
System.out.println("The Password which is entered is "+password);
if ((password != null) && (password.length() > 8)) {
password = password.substring(0, 8);
System.out.println("The Password after making it as substring "+password);
} else {
throw new Exception("To Login use pwd > 8 chars");
}
session = request.getSession(true);
List assignedRoles = new ArrayList();
RAMUser user = new RAMUser(userId, "fName", "lname", "email@domain.com", "456-456-4561", assignedRoles);
session.setAttribute("user", user);
return mapping.findForward("success");
} catch (Exception e) {
ActionErrors errors = new ActionErrors();
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(
"error.authentication.required"));
request.setAttribute(Globals.ERROR_KEY, errors);
}
return mapping.findForward("fail");
}
}
June 2nd, 2012 on 11:25 am
I am not seeing any error Jay, but once I am submit the login page, its showing error 500 page.
Pls help me
Thanks a lot
Viswa
June 15th, 2012 on 3:32 am
Hi ,
Q1) I decompiled the weblogic.jar to explore few stuffs.But could not find few java classes.Can you please help?
Example:
1) Decompiled weblogic.jar
2) Tried to look at the weblogic.security.providers.authentication.LDAPAtnLoginModuleImpl.java class.
Q2) where can I find the flow of weblogic (sequence of events happen when a server startu happens)
Thanks in advance
July 2nd, 2012 on 8:45 pm
Hi Ravish/Jay
I have to configure SSO using SAML 2.0 in WLS 10.3.
I have 2 domains and 2 apps deployed on each domain.
In one domain LDAP authenticator is configured with external LDAP. Any user present in external LDAP can have access to both the apps. My SSO configuration works well for development environment.
Now for production environment, I read in oracle documentation that RDBMS security store is required for SAML 2.0. I didn’t configure it for development environment. My query is if I configure RDBMS security store for production environment, what will happen to my external LDAP? How authentication will take place in that case and can RDBMS security store and external LDAP coexist?
Thanks in advance
Jolly
July 4th, 2012 on 12:33 pm
I do not why you should have an JDBC store, do they give a specific reason for this in the documentation? Your users are probably located in your external LDAP and not in the database. I think you can go for the configuration you have performed in the development environment. Also when you look for another tutorial (an old one, but still very good), you can find it here: http://www.oracle.com/technetwork/articles/entarch/sso-with-saml-099684.html
July 4th, 2012 on 2:02 pm
Hi Ren
Thanks for your response. I am using SSO with SAML 2.0. With SAML 1.1, RDBMS security store is not required. As per oracle documentation, to configure SSO with SAML 2.0, the RDBMS security store is required by the SAML 2.0 security providers in production environments so that the data they manage can be synchronized across all the WebLogic Server instances that share that data.
Here is the documentation url :
http://docs.oracle.com/cd/E23943_01/web.1111/e13707/saml.htm#i1107165
July 5th, 2012 on 4:23 pm
Note that the RDMBS security store is used for authorization, role mapping, credential mapping, and certificate registry providers (
http://docs.oracle.com/cd/E23943_01/web.1111/e13707/rdbms.htm#BABBGEFH).
In your set-up your users are probably maintained in the LDAP for authentication, i.e., to verify the user’s existence. (see here for more information – http://docs.oracle.com/cd/E23943_01/web.1111/e13707/atn.htm#i1211909)
July 24th, 2012 on 3:02 am
Hi All!
First of all, thanks for this wonderful website, I’m constantly checking this site and is giving me so much knowledge!
I’m wondering if you have any experience with weblogic server 10.3.2 + terracotta. We are experiencing some performance problems with weblogic portal 10.3.0 + wls 10.3.0 and we are migrating to wlp and wls 10.3.2 64 bits to overcome that. But I have the CTO pushing me to use terracotta before tuning wls 😛
What do you think about terracotta?
Thanks in advance!
July 24th, 2012 on 5:55 pm
Hi René!, thanks for your reply.
We have to define that yet. Probably, the first approach will be second-level cache, but I think that for some portals that just expose content from a content manager, we could use a caching for html generated pages. We have other portal that has authentication so I don’t know if we can to leverage ehcache or big memory.
Best regards.
August 13th, 2012 on 1:20 pm
Hi Magic Team,
Am very new to Weblogic. Now I have to setup an environment, where Admin server and 2 managed servers will be in three different physical machines. Obviously they will be having 3 different IP.
Node manager will be there to make all the 3 servers up and running.
Now, I want to know that for this setup, I need to install 3 weblogic instances in those 3 different machines?
If so, then how managed server 1 and managed server 2 has to be defined. Will they be managed servers or the admin servers there can act as managed servers for me?
I also have to have a apache proxy in between.
Please clear my understandings and please give me clear steps to achieve this.
August 17th, 2012 on 5:45 pm
Hi Team,
I do have another query, most java options start with “-D”. What does this -D stand for? can I have the list of all the java options and there use please??….
Regards:
Nihar R
Hi Magic Team,
What do we generally mean by “Clearing the cache” for weblogic?? which folders in the weblogic domain need clean up or which files need to be cleared/deleted for cache clearing. Please let me know.
~Nihar R
September 6th, 2012 on 7:54 pm
Hi magic Team,
This is related to IBM Websphere,it’s a general issue i think.
Issue:- In a DEV JVM we have 15 applications. when we try to start a application from console it is taking 6 minutes to start. When i restart the JVM it is taking 5 minutes. The same applications in testing environment it is taking secs to start. Configuarations are same in both DEV & QA. when iam starting application from console ,i tried to monitor cpu usage(linux) using TOP command DMGR pid using 150% and JVM pid using 130% of CPU. I tried to generate thread dumps ,i could not find anything form dumps. One more thing when i tailed SystemOut.logs i dont see any errors. no cpu starvation,no hungs,no outof memory.
Can anyone please give some ideas how i can resolve this issue.
September 13th, 2012 on 12:20 pm
Hi Team,
I had an issue ,while trying to target the datasource to Managed servers.
below errors i can see in Console..
Error weblogic.application.ModuleException:
Error weblogic.common.ResourceException: Could not create pool connection. The DBMS driver exception was: ORA-28000: the account is locked.
in which logs can i check the Conectionpool/DB related errors ?
i found some exeptions in one instance logs…
<> <Stack trace assoc
iated with message 001129 follows:
java.sql.SQLException: ORA-28000: the account is locked
Please help me..
Thanks in Adv.
Shireesha.
September 13th, 2012 on 8:05 pm
I am having some issues with LDAP connectivity to OID from a weblogic 10.3.4 installation. Basically what seems to happen is that after a certain amount of time the connection seems to drop and not re-connect. I would like to monitor active LDAP connections via a WLST script. However I cannot find a suitable mbean to give me this info. Anybody know where I can look?
Cheers!
Dave
October 10th, 2012 on 7:47 pm
Hi All,
Here is the issue that we are facing in our production environment. Need your help to resolve.
We have ten managed servers grouped in a cluster. For the zip download requests (download servlet), the requests were taking more time than the WLIOtimeoutsec and then getting replicated to other online nodes in cluster. This behavior making the application slow.
we are restarting all managed nodes one by one ( rolling restarts) to bring back the application stable. We contacted oracle support but no help.
Below are the entries in apache web httpd.conf file. We don’t have session replication enabled in weblogic.
SetHandler weblogic-handler
WebLogicCluster XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
WLCookieName PRDDC1
KeepAliveEnabled ON
DynamicServerList OFF
WLSocketTimeOutSecs 10
WLIOTimeoutSecs 3600
MaxSkipTime 10
ConnectTimeoutSecs 30
Debug OFF
WLForwardUriUnparsed ON
DebugConfigInfo ON
Can you please help us in this issue and how to stop these download requests getting replicated to other nodes in cluster?
October 10th, 2012 on 9:58 pm
Hi Rene,
Providing once again the entry in weblogic.xml
——–
CookieMaxAgeSecs
-1
CookieName
ANSWERSPRDDC1
InvalidationIntervalSecs
60
TimeoutSecs
7200
pageCheckSeconds
3600
keepgenerated
true
verbose
true
debug
true
-1
true
———-
Thanks
Sandeep Sarvepalli
November 6th, 2012 on 5:59 pm
Hi Guys,
I need urgent help.
I lately I have been plague with errors in my Weblogic Server w.r.t to DB connection.
JDBC version = Oracle Driver Thin for Service Connections version 9.0.1 and later.
Weblogic version = 10.3.4.0
DB version = 9.2.0.8
JDK version = java version “1.6.0_21”
issues are, users keep getting getting Java errors while accessing sub-modules inside the application that directly request data from an oracle DB table.
errors type:
1:
#### <> <Stack trace associated with message 001129 follows:
java.sql.SQLRecoverableException: IO Error: Socket read timed out
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:419)
at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:538)
at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:228)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(ConnectionEnvFactory.java:350)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:236)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1249)
at weblogic.common.resourcepool.ResourcePoolImpl$ResourcePoolMaintanenceTask.timerExpired(ResourcePoolImpl.java:2718)
at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
Caused By: oracle.net.ns.NetException: Socket read timed out
at oracle.net.ns.Packet.receive(Packet.java:331)
at oracle.net.ns.DataPacket.receive(DataPacket.java:104)
at oracle.net.ns.NetInputStream.getNextPacket(NetInputStream.java:315)
at oracle.net.ns.NetInputStream.read(NetInputStream.java:260)
at oracle.net.ns.NetInputStream.read(NetInputStream.java:185)
at oracle.net.ns.NetInputStream.read(NetInputStream.java:102)
at oracle.jdbc.driver.T4CSocketInputStreamWrapper.readNextPacket(T4CSocketInputStreamWrapper.java:124)
at oracle.jdbc.driver.T4CSocketInputStreamWrapper.read(T4CSocketInputStreamWrapper.java:80)
at oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(T4CMAREngine.java:1136)
at oracle.jdbc.driver.T4CMAREngine.unmarshalSB1(T4CMAREngine.java:1113)
at oracle.jdbc.driver.T4C8TTIpro.receive(T4C8TTIpro.java:128)
at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1078)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:308)
at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:538)
at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:228)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(ConnectionEnvFactory.java:350)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:236)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1249)
at weblogic.common.resourcepool.ResourcePoolImpl$ResourcePoolMaintanenceTask.timerExpired(ResourcePoolImpl.java:2718)
at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
2:
#### <>
3:
#### <>
#### <>
#### <> <Stack trace associated with message 001129 follows:
java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:419)
at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:538)
at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:228)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(ConnectionEnvFactory.java:350)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:236)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1249)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1166)
at weblogic.common.resourcepool.ResourcePoolImpl.reclaimReservedResources(ResourcePoolImpl.java:1477)
at weblogic.common.resourcepool.ResourcePoolImpl.disablePool(ResourcePoolImpl.java:1447)
at weblogic.common.resourcepool.ResourcePoolImpl.forceSuspend(ResourcePoolImpl.java:288)
at weblogic.jdbc.common.internal.ConnectionPool.forceSuspend(ConnectionPool.java:194)
at weblogic.common.resourcepool.ResourcePoolImpl.processFailCountExceededDisableThreshold(ResourcePoolImpl.java:1747)
at weblogic.common.resourcepool.ResourcePoolImpl$Group.incrementTestFailCount(ResourcePoolImpl.java:2347)
at weblogic.common.resourcepool.ResourcePoolImpl$Group.access$200(ResourcePoolImpl.java:2210)
at weblogic.common.resourcepool.ResourcePoolImpl.checkResource(ResourcePoolImpl.java:1681)
at weblogic.common.resourcepool.ResourcePoolImpl.checkAndReturnResource(ResourcePoolImpl.java:1588)
at weblogic.common.resourcepool.ResourcePoolImpl.checkAndReturnResource(ResourcePoolImpl.java:1577)
at weblogic.common.resourcepool.ResourcePoolImpl.testUnusedResources(ResourcePoolImpl.java:2021)
at weblogic.common.resourcepool.ResourcePoolImpl.access$1800(ResourcePoolImpl.java:41)
at weblogic.common.resourcepool.ResourcePoolImpl$ResourcePoolMaintanenceTask.timerExpired(ResourcePoolImpl.java:2697)
at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
Caused By: oracle.net.ns.NetException: The Network Adapter could not establish the connection
at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:375)
at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:422)
at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:686)
at oracle.net.ns.NSProtocol.connect(NSProtocol.java:246)
at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1056)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:308)
at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:538)
at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:228)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(ConnectionEnvFactory.java:350)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:236)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1249)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1166)
at weblogic.common.resourcepool.ResourcePoolImpl.reclaimReservedResources(ResourcePoolImpl.java:1477)
at weblogic.common.resourcepool.ResourcePoolImpl.disablePool(ResourcePoolImpl.java:1447)
at weblogic.common.resourcepool.ResourcePoolImpl.forceSuspend(ResourcePoolImpl.java:288)
at weblogic.jdbc.common.internal.ConnectionPool.forceSuspend(ConnectionPool.java:194)
at weblogic.common.resourcepool.ResourcePoolImpl.processFailCountExceededDisableThreshold(ResourcePoolImpl.java:1747)
at weblogic.common.resourcepool.ResourcePoolImpl$Group.incrementTestFailCount(ResourcePoolImpl.java:2347)
at weblogic.common.resourcepool.ResourcePoolImpl$Group.access$200(ResourcePoolImpl.java:2210)
at weblogic.common.resourcepool.ResourcePoolImpl.checkResource(ResourcePoolImpl.java:1681)
at weblogic.common.resourcepool.ResourcePoolImpl.checkAndReturnResource(ResourcePoolImpl.java:1588)
at weblogic.common.resourcepool.ResourcePoolImpl.checkAndReturnResource(ResourcePoolImpl.java:1577)
at weblogic.common.resourcepool.ResourcePoolImpl.testUnusedResources(ResourcePoolImpl.java:2021)
at weblogic.common.resourcepool.ResourcePoolImpl.access$1800(ResourcePoolImpl.java:41)
at weblogic.common.resourcepool.ResourcePoolImpl$ResourcePoolMaintanenceTask.timerExpired(ResourcePoolImpl.java:2697)
at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
Caused By: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at oracle.net.nt.TcpNTAdapter.connect(TcpNTAdapter.java:150)
at oracle.net.nt.ConnOption.connect(ConnOption.java:130)
at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:353)
at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:422)
at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:686)
at oracle.net.ns.NSProtocol.connect(NSProtocol.java:246)
at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1056)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:308)
at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:538)
at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:228)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(ConnectionEnvFactory.java:350)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:236)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1249)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1166)
at weblogic.common.resourcepool.ResourcePoolImpl.reclaimReservedResources(ResourcePoolImpl.java:1477)
at weblogic.common.resourcepool.ResourcePoolImpl.disablePool(ResourcePoolImpl.java:1447)
at weblogic.common.resourcepool.ResourcePoolImpl.forceSuspend(ResourcePoolImpl.java:288)
at weblogic.jdbc.common.internal.ConnectionPool.forceSuspend(ConnectionPool.java:194)
at weblogic.common.resourcepool.ResourcePoolImpl.processFailCountExceededDisableThreshold(ResourcePoolImpl.java:1747)
at weblogic.common.resourcepool.ResourcePoolImpl$Group.incrementTestFailCount(ResourcePoolImpl.java:2347)
at weblogic.common.resourcepool.ResourcePoolImpl$Group.access$200(ResourcePoolImpl.java:2210)
at weblogic.common.resourcepool.ResourcePoolImpl.checkResource(ResourcePoolImpl.java:1681)
at weblogic.common.resourcepool.ResourcePoolImpl.checkAndReturnResource(ResourcePoolImpl.java:1588)
at weblogic.common.resourcepool.ResourcePoolImpl.checkAndReturnResource(ResourcePoolImpl.java:1577)
at weblogic.common.resourcepool.ResourcePoolImpl.testUnusedResources(ResourcePoolImpl.java:2021)
at weblogic.common.resourcepool.ResourcePoolImpl.access$1800(ResourcePoolImpl.java:41)
at weblogic.common.resourcepool.ResourcePoolImpl$ResourcePoolMaintanenceTask.timerExpired(ResourcePoolImpl.java:2697)
at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
and many more.
Please give me your email ID so I could upload the relevant log information.
—
Andrew
Mumbai
November 10th, 2012 on 6:02 am
Hello All, I really appreciate the kind of work your are doing through this blog. It is really helpful.
I have some questions regarding WebLogic redeployment. We are using WebLogic 10.3.5. We have two data centers, so when there is a new release we take one out of traffic and deploy. Our deployments are in nostage mode which are deployed on a cluster (spread horizontal and cluster). We place deployments in same location on all machines of cluster.
Process we follow to deploy new wars and ears:
Stop cluster
Replace the Wars and Ears with new files
Start cluster.
So my question is whether we are following correct process, are new Wars and Ears deployed when cluster is started or do we need to delete ‘tmp’ and ‘cache’ folders inside /servers//. Sometimes we find issues with this process so we delete ‘tmp’ and ‘cache’ and restart to resolve the issue.
In previous post I mean
“cluster (spread horizontal and vertical)”
‘tmp’ and ‘cache’ folders inside ‘domainhome’/servers/’jvm’/
December 11th, 2012 on 7:23 pm
Hi René van Wijk,
How to configure the Oracle Wallet autologin features into weblogic datasource configuration.
If we configure the wallet file configuration in weblogic server we are facing the below error message.
ORA-01017: invalid username/password; logon denied oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:440)oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:389)oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:382)oracle.jdbc.driver.T4CTTIfun.processError(T4CTTIfun.java:573)oracle.jdbc.driver.T4CTTIoauthenticate.proces
localhost:/u01/app/oracle/product/11.2.0/dbhome_1/bin/mkstore -wrl /var/tmp/wallet/ -create
-rw——- 1 root root 3589 Dec 11 20:06 cwallet.sso
-rw——- 1 root root 3512 Dec 11 20:06 ewallet.p12
localhost:/u01/app/oracle/product/11.2.0/dbhome_1/bin/mkstore -wrl /var/tmp/wallet/ -createCredential localhost:1521/testdb test test_123
we copy the wallet file into weblogic domain security directory
localhost:/lapps/oracle/wls1034/domains/testdomain/security # ls -rlt
total 48
-rwxr-x— 1 weblogic www 64 Mar 30 2012 SerializedSystemIni.dat
-rwxr-x— 1 weblogic www 4126 Mar 30 2012 DefaultAuthenticatorInit.ldift
-rwxr-x— 1 weblogic www 22654 Mar 30 2012 XACMLRoleMapperInit.ldift
-rwxr-x— 1 weblogic www 2398 Mar 30 2012 DefaultRoleMapperInit.ldift
-rwxr-x— 1 weblogic www 3896 Dec 11 20:14 ewallet.p12
-rwxr-x— 1 weblogic www 3973 Dec 11 20:14 cwallet.sso
localhost:/lapps/oracle/wls1034/domains/testdomain/lib # ls -rlt
total 2764
-rwxr-x— 1 weblogic www 261716 Mar 30 2012 com.oracle.osdt_core_1.0.0.0.jar
-rwxr-x— 1 weblogic www 169974 Mar 30 2012 com.oracle.osdt_cert_1.0.0.0.jar
-rwxr-x— 1 weblogic www 214202 Mar 30 2012 com.oracle.oraclepki_1.0.0.0.jar
-rwxr-xr-x 1 weblogic www 2158945 Mar 30 2012 ojdbc6.jar
Weblogic datasource configuration steps:-
Driver Class Name: oracle.jdbc.OracleDriver
URL: jdbc:oracle:thin:/@localhost:1521/testdb
Properties: oracle.net.wallet_location=/lapps/oracle/wls1034/domains/empkg-domain/security
System Properties: -Doracle.net.wallet_location=/lapps/oracle/wls1034/domains/empkg-domain/security/cwallet.sso
How to resolve the issue in weblogic datasource configuration.
I have followed the below blogs but i am not able configure the wallet in the weblogic datasource.
https://blogs.oracle.com/WebLogicServer/entry/weblogic_database_use_of_oracle
Regards,
S.Vinoth Babu
December 12th, 2012 on 1:32 pm
Some hints to create wallets are presented here – http://docs.oracle.com/cd/E23943_01/core.1111/e10105/wallets.htm#CIHFHGBC
– http://psoug.org/oraerror/ORA-01017.htm
“The core issue with an ORA-01017 error is an invalid user ID and passwords combination, but other than an incorrect password, there are user ID issues that may contribute to the ORA-01017 error:
It may be that the user ID is invalid for the target system – The user ID exists as the username column in the dba_users view.
select username from dba_users;
Check your $ORACLE_SID environmental parameter. If your $ORACLE_SID is set to the wrong system ID then you may get a ORA-01017 error because you are connecting to the wrong database.
If using external OS user authentication (ops$ or remote_os_authent) you need to verify that the user ID is valid. You can tell if you are using external authentication because you connect without providing a user/password combination, and only provide a forward slash to the connect string, (e.g. connect / as sysdba;).
Check your tnsnames.ora to ensure that the TNS service name points to the correct server and instance name. If you specify an incorrect tnsnames.ora service name, then the user ID and password may not exist in that database.”
December 31st, 2012 on 2:12 pm
Please help me with the below queries:
1. Whether vmware is appropriate to host Oracle 11g suite
2. What is the best fit Operating System for Oracle 11g.
3. What version of Web server would be suitable
4. What version of SOA database should be used
5. How to implement DMZ for SOA based projects
6. Should ScW be using RAC database?
Many Thanks in advance…please help with these..
January 22nd, 2013 on 8:06 pm
Hi René van Wijk,
As per our client security standard we must disable the http port for weblogic admin server. We must access the weblogic admin console through https by using third party SSL certificate. If we start the managed server we saw the “<Emergency <Management <BEA-141151 <The admin server could not be reached at https://localhost:7002. ".
<Emergency <Management <BEA-141151 <The admin server could not be reached at https://localhost:7002.
<Info <Configuration Management <BEA-150018 <This server is being started in managed server independence mode in the absence of the admin server.
We already updated the Admin server url in startManagedWebLogic.sh script ( ADMIN_URL="https://localhost:7002" ) and also include the third party ssl certificate details in the startManagedWebLogic.sh script.
JAVA_OPTIONS="-Dweblogic.security.IdentityKeyStore="CustomIdentity" -Dweblogic.security.CustomIdentityKeyStoreFileName="/lapps/oracle/wls1034/domains/ Test-domain/JKS/test.apa.in.com.jks" -Dweblogic.security.CustomIdentityKeyStorePassPhrase="test123" -Dweblogic.security.Identity.KeyStoreType="JKS" -Dweblogic.security.TrustKeyStore="CustomTrust" -Dweblogic.security.CustomTrustKeyStoreFileName="/lapps/oracle/wls1034/domains/ Test-domain/JKS/test.apa.in.com.trust.jks" -Dweblogic.security.CustomTrustKeyStoreType="JKS" -Dweblogic.security.CustomTrustKeyStorePassPhrase="test123"
-Dweblogic.security.IgnoreHostNameVerification="true" -Dweblogic.security.SSL.ignoreHostnameVerification="true" ${JAVA_OPTIONS}"
Then we only see the information message in weblogic managed server log file.
<Jan 13, 2013 8:31:14 PM KST <Notice <Security <BEA-090169 <Loading trusted certificates from the jks keystore file /lapps/oracle/wls1034/domains/Test-domain/JKS/test.apa.in.com.trust.jks.
<Jan 13, 2013 8:39:19 PM KST <Info <Management <BEA-141107 <Version: WebLogic Server 10.3.3.0 Fri Apr 9 00:05:28 PDT 2010 1321401
<Jan 13, 2013 8:39:22 PM KST <Info <Configuration Management <BEA-150018 <This server is being started in managed server independence mode in the absence of the admin server.
Could you please provide valuable steps to resolve the issue.
Regards,
S.Vinoth Babu
January 24th, 2013 on 1:56 pm
http://www.veriton.co.uk/roller/fmw/entry/ssl_for_weblogic_server_11g
http://docs.oracle.com/cd/E23943_01/web.1111/e13701/network.htm#CNFGD170
http://docs.oracle.com/cd/E23943_01/web.1111/e13707/ssl.htm#SECMG384
February 17th, 2013 on 12:08 am
Hello jay,
I want to installed Application server (weblogic, Jboss) and configure domain in the server. But i don’t have any server for installing these middlware software.
Can anyone please give idea and steps how can i make my laptop as localhost(server) and installed in it.
I am naive in this subject matter so, if anyone can explain in steps i would really appreciate it.
Thank you in advance,
April 10th, 2013 on 9:32 pm
Hi,
Admin Port Help.
I have setup admin port and able to login to the console with the admin port.
However when i try to start the managed server i am unable to do so.
#### <> <An error occurred while establishing a connection back to the admin
stration server t3s://X.X.X.X:9002 during startup. Since bootstrap succeeded check that t3s://X.X.X.X:9002 uniquely identifies the administrati
on server.
javax.naming.ServiceUnavailableException [Root exception is java.rmi.NoSuchObjectException: The object identified by: '31' could not be found. Either it was
has not been exported or it has been collected by the distributed garbage collector.]
Admin Server : 7001
SSl : 7101
MS : 7002 SSL : 7102
Admin Port : 9002
nohup ./startManagedWebLogic.sh ms2 https://cwsapp02:9002 &
Is my command incorrect while starting the ms2 should i not use the admin port
Also i see a lot of SSL warnings after enabling admin port
i am able to login to console with https://xx:9002 port with out issues
April 11th, 2013 on 4:28 pm
Any help on the admin channel issue please?
September 4th, 2013 on 4:39 pm
Hi,
Need some knowledge on Statemenmt timeout of datasource in weblogic 11g. we set the statement timeout as 120 secs. we are using oracle 11g DB. we are calling a stored procedure from the java application which is deployed on weblogic 11g. when the stored proc is running abnormally in some scenarios and takes more then 120 secs the execution is not timing out but it is marked as stuck thread.
is the statement timeout is not working?? we are using callable statement. is there any way to set timeout in 11g ??
November 29th, 2013 on 3:29 pm
Hi Gurus,
I need to record the activity log going on in the weblogic environemnt servers like who logged when and who did what for both my WLS (12c) application server and OHS (11) web server also. Can someone please help me.. Thanks in Advance.
Thanks
Vikas
December 2nd, 2013 on 3:03 pm
Thank you so much Rene.
December 19th, 2013 on 4:43 am
Hi,
I have a war file deployed on a cluster. And from the past 3 days, few users are reporting that the session is getting timed out within 30 mins.
Actually the session timeout is set for 240 mins(4 hrs), this is defined in the web.xml file.
And the interesting thing is , this is not happening to everyone. Only few users are facing this session timeout in sometime.
Any suggestions or such experiences!!!
Thanks in Advance
December 19th, 2013 on 5:37 pm
Hi Rene,
Thanks for the reply. Yes you are right the session timeout can be set in many places. And web.xml value will override all other timeout values.
But the issue is,as i have mentioned already in the above description yesterday, the web.xml in the war has session timeout defined for 240 minutes(4 hours). And it will still getting timed-out only for few users within 30 mins.
December 21st, 2013 on 2:14 am
can anybody help me that how to write rewrite rule in httpd.conf
Thanks in advance
December 31st, 2013 on 1:18 pm
Hi, I am planning for a Secondary Site(DR) for the Weblogic Portal 10.3.2. At present we are having a Primary Site having an Admin Server and 5 Managed Servers. The Database is Oracle RAC with Standby Database available at the Secondary Site replicated using Data Guard.
Now how do i configure and create a Secondary Admin Server . We are using a RDBMS Security Realm at the primary site.
I tried copying the complete installation of Primary Site to the Secondary site servers . Changed the JDBC where ever required . Also changed the IP’s in the config.xml. Howerever upon trying the start the Admin Server the following error appears :
<The realm "myreal
m" failed to be loaded: weblogic.security.service.SecurityServiceException: java
.lang.AssertionError: java.lang.reflect.InvocationTargetException.
weblogic.security.service.SecurityServiceException: java.lang.AssertionError: ja
va.lang.reflect.InvocationTargetException
at weblogic.security.service.CSSWLSDelegateImpl.initializeServiceEngine(
CSSWLSDelegateImpl.java:342)
at weblogic.security.service.CSSWLSDelegateImpl.initialize(CSSWLSDelegat
eImpl.java:221)
February 19th, 2014 on 4:10 pm
Dear Team,
I didn’t see the old posts. Is it removed. There was a article for G1GC, I don’t see it any more. Also the home page show the latest post of 2011.
Please have a look in to this.
Regards,
Sohel.
January 6th, 2016 on 2:01 pm
Hi Jay,
I am facing an issue in OSB ,where backend response is coming as null if testing end to end and if testing only PS we are getting proper response.
enabled tracing on services only getting soap envelope in response.
However if backend responds with valid error message it is working fine.
problem is coming only when it is a success from backend “$body” is coming as blank.
please advice.
January 6th, 2016 on 2:34 pm
Hello utkarsh18,
I responded to the query here: MiddlewareMagic Group LinkedIn
Regards
Jay SenSharma
January 23rd, 2016 on 2:45 pm
Hi,
Our oracle DB was upgraded to 12c but weblogic is still running on version 8.1 and we are facing a ora exception as below in the connection pool.
” ora-28040 no matching authentication protocol”.
How can we get rid of this error from weblogic end.
Can some one please provide a solution on the same?
January 23rd, 2016 on 6:19 pm
Hello Tjbgopal,
As you mentioned that your DB was recently upgraded to 12c hence i am suspecting that it might be due to a known issue of Oracle.
Bug 14575666
>>> In 12.1, the default value for the SQLNET.ALLOWED_LOGON_VERSION parameter has been updated to 11. This means that database clients using pre-11g JDBC thin drivers cannot authenticate to 12.1 database servers unless theSQLNET.ALLOWED_LOGON_VERSION parameter is set to the old default of 8.
This will cause a 10.2.0.5 Oracle RAC database creation using DBCA to fail with the ORA-28040: No matching authentication protocol error in 12.1 Oracle ASM and Oracle Grid Infrastructure environments.
Workaround: Set SQLNET.ALLOWED_LOGON_VERSION=8 in the oracle/network/admin/sqlnet.ora file.
OR
Try using the latest oracle JDBC driver on the WLS side.
Regards
Jay SenSharma