- Installing WebLogic Using Silent Mode Of Installation
- Oracle WebLogic 10.3.3 Zip Installer For Development
- WebLogic Initial Components (Topology)
- WebLogic Clustering In Remote Boxes (Horizontal Clustering)
- Nodemanager Based ManagedServers setting MEM_ARGS
- Various Options Of Taking Thread Dumps
- Managed Server As Windows Service
- Binding Custom Objects, WebLogic Serverโs JNDI Tree
- Configuring Frontend Host and Port
- How to Build EAR Application for WebLogic
- Converting HTTP Request to HTTPS Automatically
- Basic JMS Demo using WebLogic Queue
- WebLogic FormBased Authentication
- Creating WebLogic DataSource Using Pointbase
- Configuring Virtual Hosts/
- Basic JMS Demo using WebLogic Topic
- Using WebLogic Generic Jar Installer
- Why and How Oracle JRockit?
- Steps to Configure SNMP agent on Weblogic Server
- WebLogic SNMP LogFilter Configuration
- NodeManager is not reachable
- Improving Performance by Compressing JSP contents
June 29th, 2010 on 6:49 am
Hello Jay, i wondered if it is possible to you to make a tutorial about jdbc pool connections.
I made a little program with a connection to oracle database using ibatis, but i dont know if i need to make a configuration inside weblogic console administration (using WLS 10.0 MP2). In fact i dont know much about connection pools in weblogic ๐
It would be very helpful if u teach this thing with an example of a EJB 3.0 doing the connection.
Thanx in advance Jay, and i hope this isnt a problem to you.
Best Regard
Mauro
Chile!
June 29th, 2010 on 2:04 pm
Hi Mgaldames,
I have developed 2 Posts —>DataSource Creation and —>Utiilization of DataSource inside EJB3 based on your requirement…. Please refer to http://middlewaremagic.com/weblogic/2010/06/29/resource-datasource-injection-in-ejb3/
And
http://middlewaremagic.com/weblogic/2010/06/29/creating-weblogic-datasource-using-pointbase/
.
.
Keep Posting ๐
Thanks
Jay SenSharma
July 1st, 2010 on 10:22 pm
Hi Jay,
This is balaji working in Wipro technology. I have joined in wipro 2007 Nov,2007 TO 2008 Dec I have worked as weblogic admin,after am working in core banking applications .Now am planning to go again weblogic ,am already attending interviews.
My problem.Please suggest which documnets I have to read to start weblogic .In google so many pdf’s and documneets am getting confused from where I can start and how to plan step by step to depth knowledge in weblgic admin. I don’t have java development knowledge.
Kindly suggest on this.Kindly reply to my id balajikumar1984@gmail.com
Thanks
balaji
July 11th, 2010 on 2:23 am
Hello Jay, i have a request for u. Can u make a beginner tutorial about clustes? how can i configure them and use them in WLS?
Thanx in advance!
July 11th, 2010 on 9:19 am
Hi Mgaldames,
There are two Posts related to Cluster Setup in the “BeginnersCorner” Page ..
1). Creating ClusterSetup In Remote Boxes : http://middlewaremagic.com/weblogic/2010/04/28/weblogic-clustering-in-remote-boxes/
and
2). Creating Clusters While Creating the Domain in Linux(Unixbased OS): http://middlewaremagic.com/weblogic/2010/06/11/creation-of-a-weblogic-domain-on-a-unix-machine/
Please let us know if you wanted something specific in Cluster configuration Part.
.
.
Keep Posting ๐
Thanks
Jay SenSharma
July 12th, 2010 on 5:52 pm
Thanx for the reply Jay, i just wanted to know why should i use clusters and why/how to setup Data Sources connections to clusters ๐
BTW what i really want to know if its possible, how to use threads in applications (webapp and EJB). I read that i shouldnt create threads by my self and instead i should to use WLS threads… Can u explain me this please? and if u can made a tutorial with and example would be great!
Thanx Jay!
July 13th, 2010 on 12:48 pm
Hi Mgaldames,
To Create a DataSource for Clustered Environment is not different from creating a DataSource and targetting it to a Single Server. All what u need to do is….Create any DataSource and finally Target it to a Cluster rather than Targetting it to a Single Server. Data Source Lookup code wise u need not to make any additional changes. Just u need to write the following Code while performing the Look up of DataSource from Client end…
import java.rmi.*;
import javax.naming.*;
import java.util.*;
import javax.sql.*;
import java.sql.*;
public class LookupDataSource
{
public final static String JNDI_FACTORY = “weblogic.jndi.WLInitialContextFactory”;
private static String clusterUrl =”t3://localhost:7003,localhost:7005,localhost:7007″;
//The Aboe URL should point to all the Managed Servers URL Which are part of the Cluster….
//Usually Cluster address means the comma Separated URL list of all the ManagedServers which are part of clusters…
public static void main(String ar[])throws Exception
{
InitialContext ic=null;
try{
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, JNDI_FACTORY);
env.put(Context.PROVIDER_URL, clusterUrl);
env.put(Context.SECURITY_PRINCIPAL,”weblogic”);
env.put(Context.SECURITY_CREDENTIALS,”weblogic”);
ic = new InitialContext(env);
}
catch(Exception e){
System.out.println(“nnt Unable To Get The InitialContext => “+e);
}
try{
DataSource ds=(DataSource)ic.lookup(“YourDataSourceJNDIName”);
System.out.println(“t Got the DataSource… “+ds);
}
catch(Exception e)
{
System.out.println(“nnt Unable To Get DataSource => “+e);
e.printStackTrace();
}
}
}
——————–
Regarding Threading Concepts….
We should never try to Create our own Threads inside the EJB/Servlet kind of applications…because The Application Server Container assigns a new Thread for every request processing…once the request processing gets finished…it assigns the same thread to some other clients request…So if we will implement our own Thread implementation inside EJBs/Servlets then in that case with a small mistake in the Code the Thread created by us may take a longer duration to execute …until that time the parent thread might have completed its Task and Might have assigned to some other clients request…Like this our Threads will remain running inside the container.
Apart from this…Many informations like Transactions and Application Context related informations are passed by the Containers via their own Threads…to the other components. So we should never create our Own Threads while working with Servlets and EJBs.
.
.
Keep Posting ๐
Thanks
Jay SenSharma
July 14th, 2010 on 8:24 pm
Thanx for the explanation Jay, a user from oracle forum recommend me to use the CommonJ Work Manager instead of creating your own custom threads. Can u teach me what is this “CommonJ Work Man…” and how its work?
best regards,
Mauro
July 14th, 2010 on 8:47 pm
Hi Mgaldames,
Sometimes back I have developed a Post on how to use “Commonj Workmanager” and TimerManager together … Please ignore the TimerManager from that post and just refer to the WorkManager portion…http://middlewaremagic.com/weblogic/2009/12/20/application-level-workmanager-timermanager-lookup/
.
.
Keep Posting ๐
Thanks
Jay SenSharma
July 15th, 2010 on 5:54 pm
Thanx again for the reply Jay, i am learning a lot ๐
I have a question, and it would be great if u can help me with this:
1) i used to read a MQ Series queue from a simple java application using mq series api and a thread to listen to that queue. Now i want to do the same in a EJB 3.0 but u suggest to not use thread. Can u suggest me a way to do the same? (i thought in the possibility of using application life cycle listener)
Thanx in advance!
July 16th, 2010 on 10:07 am
Hi Mauro,
It is not recommended to create our own Thread inside WebLogic Container to perform application specific activity. Because Thread Handling part should be taken care by the Container itself.
I understand your requirement …u want an application deployed on WebLogic Server which should be able to get JMS Messages from the MQ-Series… in order to achieve the best and recommended way is creating “Foreign JMS Server” and then configure it to connect to the MQ Series messages…then u can deploy a Simple MDB application inside your WebLogic Server to read the Messages from that Foreigh JMS Server.
Some usefull link u will find here:
Please refer to the Below Link to achieve this….With Screenshots as well
Suitable for WLS8.x
http://www.ibm.com/developerworks/websphere/library/techarticles/0604_kesavan/0604_kesavan.html
For later versions of WLS8.x you can even refer to :
http://ibswings.blogspot.com/2008/02/integrating-mq-broker-6-with-bea.html
Means u need to create a Message Bridge between WebLogic and MQ Series…something similar to (Not exactly same because the link demonstrates Message Bridge configuration B/w WebLogic Domain to another WebLogic Domain) : http://middlewaremagic.com/weblogic/2010/06/22/configuring-message-bridge-between-two-weblogic-server-domains-using-wlst/
Apart from this Please refer to : http://download.oracle.com/docs/cd/E11035_01/wls100/bridge/basics.html#wp1162799 The above Link Tells about What is Messaging Bridge And Why/When to use it?
.
.
Keep Posting ๐
Thanks
Jay SenSharma
July 16th, 2010 on 8:53 pm
Jay, thanx once again! I will study the links u provide me i think its looks like what i need ๐
I just have the host, port and queue name of the Remote MQ… i made 2 simple java projects and works fine… but now i need to do the same for JEE project in WLS and i have doubts about threads ๐
Ok, thanx again Jay… u helped me a lot!!
August 2nd, 2010 on 11:08 pm
thnx jay
if dont enable -Dweblogic.StdoutDebugEnabled=true or -Dweblogic.log.RedirectStdoutToServerLogEnabled=true, by default where these stdout and stderr files will be written
thanks
venu
August 2nd, 2010 on 11:14 pm
Hi Venu,
In that case it will follow the setting provided as part of AdminConsole—>Server–>Logging (Tab) Out file settings. Otherwise there wont be any File. Rather all the stdout informations will go in the Command prompt in which you started the WebLogic Server (In Windows). In windows you can use the redirection operator to redirect the outout to a separate file like:
startWebLogic.cmd > MyOutfile.txt
If you are using Unix Based OS then you can use “nohup” to redirect the output of your file in the Nohup out file.
nohup startWebLogic.sh 2>&1> nohup.out
Here 2>&1 represents that send all the Stdout as well as all StdErr messages in the same file “nohup.out”
.
.
Keep Posting ๐
Thanks
Jay SenSharma
August 3rd, 2010 on 10:35 pm
hi jay
thnx for reply
actually my doubt is:
ms_1 is in the cluster C1 with MSI mode enabled,
if Admin server failed, will the nodemanager restart tht MS_1 with msi-config.xml? or not
thnx in advnce
venu
August 3rd, 2010 on 10:37 pm
Hi Venu,
No If the AdminServer fails …Nodemanager will not restart the ManagedServer. Managed Servers will keep on runnning….
Next time if Admin is down and if you will try to start/restart Managed Servers using NodeManager then they will use the “msi-config.xml” file to boot up.
.
.
Keep Posting ๐
Thanks
Jay SenSharma
August 18th, 2010 on 2:54 am
Hi jay ,
sometimes when i am working on production deployment , some applications is going to admin state instead of retired state . What is this admin state.and i observe some times when i restarting the manged servers , it went to admin state instead of running state, i click on resume after that it will work good , and the state is in running state.
when the deployment is in admin state we can not do anything , we cannot delete that application , we can not stop that application , why and what is this admin state means really?
August 19th, 2010 on 11:27 am
Hi Rocky,
There is no hard Rule that Why a Server or An Application Goes into the Admin Mode. But in 90 % cases you will find that some of the System Resources like JDBC/JMS/Application resources are not getting activated properly which causes the Server/Application to Move into the AdminState.
To Identify the root cause of these kind of issues we need to set the Server Logging Level to Trace and need to keenly analyze the Complete Server Log …and WARNNING need to be keenly observed. Still if we dont find anything then we to Apply Application Level Debug Flags or Cluster Cmmunication related Debug Flags….based on our Assumptions.
.
.
Keep Posting ๐
Thanks
Jay SenSharma
August 24th, 2010 on 6:30 pm
Thanks Jay.
But actually as the developer asked me directly to setup the env varibale – i’ve added the following to JAVA_PROPERTIES line in setDomainEnv.sh file
-Denv=DEV
And finally everything works fine.,
Even i asked the developer whether he applied any changes to his code , and he simple said nothing he changed – and with line itself everything worked fine.
August 24th, 2010 on 5:48 pm
Hi Jay
How to set environment variable in weblogic server ??
Rcently i’ve created one new domain , and the user complaints to me that he’s not able to access the app – and he sees the error like
java.lang.NoClassDefFoundError: com/csc/mailservice/client/MailServiceClient
And he suggested like environment variable was setup , so asking me to setup.
Where can i do this ??
Please help me?
Thanks.
August 24th, 2010 on 5:54 pm
Hi Arun,
The “java.lang.NoClassDefFoundError: com/csc/mailservice/client/MailServiceClient” Indicates that the Class is Not present in the CLASSPATH. As it looks like that “com/csc/mailservice/client/MailServiceClient” is not a WebLogic Specific class rather it’s an Application or Third party class.
So first of all find out the JAR file which contains the Missing Class. Then try to Put it inside the Applications “lib” directory …either “<EAR_APP>APP-INFlib” (incase of EAR application) or inside “<WAR_APP>WEB-INFlib” (incase of WAR application).
If you dont want to put the Jar file inside the Application then Put the Jar file inside “<DOMAIN_HOME>lib” directory in all the Managed Server boxes, wherever you have deployed the Application
Or explicitely set the Missing Jar file in the Classpath of Server in the server StartScript. If you are are starting your Server using NodeManager then Please set the CLASSPATH like described in the following Link: http://middlewaremagic.com/weblogic/2010/03/26/nodemanager-based-managedservers-setting-mem_args/
.
.
Keep Posting ๐
Thanks
Jay SenSharma
August 30th, 2010 on 5:34 pm
Hi Jai, Please let me know What is Virtual Host in Weblogic , how to create it & what is the advantage ?
August 30th, 2010 on 5:37 pm
Hi Praveen,
Please refer to the following Post on Virtual Hosts….to know how to configure it and Where can we use it?
http://middlewaremagic.com/weblogic/2010/05/18/configuring-virtual-hosts/
And
http://middlewaremagic.com/weblogic/2010/07/06/virtual-host-demo-sample/
.
.
Keep Posting ๐
Thanks
Jay SenSharma
August 31st, 2010 on 5:25 pm
I really thank you for you update. Apart of this I have another question is: when I am restarting a managed server in production environment, it was failed in Admin state. So when I clicked on Resume button for that perticular managed server, it’s become Active.could you please let me know what was the cause lead it to Admin state and how was it become Active when resumed ? Appreciates for quick reply..
August 31st, 2010 on 5:47 pm
Hi Praveen,
If a Server Moves to Admin State It means It is unable to activate some of the Modules which are deployed on this Server. usually it happens If any Application is Not getting activated properly or a Datasource or JTA recoveryor a JMS System/SubSystem is not getting activated properly then also it moves into the Admin State. So To find out the Root cause we need to keenly observer the Logs. Specially we need to check what configuration changes we made on the Server recently.
Still if we dont get much informations then based on our assumptions we may need to apply different Debug flags on that Server to get some more information’s on the Server Logs.
.
.
Keep Posting ๐
Thanks
Jay SenSharma
August 31st, 2010 on 5:51 pm
thanks Jay,
but want to know how the server state become Active when we clicked on Resume button for that server?
August 31st, 2010 on 6:08 pm
Hi Praveen,
I don’t have answer for that question right now…Because after Leaving Oracle WebLogic Server Support i don’t have access to the WebLogic Codes. but i will try to find that answer and will update you as soon as i get the answer.
But if you are facing this issue very frequently then i will recommend you to Open a Support ticket with Oracle on this. Because it is not good that the Serer goes into the Admin State.
.
.
Keep Posting ๐
Thanks
Jay SenSharma
September 1st, 2010 on 1:09 pm
Hi jay,
could you please let me know the WebLogic application server specific jar files? and the basic differences between WebLogic and Websphere ?
September 1st, 2010 on 2:26 pm
Hi Praveen,
Whatever Jar files you see inside the “<WL_HOME>serverlib” most of them are weblogic Jar files. except some jars like Ojdbc14.jar…etc
To know the different between WebLogic Vs WebSphere please refer to: http://www.theserverside.com/discussions/thread.tss?thread_id=6882
.
.
Keep Posting ๐
Thanks
Jay SenSharma
September 21st, 2010 on 12:52 am
Hi Jay
how to give different memory arguments for admin server and managed servers.
I have changed memory arguments in setdomainEnv.sh
but the problem is, i want different mem args for my adminserver and my managed servers(ms1, ms2).
please reply me.
thanks
harry
September 21st, 2010 on 10:16 am
Hi Harry,
If you want to provide different Memory Arguments/Classpath to different Managed Servers then in that case you must have to create your own Separate Custom script to start ManagedServers. like “startManaagedOne.sh” and “startManagedTwo.sh”.
It is easy…Just make 2 copies of “startManagedWebLogic.sh” which is present inside your “<DOMAIN_HOME>bin” directory and then rename them as “startManaagedOne.sh” and “startManagedTwo.sh” …then edit them according to your Requirement.
.
.
Keep Posting ๐
Thanks
Jay SenSharma
September 22nd, 2010 on 3:02 am
HI Jay,
thanks for the solution.
September 29th, 2010 on 1:02 am
Hi Jay,
I am a beginner.I just would like to know how to change the memory arguments(steps) as per the requirement in production environment….
September 29th, 2010 on 8:56 am
Hi John,
If you are starting your servers using startScripts like startWebLogic.sh or startManagedWebLogic.sh then you can change the memory arguments using “setDomainEnv.cmd/sh” like described in Step-2) : http://middlewaremagic.com/weblogic/2010/09/03/why-and-how-oracle-jrockit/
If you are starting your Servers from AdminConsole or Directly Using NodeManager then you can refer to: http://middlewaremagic.com/weblogic/2010/03/26/nodemanager-based-managedservers-setting-mem_args/
.
.
Keep Posting ๐
Thanks
Jay SenSharma
September 29th, 2010 on 11:35 pm
Hi Jay,
Thanks for the help.
October 2nd, 2010 on 4:34 am
Hi Jay,
How to configure MQ series with weblogic server.
what are the commands used start and stop mq series?
thanks
harry
October 2nd, 2010 on 5:21 am
HI Jay,
i have one more doubt, what is 404error and 500error and hwy does it occur and what are the steps to trouble shoot those errors. Am a beginner they asked this in the interview which i couldnt answer them. so please explain about these?
thanks
harry
October 5th, 2010 on 4:57 pm
Hi Jay
Good Evening..
I’ve created new “WebLogic Domain” in production mode for WL version 10.3.3.
So whenever i start the adminServer , I was prompted to provide username/password.
In-order to avoid this , I tried the following way , but its not helpful for me –
1. Created a folder named security under
D:Weblogic Home 10user_projectsdomainswls_domain1serversAdminServer
2. Opened a notepad , and entered as
username=weblogic
password=weblogic
Saved the txt file with boot.properties under above mentioned path.
3. Stopped the adminServer
4. Started once again
But still i was asked to provide username/password..
Can you help me how to fix this ?
Thanks Much for your help.
October 6th, 2010 on 10:13 am
You mean to add the java options in setDomainEnv ?
If so , do we have any specific line where we can add them..?
Can you please let me know.
Thanks
October 21st, 2010 on 12:18 pm
Thanks most of my issues were getting resolved.
Very helpful.
Thanks once again.
How many JVMs we have ???
To my knowledge i can say like :
1. Sun JVM,
2. IBM JVM and
3. Oracle’s (JRockit).
Am i correct ? If not plz correct , and anything additions , let me know
Thanks
Arun
October 21st, 2010 on 4:23 pm
Hi Arun,
Those 3 are the Most popular and most common JDKs which are used in 98% environments. Still there are many other JDKs but those are not much popular like HP Jdk, Azul Jdk (also called as AVM), …etc.
.
.
Keep Posting ๐
Thanks
Jay SenSharma
October 21st, 2010 on 4:41 pm
Great!
Thanks for the information.
November 15th, 2010 on 12:09 am
Hi Jay,
Do you have any link for Weblogic Download for Ubuntu 10.10 64 bit.
I was looking for wls1032_generic.jar.
Kindly update.
November 15th, 2010 on 1:47 am
Hi Satya,
Generic Jar installer is suitable for all the Operating Systems So it will work very well with Ubuntu as well. Please find the Download line in the following link: http://www.oracle.com/technetwork/middleware/ias/downloads/wls-main-097127.html In the above link as soon as you will click on the “Accept License” Radio Button the Download link of Generic Installer WLS10.3.3 will be active (Generic: 921 MB File1 )
.
.
Keep Posting ๐
Thanks
Jay SenSharma
November 15th, 2010 on 8:45 am
Hey Jay
Could you explain about thread dump, thread execute and analyzing thread dumps.
Please update, with explanation.
Thank you
Sanjib Dey
November 15th, 2010 on 10:50 am
Hi swordfish,
I would suggest you go through the below post which would give you an idea on your questions.
High CPU Analysis in AIX
However thread dump is a very huge topic and we are planning to write a post on it…
Hope this helps you.
Regards,
Ravish Mody
November 15th, 2010 on 11:25 pm
Hi Ravish
Thanks for the response , but I would like to know more about thread dump/analysis preferably on Linux/SunOS
In case put some real time example and analysis would be of great help.
note: please keep adding more topics in the beginner’s Corner & General Weblogic
Thank You
Sanjib
November 16th, 2010 on 10:16 am
Hi swordfish,
Thank you for the suggestions, we would try our best to write posts with real time examples.
We also know that Beginnerโs Corner & General Weblogic pages are the highest hit pages and we are planning to get more topics for it in coming future.
So would request you to stay tuned for the coming up brand new topic in above mentioned pages. ๐
Regards,
Ravish Mody
December 9th, 2010 on 3:21 am
Hi Jay/Ravish
Can we have the topic MDB’s added and a brief explanation on it.
If you can explain
What is MDB’s
Why we required MDB
Its advantage
MDB with respect to Weblogic.
What role it play in JMS.
Thanks & Regards,
Sohel
January 27th, 2011 on 7:00 am
Jay,
Please confirm me on this..
MEM_ARGS, that we specify in the scripts,its at a Domain level Right?
Each and every JVM instance in the domain will have the same initial Memory and Max memory available, Right?
January 27th, 2011 on 10:57 am
Hi Sathya
By default the MEM_ARGS applies to the whole domain…because every scripot calls setDomainEnv.sh
But if you want different Managed Server should run with different memory args then you will need to create separate
startManaged_1.sh
startManaged_2.sh
startManaged_3.sh
with their own Memory settings defined in their own scripts….which is very easy …Just copy and paste the default “startManagedServer.sh” and add the JAVA_OPTIONS in that.
.
.
Keep Posting ๐
Thanks
Jay SenSharma
January 31st, 2011 on 9:53 am
Hi Jay,
What are the different thread available in Weblogic,
EX :
(1)Weblogic.socket.Muxer
(2)Weblogic.Kernel.Default
(3)Weblogic.kernel.System
Please let us know what are the rest available..
Thanks
Sathya
February 17th, 2011 on 3:09 pm
Hi,
I encountered a performance problem.
My system has lots of threads being blocked by a [fat lock] of DataSourceManager.
The threaddump is as follows.
“”[ACTIVE] ExecuteThread: ‘1’ for queue: ‘weblogic.kernel.Default
(self-tuning)'” id=23 idx=0x70 tid=21733 prio=5 alive, blocked, native_blocked, daemon
— Blocked trying to get lock:
weblogic/security/service/internal/DataSourceManager@0x4925c6a0[fat lock]
at jrockit/vm/Threads.waitForUnblockSignal()V(Native Method)
…..
February 17th, 2011 on 3:09 pm
Sorry, don’t know how to post an issue yet.
February 17th, 2011 on 4:31 pm
Hi Scott,
We are not able to see the complete Thread Dumps…Is it possible for you to please mail us the Thread Dumps on “contact@middlewaremagic.com” …It is always recommended that we should have atleast 4-5 hread dumps taken in the interval of Each thread dumps when we see Stuck / slow responsivness of Servers.
.
.
Keep Posting ๐
Thanks
Jay SenSharma
February 23rd, 2011 on 9:24 pm
Hi Jay,
I have deployed the library file and ear files which i deploy will reference this library .
The state of lib file is showing as new , when i tried to stop it says the below.
The library has been excluded. Libraries are always managed as part of another application.
– Warning– All of the Deployments selected are currently in a state which is incompatible with this operation. No action will be performed.
How can i make that lib file as active .
I tried to stop the applications that reference this library file and tried to start the lib file but also it throws same error .
Could you please suggest me on this issue?
If i need to deploy the higher version of lib file , i need to undeploy the existing lib and deploy the new lib .But what will happen to the applications that reference the old library , Whether i need to undeploy those and redeploy ?
Thanks
Murali.T
Thanks
Murali.T
February 23rd, 2011 on 11:58 pm
Hi Murali,
“A shared J2EE libraries or optional package cannot be undeployed until all applications that reference the library or package are first undeployed.” But for Shared Library upgrade , You can deploy a new version of the shared library by incrementing the implementation version in MANIFEST.MF and then undeploy the older version. That way there is always at least one version of the library available in the server to be a reference of other applications.
Please refer to the following link:
http://download.oracle.com/docs/cd/E13222_01/wls/docs103/deployment/managing.html#wp1018937
.
.
Keep Posting ๐
Thanks
Jay SenSharma
February 25th, 2011 on 3:48 pm
hi jay,
Just created an account in middlewaremagic,and this is my first post.
I have small problem.I have a war file which has been deployed on weblogic 10.3.3.Its working fine.
The problem is when ever the user logs in to the application and access the database and then logs out from the application.
The thread of the user is still present even though he has logged out.
Is there any option which needs to be enabled or disabled in weblogic.
Because in a day if 300 -400 user gets logged in.Then at the end of the day,there are 300-400 active threads,which is hampering the performance
Pls help,
Thanks in advance
Regards
Fabian
February 25th, 2011 on 6:00 pm
Hi Fabian,
From WLS 9.x self-tuning threads were introduced which would grow and decrease automatically, depending on the load. So if more users are coming in then more threads would be produced and once WLS notices it that now there is no need of these threads it would get reduces automatically.
Topic: Server Self-Tuning for Production Environments
http://download.oracle.com/docs/cd/E13222_01/wls/docs90/notes/new.html#1216270
However if you need to restrict this feature and want to define a number then you would have to go with workmanager, to get more information on that check out the below link.
Topic: WorkManagers
http://middlewaremagic.com/weblogic/?page_id=87
February 25th, 2011 on 3:52 pm
hi jay,
I m new to weblogic,previously used to work on OAS10g,According to companies requirement shifted the entire application from OAS10g to weblogic 10.3.3
Just wanted to know Are there any good Documents for tuning weblogic 10.3.3?
Searched online but neva got any specify updates for specific parameters
from my end i have increased heap size and jvm size
Regards
Fabian
February 25th, 2011 on 6:03 pm
Hi Fabian,
Following link might help you which has the some top tuning recommendation for WLS from Oracle
Topic: Top Tuning Recommendations for WebLogic Server
http://download.oracle.com/docs/cd/E14571_01/web.1111/e13814/topten.htm
March 1st, 2011 on 12:03 pm
Hi Ravish,
Here is a small problem f mine.
Im tryin using java weblogic.Server utility in an empty folder.
———————————————–
Please check the error in getting:
java weblogic.Server
/home1/deutschebank/chicagodomain/config/config.xml not found
No config.xml was found.
Would you like the server to create a default configuration and boot? (y/n): y
Enter username to boot WebLogic server:weblogic
————————————————
I have tried the below mentioned option:
In JAVA_OPTIONS
-Dweblogic.management.allowPasswordEcho=true
still getting the same error. Please let me know where is Native Library(terminalio) located so that i’d be able to try the same after settin it in classpath and PATH.
Thanks,
Vidhan/-
March 1st, 2011 on 12:04 pm
ERROR:
java weblogic.Server
/home1/deutschebank/chicagodomain/config/config.xml not found
No config.xml was found.
Would you like the server to create a default configuration and boot? (y/n): y
Enter username to boot WebLogic server:weblogic
March 1st, 2011 on 12:04 pm
Enter username to boot WebLogic server:weblogic
March 1st, 2011 on 12:32 pm
Hi Vidhan,
I have just used the same command after running the “setWLSENV,sh” which can be found in the path (wlserver_10.3/server/bin) on the same prompt and for me its working just fine as you can see in below output,
NOTE: Make sure you use an extra (.) dot when you run setWLSENV.sh like shown below and then run the your command.
April 7th, 2011 on 5:51 pm
hi Middleware team,
Since i have worked mostly on Oas 10g and now shifted to weblogic.I just wanted to know..whether this is possible on weblogic as well..Im not comparing it.
Like in OAS,i could generate a trace file (.trc) of a particular user ie we could come to know..from backend, what all queries are fired and we get a detailed description about how much bytes of data he is using from the network and This was helpful for finding out the root cause of minor issues faced by end users.
Regards
Fabian
April 7th, 2011 on 6:35 pm
Hi Fabian,
You can use “Extended Access Logging” feature provided by WebLogic to extract more informations regarding the request processing as described in the following link:
http://download.oracle.com/docs/cd/E13222_01/wls/docs91/config_wls/web_server.html#elf
It can be enabled through Admin Console as well like:
http://download.oracle.com/docs/cd/E13222_01/wls/docs91/config_wls/web_server.html#elf
.
.
Keep Posting ๐
Thanks
Jay SenSharma
April 14th, 2011 on 11:06 am
Hi Jay / Ravish ,
Last week with the help of you both , i was able to install WebLogic-10.3.3.0 successfully on Ubuntu 10.4 , fine!
But I’m over coming with one wired issue ,
Issue –
1. Using “terminal” , initially installed weblogic ,fine.
2. And then created one sample domain , fine.
3. Before starting adminServer , i just thought of opening one more new terminal , and tail log file to just watch – so just clicked one more terminal.
,
Now plays interesting part and wired one was –
the already running terminal disappears , and even unable to open any other new terminals.
So i cant open/use any more terminals
Then after spending some time came to know what’s the issue –
“execute” permissions were deleting for /bin directory So anything accessible via /bin will NOT be accessible any more.
This is happening only after installing Weblogic , so there’s something going on after installing weblogic which making to delete execute permissions.
Do we have anything which making this happen ? any idea?
Do we have any place where we can check , or how this happening ?
Do we have any fix for this ?
How am i confirming tht only happening with weblogic installation means –
I tried uninstalling weblogic , and able to open “n” number of terminals without any issues.
Please let me know if anything was un-clear , i’ll explain once again..
Please help me here , because of this i am unable to practice weblogic.
Thanks
Kiran
April 14th, 2011 on 12:25 pm
Hi Kiran,
The problem of “Disappearing of Terminals” which you faced has nothing to do with WebLogic. Please contact your Operating System Administrator. WebLogic doesnot controls the Terminal in which it runs.
.
.
Keep Posting ๐
Thanks
Jay SenSharma
April 14th, 2011 on 12:31 pm
Okay thanks Jay..
I know that weblogic has nothing to do with terminals , but though not sure exactly what’s happening..
Anyways , will take care thanks.
-Kiran
April 14th, 2011 on 12:38 pm
Hi Jay ,
I have some issue with one of my DB-Connection pool which was configured in DEV environment ( it’s standalone machine , targeted on adminserver only)
Doubt whether my pool has connection leak.
So i would like to monitor the open/closed/leaked connection of my data source , was it possible ?
I read on middlewareforums ( not sure whether site also maintained by you)
Steps –
In the JDBC Connection Poolโ>Configurationโ>Connections tab, click on Advanced options.
Click Enable Connection Leak Profiling then hit apply.
BUT i dont find check box like “Connection Leak Profiling”
I’m using WLS 10.3 version
Thanks
Kiran
April 14th, 2011 on 1:07 pm
Hi Kiran,
First of all middlewareforums is not maintained by us and we are no way affiliated with or a part of them. They are using the same look and feel for web pages as ours …That’s why we added our LOGO of MM around 3 months back in Middleware Magic to be easily distinguishable. There site was registered around December 2010.
So there is no relation between MiddlewareMagic and middlewareforums web site.
In WLS 10.3 version this is the correct path for Profile Connection Leak
JDBC Connection Pool โ> Configuration [tab ]โ> Diagnostics [sub-tab]
Also you could use our own PY scripts which would send you email also and would monitor your Data Source
Topic: Sending Email Alert for WebLogic DataSource Monitoring State & Connections Usages
http://middlewaremagic.com/weblogic/?p=5727
Regards,
Ravish Mody
April 14th, 2011 on 1:46 pm
Thanks for the clarification regarding site , just confused as they were also using the same color and look like magic web-site.
And found the option where this Profile Connection Leak exists as ur correct , it’s under Diagnostics tab.
And better i start using your PY scripts , they would help more..
thanks Ravish / Jay
Thanks
Kiran
April 14th, 2011 on 2:49 pm
Hi,
I’m seeing the below error in the logs –
#### <>
Current settings looks like –
Initial capacity = 1
Maximum capacity =15
Test Frequency = 120
Please let me know like anything to be updated?
thanks
kiran
April 14th, 2011 on 3:04 pm
Hi Kiran,
We are not able to see the error which you wanted us to see…..
Please make sure that you post your errors contents in the format mentioned in the following Image:
http://middlewaremagic.com/weblogic/wp-content/uploads/2009/08/How_to_Post_Comments.jpg
Regards,
Ravish Mody
April 14th, 2011 on 3:09 pm
Error message –
April 14th, 2011 on 3:36 pm
This is error i’m seeing in the logs :
14 Apr 2011 05:17:52,418 ERROR – weblogic.common.resourcepool.ResourceLimitException: No resources currently available in pool usrdb.tx.ds to allocate to applications, please increase the size of the pool and retry..
Maximum capacity is 15 , so do you want me to increase ? or do we first need to check anything-else ?
And suppose if i enable “Profile Connection Leak” , where i need to check/monitor things ?
Thanks
kiran
April 14th, 2011 on 4:00 pm
Hi Kiran,
From the error in log it seems that your application needs more connections however data source has been exhausted and all the 15 connection are been used.
Now the Maximum capacity is dependent on your application and environment requirement hence try to increase it with a good amount and check if its still running out.
You can monitor the connection from the console also from the below console path
JDBC Connection Pool โ> Monitoring [tab ]โ> Statistics [sub-tab]
For monitoring Leaked Connection Count you have to click on the link Customize this table which is on the same page just above the table and select “Leaked Connection Count” (You can also choose any other parameters if you like so the details of these parameters can be found in this link – http://download.oracle.com/docs/cd/E13222_01/wls/docs103/ConsoleHelp/pagehelp/J2EEappdeploymentsmonitorjdbctabletitle.html ) from the left-box to the right-box and hit Apply button. Now you can monitor the numbers
Regards,
Ravish Mody
April 14th, 2011 on 4:10 pm
Hi Ravish,
Under :-
JDBC Connection Pool โ> Monitoring [tab ]โ> Statistics [sub-tab]
I can see my data-source “running” fine. , and even i can test ( testing tab) the pool successfully without any errors.
anyways i’ll increase it from 15 – 25 , and check how this goes..
But , do we have any chance like check what all connections being in use currently , and find out if any connection was NOT released after use.. like this , any ?
thanks
kiran
April 14th, 2011 on 4:29 pm
Hi Kiran,
You can also choose the “Active Connections Current Count” to check the current connection used by your applications and as I told before you can choose any other parameters too as per your requirement.
Also you can use the following parameters for making sure the connection gets back to the pool if they are been open and been ideal for a given number of time
JDBC Connection Pool โ> Configuration [tab ]โ> Connection Pool [sub-tab]
Inactive Connection Timeout
Shrink Frequency
Regards,
Ravish Mody
April 14th, 2011 on 4:36 pm
This sounds good to me..
I’ll apply these changes ,and keep monitoring them.
I’ll get back to you incase of any issues/help.
Thanks once again
-kiran
April 14th, 2011 on 7:07 pm
Hi Ravish / Jay,
Seriously i have issues in using Ubuntu OS.. so now decided to delete , and go for weblogic supported one.
Can you suggest me which would be BEST operating system to install , and have good workflow with weblogic ?
thanks
kiran
April 14th, 2011 on 8:04 pm
Hi Kiran,
Performance wise Red hat Enterprise Linux 5 with WebLogic is a wonderful combination.
.
.
Keep Posting ๐
Thanks
Jay SenSharma
April 14th, 2011 on 8:11 pm
Hi Jay,
Do i need to buy , or can i get it for free download?
thanks
kiran
April 14th, 2011 on 8:16 pm
Hi Kiran,
Redhat is an open source company, hence you are not charged for downloading and using it, Redhat only changers for the subscription if you need any support from them. Thus you can download it from the below link for FREE and use it
Topic: Download Software
https://rhn.redhat.com/rhn/software/downloads/SupportedISOs.do
Regards,
Ravish Mody
April 14th, 2011 on 8:28 pm
Thanks..
Looks like i need to sign-up before downloading , i’ll make it.
thanks
kiran
April 14th, 2011 on 8:34 pm
Hi,
Which one should i go for download now?
Red hat Enterprise Linux 5 , doesnt exist in the list , so got doubt.
Here’s the list –
Red Hat Linux 7.1 i386
Red Hat Linux 7.1 Alpha
Red Hat Linux 7.1 for zSeries (64 bit, s390x)
Red Hat Linux 7.2 i386
Red Hat Linux 7.2 for S/390 (31 bit, s390)
Red Hat Linux 7.3 i386
Red Hat Linux 9 i386
Red Hat Enterprise Linux AS (v. 3 for x86)
Red Hat Enterprise Linux ES (v. 3 for x86)
Red Hat Enterprise Linux WS (v. 3 for x86)
Red Hat Enterprise Linux AS (v. 3 for Itanium)
Red Hat Enterprise Linux ES (v. 3 for Itanium)
Red Hat Enterprise Linux WS (v. 3 for Itanium)
Red Hat Enterprise Linux AS (v. 3 for AMD64/Intel EM64T)
Red Hat Enterprise Linux ES (v. 3 for AMD64/Intel EM64T)
Red Hat Enterprise Linux WS (v. 3 for AMD64/Intel EM64T)
Red Hat Enterprise Linux AS (v. 3 for iSeries and pSeries)
Red Hat Enterprise Linux AS (v. 3 for S/390)
Red Hat Enterprise Linux AS (v. 3 for zSeries)
Red Hat Desktop (v. 3 for x86)
Red Hat Desktop (v. 3 for AMD64/Intel EM64T)
thanks
kiran
April 14th, 2011 on 8:46 pm
Hi Kiran,
This is the point where … we will not be able to help you. Because this time your System Administrator will have to tell you exactly which operating system you are using and What you should download.
If i would be you then i will never ask this question to anyone.
๐
As your query is not up to the mark …We are going ahead and deducting your 15 Magic Points from your Magic Account.
๐
.
.
Keep Posting ๐
Thanks
Jay SenSharma
April 14th, 2011 on 8:50 pm
I’m sorry…
Actually I’ve my own personal laptop where i would like to install a dual boot beside my windows 7 operating system.
My laptop configuration –
Windows 7
RAM – 6GB
HDD – 500GB
Intel i3 x86 processor
thanks
kiran
April 14th, 2011 on 11:23 pm
Jay/Ravish,
Is there any document here which tell how to read the threaddumps or any examples?
Could you please provide me the link.
Thank you
Manish
April 15th, 2011 on 10:46 am
Hi Manish,
Thread Dump analysis is a very wast topic and the analysis of it varies case to case scenario….
But for some guide lines you can refer to the following link: http://middlewaremagic.com/weblogic/?p=4884
.
.
Keep Posting ๐
Thanks
Jay SenSharma
April 15th, 2011 on 10:46 am
Hi Jay / Ravish,
Lost my magic points , atleast now.. please help me which version of Linux i need to download , though i’m facing many problems for past couple of weeks in installing OS.. still
thanks for all your help.
thanks
kiran
April 19th, 2011 on 12:37 pm
Hi Jay/Ravish/Rene,
Can we deploy an application in exploded format in production. what is the difference/advantage between exploded and archive? Please help.
Thanks & Regards,
Sohel.
April 19th, 2011 on 2:01 pm
Hi Sohel,
As such there is no negative impact of deploying an application in Exploded format in production or development environments. The Only negative impact is ….Exploded Applications cannot be remotely deployed, Only Archived applications can be deployed remotely and Archived applications consumes less space in the disk space.
.
.
Keep Posting ๐
Thanks
Jay SenSharma
April 20th, 2011 on 12:10 pm
Hi Jay / Ravish,
Finally i’ve installed rhel-6 operating systems now , thanks.
I would like to install wls_10.3.4 , does everything go well without any issue while installing , and while working..?
Any comment on this ?
thanks
kiran
April 20th, 2011 on 12:46 pm
Hi Kiran,
Please refer to the following Video for WLS10.3.4 instalation and configuration.
.
.
Keep Posting ๐
Thanks
Jay SenSharma
April 20th, 2011 on 1:49 pm
Hi Jay ,
Thanks , but i don’t see any video attached to this message ๐
Can you please re-send it for me..?
thanks
kiran
April 20th, 2011 on 2:07 pm
http://www.youtube.com/user/OracleWebLogic?feature=uploademail_ch#p/u/7/EHX_ej3ajcI
.
.
Thanks
Jay SenSharma
April 20th, 2011 on 2:12 pm
Wow!!! weblogic you-tube version , nice , happy to see this , much helpful.
I’ll let you know in-case of any need.
Thanks
kiran
April 26th, 2011 on 10:13 am
Hi Jay / Ravish ,
You can ignore my above post , because i found out how can i skip if i don’t need any lines.
So now I have installed wls_1034 successfully on RHEL-6 , thanks.
Now after creating one sample DOMAIN in production mode , i’m unable to makke AdminServer UP(running).
Here the error –
####<Apr 26, 2011 2:37:58 AM IST> <Notice> <Security> <Unknown> <AdminServer> <[ACTIVE] ExecuteThread: ‘0’ for queue: ‘weblogic.kernel.Default (self-tuning)’> <<WLS Kernel>> <> <> <1303765678223> <BEA-090082> <Security initializing using security realm myrealm.>
####<Apr 26, 2011 2:37:58 AM IST> <Critical> <WebLogicServer> <Unknown> <AdminServer> <Main Thread> <<WLS Kernel>> <> <> <1303765678231> <BEA-000362> <Server failed. Reason:
There are 1 nested errors:
weblogic.security.service.SecurityServiceRuntimeException: [Security:090399]Security Services Unavailable
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doBootAuthorization(CommonSecurityServiceManagerDelegateImpl.java:916)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1050)
at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:873)
at weblogic.security.SecurityService.start(SecurityService.java:141)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
>
####<Apr 26, 2011 2:37:58 AM IST> <Notice> <WebLogicServer> <Unknown> <AdminServer> <Main Thread> <<WLS Kernel>> <> <> <1303765678284> <BEA-000365> <Server state changed to FAILED>
####<Apr 26, 2011 2:37:58 AM IST> <Error> <WebLogicServer> <Unknown> <AdminServer> <Main Thread> <<WLS Kernel>> <> <> <1303765678284> <BEA-000383> <A critical service failed. The server will shut itself down>
####<Apr 26, 2011 2:37:58 AM IST> <Notice> <WebLogicServer> <Unknown> <AdminServer> <Main Thread> <<WLS Kernel>> <> <> <1303765678288> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
Can you please help me in checking this error , and let me know am i NOT able to start..
Thanks
kiran
April 26th, 2011 on 10:18 pm
Hi,
I really need some help in resolving the problem I have in starting up managed servers after creating the clustered weblogic domain that includes OSB.
I have installed the following applications on 2 machines that I used to support the cluster:
OS : Windows XP
JAVA : jrmc-3.1.2-1.6.0-windows-ia32.exe
Weblogic software : osb1031_wls103_win32.exe
The weblogic and OSB software were installed correctly and I have the pointbase database started correctly. The Admin server and Nodemanagers started up correctly and the machines are reachable but the managed servers kept giving the boot identity file error messages when they are started from the Admin console.
I have tried everything from updating boot.properties on the managed servers, to changing the Admin Account password but i still get the same authentication errors. A new boot.properties file is usually created in the C:DomainsTEE_OSBserversTEESERVER1_MS1datanodemanager folder
I also tried to create the managed servers using WLST script and/or from the Admin console separately but all to no avail. I also tried to start up the managed server without the cluster but the same result.
The only time the managed servers started was when I started them from the command line and pass in the credentials.
What can I fix in the server that will allow me to be able to start the managed servers.
SEE error messages below:
TEESERVER1_MS1.out file
May 10th, 2011 on 6:47 pm
Jay,
I just wanted to know few things related to Heap allocation.
Currently total of 22GB RAM is available in my one of the Vertual server. It has 5diff. domains. These domains allocatied of 7.5GB. When i try to increase the Heap for one domain, it is not allowing.
1) Can you please explain me how to find the total used Heap in vertual server ( if any unix command)?
2) Also pls let me know formula and how much we can allocate to Heap on the total memory?
Please help.
With regards,
Gopi
June 30th, 2011 on 9:31 pm
Hi to all, I have a question that I cannot find the answer to it, I tried to run the stopManagedWebLogic.sh on a nohup command, but it fails because it requests the user and password… I tired to change the boot.porperties, but couldn change a thing…
When I run the stopManagedWebLogic.sh without the nohup command, it runs perfectly! Any suggestions?
Thank you!
July 1st, 2011 on 3:58 am
Sorry for the inconvenience, I found out that you can open the startWebLogic.sh shell u can input the user and password, and it will run nicely on a nohup command
July 29th, 2011 on 12:28 pm
Hi Middleware Magic team,
Just came up with new doubt.Is this possible.
I have a Managed Server which is up and running.There are around 200-300 active users using the application.Now due to some reason,i have to stop this Managed server.I have msged all the users to log out and log in to application which is deployed on other Managed server.But still the users are connected to the old Managed server..I can forcefully stop managed server but the users will face some porblems.
So Is there a way to STOP the NEW users to connect to this old Managed Server..so that the old user who are already logged in will work and once they are done they will log out..and once all the users are logged out.I can stop the managed server.
Or is there any way to redirect the users to the new managed server.(According to me Redirecting is possible in Apache)
Regards,
Fabian
July 29th, 2011 on 5:38 pm
Hi Fabian,
I think you can try chosing the JDBC-based Persistent Storage for your HttpSessions so thet the Session Data of the currently Loged in Users will be persisted in the database even if you Shutdown/Crash the Managed Server which is having the Primary Http Sessions for your 200 Active users. And as soon as those iusers will click on the referesh button of the web page they will be redirected to the next available member of the cluster.
You can refer to the following article to know hw to achieve this: http://download.oracle.com/docs/cd/E11035_01/wls100/webapp/sessions.html#wp139726
weblogic.xml snippet
======================
<persistent-store-type>jdbc</persistent-store-type>
<persistent-store-pool>jdbc/SessionPersistenceDS</persistent-store-pool>
<persistent-store-table>WL_SERVLET_SESSIONS</persistent-store-table>
<jdbc-column-name-max-inactive-interval>jdbc</jdbc-column-name-max-inactive-interval>
<jdbc-connection-timeout-secs>60</jdbc-connection-timeout-secs>
You also need to create a “WL_SERVLET_SESSIONS” table in your Database and the Schema (DDL Query) of this table is already available in the above link as following:
create table wl_servlet_sessions
( wl_id VARCHAR2(100) NOT NULL,
wl_context_path VARCHAR2(100) NOT NULL,
wl_is_new CHAR(1),
wl_create_time NUMBER(20),
wl_is_valid CHAR(1),
wl_session_values LONG RAW,
wl_access_time NUMBER(20),
wl_max_inactive_interval INTEGER,
PRIMARY KEY (wl_id, wl_context_path) );
.
.
Keep Posting ๐
Thanks
Jay SenSharma
July 30th, 2011 on 1:30 pm
Hi Jay,
Thanks for the Reply,
Will try the above solution.
By the way, i did as follows which served my purpose as well.
I Just stopped the Managed server and Deployed file with “when Work completes”.Usually,i used to “Forcefully Stop” the Managed Server.
When i tried to shutdown with “when Work completes”.The new user trying to access the url used to get http 503 error,While the users who were logged in,were able to work with any problem.
Regards
FAbian
July 30th, 2011 on 1:46 pm
Hi Middleware Magic Team,
I have Came up with a new Requirement.
Our Developer Has given a new war file.
He his trying establish database connection through datasource ie through connection pooling.
Previously,we had a war file in which the connection to the database was present IN the war file itself.
So now we are just trying to give the connection externally to weblogic
The developer has provided me context.xml file for tomcat,he wants that context.xml file specific for weblogic.
Searched Google for the same,Never got any specific solution for the same.
Right now,im confused Do we need context.xml file in weblogic or not.
Or is there any other file which i need to update
Our Developer has shared the below context.xml file for tomcat
?xml version=’1.0′ encoding=’utf-8′?
Context
WatchedResource WEB-INF/web.xml /WatchedResource
Resource name=”jdbc/PooledDB”
auth=”Container”
type=”javax.sql.DataSource”
factory=”org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory”
username=”DBUserName”
password=”DBPassword”
driverClassName=”sun.jdbc.odbc.JdbcOdbcDriver”
url=”jdbc:oracle:thin:@172.30.0.6:1521:MMFT?autoReconnect=true”
maxWait=”1000″
removeAbandoned=”true”
maxActive=”200″
maxIdle=”20″
removeAbandonedTimeout=”60″
logAbandoned=”true”/
/Context
Please help,
Eagerly Waiting for your reply.
Thanks in Advance,
Regards
Fabian
July 30th, 2011 on 4:12 pm
Hi Middleware Magic team,
I have created context.xml file as below and then i have deployed the war file.
?xml version=”1.0″ encoding=”UTF-8″ ?
– Context
WatchedResource WEB-INF/web.xml /WatchedResource
Resource name=”jdbc/PooledDB” auth=”Container” type=”javax.sql.DataSource” username=”emlaptest” password=”emlaptest” driverClassName=”oracle.jdbc.xa.client.OracleXADataSource” url=”jdbc:oracle:thin:@172.30.0.6:1521:MMFT” validationQuery=”select 1 from dual” maxActive=”10″ maxIdle=”2″ /
/Context
I m getting this below error.
Emlaplogin.jsp:3:26: The method getDBConnection() is undefined for the type DBConnection
<%Connection conn=dbConn.getDBConnection();try{String UserId,UserPwd,Msg="N",srv_msg="",logpr="",log_pr="",dt,uid="",pwd="",btitle="",ftrmsg="";
Since im not a developer,Cant understand what changes to make.
Regards
Fabian
August 1st, 2011 on 11:24 am
Hi,
Have created a data source,which has JNDI name as “PooledDB”.But still im getting the above error.
Any suggestion please let me know.
Regards
Fabian
August 11th, 2011 on 10:53 pm
hello Jay,
We are getting an issue in production where an application is present on 2 servers on different machines on a horizontal cluster. The application is going down once every alternate day. It used to happen only on one server, but yesterday the other server also went down.
the environment: Windows 2k3, weblogic 9.2.3, horizontal cluster
This is what i can make from the log files.
#### <>
#### <>
#### <>
#### <>
#### <>
#### <>
#### <>
#### <>
#### <>
#### <>
#### <>
#### <>
#### <>
#### <>
#### <>
#### <>
#### <>
#### <>
#### <>
#### <>
#### <>
#### <>
#### <>
#### <>
#### <>
#### <>
#### <>
#### <>
#### <>
#### <>
#### <>
#### <>
#### <>
#### <> <[weblogic.servlet.internal.WebAppServletContext@1b29ee9 – appName: 'SAA', name: '/SAA', context-path: '/SAA'] Servlet failed with Exception
java.lang.NullPointerException
at java.util.Arrays.binarySearch(Arrays.java:1711)
at com.nvd.saa.SaaCache.rutusArray(SaaCache.java:699)
at com.nvd.saa.SaaCache.getTypeAheadList(SaaCache.java:753)
at com.nvd.saa.SaaServlet.doPost(SaaServlet.java:152)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3244)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2010)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1916)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
August 11th, 2011 on 11:05 pm
well, we get a series of these messages and then that is followed by the java.lang.nullpointerexception shown above.
BEA-000628 Created “1” resources for pool “dsSAADE”, out of which “1” are available and “0” are unavailable.
BEA-000628 Created “1” resources for pool “dsSAAprod”, out of which “1” are available and “0” are unavailable.
August 12th, 2011 on 12:50 am
Hi Rakeshreddy12345,
POINT-1).
If you are worrying about BEA-000628 messages … then there is nothing to worry because these are just INFO messages so There is no indication of a pool tuning problem or config issue at this time.
The huge repetition of these messages indicates that Application or the Database or the N/W is closing the connection and the application is asking the pool to provide another fresh connection, which invoked the pool’s test-on-reserve and replace. So that time you will see this message. If you really want to know what is happening with the Jdbc connections then please apply the JDBC related debug flags from the admin-console to get more information’s.
POINT-2).
If you are worrying about the NullPointerException then please consult with your Application Development team to know what exactly the Application code is doing at the following API:
java.lang.NullPointerException
at java.util.Arrays.binarySearch(Arrays.java:1711)
at com.nvd.saa.SaaCache.rutusArray(SaaCache.java:699)
Only Developers can tell us exactly what kind of actions are they performing at line 699 inside “com.nvd.saa.SaaCache” class “rutusArray” Method, which is throwing NullPointerException.
.
.
Keep Posting ๐
Thanks
Jay SenSharma
August 29th, 2011 on 2:24 pm
Hello Jay,
How do we send an email alert to an admin if the health state of the server is not OK, but the server state is RUNNING. This is happening for us and i want weblogic to send an email to me as soon as this happens and i want to restart this server as this happens.
Its happening in windows 2k3 production server. we are using weblogic server 9.2.2.0
August 29th, 2011 on 4:46 pm
Hi Rakeshreddy,
You can use the JMX code mentioned in the following link to get the Health State of your Different WebLogic Servers (http://middlewaremagic.com/weblogic/?p=2851) …. Run this JMX Code using Windows Scheduler ….
You can add the JAVA mail API to send E-Mail as soon as you get Health State If the Server Health is not desired. Please refer to the following article for more details on Sending Mails using Java API: http://www.javacommerce.com/displaypage.jsp?name=javamail.sql&id=18274
.
.
Keep Posting ๐
Thanks
Jay SenSharma
August 29th, 2011 on 10:31 pm
if an email is not desired, i want to just restart the server as soon as the health status is not OK ???
please help. thank you
Rakesh
August 29th, 2011 on 11:13 pm
Hi Rakeshreddy12345,
J2SE API has java.lang.Runtime class which contains exec() method to execute some commands or a Script or a Bat file… In the Previously mentioned JMX Code you can call the stopWebLogic.cmd and then startWebLogic.cmd scripts using that API ….If you find that the Server Health is not desired or not HEALTH_OK
Example:
http://www.java-tips.org/java-se-tips/java.util/from-runtime.exec-to-processbuilder.html
Example:
Runtime.getRuntime().exec(“cmd /c startWebLogic.bat”);
.
.
Keep Posting ๐
Thanks
Jay SenSharma
August 31st, 2011 on 2:36 am
Hi Jay,
I am the following stats from one of my datasource:
Active Connections Average Count : 113
Active Connections Current Count : 0
Active Connections High Count : 197
Connection Delay Time : 111
Connections Total Count : 6389
Current Capacity : 120
Curr Capacity High Count : 190
Enabled : true
Leaked Connection Count : 0
Num Available : 120
Num Unavailable : 0
Prep Stmt Cache Current Size : 250
Highest Num Available : 200
Waiting For Connection High Count: 8
Initial Capacity : 5
Capacity Increment : 10
Maximum Capacity : 200
Statement Cache size :20
Inactive connection timeout : 0
1.From the stats i see there are Max of 200 connections and 120 available, but when does it settle down to 0 ? Currently we have ‘Active Connections Current Count = 0’ and timeout as Zero seconds. When does ‘Num available’ settle down to 0 ?
2. What does ‘Curr Capacity High Count ‘ , ‘Active Connections High Count’ and ‘Waiting For Connection High Count’ mean?
Thank you
Manish
August 31st, 2011 on 11:09 am
Hi Manish,
1.From the stats i see there are Max of 200 connections and 120 available, but when does it settle down to 0 ?
Connections would not go to 0, this is because the Initial Capacity is set to 5. That means the lowest the connections can go to 5 and not 0.
Currently we have โActive Connections Current Count = 0โฒ and timeout as Zero seconds. When does โNum availableโ settle down to 0 ?
โNum availableโ this also cannot go to the value 0 because of the above reason . However โNum availableโ means current number of connections that are currently available to applications and not those connection which are being tested or refreshed, hence its always good to have “Num available” and “Current Capacity”
2. What does โCurr Capacity High Count โ , โActive Connections High Countโ and โWaiting For Connection High Countโ mean?
Curr Capacity High Count: Highest number of database connections available or in use (current capacity) in this instance of the data source since the data source was deployed.
Active Connections High Count: Highest number of active database connections in this instance of the data source since the data source was instantiated. Active connections are connections in use by an application.
Waiting For Connection High Count: Highest number of application requests concurrently waiting for a connection from this instance of the data source.
Regards,
Ravish Mody
August 31st, 2011 on 7:04 pm
Hi Jay,
Thanks for your response.
What should i change to make the Num Available to settle down to Initial Capacity, because i see though there are no active connections the Num Available is the same and not settling down. I have Shrink Frequency of 900 Secs.
Thank you
Manish
August 31st, 2011 on 7:38 pm
Jay,
I have this error in the logs, i tried searching but find many reasons like , TCP/IP, memory , Database errors, but could not single out. What could be the possible reason for this error and what should i look for? I am pasting only few excerpts from the stack trace, the log is too big to paste here. I can send it in an email if you need for further diagnosis. Thanks for your time.
—————————————
#### <> <[weblogic.servlet.internal.WebAppServletContext@36fd8d – appName: 'hermes-ear-04', name: '/hermes-web', context-path: '/hermes-we
b'] Root cause of ServletException.
org.springframework.orm.hibernate3.HibernateSystemException: JDBC commit failed; nested exception is org.hibernate.TransactionException: JDBC commit failed
at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:676)
at org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:92)
at org.springframework.orm.jpa.JpaTransactionManager.doCommit(JpaTransactionManager.java:460)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:732)
..
..
#### <> <[weblogic.servlet.internal.WebAppServletContext@36fd8d – appName: 'hermes-ear-04', name: '/hermes-web', context-path: '/hermes-we
b'] Root cause of ServletException.
org.springframework.transaction.TransactionSystemException: Could not roll back JPA transaction; nested exception is javax.persistence.PersistenceException: unexpected erro
r when rollbacking
..
..
javax.persistence.PersistenceException: unexpected error when rollbacking
at org.hibernate.ejb.TransactionImpl.rollback(TransactionImpl.java:88)
at org.springframework.orm.jpa.JpaTransactionManager.doRollback(JpaTransactionManager.java:482)
…
…
org.hibernate.TransactionException: JDBC rollback failed
at org.hibernate.transaction.JDBCTransaction.rollback(JDBCTransaction.java:170)
…
…
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
com.ibm.db2.jcc.b.SqlException: [ibm][db2][jcc][10335][10366] Invalid operation: Connection is closed.
..
..
com.ibm.db2.jcc.b.DisconnectException: [ibm][db2][jcc][t4][2030][11211] A communication error has been detected. Communication protocol being used: TCP/IP.
Communication API being used: SOCKETS. Location where the error was detected: Reply.fill().
Communication function detecting the error: InputStream.read(). Protocol specific error codes Insufficient data, * , 0. Message: null
at com.ibm.db2.jcc.c.a.a(a.java:385)
..
..
..
javax.persistence.PersistenceException: unexpected error when rollbacking
..
..
org.hibernate.TransactionException: JDBC rollback failed
at org.hibernate.transaction.JDBCTransaction.rollback(JDBCTransaction.java:170)
..
com.ibm.db2.jcc.b.SqlException: [ibm][db2][jcc][10335][10366] Invalid operation: Connection is closed.
at com.ibm.db2.jcc.b.bb.Nb(bb.java:3356)
..
..
Thank you,
Manish
September 1st, 2011 on 6:11 pm
Hi Manish,
By default the ResultSet object which we receive from the IBM DB2 Driver is not scroll sensitive so if our application tries to iterate the previous record in the Results set then we face this issue, Because the IBM DB2 driver closes the object if we try to traverse in the resultSet in reverse direction So please make sure that your ResultSet object is Bidirectional / Scrollable… We can get the resultSet object like following to make it scrollable.
Statemen statement = connection.prepareCall(query, ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
Or
Statemen statement = connection.createStatement(query, ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
It is basically a DB2 Jdbc Driver BUG …it will be better if you can contact the IBM regarding the issue to get a fix.
.
.
Keep Posting ๐
Thanks
Jay SenSharma