<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;DkAHR3g5fyp7ImA9WhRWF00.&quot;"><id>tag:blogger.com,1999:blog-3408720436525595785</id><updated>2012-01-04T11:18:56.627-08:00</updated><category term="public key" /><category term="unpack" /><category term="installing" /><category term="installation" /><category term="private key" /><category term="jks" /><category term="WebLogic Cluster" /><category term="gc" /><category term="WLS" /><category term="configuring domain" /><category term="UpdateLicense.sh" /><category term="pack" /><category term="Oracle Solaris" /><category term="Sun One WebServer7" /><category term="jhat" /><category term="Weblogic Server life cycle commands" /><category term="download" /><category term="Apache 2" /><category term="Solaris" /><category term="CA SiteMinder" /><category term="SSL" /><category term="head" /><category term="semaphore" /><category term="WLA" /><category term="Install log" /><category term="License upgrading" /><category term="WebLogic 9.2 MP3" /><category term="sort" /><category term="Apache webserver" /><category term="weblogic.server" /><category term="gc.log" /><category term="uninstalling WebLogic" /><category term="Plugin" /><category term="JVM" /><category term="OOME" /><category term="tutorial" /><category term="WebLogic 10.3.3" /><category term="Sun Solaris" /><category term="jinfo" /><category term="Oracle Weblogic" /><category term="jdk options" /><category term="Creating a Domains using weblogic.Server" /><category term="configuring domain templates" /><category term="netigrity SiteMinder" /><category term="du" /><category term="jrockit options" /><category term="Weblogic proxy" /><category term="jmap" /><category term="HA" /><category term="weblogic 11g" /><category term="tutorials" /><category term="Failover" /><category term="Space issue" /><category term="build" /><category term="FREE" /><category term="ANT" /><category term="Linux" /><category term="administration" /><category term="session" /><category term="http-2.2.11" /><category term="illegal java option" /><category term="jstack" /><category term="Creating Domains using ANT" /><category term="SunOne" /><category term="WebLogic 11g Proxy plugin" /><category term="Proxy Plugin" /><category term="WebLogic logs" /><category term="OutOfMemory" /><category term="GC OPTIONS" /><category term="keystore" /><title>WebLogic Server System Adminstration</title><subtitle type="html">WebLogic Server System Adminstraion Newbie and who are going to write Certification it will helpful for future learner</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://wlabypani.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://wlabypani.blogspot.com/" /><author><name>Pani</name><uri>http://www.blogger.com/profile/08954955997652365752</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://3.bp.blogspot.com/_g6eQKpF5azY/SxF5x-Y4LDI/AAAAAAAAADM/aUOQSHsOjx8/S220/DSC02027.JPG" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>17</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/WeblogicSystemAdminstration" /><feedburner:info uri="weblogicsystemadminstration" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;CUcASX06fip7ImA9WhdQFEk.&quot;"><id>tag:blogger.com,1999:blog-3408720436525595785.post-7965423875802754992</id><published>2010-10-04T22:49:00.000-07:00</published><updated>2011-08-15T14:17:28.316-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-15T14:17:28.316-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="OutOfMemory" /><category scheme="http://www.blogger.com/atom/ns#" term="OOME" /><category scheme="http://www.blogger.com/atom/ns#" term="WebLogic 10.3.3" /><title>OutOfMemoryError in Compile time Issue</title><content type="html">WebLogic server startup causing the OutOfMemoryError when it is&amp;nbsp;compling new&amp;nbsp;jar file&lt;br /&gt;
&lt;br /&gt;
I have deployed the ear file(it contains jars,wars) and I was trying to restart the application on one managed server,The managed server started successfully with running mode but startWeblogic.OUT file having the "OutofMmoryError" error. so i need to fix as i am on prod deploy call.&lt;br /&gt;
&lt;br /&gt;
I have tried to resolve by checking the disk space utiliazation,Jdk's min&amp;amp;max memorey arguments,heapdump etc ...everywhere it looks good, eventhought I have restarted the server after cleared cache ,space ...still the error is coming up ...&lt;br /&gt;
&lt;br /&gt;
found that the java is trying to compile the new jar file, and it was failing to compile while deploying it in server startup.&lt;br /&gt;
&lt;br /&gt;
&lt;iframe src="http://rcm.amazon.com/e/cm?t=hmniv-20&amp;o=1&amp;p=8&amp;l=as1&amp;asins=B004T4K8GO&amp;nou=1&amp;ref=tf_til&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=7641F3&amp;bc1=000000&amp;bg1=FCFBFF&amp;f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"&gt;&lt;/iframe&gt;&lt;iframe src="http://rcm.amazon.com/e/cm?t=hmniv-20&amp;o=1&amp;p=8&amp;l=as1&amp;asins=B0039GFXCW&amp;nou=1&amp;ref=tf_til&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=7641F3&amp;bc1=000000&amp;bg1=FCFBFF&amp;f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"&gt;&lt;/iframe&gt;&lt;iframe src="http://rcm.amazon.com/e/cm?t=hmniv-20&amp;o=1&amp;p=8&amp;l=as1&amp;asins=B0051ICIE2&amp;nou=1&amp;ref=tf_til&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=7641F3&amp;bc1=000000&amp;bg1=FCFBFF&amp;f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I have tried many ways to resolve it ...but it didn't success it.&lt;br /&gt;
&lt;br /&gt;
After i had compared the admin console with the another prod backup environment's admin console which is working fine.&lt;br /&gt;
&lt;br /&gt;
Found that there is a Java Compiler path different in admin console when we compared with other environment's admin console for that perticular server instance.&lt;br /&gt;
so the compiler is not supporting while compiling perticular jar file&lt;br /&gt;
actually *ejb.jar file was trying to deploy and compliling after we restarted the server so that the perticular code is not supporting.&lt;br /&gt;
&lt;br /&gt;
I have updated the path from /usr/j2se142_08/bin/javac to /java/j2se142_11/bin/javac&lt;br /&gt;
&lt;br /&gt;
then the server came up successfully after bounced the server without any error.&lt;br /&gt;
&lt;script type="text/javascript"&gt;
&lt;!--
google_ad_client = "pub-0762912933528813";
/* 468x60, created 10/17/10 */
google_ad_slot = "4251707814";
google_ad_width = 468;
google_ad_height = 60;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"&gt;
&lt;/script&gt;&lt;br /&gt;
for this, i have created a problem ticket and resolved it finally, it is a small issue but taken much time to trouble shoot the problem ...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3408720436525595785-7965423875802754992?l=wlabypani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/euzJIBMs0xWBzaJMD43XaLxTq6o/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/euzJIBMs0xWBzaJMD43XaLxTq6o/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/euzJIBMs0xWBzaJMD43XaLxTq6o/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/euzJIBMs0xWBzaJMD43XaLxTq6o/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/WeblogicSystemAdminstration/~4/q_aZ2qWVEk0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://wlabypani.blogspot.com/feeds/7965423875802754992/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://wlabypani.blogspot.com/2010/10/outofmemoryerror-issue.html#comment-form" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3408720436525595785/posts/default/7965423875802754992?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3408720436525595785/posts/default/7965423875802754992?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WeblogicSystemAdminstration/~3/q_aZ2qWVEk0/outofmemoryerror-issue.html" title="OutOfMemoryError in Compile time Issue" /><author><name>Pani</name><uri>http://www.blogger.com/profile/08954955997652365752</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://3.bp.blogspot.com/_g6eQKpF5azY/SxF5x-Y4LDI/AAAAAAAAADM/aUOQSHsOjx8/S220/DSC02027.JPG" /></author><thr:total>2</thr:total><feedburner:origLink>http://wlabypani.blogspot.com/2010/10/outofmemoryerror-issue.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEQMQn8_eip7ImA9Wx5UE0g.&quot;"><id>tag:blogger.com,1999:blog-3408720436525595785.post-7269426506470341731</id><published>2010-10-04T20:09:00.000-07:00</published><updated>2010-10-17T15:59:43.142-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-17T15:59:43.142-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="illegal java option" /><category scheme="http://www.blogger.com/atom/ns#" term="jdk options" /><category scheme="http://www.blogger.com/atom/ns#" term="GC OPTIONS" /><category scheme="http://www.blogger.com/atom/ns#" term="jrockit options" /><category scheme="http://www.blogger.com/atom/ns#" term="gc.log" /><category scheme="http://www.blogger.com/atom/ns#" term="JVM" /><category scheme="http://www.blogger.com/atom/ns#" term="gc" /><title>JRokit GC Option Enable issue</title><content type="html">One of the WebLogic Server instance is not starting due to passing the java options, which are not supported to jrockit.&lt;br /&gt;
&lt;br /&gt;
My environemnt requirement is that, I need to enable the verbose:gc for my production servers and I have tried to enable by giving the below java options in a customized script which inturn calls start script. After my try in development test server that was failed to start.&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;span style="background-color: #cfe2f3;"&gt;#JAVA_OPTIONS="$JAVA_OPTIONS -DDebugSecurityAtn=true -DDebugSSL=true"
JAVA_OPTIONS="${JAVA_OPTIONS} -XX:+HeapDumpOnOutOfMemoryError -verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -Xloggc:${LOGDIR}/gc.log"&lt;/span&gt;
&lt;/pre&gt;&lt;br /&gt;
On the server logs it kicked the rejected message "illegal java option" error in weblogic.log file and on the other hand gc.log file is not created, I have found in googling&amp;nbsp;that we are using jrockit so these "-verbose:gc, Xloggc:gc.log,etc options are NOTsupporting which are supported by Sun JDK hotspot JVM. and server is not coming up. What made missing?? You think think!! I got an idea, of-course it is a doubt wheather this JDK options are same or different for JRockit JVM?? &lt;br /&gt;
&lt;br /&gt;
After struggling on google for few minutes… &lt;br /&gt;
&lt;br /&gt;
Finally I have fixed this issue by giving the proper jrockit's supported GC options (verbose: memory, Xverboselog:gc.log etc)&lt;br /&gt;
&lt;br /&gt;
It Works out the below options and its created gc.log under logdir path:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="background-color: #cfe2f3; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;#JAVA_OPTIONS="$JAVA_OPTIONS -DDebugSecurityAtn=true -DDebugSSL=true"&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #cfe2f3; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;JAVA_OPTIONS="$JAVA_OPTIONS -DDebugSecurityAtn=true -DDebugSSL=true -Xverbose:memory -Xgcprio:pausetime &lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #cfe2f3; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;-Xverboselog:${LOGDIR}/gc.log"&lt;/span&gt;&lt;br /&gt;
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-0762912933528813";
/* 468x60, created 10/17/10 */
google_ad_slot = "4251707814";
google_ad_width = 468;
google_ad_height = 60;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;br /&gt;
Now the desired sample gc.log generated as it is shown below:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="background-color: #fff2cc; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;[INFO ][memory ] [YC#84] 69.846-69.862: YC 589972KB-&amp;gt;562334KB (1048576KB), 0.016 s, sum of pauses 15.527 ms, longest pause 15.527 ms.&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #fff2cc; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;[INFO ][memory ] [YC#85] 70.223-70.234: YC 596537KB-&amp;gt;566915KB (1048576KB), 0.011 s, sum of pauses 10.404 ms, longest pause 10.404 ms.&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #fff2cc; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;[INFO ][memory ] [YC#86] 70.525-70.535: YC 602423KB-&amp;gt;572377KB (1048576KB), 0.010 s, sum of pauses 10.230 ms, longest pause 10.230 ms.&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #fff2cc; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;[INFO ][memory ] [YC#87] 70.828-70.839: YC 605159KB-&amp;gt;575545KB (1048576KB), 0.011 s, sum of pauses 10.772 ms, longest pause 10.772 ms.&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #fff2cc;"&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #fff2cc; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;conclusion: all jdk's GC options does not supported/compatible with jrockit's gc options&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #fff2cc;"&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #fff2cc; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;Ref Site for Jrockit:&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #fff2cc; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;http://weblogic-wonders.com/weblogic/2010/09/03/why-and-how-oracle-jrockit/&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #fff2cc; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;Ref Site for JDK and JRockit's options:&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #fff2cc; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;http://www.tagtraum.com/gcviewer-vmflags.html#sun.loggc&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3408720436525595785-7269426506470341731?l=wlabypani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/5if4pDfs76pANUK338BzlVrJ2G0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5if4pDfs76pANUK338BzlVrJ2G0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/5if4pDfs76pANUK338BzlVrJ2G0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5if4pDfs76pANUK338BzlVrJ2G0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/WeblogicSystemAdminstration/~4/q9CXyLOfuUg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://wlabypani.blogspot.com/feeds/7269426506470341731/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://wlabypani.blogspot.com/2010/10/gc-options-issue.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3408720436525595785/posts/default/7269426506470341731?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3408720436525595785/posts/default/7269426506470341731?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WeblogicSystemAdminstration/~3/q9CXyLOfuUg/gc-options-issue.html" title="JRokit GC Option Enable issue" /><author><name>Pani</name><uri>http://www.blogger.com/profile/08954955997652365752</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://3.bp.blogspot.com/_g6eQKpF5azY/SxF5x-Y4LDI/AAAAAAAAADM/aUOQSHsOjx8/S220/DSC02027.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://wlabypani.blogspot.com/2010/10/gc-options-issue.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUYMQXo9fSp7ImA9Wx9WE04.&quot;"><id>tag:blogger.com,1999:blog-3408720436525595785.post-5804548245701261949</id><published>2010-10-03T11:12:00.000-07:00</published><updated>2011-01-17T23:53:00.465-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-01-17T23:53:00.465-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Sun One WebServer7" /><category scheme="http://www.blogger.com/atom/ns#" term="netigrity SiteMinder" /><category scheme="http://www.blogger.com/atom/ns#" term="SunOne" /><category scheme="http://www.blogger.com/atom/ns#" term="semaphore" /><category scheme="http://www.blogger.com/atom/ns#" term="Apache webserver" /><category scheme="http://www.blogger.com/atom/ns#" term="Weblogic proxy" /><category scheme="http://www.blogger.com/atom/ns#" term="CA SiteMinder" /><title>Semaphore issue in WebServer</title><content type="html">In most of the Web Server's environments are in the De-Militarized Zone(DMZ)architecture as front end for weblogic. So the front tier is having the setup for the proxy plug-in with one of the WebServers (HTTP). This post is about Sunone WebServer proxying for WebLogic web-tier.&lt;br /&gt;
&lt;br /&gt;
The issue encountered when one of the physical site's single sign on page is failed to display. There are many users on that site, they need immediate resolution for the issue. Because in the e-commerce world every minute is precious each hit is valuable every delay of operation that causes losses in dollars. Keeping in this in mind acted instantly the producing support team. The team focused in the each log that related to that site and its SSO web&amp;nbsp;instance. finally the team found that whole causing flaw is&amp;nbsp;in a webserver agent&amp;nbsp;log, it is an issue related to processes&amp;nbsp;the Max semaphore setting on one server, while bringing up the web instances."Failed to initialize the siteminder agent error came while starting sun web server".&lt;br /&gt;
&lt;br /&gt;
After a while the smart WLA, wearing the thinking cap, found the Resolution as "Increased the max semaphore limit" on the Unix machine&amp;nbsp;has the current setting as (200) changed to 512 using the below given command sequel.&lt;br /&gt;
&lt;br /&gt;
Here we go ... Now let see how the 'prctl' Unix commands helps us&amp;nbsp;to create or add the fragmentation size limit to 512:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="background-color: #cfe2f3; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;$ prctl -t priv -n project.max-sem-ids -v 512 -e deny $$&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Below command to delete the fragmentation size limit to 200: (delete the old setting ,after/before adding the new size)&lt;br /&gt;
&lt;script type="text/javascript"&gt;&lt;!--google_ad_client = "pub-0762912933528813";/* 468x60, created 10/17/10 */google_ad_slot = "4251707814";google_ad_width = 468;google_ad_height = 60;//--&gt;&lt;/script&gt;&lt;br /&gt;
&lt;script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;&lt;/script&gt;&lt;br /&gt;
&lt;span style="background-color: #cfe2f3; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;$ prctl -t priv -n project.max-sem-ids -v 200 -x $$&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Below command is to list all&amp;nbsp;the semaphore settings:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="background-color: #cfe2f3; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;$ prctl -n project.max-sem-ids $$&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
process: 25277: bash&lt;br /&gt;
NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT&lt;br /&gt;
project.max-sem-ids&lt;br /&gt;
privileged 512 - deny -&lt;br /&gt;
system 16.8M max deny -&lt;br /&gt;
&lt;br /&gt;
The similar issue is identified in Apache WebServer associated with CA SiteMinder Agent service too.&lt;br /&gt;
Hope this will give basic idea about the semaphore issue and its resolution. &lt;br /&gt;
&lt;br /&gt;
Keep reading the blog!! enjoy!! write back to us with your issues on WebLogic Administration issues!!!&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;&lt;span style="background-color: #6fa8dc;"&gt;Source from : Smart WLA &lt;span style="color: #990000;"&gt;Sarangapani.&amp;nbsp; M &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
Reference:&lt;br /&gt;
&lt;br /&gt;
http://www.bigadmins.com/solaris/how-to-tune-kernel-parameters-in-solaris-10/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3408720436525595785-5804548245701261949?l=wlabypani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/zXDCzIIwmLeCXCDoBYTEWVpK_hQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/zXDCzIIwmLeCXCDoBYTEWVpK_hQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/zXDCzIIwmLeCXCDoBYTEWVpK_hQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/zXDCzIIwmLeCXCDoBYTEWVpK_hQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/WeblogicSystemAdminstration/~4/Cq--IKIWP28" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://wlabypani.blogspot.com/feeds/5804548245701261949/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://wlabypani.blogspot.com/2010/10/semaphore-issue-in-webserver.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3408720436525595785/posts/default/5804548245701261949?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3408720436525595785/posts/default/5804548245701261949?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WeblogicSystemAdminstration/~3/Cq--IKIWP28/semaphore-issue-in-webserver.html" title="Semaphore issue in WebServer" /><author><name>Pavan Bhavani Shekhar</name><uri>http://www.blogger.com/profile/06638309611528564002</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="24" height="32" src="http://3.bp.blogspot.com/--5E2rzEd9ao/Tl7__UfdxWI/AAAAAAAADwk/XuJFt-5w7_4/s220/pav1.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://wlabypani.blogspot.com/2010/10/semaphore-issue-in-webserver.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEMBQn09cCp7ImA9Wx5UE0g.&quot;"><id>tag:blogger.com,1999:blog-3408720436525595785.post-5475942742154240231</id><published>2010-09-28T18:18:00.000-07:00</published><updated>2010-10-17T16:00:53.368-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-17T16:00:53.368-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="WLA" /><category scheme="http://www.blogger.com/atom/ns#" term="du" /><category scheme="http://www.blogger.com/atom/ns#" term="WebLogic logs" /><category scheme="http://www.blogger.com/atom/ns#" term="Oracle Solaris" /><category scheme="http://www.blogger.com/atom/ns#" term="Linux" /><category scheme="http://www.blogger.com/atom/ns#" term="head" /><category scheme="http://www.blogger.com/atom/ns#" term="sort" /><category scheme="http://www.blogger.com/atom/ns#" term="Space issue" /><title>WebLogic Administration issues Part 1</title><content type="html">WLA production support Issues&lt;br /&gt;
&lt;br /&gt;
Day to day there are many issues comes to WebLogic Administrator, When issues comes I feel more happy because variety tricks need to be developed, this is the situation where we can explore things into the deeper level, understand and get the effective resolution after a little bit brainstorming research. This might be good habit of any WLA, What do you say guys?? Here I going to share with you guys, my recent issues (this week) faced and fixed them on time&lt;br /&gt;
&lt;br /&gt;
There is issue going in a Data center, all the people in the data center are feeling panic. There lift their hands unable to find from where this issue originated. While starting the WebLogic instance unable to start. &lt;br /&gt;
&lt;br /&gt;
A smart WLA, How is not only think in WebLogic, he is having fantastic knowledge about UNIX too. Just within few minutes after he found the root cause of the issue is one of the mounted Disk space is overloaded 100% disk utilization FULL!!&lt;br /&gt;
&lt;br /&gt;
How he found the space issue you can see here. It the problem is that there is not enough space to start the sever instance. In the server instance log it is going to show space issue. A small JVM kid unable to have sufficient memory.&lt;br /&gt;
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-0762912933528813";
/* 468x60, created 10/17/10 */
google_ad_slot = "4251707814";
google_ad_width = 468;
google_ad_height = 60;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;server instance=""&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;/logs&amp;gt; &lt;strong&gt;du - sk *|sort –rn |head&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&lt;span style="background-color: #ea9999;"&gt;12050 lof_09-14-2010.log&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;2950 LOF_PERF_09-14-2010.log &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;2951 346 startWebLogic.OUT&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;488 PERF_09-14-2010.log &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;489 452 LOG_09-14-2010.log&lt;/span&gt;&lt;br /&gt;
---&lt;br /&gt;
Above command shows that we can see the file or directories, which occupied how much disk sizes on a particular filesystem, mount point. Accordingly we can resolve the issue by rotate the logs to clear off the space for particular instance is being occupied more disk space. So be brave to face the issue!!&lt;br /&gt;
&lt;br /&gt;
Sourced by : Sarangapani Matoori WLA&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3408720436525595785-5475942742154240231?l=wlabypani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/mX18eWio_WblOdtzANB5ao0-l6A/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/mX18eWio_WblOdtzANB5ao0-l6A/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/mX18eWio_WblOdtzANB5ao0-l6A/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/mX18eWio_WblOdtzANB5ao0-l6A/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/WeblogicSystemAdminstration/~4/5bhRxilWqQg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://wlabypani.blogspot.com/feeds/5475942742154240231/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://wlabypani.blogspot.com/2010/09/weblogic-administration-issues-part-1.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3408720436525595785/posts/default/5475942742154240231?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3408720436525595785/posts/default/5475942742154240231?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WeblogicSystemAdminstration/~3/5bhRxilWqQg/weblogic-administration-issues-part-1.html" title="WebLogic Administration issues Part 1" /><author><name>Pavan Bhavani Shekhar</name><uri>http://www.blogger.com/profile/06638309611528564002</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="24" height="32" src="http://3.bp.blogspot.com/--5E2rzEd9ao/Tl7__UfdxWI/AAAAAAAADwk/XuJFt-5w7_4/s220/pav1.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://wlabypani.blogspot.com/2010/09/weblogic-administration-issues-part-1.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DE8EQ3Y-eip7ImA9Wx5UE0g.&quot;"><id>tag:blogger.com,1999:blog-3408720436525595785.post-8296550622754585672</id><published>2010-09-05T11:44:00.000-07:00</published><updated>2010-10-17T16:06:42.852-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-17T16:06:42.852-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Oracle Weblogic" /><category scheme="http://www.blogger.com/atom/ns#" term="weblogic.server" /><category scheme="http://www.blogger.com/atom/ns#" term="weblogic 11g" /><category scheme="http://www.blogger.com/atom/ns#" term="configuring domain templates" /><category scheme="http://www.blogger.com/atom/ns#" term="WebLogic 9.2 MP3" /><category scheme="http://www.blogger.com/atom/ns#" term="Creating a Domains using weblogic.Server" /><category scheme="http://www.blogger.com/atom/ns#" term="configuring domain" /><title>Creating a Domains using weblogic.Server</title><content type="html">It was chilling&amp;nbsp;January&amp;nbsp;days, when I was doing my experiments for WebLogic System Administration certificate. You might think that how come this is possible a domain using weblogic.Server?? But it is true, you can do this, you can configure a domain using java weblogic.Server. This blog enables you to help you to make that domain with weblogic.Server class and the same command will Start the Admin Server&amp;nbsp;of-course&amp;nbsp;you can name your Admin Server here I did as Server2. The command can be given as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="background-color: #f9cb9c;"&gt;java -XX:MaxPermSize=512m -Dweblogic.RootDirectory=. &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="background-color: #f9cb9c;"&gt;-Dweblogic.Domain=domain2 -Dweblogic.Name=Server2 -Dweblogic.management.username=weblogic &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="background-color: #f9cb9c;"&gt;-Dweblogic.management.password=weblogic -Dweblogic.ListenAddress=WLHost.com &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="background-color: #f9cb9c;"&gt;-Dweblogic.ListenPort=9015 weblogic.Server&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Let us see new scenario &lt;br /&gt;
If we have config.xml file copied from an existing domain then we can run the server with the override the exiting values present in the urconfig.xml file with ListenAddress, ListenPort new values given in command line. &lt;br /&gt;
&lt;br /&gt;
No config.xml was found.&lt;br /&gt;
Would you like the server to create a default configuration and boot? (y/n): y&lt;br /&gt;
&lt;br /&gt;
The response 'y' indicates to the weblogic.Server to create a domain directyory with all required files and directories for it.&lt;br /&gt;
If you don't specify the ListenAddress then weblogic will search for all possible network channels to connect with the given port.&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="background-color: #ffd966;"&gt;java -XX:MaxPermSize=512m -Dweblogic.RootDirectory=. -Dweblogic.ConfigFile=urconfig.xml &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="background-color: #ffd966;"&gt;-Dweblogic.Domain=domain2 -Dweblogic.Name=Server2 -Dweblogic.management.username=weblogic &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="background-color: #ffd966;"&gt;-Dweblogic.management.password=weblogic -Dweblogic.ListenAddress=WLHost.com &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="background-color: #ffd966;"&gt;-Dweblogic.ListenPort=9015 weblogic.Server&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-0762912933528813";
/* 468x60, created 10/17/10 */
google_ad_slot = "4251707814";
google_ad_width = 468;
google_ad_height = 60;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;br /&gt;
Above highlighted text in single line in a command prompt or keep this into a shell script or batch script for respective operating environments. Here the domain can be created for only single server (Admin Server) instance, and we cannot add managed server and cluster etc. if we have already a config.xml file available then we can specify using -Dweblogic.ConfigFile=urconfig.xml.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3408720436525595785-8296550622754585672?l=wlabypani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/mbZ0C5sB94juXTwJgD-EgCtZAfA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/mbZ0C5sB94juXTwJgD-EgCtZAfA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/mbZ0C5sB94juXTwJgD-EgCtZAfA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/mbZ0C5sB94juXTwJgD-EgCtZAfA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/WeblogicSystemAdminstration/~4/9XmNXzG2E20" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://wlabypani.blogspot.com/feeds/8296550622754585672/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://wlabypani.blogspot.com/2010/09/creating-domains-using-weblogicserver.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3408720436525595785/posts/default/8296550622754585672?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3408720436525595785/posts/default/8296550622754585672?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WeblogicSystemAdminstration/~3/9XmNXzG2E20/creating-domains-using-weblogicserver.html" title="Creating a Domains using weblogic.Server" /><author><name>Pani</name><uri>http://www.blogger.com/profile/08954955997652365752</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://3.bp.blogspot.com/_g6eQKpF5azY/SxF5x-Y4LDI/AAAAAAAAADM/aUOQSHsOjx8/S220/DSC02027.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://wlabypani.blogspot.com/2010/09/creating-domains-using-weblogicserver.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DE8NQH8_eSp7ImA9Wx5UE0g.&quot;"><id>tag:blogger.com,1999:blog-3408720436525595785.post-6815302584053547612</id><published>2010-09-05T11:42:00.000-07:00</published><updated>2010-10-17T16:08:11.141-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-17T16:08:11.141-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ANT" /><category scheme="http://www.blogger.com/atom/ns#" term="Oracle Weblogic" /><category scheme="http://www.blogger.com/atom/ns#" term="build" /><category scheme="http://www.blogger.com/atom/ns#" term="Creating Domains using ANT" /><category scheme="http://www.blogger.com/atom/ns#" term="weblogic 11g" /><category scheme="http://www.blogger.com/atom/ns#" term="WebLogic 9.2 MP3" /><category scheme="http://www.blogger.com/atom/ns#" term="configuring domain" /><title>Creating the Domains using ANT</title><content type="html">This is my one more attempt to creating the WebLogic domain with ANT Script that is build.xml.&lt;br /&gt;
&lt;br /&gt;
In the Oracle WebLogic we have wonderful options to define the parameters to create a domain with ant script (build.xml). Here it comes the most powerful ANT task given by WebLogic with a specialized parameters i.e., wlserver.&lt;br /&gt;
&lt;br /&gt;
My experiment is going to create a simple single server domain and starts the Admin server also with this script.&lt;br /&gt;
&lt;br /&gt;
You can use any editor to edit this build.xml and enter the following lines then run ant in your command prompt &lt;br /&gt;
&lt;br /&gt;
My Successful build.xml made for Solaris operating environment where all PATH, CLASSPATH variables already defined as told in earlier post which already assigned in previous domain creation.&lt;br /&gt;
&lt;br /&gt;
Note: Each line keep it in the lessthan Open tag(&amp;lt;) and greaterthan close tag(/&amp;gt;) and remove if open or close braces () are there in there before using it&lt;br /&gt;
&lt;br /&gt;
&lt;script src="http://pastebin.com/embed_js.php?i=3Cs3eNRq"&gt;&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
Execution Results as follows: &lt;br /&gt;
bash-3.00$ ant&lt;br /&gt;
Buildfile: build.xml&lt;br /&gt;
newserver:&lt;br /&gt;
[delete] Deleting directory /export/home/wluser/testant/tmp&lt;br /&gt;
[mkdir] Created dir: /export/home/wluser/testant/tmp&lt;br /&gt;
BUILD SUCCESSFUL&lt;br /&gt;
Total time: 1 minute 26 seconds&lt;br /&gt;
[WLServer wsant] Server will not be killed due to noExit flagwsant&lt;br /&gt;
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-0762912933528813";
/* 468x60, created 10/17/10 */
google_ad_slot = "4251707814";
google_ad_width = 468;
google_ad_height = 60;
//--&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;br /&gt;
Noticed following changes to work it properly:&lt;br /&gt;
&lt;br /&gt;
1. The folder name tmp is used for creating domain that can be domain directory path, we change it once the ant script run successful.&lt;br /&gt;
2. When I used the e-docs given ant script it is running the server after configuring domain with given parameters and automatically &lt;br /&gt;
Killing the ant generated process. To stop this added attribute noExit with true as value.&lt;br /&gt;
3. The default jvmags to start WebLogic Server not sufficient. it is throughing following Error:&lt;br /&gt;
java.lang.OutOfMemoryError: PermGen space&lt;br /&gt;
To resolve this wlserver standalone tag changed to paired tag, and a child tag added as jvmarg.&lt;br /&gt;
&lt;br /&gt;
Ref: "Starting Servers and Creating Domains Using the wlserver Ant Task" on Oracle Documents&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3408720436525595785-6815302584053547612?l=wlabypani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/fb6k0nm1LGgq8WbyHuqjpcMbqIM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/fb6k0nm1LGgq8WbyHuqjpcMbqIM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/fb6k0nm1LGgq8WbyHuqjpcMbqIM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/fb6k0nm1LGgq8WbyHuqjpcMbqIM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/WeblogicSystemAdminstration/~4/GYPrkTK6kTo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://wlabypani.blogspot.com/feeds/6815302584053547612/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://wlabypani.blogspot.com/2010/09/creating-domains-using-ant.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3408720436525595785/posts/default/6815302584053547612?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3408720436525595785/posts/default/6815302584053547612?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WeblogicSystemAdminstration/~3/GYPrkTK6kTo/creating-domains-using-ant.html" title="Creating the Domains using ANT" /><author><name>Pani</name><uri>http://www.blogger.com/profile/08954955997652365752</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://3.bp.blogspot.com/_g6eQKpF5azY/SxF5x-Y4LDI/AAAAAAAAADM/aUOQSHsOjx8/S220/DSC02027.JPG" /></author><thr:total>1</thr:total><feedburner:origLink>http://wlabypani.blogspot.com/2010/09/creating-domains-using-ant.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEEEQns4fCp7ImA9Wx5VEUg.&quot;"><id>tag:blogger.com,1999:blog-3408720436525595785.post-5185094639778933175</id><published>2010-09-05T11:39:00.000-07:00</published><updated>2010-10-03T17:36:43.534-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-03T17:36:43.534-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Oracle Weblogic" /><category scheme="http://www.blogger.com/atom/ns#" term="weblogic 11g" /><category scheme="http://www.blogger.com/atom/ns#" term="pack" /><category scheme="http://www.blogger.com/atom/ns#" term="configuring domain templates" /><category scheme="http://www.blogger.com/atom/ns#" term="unpack" /><category scheme="http://www.blogger.com/atom/ns#" term="WebLogic 9.2 MP3" /><category scheme="http://www.blogger.com/atom/ns#" term="configuring domain" /><title>Creating Domain using pack and unpack</title><content type="html">Though there are many ways to &lt;a href="http://wlstbyexamples.blogspot.com/2009/10/dynamic-domain-creation-with-wlst.html"&gt;configuring a WebLogic domain&lt;/a&gt;, Here I am going to experiment with pack and unpack commands for my Certification. Later I found it is very handy for migrating old domains to new and it is best suites for extending the domains also.&lt;br /&gt;
&lt;br /&gt;
You have one more chance of creating domain template  with Domain Template Builder &lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://download.oracle.com/docs/cd/E13179_01/common/docs102/tempbuild/index.html"&gt;http://download.oracle.com/docs/cd/E13179_01/common/docs102/tempbuild/index.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;Create new domains using custom Domain/Configuration Templates &lt;br /&gt;
&lt;br /&gt;
Creating Domain by using pack and unpack command of new feature in Weblogic Server 9.x and above 10g or 11g:&lt;br /&gt;
&lt;br /&gt;
The WebLogic provides two compressing and uncompressing the domain for reusing to another remote machine or it can be used as backup for the existing domain.&lt;br /&gt;
&lt;br /&gt;
Which requires the PATH need to set to /common/bin&lt;br /&gt;
&lt;br /&gt;
&lt;span style="background-color: #d9ead3; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;export PATH=/export/home/wlsuser/bea/weblogic92/common/bin:$PATH&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style="font-size: large;"&gt;PACK Process&lt;/span&gt;&lt;/strong&gt; &lt;br /&gt;
&lt;br /&gt;
Now let us see PACK Process how it works&lt;br /&gt;
&lt;br /&gt;
Syntax:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style="font-family: Times, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;em&gt;pack -domain=domain -template=template -template_name=“template_name”&lt;/em&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style="font-family: Times, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;em&gt;[-template_author=“author”][-template_desc=“description”]&lt;/em&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style="font-family: Times, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;em&gt;[-managed={true|false}][-log=log_file] [-log_priority=log_priority]&lt;/em&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
if it is in the pack command in the path you can give pack.sh from any directory otherwise you need to goto that path.&lt;br /&gt;
Example&lt;br /&gt;
&lt;br /&gt;
&lt;span style="background-color: #cfe2f3; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;bash-3.00$ pack.sh -domain="/export/home/wlsuser/domains/wlscldom" &lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #cfe2f3; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;-template="/export/home/wlsuser/templates/wlscltemp.jar" -template_name="WLS &lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #cfe2f3; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;CLUSTER DOMAIN" -log=/export/home/wlsuser/logs/wlscldompack.log -log_priority=INFO&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="background-color: #b6d7a8; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&amp;lt;&amp;lt; read domain from "/export/home/wlsuser/domains/wlscldom" &amp;gt;&amp;gt; succeed: read domain from "/export/home/wlsuser/domains/wlscldom"&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #b6d7a8; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&amp;lt;&amp;lt; write template to "/export/home/wlsuser/templates/wlscltemp.jar" ................................................................................. ................... &amp;gt;&amp;gt; succeed: write template to "/export/home/wlsuser/templates/wlscltemp.jar"&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #b6d7a8; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&amp;lt;&amp;lt; close template &amp;gt;&amp;gt; succeed: close template&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
To confirm that domain created in the current directory check with ls command.&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;bash-3.00$ ls -l&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;total 30&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;drwxr-xr-x 8 wlsuser wlproj512 Dec 19 07:58 bea&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;drwxr-xr-x 3 wlsuser wlproj512 Dec 24 10:48 domains&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;bash-3.00$ cd logs&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;bash-3.00$ ls -l&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;total 130&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;-rw-r--r-- 1 wlsuser wlproj948 Dec 24 12:06 wlscldompack.log&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
To View the logged info related to pack process.&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;bash-3.00$ tail -100 wlscldompack.log&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;2008-12-24 12:06:43,569 INFO [runScript] &lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;com.bea.plateng.domain.script.ScriptExecutor - read domain from &lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;"/export/home/wlsuser/domains/wlscldom"&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;2008-12-24 12:06:52,643 INFO [runScript] &lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;com.bea.plateng.domain.script.ScriptExecutor - succeed: read domain from &lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;"/export/home/wlsuser/domains/wlscldom"&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;2008-12-24 12:06:52,648 INFO [runScript] &lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;com.bea.plateng.domain.script.ScriptExecutor - write template to &lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;"/export/home/wlsuser/templates/wlscltemp.jar"&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;2008-12-24 12:06:56,785 INFO [Thread-1] com.bea.plateng.domain.TemplateGenerator &lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;- Template Generation Successfull!&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;2008-12-24 12:06:56,847 INFO [runScript] &lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;com.bea.plateng.domain.script.ScriptExecutor - succeed: write template to &lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;"/export/home/wlsuser/templates/wlscltemp.jar"&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;2008-12-24 12:06:56,852 INFO [runScript] &lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;com.bea.plateng.domain.script.ScriptExecutor - close template&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;2008-12-24 12:06:56,856 INFO [runScript] &lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;com.bea.plateng.domain.script.ScriptExecutor - succeed: close template&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599;"&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;bash-3.00$ cd templates&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;bash-3.00$ ls -l&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;total 46&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;-rw-r--r-- 1 wlsuser wlproj 23188 Dec 24 12:06 wlscltemp.jar&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
To pack the managed servers only then we need to use the option '-managed=true'. by default it is set to false.&lt;br /&gt;
bash-3.00$ pack.sh -managed=true -domain="/export/home/wlsuser/domains/wlscldom" &lt;br /&gt;
-template="/export/home/wlsuser/templates/wlscltemp.jar" -template_name="WLS &lt;br /&gt;
CLUSTER DOMAIN" -log=/export/home/wlsuser/logs/wlscldompack.log -log_priority=INFO&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: large;"&gt;&lt;strong&gt;UNPACK Process&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
To run this we must already run the pack command on a domain which is already existing. The domain template jar must be copied to the destination machine. &lt;br /&gt;
&lt;br /&gt;
Syntax:&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;unpack -template=template -domain=domain [-user_name=username]&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;[-password=password] [-app_dir=application_directory]&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;[-java_home=java_home_directory] [-server_start_mode={dev|prod}]&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;[-log=log_file] [-log_priority=log_priority]&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
Example&lt;br /&gt;
&lt;br /&gt;
&lt;span style="background-color: #b6d7a8; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;bash-3.00$ unpack.sh -template=wlscltemp.jar -domain=domains/wlscldom &lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #b6d7a8; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;-log=wlscldomunpack.log -log_priority=INFO&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&amp;lt;&amp;lt; read template from "/home/wlsuser/wlscltemp.jar" &amp;gt;&amp;gt; succeed: read template from "/home/wlsuser/wlscltemp.jar"&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&amp;lt;&amp;lt; write Domain to "/home/wlsuser/domains/wlscldom" ................................................................................. .............. &amp;gt;&amp;gt; succeed: write Domain to "/home/wlsuser/domains/wlscldom"&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&amp;lt;&amp;lt; close template &amp;gt;&amp;gt; succeed: close template&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;bash-3.00$ ls -l&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;total 1188090&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;drwxr-xr-x 7 wlsuser wlproj 1024 Dec 24 09:13 bea&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;drwxr-xr-x 3 wlsuser wlproj 96 Dec 24 12:20 domains &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
To unpack managed server also it will work in the similar manner. But need to put the &lt;strong&gt;&lt;em&gt;&lt;span style="background-color: #f9cb9c;"&gt;“-managed=true”&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;pack.sh -managed=true -domain="/home/wluser/domains/WLclsnm/" -template="/home/wluser/templates/WLclsnm.jar" -template_name="WLS CLUSTER DOMAIN" -log=/home/wluser/logs/wlscldompack.log -log_priority=INFO


unpack.sh -template=WLclsnm.jar -domain=domains/WLclsnm -log=WLclsnmpack.log -log_priority=INFO 
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3408720436525595785-5185094639778933175?l=wlabypani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/raD3AWRBVOXkrhw51mCRkrjy4iQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/raD3AWRBVOXkrhw51mCRkrjy4iQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/raD3AWRBVOXkrhw51mCRkrjy4iQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/raD3AWRBVOXkrhw51mCRkrjy4iQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/WeblogicSystemAdminstration/~4/HNN7lHglKaI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://wlabypani.blogspot.com/feeds/5185094639778933175/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://wlabypani.blogspot.com/2010/09/creating-domain-using-pack-and-unpack.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3408720436525595785/posts/default/5185094639778933175?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3408720436525595785/posts/default/5185094639778933175?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WeblogicSystemAdminstration/~3/HNN7lHglKaI/creating-domain-using-pack-and-unpack.html" title="Creating Domain using pack and unpack" /><author><name>Pani</name><uri>http://www.blogger.com/profile/08954955997652365752</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://3.bp.blogspot.com/_g6eQKpF5azY/SxF5x-Y4LDI/AAAAAAAAADM/aUOQSHsOjx8/S220/DSC02027.JPG" /></author><thr:total>1</thr:total><feedburner:origLink>http://wlabypani.blogspot.com/2010/09/creating-domain-using-pack-and-unpack.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEAER3kyfSp7ImA9Wx5WGEw.&quot;"><id>tag:blogger.com,1999:blog-3408720436525595785.post-5186830549485389937</id><published>2010-09-05T11:31:00.000-07:00</published><updated>2010-09-29T19:11:46.795-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-09-29T19:11:46.795-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Oracle Weblogic" /><category scheme="http://www.blogger.com/atom/ns#" term="weblogic.server" /><category scheme="http://www.blogger.com/atom/ns#" term="WebLogic 9.2 MP3" /><category scheme="http://www.blogger.com/atom/ns#" term="Weblogic Server life cycle commands" /><title>Managing the Weblogic Server Life Cycle</title><content type="html">In this post I am going to discuss about WebLogic Server Life Cycle. Before you dive into the deeper you must know each&amp;nbsp;Java&amp;nbsp;option that you can use, and also&amp;nbsp;argument you can pass to the weblogic.Server class, which is a member of weblogic package given by Oracle WebLogic installation. &lt;br /&gt;
Usage: java [options] weblogic.Server [args...]&lt;br /&gt;
Where WebLogic options include:&lt;br /&gt;
-Djava.security.policy= the location of the security policyfile&lt;br /&gt;
-Dweblogic.Domain= WebLogic domain name&lt;br /&gt;
-Dweblogic.Name= WebLogic server name&lt;br /&gt;
-Dweblogic.ext.dirs=':' separated list of directories to pick up jars fromand add to the end of the server classpath.The list can also contain individual jars.&lt;br /&gt;
-Dweblogic.management.server=WebLogic Admin Server URL for starting&amp;nbsp;a Managed Server, the value can be: host:port or http://host:port or https://host:port&lt;br /&gt;
-Dweblogic.home= The location of the WebLogic Server product install. By default, this will be derived from the classpath.&lt;br /&gt;
-Dweblogic.RootDirectory=The root directory of your domain, where your configuration is housed.&lt;br /&gt;
default is the current working directory&lt;br /&gt;
-Dweblogic.management.username= user name&lt;br /&gt;
-Dweblogic.management.password= user password&lt;br /&gt;
-Dweblogic.management.pkpassword= private key password&lt;br /&gt;
-Dweblogic.security.unixrealm.authProgram= the name of the program used to authenticate users in the unix&lt;br /&gt;
security realm&lt;br /&gt;
-Dweblogic.= specify a server attribute, it will override the attribute value set in config.xml for this server&lt;br /&gt;
-Dweblogic.admin.host= same as weblogic.management.server, an old property&lt;br /&gt;
-javaagent:$WL_HOME/server/lib/diagnostics-agent.jar enable diagnostics hot code-swap for application classes And WebLogic args include:&lt;br /&gt;
-? -help print this help message&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: large;"&gt;&lt;strong&gt;1. Starting the AdminServer by 'weblogic.Server'&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Here is the basic command how the WebLogic Server will be started in the script. Actually, inside story you can understand how it goes by executing this command at your command line. To Start a admin Server we need to go to domains directory and use the following command:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&lt;strong&gt;java weblogic.Server&lt;/strong&gt;&lt;/span&gt; &lt;br /&gt;
&lt;br /&gt;
The JVM parameters will be considered default as 256 MB minimum and 512MB maximum heap size. If you wish to change you&amp;nbsp;can specify as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;java -Xms512m -Xmx1024m -XX:MaxPermSize=512m weblogic.Server&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
while starting the admin server by using the weblogic.Server command Line references, uses minmum capability to start the Server instances. When we open the WebLogic Console in a browser it requires the load the console portal which cannot run on the default heap size like -Xms512m -Xmx1024m , need to increase the heap size and Permanent Size for the JVM also need to increase with -XX:MaxPermSize=512m. following command also works for running Admin server.&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&lt;strong&gt;java -XX:MaxPermSize=512m weblogic.Server&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
If we don't use the JVM parameter of XX:MaxPermSize=512m , we will face the issue of "Out of Memor Error(perm gen error)" when accessing the console of admin &lt;br /&gt;
&lt;br /&gt;
2) Starting the Managed Server by weblogic.Server command&lt;br /&gt;
&lt;br /&gt;
Syntax :&lt;br /&gt;
&lt;br /&gt;
&lt;span style="background-color: #fff2cc; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&lt;strong&gt;java -Dweblogic.Name=managed-server-name -Dweblogic.management.server=adminURL weblogic.Server&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&lt;strong&gt;java -Dweblogic.Name=app02 -Dweblogic.management.server=http://WLHOST:7913 -Dweblogic.management.username='weblogic' -Dweblogic.management.password='weblogic' weblogic.Server&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: large;"&gt;&lt;strong&gt;2.1 Starting a Managed Server in ADMIN Mode &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
You might feel very thril here, To run the command line for the managed server for our regular example:&lt;br /&gt;
(Here WLHost replace with your own)&lt;br /&gt;
&lt;br /&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_OP6lRcE1-Ag/TKPqgJ6IzDI/AAAAAAAADd0/oalnDlqliog/s1600/Life1.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" px="true" src="http://1.bp.blogspot.com/_OP6lRcE1-Ag/TKPqgJ6IzDI/AAAAAAAADd0/oalnDlqliog/s1600/Life1.jpg" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Starting a WebLogic instance in ADMIN mode&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&lt;pre&gt; nohup java -Dweblogic.Name=app02 \
-Dweblogic.management.server=http://WLHOST:7913 \
-Dweblogic.management.username='weblogic' \
-Dweblogic.management.password='weblogic' \
-Dweblogic.management.startupMode=ADMIN weblogic.Server &gt;app02.out 2&gt;&amp;1 &amp;
&lt;/pre&gt;&lt;/span&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To check the status of the Server into the logs are as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;$tail -100f app02.out&lt;/span&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: large;"&gt;&lt;strong&gt;2.2 Starting a Managed Server STANDBY Mode&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Here one more wonder you can see here, To run the command line for the managed server for our regular example: (Here WLHost replace with your own)&lt;br /&gt;
&lt;br /&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_OP6lRcE1-Ag/TKPtGX_h_tI/AAAAAAAADd4/3L7HBNOdBIo/s1600/standby.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" px="true" src="http://4.bp.blogspot.com/_OP6lRcE1-Ag/TKPtGX_h_tI/AAAAAAAADd4/3L7HBNOdBIo/s1600/standby.jpg" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Starting a WebLogic instance in STANDBY mode&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&lt;pre&gt;nohup java -Dweblogic.Name=app02 \
-Dweblogic.management.server=http://WLHOST:7913 \
-Dweblogic.management.username='weblogic' \
-Dweblogic.management.password='weblogic' \
-Dweblogic.management.startupMode=STANDBY weblogic.Server &gt;app02.out 2&gt;&amp;1 &amp;
&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
To check the status of the Server you need to look&amp;nbsp;into the logs are as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;tail -100f app02.out&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Normally we can start the managed server which is in remotely in command line by using the below :(starting managed server in remotely)&lt;br /&gt;
&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;startManagedWebLogic.sh "app02" "http://wladminhost:7913"&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;app02 #remote managed server&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;http://wladminhost:7913 #admin url&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3408720436525595785-5186830549485389937?l=wlabypani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/yJ91JhbVX903GonLqap8PHxrEtE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/yJ91JhbVX903GonLqap8PHxrEtE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/yJ91JhbVX903GonLqap8PHxrEtE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/yJ91JhbVX903GonLqap8PHxrEtE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/WeblogicSystemAdminstration/~4/rxdAWTRsTE8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://wlabypani.blogspot.com/feeds/5186830549485389937/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://wlabypani.blogspot.com/2010/09/managing-weblogic-server-life-cycle.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3408720436525595785/posts/default/5186830549485389937?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3408720436525595785/posts/default/5186830549485389937?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WeblogicSystemAdminstration/~3/rxdAWTRsTE8/managing-weblogic-server-life-cycle.html" title="Managing the Weblogic Server Life Cycle" /><author><name>Pani</name><uri>http://www.blogger.com/profile/08954955997652365752</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://3.bp.blogspot.com/_g6eQKpF5azY/SxF5x-Y4LDI/AAAAAAAAADM/aUOQSHsOjx8/S220/DSC02027.JPG" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_OP6lRcE1-Ag/TKPqgJ6IzDI/AAAAAAAADd0/oalnDlqliog/s72-c/Life1.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://wlabypani.blogspot.com/2010/09/managing-weblogic-server-life-cycle.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkYMQn86eyp7ImA9Wx5QF00.&quot;"><id>tag:blogger.com,1999:blog-3408720436525595785.post-4314005106398143317</id><published>2010-09-05T10:34:00.000-07:00</published><updated>2010-09-05T10:36:23.113-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-09-05T10:36:23.113-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Oracle Weblogic" /><category scheme="http://www.blogger.com/atom/ns#" term="tutorial" /><category scheme="http://www.blogger.com/atom/ns#" term="administration" /><category scheme="http://www.blogger.com/atom/ns#" term="configuring domain" /><title>Basic Steps for configuring WebLogic Domain</title><content type="html">Domain with AdminServer Creation:&lt;br /&gt;Note: This is for Intial lerner or Basics who want to do manually not by using the wlst&lt;br /&gt;Domain:&lt;br /&gt;A domain is the basic administration unit for WebLogic Server. It consists of one or more WebLogic Server instances, and logically related resources and services that are managed, collectively, as one unit.&lt;br /&gt; The basic domain infrastructure consists of one Administration Server and optional Managed Servers and clusters&lt;br /&gt;&lt;br /&gt;Administration Server : &lt;br /&gt;A domain always includes one WebLogic Server instance that is configured as an Administration Server. The Administration Server provides a central point for managing the domain and providing access to the WebLogic Server administration tools&lt;br /&gt;Managed Servers: &lt;br /&gt;All other WebLogic Server instances in a domain are called Managed Servers. Managed Servers host application components and resources, which are also deployed and managed as part of the domain.&lt;br /&gt;Clusters: &lt;br /&gt;A domain may also include WebLogic Server clusters, which are groups of server instances that work together to provide scalability and high availability for applications. A cluster appears as a single WebLogic Server instance.&lt;br /&gt;&lt;br /&gt;Creation of Domain in Weblogic 9.2:&lt;br /&gt;&lt;br /&gt;1) Logon to SSH.&lt;br /&gt;2) Go to Weblogic home&lt;br /&gt;Command : cd $WEBLOGICHOME.&lt;br /&gt;3) Go to the folder common/bin&lt;br /&gt;Command : cd common/bin&lt;br /&gt;4) Execute config.sh file. This file mainly takes care below the tasks,&lt;br /&gt;Command : sh config.sh -mode=console&lt;br /&gt;a) set ups the weblogic home, the root directory for Weblogic installation.&lt;br /&gt;b) set ups the common environment like java home, java vendor and DataBase.&lt;br /&gt;5) After executing the above command BEA WebLogic Configuration Wizard opens&lt;br /&gt;6) Under this wizard we have below two options,&lt;br /&gt;1.To create a new weblogic domain.&lt;br /&gt;2.Extend the existing domain. &lt;br /&gt;7) To create a new domain enter the index number 1.&lt;br /&gt;Command : 1 and press ENTER&lt;br /&gt;8) After executing the above command, Options for selecting domain source will be available.&lt;br /&gt;9) Select option 2, to choose custom template.&lt;br /&gt;Command : 2 and press ENTER&lt;br /&gt;10) After executing the above command, below options will be available.&lt;br /&gt;1 - Modify "User name"&lt;br /&gt;2 - Modify "User password"&lt;br /&gt;3 - Modify "Confirm user password"&lt;br /&gt;4 - Modify "Description"&lt;br /&gt;5 - Discard Changes&lt;br /&gt;11) Select option 1, to modify User Name.&lt;br /&gt;Command : 1 and press ENTER&lt;br /&gt;&lt;br /&gt;12) Enter the user name and press ENTER.&lt;br /&gt;Command : system and press ENTER&lt;br /&gt;13) Select option 2, to modify the Password.&lt;br /&gt;Command : weblogic and press ENTER&lt;br /&gt;14) Select option 3, to confirm the Password.&lt;br /&gt;Command : weblogic and press ENTER&lt;br /&gt;15) After configuring the User Name and Password, type ‘next’ to proceed further with Domain configuration mode.&lt;br /&gt;Command : next&lt;br /&gt;16) After executing the above command, options to enable the domain in Production mode and Development mode will be available. Type 1 to enable Development mode.&lt;br /&gt;Command : 1 and press ENTER&lt;br /&gt;17) After executing the above command, options to select the JDK will be available. As we are using JDK 1.5 we need to select option 1.&lt;br /&gt;Command : 1 and press ENTER&lt;br /&gt;18) After executing the above command, options to modify the pre-configured settings we available. Select 1 to modify the settings&lt;br /&gt;Command : 1 and press ENTER&lt;br /&gt;19) After executing the above command, options to modify the below administration server configuration will be available.&lt;br /&gt;1 - Modify "Name"&lt;br /&gt;2 - Modify "Listen address"&lt;br /&gt;3 - Modify "Listen port"&lt;br /&gt;4 - Modify "SSL enabled"&lt;br /&gt;20) Select option 2 to modify the Listen address.&lt;br /&gt;Command : 2 and press ENTER&lt;br /&gt;21) Enter the value for Listen address.&lt;br /&gt;Command : x.xxx.xx.xx and press ENTER&lt;br /&gt;22) Now, select option 3 to modify Listen port.&lt;br /&gt;Command : 3 and press ENTER&lt;br /&gt;23) Enter the value for Listen port.&lt;br /&gt;Command : 6501 and Press ENTER&lt;br /&gt;24) Option for target domain will be available for this domain.&lt;br /&gt;Command : /pani/project/username&lt;br /&gt;25) Option Edit the domain name will be available. Choose option 1 to edit the name else type Next for the creation of the domain.&lt;br /&gt;Command : Next&lt;br /&gt;26) Domain will be created successfully.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3408720436525595785-4314005106398143317?l=wlabypani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/3wt7UpcfGbCt4cAYMWfcWxZ01JU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3wt7UpcfGbCt4cAYMWfcWxZ01JU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/3wt7UpcfGbCt4cAYMWfcWxZ01JU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3wt7UpcfGbCt4cAYMWfcWxZ01JU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/WeblogicSystemAdminstration/~4/9TxlRggMMqc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://wlabypani.blogspot.com/feeds/4314005106398143317/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://wlabypani.blogspot.com/2010/09/basic-steps-for-configuring-weblogic.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3408720436525595785/posts/default/4314005106398143317?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3408720436525595785/posts/default/4314005106398143317?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WeblogicSystemAdminstration/~3/9TxlRggMMqc/basic-steps-for-configuring-weblogic.html" title="Basic Steps for configuring WebLogic Domain" /><author><name>Pani</name><uri>http://www.blogger.com/profile/08954955997652365752</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://3.bp.blogspot.com/_g6eQKpF5azY/SxF5x-Y4LDI/AAAAAAAAADM/aUOQSHsOjx8/S220/DSC02027.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://wlabypani.blogspot.com/2010/09/basic-steps-for-configuring-weblogic.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0YNQnw8cSp7ImA9Wx5QEEw.&quot;"><id>tag:blogger.com,1999:blog-3408720436525595785.post-1900378934650817274</id><published>2010-01-26T11:09:00.000-08:00</published><updated>2010-08-28T11:13:13.279-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-08-28T11:13:13.279-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="tutorials" /><category scheme="http://www.blogger.com/atom/ns#" term="License upgrading" /><category scheme="http://www.blogger.com/atom/ns#" term="FREE" /><category scheme="http://www.blogger.com/atom/ns#" term="UpdateLicense.sh" /><category scheme="http://www.blogger.com/atom/ns#" term="tutorial" /><category scheme="http://www.blogger.com/atom/ns#" term="WebLogic 9.2 MP3" /><category scheme="http://www.blogger.com/atom/ns#" term="session" /><title>Updating Weblogic License</title><content type="html">&lt;strong&gt;Updating License file when it expires or moved from one version to another version of weblogic server and Installation of Patches  Plugins :&lt;/strong&gt;&lt;br /&gt;
[1] Install and configure WebLogic Server service packs (old versions) and patches &lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://download.oracle.com/docs/cd/E14759_01/index.htm"&gt;http://download.oracle.com/docs/cd/E14759_01/index.htm&lt;/a&gt; &lt;br /&gt;
&lt;br /&gt;
[2] Install Web Server plug-ins if required on supported platforms &lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://download.oracle.com/docs/cd/E13196_01/platform/suppconfigs/configs81/81_over/add-ons.html"&gt;http://download.oracle.com/docs/cd/E13196_01/platform/suppconfigs/configs81/81_over/add-ons.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;[3] Updating WebLogic License file&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
#This below info is written by pavan&lt;br /&gt;
&lt;strong&gt;WebLogic License Updating &lt;/strong&gt;&lt;br /&gt;
Here we go to update the BEA License file ...&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight:bold;"&gt;What happens if it is not updated?&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
1. We cannot have more instances on the same domain it is limiting to 5 instances only. &lt;br /&gt;
&lt;br /&gt;
2. If you had the 5th instance including your Admin in RUNNING state but, you cannot access the console.&lt;br /&gt;
&lt;br /&gt;
What is the resolution for this situation?&lt;br /&gt;
&lt;br /&gt;
Update your BEA/Oracle Licence as per the given steps.&lt;br /&gt;
&lt;br /&gt;
Stop all server instances which are already running.&lt;br /&gt;
&lt;br /&gt;
Update this on every machine.&lt;br /&gt;
&lt;br /&gt;
Remove "servers" folder&lt;br /&gt;
&lt;br /&gt;
1. Click the license link:http://licensecodes.oracle.com/bea.html&lt;br /&gt;
&lt;br /&gt;
choose here "BEA WebLogic Server Products" As per your operating environment you can choose the update.zip file.&lt;br /&gt;
&lt;br /&gt;
2. Download you application suitable license zip file I have choosen version as "9.2 - 9.2mp3" -- LIC-WLSP92&lt;br /&gt;
&lt;br /&gt;
3. Take a backup of the old license file&lt;br /&gt;
&lt;br /&gt;
cp license.bea license.bea_bkp&lt;br /&gt;
&lt;br /&gt;
4. Place the downloaded new license file (license.bea_new) in the BEA_HOME &lt;br /&gt;
&lt;br /&gt;
4. Run the following command.&lt;br /&gt;
&lt;pre&gt;$ ./UpdateLicense.sh license.bea_new&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Here it will apply the new lincense modifications on to the license.bea file directly.&lt;br /&gt;
&lt;br /&gt;
If this command failed revert back to the old backup.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now your license is ready to use more than 5 users (Clustered environment).&lt;br /&gt;
&lt;br /&gt;
Start the servers and check for availability of new license.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3408720436525595785-1900378934650817274?l=wlabypani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Zwbl27YUe-GZD8T5Pwb9gWAN0rI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Zwbl27YUe-GZD8T5Pwb9gWAN0rI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Zwbl27YUe-GZD8T5Pwb9gWAN0rI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Zwbl27YUe-GZD8T5Pwb9gWAN0rI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/WeblogicSystemAdminstration/~4/HLI1jJYL4eM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://wlabypani.blogspot.com/feeds/1900378934650817274/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://wlabypani.blogspot.com/2010/01/updating-license-file-and-installing.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3408720436525595785/posts/default/1900378934650817274?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3408720436525595785/posts/default/1900378934650817274?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WeblogicSystemAdminstration/~3/HLI1jJYL4eM/updating-license-file-and-installing.html" title="Updating Weblogic License" /><author><name>Pani</name><uri>http://www.blogger.com/profile/08954955997652365752</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://3.bp.blogspot.com/_g6eQKpF5azY/SxF5x-Y4LDI/AAAAAAAAADM/aUOQSHsOjx8/S220/DSC02027.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://wlabypani.blogspot.com/2010/01/updating-license-file-and-installing.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEEHRnk9eyp7ImA9Wx5TGUo.&quot;"><id>tag:blogger.com,1999:blog-3408720436525595785.post-8581164012959701792</id><published>2010-01-26T10:40:00.000-08:00</published><updated>2010-08-04T19:50:37.763-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-08-04T19:50:37.763-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Oracle Weblogic" /><category scheme="http://www.blogger.com/atom/ns#" term="Oracle Solaris" /><category scheme="http://www.blogger.com/atom/ns#" term="uninstalling WebLogic" /><category scheme="http://www.blogger.com/atom/ns#" term="Sun Solaris" /><title>Weblogic UnInstallation in Solaris</title><content type="html">&lt;strong&gt;&lt;em&gt;Continuation of Weblogic Server Installation under Solaris 5.10 box&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Weblogic Server Uninstallation in 3 Modes:&lt;/strong&gt;&lt;br /&gt;&lt;em&gt;1.GUI&lt;br /&gt;2.Console&lt;br /&gt;3.Silent&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;2.Console Mode uninstallation of Weblogic Server in Solaris Box&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;1. Go to the following directory:&lt;br /&gt;WL_HOME/uninstall&lt;br /&gt;Here WL_HOME represents the directory in which you installed&lt;br /&gt;WebLogic Server.&lt;br /&gt;2. At the prompt, enter the following command:&lt;br /&gt;&lt;pre&gt; &lt;br /&gt;bash-3.00$ cd bea&lt;br /&gt;bash-3.00$ ls -l&lt;br /&gt;total 40&lt;br /&gt;-rwxr-xr-x   1 wluser   beaproject     851 Dec 17 10:51 UpdateLicense.sh&lt;br /&gt;-rw-r--r--   1 wluser   beaproject      23 Dec 17 10:51 beahomelist&lt;br /&gt;drwxr-xr-x   6 wluser   beaproject     512 Dec 17 10:51 jdk150_10&lt;br /&gt;-rw-r--r--   1 wluser   beaproject   12081 Dec 17 10:51 license.bea&lt;br /&gt;drwxr-xr-x   2 wluser   beaproject     512 Dec 17 10:52 logs&lt;br /&gt;drwxr-xr-x   3 wluser   beaproject    1024 Dec 17 10:51 modules&lt;br /&gt;-rw-r--r--   1 wluser   beaproject     917 Dec 17 10:52 registry.xml&lt;br /&gt;drwxr-xr-x   3 wluser   beaproject     512 Dec 17 10:51 utils&lt;br /&gt;drwxr-xr-x  10 wluser   beaproject     512 Dec 17 10:54 weblogic92&lt;br /&gt;&lt;strong&gt;bash-3.00$ uninstall.sh -mode=console&lt;/strong&gt; &lt;br /&gt;&lt;br /&gt;&lt;----------------------- BEA Uninstaller - BEA Products ----------------------&gt;&lt;br /&gt;&lt;br /&gt;Welcome:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Welcome to the BEA Products uninstaller. If you wish to &lt;br /&gt;proceed with the uninstallation type Next, otherwise, please type &lt;br /&gt;Exit to cancel.&lt;br /&gt;&lt;br /&gt;Enter [Exit][Next]&gt;  &lt;br /&gt;&lt;br /&gt;&lt;----------------------- BEA Uninstaller - BEA Products ----------------------&gt;&lt;br /&gt;&lt;br /&gt;Choose Components to uninstall: &lt;br /&gt;&lt;br /&gt;-------------------------------&lt;br /&gt;&lt;br /&gt;Check the BEA Products components you want to uninstall. &lt;br /&gt;&lt;br /&gt;    Release 9.2.2.0 &lt;br /&gt;&lt;br /&gt;    |_____WebLogic Server [1] x&lt;br /&gt;         |_____Server [1.1] x&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Enter number exactly as it appears in brackets to toggle selection OR &lt;br /&gt;&lt;br /&gt;[Exit][Previous][Next]&gt; &lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;----------------------- BEA Uninstaller - BEA Products ----------------------&gt;&lt;br /&gt;&lt;br /&gt;Setting Up&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;----------------------- BEA Uninstaller - BEA Products ----------------------&gt;&lt;br /&gt;&lt;br /&gt;Removing Files&lt;br /&gt;&lt;br /&gt;&lt;----------------------- BEA Uninstaller - BEA Products ----------------------&gt;&lt;br /&gt;&lt;br /&gt;Removing BEA Registry Entries&lt;br /&gt;&lt;br /&gt;&lt;----------------------- BEA Uninstaller - BEA Products ----------------------&gt;&lt;br /&gt;&lt;br /&gt;Uninstall Completed Successfully!&lt;br /&gt;&lt;br /&gt;&lt;----------------------- BEA Uninstaller - BEA Products ----------------------&gt;&lt;br /&gt;&lt;br /&gt;Uninstallation Complete&lt;br /&gt;&lt;br /&gt;Uninstallation of selected components has completed successfully.&lt;br /&gt;&lt;br /&gt;Press [Enter] to continue&lt;br /&gt;&lt;br /&gt;bash-3.00$ cd bea &lt;br /&gt;&lt;br /&gt;bash-3.00$ ls -la&lt;br /&gt;total 42&lt;br /&gt;drwxr-xr-x   6 wluser   beaproject     512 Dec 18 06:41 .&lt;br /&gt;drwxr-xr-x   6 wluser   beaproject     512 Dec 17 10:50 ..&lt;br /&gt;-rwxr-xr-x   1 wluser   beaproject     851 Dec 17 10:51 UpdateLicense.sh&lt;br /&gt;-rw-r--r--   1 wluser   beaproject      23 Dec 17 10:51 beahomelist&lt;br /&gt;drwxr-xr-x   6 wluser   beaproject     512 Dec 17 10:51 jdk150_10&lt;br /&gt;-rw-r--r--   1 wluser   beaproject   12081 Dec 17 10:51 license.bea&lt;br /&gt;drwxr-xr-x   2 wluser   beaproject     512 Dec 17 10:52 logs&lt;br /&gt;drwxr-xr-x   3 wluser   beaproject    1024 Dec 17 10:51 modules&lt;br /&gt;-rw-r--r--   1 wluser   beaproject     324 Dec 18 06:40 registry.xml&lt;br /&gt;drwxr-xr-x   3 wluser   beaproject     512 Dec 17 10:51 utils&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;strong&gt;Note: Weblogic92 folder disappear.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;3.Uninstalling the Weblogic Server in Silent Mode &lt;/strong&gt;&lt;br /&gt; &lt;br /&gt;Go to the following directory: WL_HOME/uninstall  Here WL_HOME represents the directory in which you installed WebLogic Server. &lt;br /&gt; At the prompt, enter the following command:&lt;br /&gt;&lt;strong&gt;bash-3.00$ sh uninstall.sh -mode=silent -log=/export/home/wluser/logs/uninstall.log&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3408720436525595785-8581164012959701792?l=wlabypani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/BCCKLm8nhT_4QAPw8fcQJTzpUA8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/BCCKLm8nhT_4QAPw8fcQJTzpUA8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/BCCKLm8nhT_4QAPw8fcQJTzpUA8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/BCCKLm8nhT_4QAPw8fcQJTzpUA8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/WeblogicSystemAdminstration/~4/8sPL2cNgIlg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://wlabypani.blogspot.com/feeds/8581164012959701792/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://wlabypani.blogspot.com/2010/01/weblogic-server-uninstallation-in.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3408720436525595785/posts/default/8581164012959701792?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3408720436525595785/posts/default/8581164012959701792?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WeblogicSystemAdminstration/~3/8sPL2cNgIlg/weblogic-server-uninstallation-in.html" title="Weblogic UnInstallation in Solaris" /><author><name>Pani</name><uri>http://www.blogger.com/profile/08954955997652365752</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://3.bp.blogspot.com/_g6eQKpF5azY/SxF5x-Y4LDI/AAAAAAAAADM/aUOQSHsOjx8/S220/DSC02027.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://wlabypani.blogspot.com/2010/01/weblogic-server-uninstallation-in.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkYDSXYzfip7ImA9Wx5VFUo.&quot;"><id>tag:blogger.com,1999:blog-3408720436525595785.post-5437252073132246980</id><published>2010-01-26T09:51:00.000-08:00</published><updated>2010-10-08T14:42:58.886-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-08T14:42:58.886-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Oracle Weblogic" /><category scheme="http://www.blogger.com/atom/ns#" term="Oracle Solaris" /><category scheme="http://www.blogger.com/atom/ns#" term="installation" /><category scheme="http://www.blogger.com/atom/ns#" term="Install log" /><category scheme="http://www.blogger.com/atom/ns#" term="WebLogic 9.2 MP3" /><category scheme="http://www.blogger.com/atom/ns#" term="installing" /><category scheme="http://www.blogger.com/atom/ns#" term="Sun Solaris" /><title>Weblogic Installation on Sun Solaris</title><content type="html">When I was preparing for the WebLogic Certification there is a dedicated topic for Installing WebLogic. If you wish to prepare for the same, Let me share you my experiance with the Installation on Sun Solaris SPARC machine. You, smart WLA need to choose what kind of installation required for the environment first. Normally for the Developer who want to test their application frequently they don't need a Production installation,&amp;nbsp; At a given point of time you will get one or two hits to the application so the Development mode is sufficient. The Performance Engineer, work for pre-production environment tests requires Production installation. In the production environment the user hits to the application could be thousands at a any given time. So the need is huge you need Production mode installation. I hope, you should understand the basic differences between Development and Production mode installation perfectly then go ahead for the next section for experimenting. Here my focus on console type of installation which is most of the non-GUI environments requires and most of the WebLogic Administrator&amp;nbsp;work from remote locations&amp;nbsp;so&amp;nbsp;this&amp;nbsp;method is suggestable way. Other option GUI you can choose &lt;a href="http://wlatricksntips.blogspot.com/search/label/X11%20Forwarding"&gt;X11 forwarding&lt;/a&gt; with X emulator softwares.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Product Installation &lt;/strong&gt;&lt;br /&gt;
&lt;em&gt;[1] Install the JDK/JRE if required on supported platforms (if it is not included with jar distribution)&lt;br /&gt;
[2] Installing WebLogic Server on supported platforms &lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Installation Modes:&lt;/strong&gt;&lt;br /&gt;
&lt;em&gt;1. &lt;a href="http://zakkiahmed.wordpress.com/2010/07/23/step-by-step-install-and-configure-weblogic-server/"&gt;GUI&lt;/a&gt;&lt;br /&gt;
2. console&lt;br /&gt;
3. silent&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Installing&amp;nbsp;on Sun Solaris 5.10&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
When you are on the oracle download page you need to choose proper installer that should match your platform. If your system uses Sun Solaris 5.10, your installer could have a&lt;br /&gt;
&lt;strong&gt;server923_solaris32.bin(WebLogic 9.2 MP3)&amp;nbsp;or &lt;span style="background-color: yellow;"&gt;wls1033_solaris32.bin&lt;/span&gt;&lt;/strong&gt; (WebLogic 10.3.3/11g) as binary file name. If your installer has the .bin extension,that means the installer includes Java Development Kit (JDK).&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;To run the installer you need to use .bin file if you have it available on a CD or on Disk then , follow&lt;br /&gt;
these steps:&lt;/em&gt;&lt;br /&gt;
1.Logon to the system as the user whoever have previllages to&amp;nbsp;work as&amp;nbsp;WebLogic System Administrator.&lt;br /&gt;
2.Open a command-line shell.&lt;br /&gt;
3.Insert the WebLogic CD in the CD-ROM drive or disk where the bin file is located.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Change to the weblogic_platform directory on the CD or disk.&lt;br /&gt;
and Invoke the following command:&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: courier new;"&gt;&lt;strong&gt;./server923_solaris32.bin -mode=console -Djava.io.tmpdir=/tmp -log=/export/home/wluser/logs/BEA_install.log&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;Note: Don't Copy the commands directly from pdf/webpage files to Unix/sunsolaris&lt;br /&gt;
console this may cause problem (Symbols can not be identified)&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Sample installation Run given for your reference:&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: courier new;"&gt;bash-3.00$ ls -lrt&lt;br /&gt;
-rwxr-xr-x 1 wluser beaproj 608240443 Dec 16 10:53 server922_solaris32.bin&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;&lt;em&gt;bash-3.00$ ./server922_solaris32.bin mode=console&lt;br /&gt;
Invalid command line argument: [mode]. //Refer Note&lt;br /&gt;
#ERROR due to - missed before mode &lt;/em&gt;&lt;/span&gt;&lt;strong&gt;2.Console Mode Installation&lt;/strong&gt;&lt;br /&gt;
&lt;span style="font-family: courier new;"&gt;&lt;strong&gt;bash-3.00$ ./server922_solaris32.bin -mode=console&lt;/strong&gt;&lt;br /&gt;
Extracting&lt;br /&gt;
0%....................................................................................................100% &amp;lt;----------------------------------------------- BEA Installer - BEA Products ----------------------------------------------&amp;gt;&lt;br /&gt;
Welcome:&lt;br /&gt;
--------&lt;br /&gt;
This installer will guide you through the installation of BEA Products. Type&lt;br /&gt;
"Next" or enter to proceed to the next prompt.&lt;br /&gt;
If you want to change data entered previously, type "Previous". You may quit the&lt;br /&gt;
installer at any time by typing "Exit".&lt;br /&gt;
&lt;br /&gt;
Enter [Exit][Next]&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;----------------------------------------------- BEA Installer - BEA Products ----------------------------------------------&amp;gt;&lt;br /&gt;
BEA Systems License Agreement:&lt;br /&gt;
------------------------------&lt;br /&gt;
BEA SYSTEMS, INC. SOFTWARE LICENSE AGREEMENT&lt;br /&gt;
USE OF SOFTWARE ORDERED FROM BEA SYSTEMS, INC. ("BEA") IS PROVIDED ONLY UNDER&lt;br /&gt;
LICENSE FROM BEA. PLEASE READ THE FOLLOWING&lt;br /&gt;
LICENSE CAREFULLY AND INDICATE YOUR ACCEPTANCE BY CLICKING THE ACCEPTANCE BOX.&lt;br /&gt;
CERTAIN CAPITALIZED TERMS ARE DEFINED IN&lt;br /&gt;
SECTION 11.&lt;br /&gt;
&lt;br /&gt;
1. LICENSE TERMS&lt;br /&gt;
a. WebLogic SDK Use. The terms of this Section 1(a) are applicable to you if&lt;br /&gt;
you have registered as a WebLogic SDK&lt;br /&gt;
customer. Subject to the terms of this Agreement, BEA grants to you a&lt;br /&gt;
non-exclusive, non-transferable, royalty-free license&lt;br /&gt;
to use WebLogic SDK solely for Development Use and Scale-Limited Personal Use for&lt;br /&gt;
the number of users and/or developers and&lt;br /&gt;
the number of CPU's, Servers and/or at the Sites, as specified at the time of&lt;br /&gt;
registration. Third party software products or&lt;br /&gt;
modules supplied by BEA, if any, may be used solely with the Software. All rights&lt;br /&gt;
not specifically granted to you herein are&lt;br /&gt;
retained by BEA.&lt;br /&gt;
b. WebLogic SDK Pro Use. The terms of this Section 1(b) are applicable to you if&lt;br /&gt;
you have registered as a WebLogic SDK Pro&lt;br /&gt;
customer. Subject to the terms of this Agreement, BEA grants to you a&lt;br /&gt;
non-exclusive, non-transferable, fee-bearing license to use WebLogic SDK Pro&lt;br /&gt;
solely for Development Use and Scale-Limited Commercial Use for the number of&lt;br /&gt;
users and/or developers&lt;br /&gt;
and the number of CPU's, Servers and/or at the Sites, as specified on BEA's&lt;br /&gt;
invoice. Third party software products or modules supplied by BEA, if any, may be&lt;br /&gt;
used solely with the Software. All rights not specifically granted to you herein&lt;br /&gt;
are retained by BEA.&lt;br /&gt;
c. Evaluation Use. The terms of this Section 1(c) are applicable to you if you&lt;br /&gt;
have registered as an Evaluation Use&lt;br /&gt;
customer. Subject to the terms of this Agreement, BEA grants to you a&lt;br /&gt;
non-exclusive, non-transferable, license to use the&lt;br /&gt;
Use above value or select another option:&lt;br /&gt;
1 - Yes, I agree with the terms of the license&lt;br /&gt;
2 - No, I do not agree with the terms of the license&lt;br /&gt;
&lt;br /&gt;
Enter option number to select OR [Down][Exit][Previous]&amp;gt; 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;----------------------------------------------- BEA Installer - BEA Products ----------------------------------------------&amp;gt;&lt;br /&gt;
Choose BEA Home Directory:&lt;br /&gt;
--------------------------&lt;br /&gt;
"BEA Home" = [Enter new value or use default "/export/home/wluser/bea"]&lt;br /&gt;
&lt;br /&gt;
Enter new BEA Home OR [Exit][Previous][Next]&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;----------------------------------------------- BEA Installer - BEA Products ----------------------------------------------&amp;gt;&lt;br /&gt;
Choose Install Type:&lt;br /&gt;
--------------------&lt;br /&gt;
Select the type of installation you wish to perform.&lt;br /&gt;
-&amp;gt;1Complete&lt;br /&gt;
Install the following software components and examples:&lt;br /&gt;
- WebLogic Server&lt;br /&gt;
- Workshop for WebLogic Platform&lt;br /&gt;
2Custom&lt;br /&gt;
Choose software components to install and perform optional configuration.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter index number to select OR [Exit][Previous][Next]&amp;gt; 2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;----------------------------------------------- BEA Installer - BEA Products ----------------------------------------------&amp;gt;&lt;br /&gt;
Choose Components to install:&lt;br /&gt;
-----------------------------&lt;br /&gt;
Release 9.2.2.0&lt;br /&gt;
_____WebLogic Server [1] x&lt;br /&gt;
_____Server [1.1] x&lt;br /&gt;
_____Server Examples [1.2] x&lt;br /&gt;
_____Web Server Plug-Ins [1.3]&lt;br /&gt;
_____Workshop for WebLogic Platform [2] x&lt;br /&gt;
_____Workshop [2.1] x&lt;br /&gt;
_____Workshop Examples [2.2] x&lt;br /&gt;
&lt;br /&gt;
Enter number exactly as it appears in brackets to toggle selection OR&lt;br /&gt;
[Exit][Previous][Next]&amp;gt; 2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;----------------------------------------------- BEA Installer - BEA Products ----------------------------------------------&amp;gt;&lt;br /&gt;
Choose Components to install:&lt;br /&gt;
-----------------------------&lt;br /&gt;
Release 9.2.2.0&lt;br /&gt;
_____WebLogic Server [1] x&lt;br /&gt;
_____Server [1.1] x&lt;br /&gt;
_____Server Examples [1.2] x&lt;br /&gt;
_____Web Server Plug-Ins [1.3]&lt;br /&gt;
_____Workshop for WebLogic Platform [2]&lt;br /&gt;
_____Workshop [2.1]&lt;br /&gt;
_____Workshop Examples [2.2]&lt;br /&gt;
&lt;br /&gt;
Enter number exactly as it appears in brackets to toggle selection OR&lt;br /&gt;
[Exit][Previous][Next]&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;----------------------------------------------- BEA Installer - BEA Products ----------------------------------------------&amp;gt;&lt;br /&gt;
Choose Product Installation Directories:&lt;br /&gt;
----------------------------------------&lt;br /&gt;
BEA Home Directory: [/export/home/wluser/bea]&lt;br /&gt;
Product Installation Directories:&lt;br /&gt;
"Default Product Home" = [Enter new value or use default&lt;br /&gt;
"/export/home/wluser/bea/weblogic92"]&lt;br /&gt;
&lt;br /&gt;
Enter new Default Product Home OR [Exit][Previous][Next]&amp;gt;&lt;br /&gt;
Dec 16, 2008 11:04:46 AM java.util.prefs.FileSystemPreferences$2 run&lt;br /&gt;
INFO: Created user preferences directory.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;----------------------------------------------- BEA Installer - BEA Products ----------------------------------------------&amp;gt;&lt;br /&gt;
Installing files..&lt;br /&gt;
0% 25% 50% 75% 100%&lt;br /&gt;
[------------------------------------------------]&lt;br /&gt;
[***************************************************]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;----------------------------------------------- BEA Installer - BEA Products ----------------------------------------------&amp;gt;&lt;br /&gt;
Installing JDK....&lt;br /&gt;
0% 25% 50% 75% 100%&lt;br /&gt;
[------------------------------------------------]&lt;br /&gt;
[***************************************************]&lt;br /&gt;
Performing String Substitutions...&lt;br /&gt;
&lt;br /&gt;
Creating Domains...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;----------------------------------------------- BEA Installer - BEA Products ----------------------------------------------&amp;gt;&lt;br /&gt;
Installation Complete&lt;br /&gt;
Congratulations! BEA Products has been successfully installed to&lt;br /&gt;
/export/home/wluser/bea/weblogic92.&lt;br /&gt;
Press [Enter] to continue or type [Exit]&amp;gt;&lt;br /&gt;
bash-3.00$&lt;/span&gt;&lt;br /&gt;
&lt;strong&gt;2. Silent Mode Installation(Using XML):(Depricated)&lt;/strong&gt;&lt;br /&gt;
Though it is depricated it is simple and smooth to use. That makes still WLA love to use this method, So I want to do an experiment it&lt;br /&gt;
Set the classpath in .profile as shown below&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;export &lt;span style="font-family: courier new;"&gt;CLASSPATH=/export/home/wluser//bea/jdk150_10/jre/lib/rt.jar:/export/home/wluser/bea/weblogic92/server/lib/weblogic.jar:&lt;br /&gt;
export PATH=/export/home/wluser/bea/weblogic92/common/bin:$PATH&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt;&lt;span style="font-family: courier new;"&gt;&lt;br /&gt;
&lt;/span&gt;bash&lt;br /&gt;
1. Log in to the Windows system.&lt;br /&gt;
2. Create a silent.xml file that defines the configuration settings normally entered by a user during an interactive installation process, such as graphical-mode or console-mode&lt;br /&gt;
Get the sample &lt;strong&gt;silent.xml&lt;/strong&gt; form the below bea site&lt;br /&gt;
&lt;em&gt;http://e-docs.bea.com/common/docs92/install/scripts/silent.xml&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;Note:Please keep (&amp;lt;)open and close(/&amp;gt;) tags in every line in the xml&lt;br /&gt;
becuase removed that not displaying the xml content in the blog&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;span style="font-family: courier new;"&gt;?xml version="1.0" encoding="UTF-8"?
bea-installer # open tag
input-fields # open tag
data-value name="BEAHOME" value="/export/home/wluser/bea"
data-value name="USER_INSTALL_DIR" value="/export/home/wluser/bea/weblogic92"
data-value name="INSTALL_MERCURY_PROFILING_TOOLS" value="true"
data-value name="COMPONENT_PATHS" value="WebLogic Server/Server"
data-value name="INSTALL_SHORTCUT_IN_ALL_USERS_FOLDER" value="yes"
input-fields #close tag
bea-installer #close tag
&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;strong&gt;./server922_solaris32.bin -mode=silent -silent_xml=silent1.xml -Djava.io.tmpdir=/tmp -log=/export/home/wluser/logs/BEA_install.log&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;To enable NodeManager following silent script can be used: &lt;/strong&gt;&lt;br /&gt;
&lt;em&gt;Note:Please keep (&amp;lt;)open and close(/&amp;gt;) tags in every line in the xml&lt;br /&gt;
becuase removed that not displaying the xml content in the blog&lt;/em&gt;&lt;br /&gt;
?xml version="1.0" encoding="UTF-8"?&lt;br /&gt;
bea-installer #open tag&lt;br /&gt;
input-fields #Open tag&lt;br /&gt;
data-value name="BEAHOME" value="/home/wluser/bea"&lt;br /&gt;
data-value name="USER_INSTALL_DIR" value="/home/wluser/bea/weblogic92"&lt;br /&gt;
data-value name="INSTALL_MERCURY_PROFILING_TOOLS" value="true"&lt;br /&gt;
data-value name="INSTALL_NODE_MANAGER_SERVICE" value="yes"&lt;br /&gt;
data-value name="NODEMGR_PORT" value="5513"&lt;br /&gt;
data-value name="COMPONENT_PATHS" value="WebLogic Server/Server"&lt;br /&gt;
data-value name="INSTALL_SHORTCUT_IN_ALL_USERS_FOLDER" value="yes"&lt;br /&gt;
input-fields #closing tag&lt;br /&gt;
bea-installer #closing tag&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;The explanation of the above command:&lt;/strong&gt;&lt;br /&gt;
1.To install the Bea in Silent mode , we need to specify the arguments as "-mode=silent"&lt;br /&gt;
2.and Specify the silent.xml path&lt;br /&gt;
Silent.xml contains, the BEA Home path,Installation Directory path,Need to specify which component need to install&lt;br /&gt;
3.Optionally we can specify the path for the temp directory for extracting the compressed jars&lt;br /&gt;
4.Optionally we can specify the log path which can be used for the Tracing the installation errors or exceptions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Final Overview Steps for installation:&lt;/strong&gt;&lt;br /&gt;
&lt;em&gt;--This is taken from one of blog&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
Oracle WebLogic Server is J2EE Server (earlier known as BAEWebLogic Server) similar to Oracle Application Server.&lt;br /&gt;
This post covers installation of Oracle WebLogic Server with available installation Mode and Components.&lt;br /&gt;
You can download Oracle WebLogic Software from here (Currently it is available on Windows, Linux and Solaris and can be installed on Windows Vista also)&lt;br /&gt;
&lt;strong&gt;A. Installation Mode&lt;/strong&gt;&lt;br /&gt;
BEA products can be installed in following mode&lt;br /&gt;
i) Graphical Mode - Interactive GUI based&lt;br /&gt;
ii) Console Mode - Interactive Text Based (-mode=console)&lt;br /&gt;
iii) Silent Mode- Non Interactive method using XML properties file (-mode=silent -silent_xml=properties_xml_file)&lt;br /&gt;
.&lt;br /&gt;
B. Installation Type&lt;br /&gt;
i) Complete or&lt;br /&gt;
ii) Custom&lt;br /&gt;
.&lt;br /&gt;
&lt;strong&gt;C. Installation Component&lt;/strong&gt;&lt;br /&gt;
Depending on type of installer you choose, you get following kind of component&lt;br /&gt;
1) WebLogic Server&lt;br /&gt;
—Server&lt;br /&gt;
—Server Examples&lt;br /&gt;
—Server Add-ons&lt;br /&gt;
2) Workshop&lt;br /&gt;
—Workshop for WebLogic&lt;br /&gt;
—Workshop Runtime Framework&lt;br /&gt;
3) WebLogic Integration&lt;br /&gt;
—Integration Server&lt;br /&gt;
—Workshop Integration Extension&lt;br /&gt;
—Integration Examples&lt;br /&gt;
4) WebLogic Portal&lt;br /&gt;
—Portal Server&lt;br /&gt;
—Workshop Portal Extension&lt;br /&gt;
—Portal Examples&lt;br /&gt;
.&lt;br /&gt;
&lt;strong&gt;D. Installation Requirement&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
i) Hard Disk- Approx 3.5 GB for complete installation.&lt;br /&gt;
ii) Memory - Minimum 1GB as per documentation (will work on 500MB as well)&lt;br /&gt;
iii) JDK - JDK (Java Development Kit - Not required on windows on Unix install JDK 4,5 or 6)&lt;br /&gt;
iv) BEA HOme Directory - This directory is repository for common files used by multiple BEA products.&lt;br /&gt;
v) Product Installation Directory- Specific to particular BEA product like WebLogic Server, Workshop for WebLogic, WEbLogic Integration …&lt;br /&gt;
vi) Temp Directory - approx 2.5 times of total installation (this will be cleaned up after installation)&lt;br /&gt;
.&lt;br /&gt;
&lt;strong&gt;E. Things to consider&lt;/strong&gt;&lt;br /&gt;
1. Try NOT to give space in directory for BEA_HOME (like Program Files)&lt;br /&gt;
2. Try Not to exceed 12 characters when naming BEA_HOME&lt;br /&gt;
3. You can specifiy installation log file during installation like -log=/myinstalllog.log&lt;br /&gt;
4. To start installation in console mode use -mode=console&lt;br /&gt;
5. To start in silent mode, create silent.xml file containing all values and use -mode=silent -silent_xml=&lt;location&gt;&lt;br /&gt;
.&lt;br /&gt;
&lt;strong&gt;F. Installation Steps&lt;/strong&gt;&lt;br /&gt;
1. Welcome&lt;br /&gt;
2. Choose BEA Home&lt;br /&gt;
3. Choose Install Type (Complete , Custom). If you selected Custom, Go to 4 else go to 5&lt;br /&gt;
4. Choose Product and Component (mentioned in step C above)&lt;br /&gt;
5. Choose Product Installation Directories&lt;br /&gt;
6.Install Windows SErvice (only if installation is on windows AND You have administrative privileges AND this is first installation AND this is CUSTOM installation)&lt;br /&gt;
7. Installation complete&lt;br /&gt;
.&lt;br /&gt;
Start Installation on Windows/Linux&lt;br /&gt;
Go to location where you have download software and start installation as&lt;br /&gt;
&lt;strong&gt;server1001_win32.exe -mode=console -log=c:\weblogic.log &lt;/strong&gt;&lt;br /&gt;
Replace server1001_win32.exewith executable name on Linux/Solaris and change location to directory as per Unix like /home/bea/weblogic.log (This will install BEA in interactive console mode)&lt;br /&gt;
.&lt;br /&gt;
References&lt;br /&gt;
&lt;a href="http://www.oracle.com/technology/obe/fusion_middleware/wls103/InstallConfig/install_wls/Install_WLS.htm"&gt;Oracle WebLogic 10.2 Installation Guide&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3408720436525595785-5437252073132246980?l=wlabypani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/GTk6ZZXUE9jlgLWx7VRT3eJO9Ic/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GTk6ZZXUE9jlgLWx7VRT3eJO9Ic/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/GTk6ZZXUE9jlgLWx7VRT3eJO9Ic/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GTk6ZZXUE9jlgLWx7VRT3eJO9Ic/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/WeblogicSystemAdminstration/~4/sNmlb1gkKG0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://wlabypani.blogspot.com/feeds/5437252073132246980/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://wlabypani.blogspot.com/2010/01/weblogic-server-installation.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3408720436525595785/posts/default/5437252073132246980?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3408720436525595785/posts/default/5437252073132246980?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WeblogicSystemAdminstration/~3/sNmlb1gkKG0/weblogic-server-installation.html" title="Weblogic Installation on Sun Solaris" /><author><name>Pani</name><uri>http://www.blogger.com/profile/08954955997652365752</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://3.bp.blogspot.com/_g6eQKpF5azY/SxF5x-Y4LDI/AAAAAAAAADM/aUOQSHsOjx8/S220/DSC02027.JPG" /></author><thr:total>1</thr:total><feedburner:origLink>http://wlabypani.blogspot.com/2010/01/weblogic-server-installation.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkUCQH8-eyp7ImA9Wx5QE0o.&quot;"><id>tag:blogger.com,1999:blog-3408720436525595785.post-4761406713505488543</id><published>2010-01-09T10:51:00.000-08:00</published><updated>2010-09-01T12:44:21.153-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-09-01T12:44:21.153-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="jstack" /><category scheme="http://www.blogger.com/atom/ns#" term="jmap" /><category scheme="http://www.blogger.com/atom/ns#" term="jinfo" /><category scheme="http://www.blogger.com/atom/ns#" term="JVM" /><category scheme="http://www.blogger.com/atom/ns#" term="jhat" /><title>JVM Troubleshooting Tools</title><content type="html">JVM Troubleshooting Tools:&lt;br /&gt;
If you look at Java tools section of the JDK 1.5 documentation page, you will see a group of new experimental tools called&lt;br /&gt;
"Troubleshooting Tools":&lt;br /&gt;
"jinfo": Prints configuration information for a given JVM process or a Java core file on the local machine or on a remote&lt;br /&gt;
machine through a debug server.&lt;br /&gt;
"jhat" - Heap Dump Browser: Starts a Web server on a Java heap dump file (eg, produced by "jmap -dump"), allowing the heap to&lt;br /&gt;
be browsed.&lt;br /&gt;
"jmap" - Memory Map: Prin00:24 10-01-2010ts shared object memory maps or heap memory details of a given JVM process or a Java&lt;br /&gt;
core file on the local machine or on a remote machine through a debug server.&lt;br /&gt;
"jsadebugd" - Serviceability Agent Debug Daemon: Attaches to a JVM process or a Java core file and acts as a debug server for&lt;br /&gt;
remote tools to connect.&lt;br /&gt;
"jstack" - Stack Trace: Prints a stack trace of threads for a given JVM process or a Java core file on the local machine or&lt;br /&gt;
on a remote machine through a debug server.&lt;br /&gt;
Note that not all functions described above are available on Windows systems. See next sections on how to use those tools&lt;br /&gt;
provided in JDK 1.6 on a Windows system.&lt;br /&gt;
1)'jinfo' - VM Option Value Checker&lt;br /&gt;
The first JVM troubleshooting tool I want try is the "jinfo" tool.&lt;br /&gt;
The "jinfo" tool included in the Windows version of JDK 1.6 only supports functions to view and modify HotSpot VM options of&lt;br /&gt;
the specified JVM process. Here is the "jinfo" command syntax:&lt;br /&gt;
C:\Pani&amp;gt;\Progra~1\java\jdk1.6.0_02\bin\jinfo&lt;br /&gt;
Usage: jinfo &lt;option&gt;&lt;pid&gt;(to connect to a running process)&lt;br /&gt;
where &lt;option&gt;is one of: -flag &lt;name&gt;to print the value of the named VM option -flag [+-]&lt;name&gt; to enable or disable the named VM option -flag &lt;name&gt;=&lt;value&gt; to set the named VM option to the given value -h -help to print this help message&lt;br /&gt;
HotSpot VM supports many options as described on the "Java HotSpot VM Options" page. You can change the default value of any&lt;br /&gt;
HotSpot VM option using the "-XX:..." command option when running the "java" command.&lt;br /&gt;
Here is a tutorial example of how to use the "jinfo" tool get the current value of a given VM option:&lt;br /&gt;
C:\Pani&amp;gt;\Progra~1\java\jdk1.6.0_02\bin\java -jar "\Program Files\java\jdk1.6.0_02\demo\jfc\Notepad\notepad.jar" (Notepad started.)&lt;br /&gt;
(Start another command window.)C:\Pani&amp;gt;\Progra~1\java\jdk1.6.0_02\bin\jps -l -m&lt;br /&gt;
424 \Program Files\java\jdk1.6.0_02\demo\jfc\Notepad\notepad.jar3984 sun.tools.jps.Jps -l -m&lt;br /&gt;
C:\Pani&amp;gt;\Progra~1\java\jdk1.6.0_02\bin\jinfo -flag ThreadStackSize 424&lt;br /&gt;
-XX:ThreadStackSize=0&lt;br /&gt;
Note that:&lt;br /&gt;
The "jps" tool is used to get the process ID (pid) of the Notepad JVM: 424. The output of the "jinfo" command shows that the current value of the ThreadStackSize option is 0 in the Notepad JVM.&lt;br /&gt;
Changing HotSpot VM Option using 'jinfo'&lt;br /&gt;
The "jinfo" tool can be used to view the current value of any HotSpot VM option of a given JVM process as described in the&lt;br /&gt;
previous section.&lt;br /&gt;
The "jinfo" tool can also be used set a new value of any HotSpot VM option using the "jinfo -flag name=value" format. Here is&lt;br /&gt;
what I did to test this function with JDK 1.6 on a Windows system:&lt;br /&gt;
C:\Pani&amp;gt;\Progra~1\java\jdk1.6.0_02\bin\java -XX:ThreadStackSize=512 -jar "\Program Files\java\jdk1.6.0_02\demo\jfc\Notepad\notepad.jar" (Notepad started)&lt;br /&gt;
(Start another command window.)C:\Pani&amp;gt;\Progra~1\java\jdk1.6.0_02\bin\jps -l -m&lt;br /&gt;
1424 \Program Files\java\jdk1.6.0_02\demo\jfc\Notepad\notepad.jar3124 sun.tools.jps.Jps -l -m&lt;br /&gt;
C:\Pani&amp;gt;\Progra~1\java\jdk1.6.0_02\bin\jinfo -flag ThreadStackSize 1424&lt;br /&gt;
-XX:ThreadStackSize=512&lt;br /&gt;
C:\Pani&amp;gt;\Progra~1\java\jdk1.6.0_02\bin\jinfo -flag ThreadStackSize=1024 1424 Exception in thread "main" java.io.IOException: Command failed in target VM at sun.tools.attach.WindowsVirtualMachine.execute (WindowsVirtualMachine.java:94) at sun.tools.attach.HotSpotVirtualMachine.executeCommand (HotSpotVirtualMachine.java:195) at sun.tools.attach.HotSpotVirtualMachine.setFlag (HotSpotVirtualMachine.java:172) at sun.tools.jinfo.JInfo.flag(JInfo.java:105) at sun.tools.jinfo.JInfo.main(JInfo.java:58)&lt;br /&gt;
Apparently, the target VM (the Notepad VM) does not allow me to change its option. I do not know why?&lt;br /&gt;
2)'jstack' - Stack Tracer of JVM Threads:&lt;br /&gt;
"jstack": A JVM troubleshooting tool that prints stack traces of all running threads of a given JVM process, a Java core&lt;br /&gt;
file, or remote debug server. The "jstack" tool included in the JDK 1.6 Windows version only supports limited functions as&lt;br /&gt;
shown the this help message:&lt;br /&gt;
C:\Pani&amp;gt;\Progra~1\java\jdk1.6.0_02\bin\jstack -help&lt;br /&gt;
Usage: jstack [-l] &lt;pid&gt;(to connect to running process)&lt;br /&gt;
Options: -l long listing. Prints additional information about locks -h or -help to print this help message&lt;br /&gt;
In order to test "jstack", I used this simple Java program, LongSleep.java: class LongSleep { public static void main(String[] a) { Runtime rt = Runtime.getRuntime(); System.out.println(" Free memory: " + rt.freeMemory()); System.out.println("Total memory: " + rt.totalMemory()); try {Thread.sleep(1000*60*60);} catch (InterruptedException e) {} }}&lt;br /&gt;
When LongSleep.java is running, I used "jps" to get its JVM process ID, pid. Then I ran "jstack" with that pid to get the&lt;br /&gt;
following stack information:&lt;br /&gt;
C:\Pani&amp;gt;\Progra~1\java\jdk1.6.0_02\bin\javac LongSleep.java&lt;br /&gt;
C:\Pani&amp;gt;\Progra~1\java\jdk1.6.0_02\bin\java LongSleep Free memory: 4997104Total memory: 5177344&lt;br /&gt;
(Start another command window.)C:\Pani&amp;gt;\Progra~1\java\jdk1.6.0_02\bin\jps -l -m3296 LongSleep2224 sun.tools.jps.Jps -l -m&lt;br /&gt;
C:\Pani&amp;gt;\Progra~1\java\jdk1.6.0_02\bin\jstack 3296&lt;br /&gt;
Full thread dump Java HotSpot(TM) Client VM (1.6.0_02-b06 mixed mod...&lt;br /&gt;
"Low Memory Detector" daemon prio=6 tid=0x02a7c800 nid=0xf20 runnable java.lang.Thread.State: RUNNABLE&lt;br /&gt;
"CompilerThread0" daemon prio=10 tid=0x02a78000 nid=0xb3c waiting ... java.lang.Thread.State: RUNNABLE&lt;br /&gt;
"Attach Listener" daemon prio=10 tid=0x02a76c00 nid=0x37c waiting ... java.lang.Thread.State: RUNNABLE&lt;br /&gt;
"Signal Dispatcher" daemon prio=10 tid=0x02a75c00 nid=0xd7c runnable java.lang.Thread.State: RUNNABLE&lt;br /&gt;
"Finalizer" daemon prio=8 tid=0x02a71400 nid=0x2e8 in Object.wait() java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on &amp;lt;0x22990b38&amp;gt; (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116) - locked &amp;lt;0x22990b38&amp;gt; (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)&lt;br /&gt;
"Reference Handler" daemon prio=10 tid=0x02a6d000 nid=0xfbc in Obje... java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on &amp;lt;0x22990a38&amp;gt; (a java.lang.ref.Reference$Lock) at java.lang.Object.wait(Object.java:485) at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116) - locked &amp;lt;0x22990a38&amp;gt; (a java.lang.ref.Reference$Lock)&lt;br /&gt;
"main" prio=6 tid=0x00296000 nid=0xef4 waiting on condition [0x0090... java.lang.Thread.State: TIMED_WAITING (sleeping) at java.lang.Thread.sleep(Native Method) at LongSleep.main(LongSleep.java:10)&lt;br /&gt;
"VM Thread" prio=10 tid=0x02a63c00 nid=0xc70 runnable&lt;br /&gt;
"VM Periodic Task Thread" prio=10 tid=0x02a7e000 nid=0xdd0 waiting ...&lt;br /&gt;
JNI global references: 571&lt;br /&gt;
Cool. Now I know how many threads are running inside a JVM, 8 of them. But my Java application, LongSleep, only runs under 1&lt;br /&gt;
thread named as "main", which is in a state called, TIMED_WAITING. This matches my expectation.&lt;br /&gt;
Java Thread Deadlock Demo Program:&lt;br /&gt;
In the previous section, "jstack" was used to print stack traces of all running threads of a given JVM process. But "jstack"&lt;br /&gt;
can also be used to detect deadlocks inside a given JVM process. The tutorial example below shows you how "jstack" prints&lt;br /&gt;
deadlock information:&lt;br /&gt;
1. Copy and save this Java program, import java.util.*;public class SimpleDeadLock extends Thread { public static Object l1 = new Object(); public static Object l2 = new Object(); private int index; public static void main(String[] a) { Thread t1 = new Thread1(); Thread t2 = new Thread2(); t1.start(); t2.start(); } private static class Thread1 extends Thread { public void run() { synchronized (l1) { System.out.println("Thread 1: Holding lock 1..."); try { Thread.sleep(10); } catch (InterruptedException e) {} System.out.println("Thread 1: Waiting for lock 2..."); synchronized (l2) { System.out.println("Thread 2: Holding lock 1 &amp;amp; 2..."); } } } } private static class Thread2 extends Thread { public void run() { synchronized (l2) { System.out.println("Thread 2: Holding lock 2..."); try { Thread.sleep(10); } catch (InterruptedException e) {} System.out.println("Thread 2: Waiting for lock 1..."); synchronized (l1) { System.out.println("Thread 2: Holding lock 2 &amp;amp; 1..."); } } } }}&lt;br /&gt;
2. Compile and run SimpleDeadLock.java. A deadlock will be created immediately between two running threads:&lt;br /&gt;
C:\Pani&amp;gt;\Progra~1\java\jdk1.6.0_02\bin\javac SimpleDeadLock.java&lt;br /&gt;
C:\Pani&amp;gt;\Progra~1\java\jdk1.6.0_02\bin\java SimpleDeadLock&lt;br /&gt;
Thread 1: Holding lock 1...Thread 2: Holding lock 2...Thread 2: Waiting for lock 1...Thread 1: Waiting for lock 2...&lt;br /&gt;
This deadlock is expected - Thread 1 is holding lock 1 and waiting for lock 2, while thread 2 is holding lock 2 and waiting&lt;br /&gt;
for lock 1.&lt;br /&gt;
See the next section on how to use "jstack" to print the deadlock information and stack traces of 2 related threads.&lt;br /&gt;
Detecting Java Thread Deadlocks with 'jstack':&lt;br /&gt;
&lt;br /&gt;
With the deadlock demo program, SimpleDeadLock.java, running in a locked status as described in the previous section, I am&lt;br /&gt;
ready to run "jstack" to print the deadlock information and stack traces of 2 locked threads:&lt;br /&gt;
C:\Pani&amp;gt;\Progra~1\java\jdk1.6.0_02\bin\jps -l -m1464 SimpleDeadLock464 sun.tools.jps.Jps -l -m&lt;br /&gt;
C:\Pani&amp;gt;\Progra~1\java\jdk1.6.0_02\bin\jstack 1464&lt;br /&gt;
Full thread dump Java HotSpot(TM) Client VM (1.6.0_02-b06 mixed mod...&lt;br /&gt;
"DestroyJavaVM" prio=6 tid=0x00296000 nid=0x198 waiting on conditio... java.lang.Thread.State: RUNNABLE&lt;br /&gt;
"Thread-1" prio=6 tid=0x02a99c00 nid=0xee0 waiting for monitor entr... java.lang.Thread.State: BLOCKED (on object monitor) at SimpleDeadLock$Thread2.run(SimpleDeadLock.java:37) - waiting to lock &amp;lt;0x229bd238&amp;gt; (a java.lang.Object) - locked &amp;lt;0x229bd240&amp;gt; (a java.lang.Object)&lt;br /&gt;
"Thread-0" prio=6 tid=0x02a99000 nid=0xefc waiting for monitor entr... java.lang.Thread.State: BLOCKED (on object monitor) at SimpleDeadLock$Thread1.run(SimpleDeadLock.java:24) - waiting to lock &amp;lt;0x229bd240&amp;gt; (a java.lang.Object) - locked &amp;lt;0x229bd238&amp;gt; (a java.lang.Object)&lt;br /&gt;
"Low Memory Detector" daemon prio=6 tid=0x02a7c800 nid=0xd2c runnab... java.lang.Thread.State: RUNNABLE&lt;br /&gt;
"CompilerThread0" daemon prio=10 tid=0x02a78000 nid=0x500 waiting o... java.lang.Thread.State: RUNNABLE&lt;br /&gt;
"Attach Listener" daemon prio=10 tid=0x02a76c00 nid=0x32c waiting o... java.lang.Thread.State: RUNNABLE&lt;br /&gt;
"Signal Dispatcher" daemon prio=10 tid=0x02a75c00 nid=0x190 runnabl... java.lang.Thread.State: RUNNABLE&lt;br /&gt;
"Finalizer" daemon prio=8 tid=0x02a6e000 nid=0xdb0 in Object.wait()... java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on &amp;lt;0x22990b38&amp;gt; (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116) - locked &amp;lt;0x22990b38&amp;gt; (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)&lt;br /&gt;
"Reference Handler" daemon prio=10 tid=0x02a6d000 nid=0xa44 in Obje... java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on &amp;lt;0x22990a38&amp;gt; (a java.lang.ref.Reference$Lock) at java.lang.Object.wait(Object.java:485) at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116) - locked &amp;lt;0x22990a38&amp;gt; (a java.lang.ref.Reference$Lock)&lt;br /&gt;
"VM Thread" prio=10 tid=0x02a63c00 nid=0xe88 runnable&lt;br /&gt;
"VM Periodic Task Thread" prio=10 tid=0x02a7e000 nid=0xf58 waiting ...&lt;br /&gt;
JNI global references: 571&lt;br /&gt;
Found one Java-level deadlock:============================="Thread-1": waiting to lock monitor 0x02a6ee64 (object 0x229bd238, a java.lang.Object), which is held by "Thread-0""Thread-0": waiting to lock monitor 0x02a6eecc (object 0x229bd240, a java.lang.Object), which is held by "Thread-1"&lt;br /&gt;
Java stack information for the threads listed above:==================================================="Thread-1": at SimpleDeadLock$Thread2.run(SimpleDeadLock.java:37) - waiting to lock &amp;lt;0x229bd238&amp;gt; (a java.lang.Object) - locked &amp;lt;0x229bd240&amp;gt; (a java.lang.Object)"Thread-0": at SimpleDeadLock$Thread1.run(SimpleDeadLock.java:24) - waiting to lock &amp;lt;0x229bd240&amp;gt; (a java.lang.Object) - locked &amp;lt;0x229bd238&amp;gt; (a java.lang.Object)&lt;br /&gt;
Found 1 deadlock. &lt;br /&gt;
The output of "jstack" is very useful for debugging. It tells me:&lt;br /&gt;
How many deadlocks exist in this JVM process. What are the 2 waiting threads for each deadlock. Stack traces of waiting threads with source code line numbers, if source codes were compile with debug options.&lt;br /&gt;
'jmap' - JVM Heap Dump Tool:&lt;br /&gt;
"jmap" - Memory Map: Prints shared object memory maps or heap memory details of a given JVM process or a Java core file on&lt;br /&gt;
the local machine or on a remote machine through a debug server. "jmap" supports several functions with these syntaxes:&lt;br /&gt;
jmap [ option ] pidjmap [ option ] executable corejmap [ option ] [server-id@]remote-hostname-or-IP&lt;br /&gt;
&lt;no&gt;When no option is used jmap prints shared object mappings. For each shared object loaded in the target VM, start address, the size of the mapping, and the full path of the shared object file are printed. This is similar to the Solaris pmap utility.&lt;br /&gt;
-dump:[live,]format=b,file=&lt;filename&gt; Dumps the Java heap in hprof binary format to filename. The live suboption is optional. If specified, only the live objects in the heap are dumped. To browse the heap dump, you can use jhat (Java Heap Analysis Tool) to read the generated file.&lt;br /&gt;
-finalizerinfo Prints information on objects awaiting finalization.&lt;br /&gt;
-heap Prints a heap summary. GC algorithm used, heap configuration and generation wise heap usage are printed.&lt;br /&gt;
-histo[:live] Prints a histogram of the heap. For each Java class, number of objects, memory size in bytes, and fully qualified class names are printed. VM internal class names are printed with '*' prefix. If the live suboption is specified, only live objects are counted.&lt;br /&gt;
-permstat Prints class loader wise statistics of permanent generation of Java heap. For each class loader, its name, liveness, address, parent class loader, and the number and size of classes it has loaded are printed. In addition, the number and size of interned Strings are printed.&lt;br /&gt;
-F Force. Use with jmap -dump or jmap -histo option if the pid does not respond. The live suboption is not supported in this mode.&lt;br /&gt;
But the "jmap" tool included in the Windows version of JDK 1.6 only supports functions to print histogram of Java object heap&lt;br /&gt;
and generate a heap dump of a given JVM process:&lt;br /&gt;
C:\Pani&amp;gt;\Progra~1\java\jdk1.6.0_02\bin\jmap&lt;br /&gt;
Usage: jmap -histo &lt;pid&gt;(to print histogram of java object heap of the JVM process) jmap -dump:&lt;dump-options&gt; &lt;pid&gt;(to dump java heap of the JVM process)&lt;br /&gt;
dump-options: format=b binary default file=&lt;file&gt; dump heap to &lt;file&gt;&lt;br /&gt;
Example: jmap -dump:format=b,file=heap.bin &lt;pid&gt;&lt;br /&gt;
See the next section on how to use "jmap" to print heap histogram and to generate heap dump.&lt;br /&gt;
Printing Histogram of Java Object Heap:&lt;br /&gt;
The first function of the "jmap" tool is to print histogram of object heap of a given JVM process. Now I am going to use a&lt;br /&gt;
sample Java program, GarbageCollection.java, I wrote in another tutorial example in this book.&lt;br /&gt;
The first test is to print the heap histogram of a JVM process that runs GarbageCollection.java with the "jmap -histo pid"&lt;br /&gt;
command:&lt;br /&gt;
C:\Pani&amp;gt;\Progra~1\java\jdk1.6.0_02\bin\javac GarbageCollection.java&lt;br /&gt;
C:\Pani&amp;gt;\Progra~1\java\jdk1.6.0_02\bin\java -Xms24m -Xmx24m GarbageCollection&lt;br /&gt;
Free/total memory:23725256 2503475222710400 2503475221618728 2503475220523584 25034752...&lt;br /&gt;
(Start another command window.)C:\Pani&amp;gt;\Progra~1\java\jdk1.6.0_02\bin\jps -l -m&lt;br /&gt;
492 sun.tools.jps.Jps -l -m428 GarbageCollection&lt;br /&gt;
C:\Pani&amp;gt;\Progra~1\java\jdk1.6.0_02\bin\jmap -histo 428&lt;br /&gt;
num #instances #bytes class name-------------------------------------- 1: 23 4723136 [I 2: 19 4718928 [J 3: 18 4718880 [D 4: 73925 1774200 java.lang.String 5: 208 1226400 [C 6: 28 1205064 [B 7: 18 1179936 [F 8: 68 297040 [Ljava.lang.String; 9: 332 14136 [Ljava.lang.Object; 10: 32 10240 &lt;objarrayklassklass&gt;11: 42 4032 java.lang.Class 12: 58 1392 java.util.Hashtable$Entry 13: 16 1280 [Ljava.util.HashMap$Entry; 14: 27 1000 &lt;symbolklass&gt;15: 6 864 [S 16: 7 680 [Ljava.util.Hashtable$Entry; 17: 11 616 java.net.URL 18: 19 608 java.util.Locale 19: 5 560 java.lang.Thread 20: 14 560 java.util.HashMap...&lt;br /&gt;
The histogram gives a very good summary of heap objects used in my GarbageCollection.java program:&lt;br /&gt;
Most of the objects were String objects. There were 73925 of them. This matches well with what I allocated in the program:&lt;br /&gt;
one array of 64*64 string objects for each 1-MB object. If 16 1-MB objects were allocated, there should be 65536 string&lt;br /&gt;
objects. "[Ljava.lang.String;" is a special class name representing a java.lang.String[] array. "[I" is a special class name representing a int[] array.&lt;br /&gt;
Generating Heap Dump File with 'jmap':&lt;br /&gt;
The second function of the "jmap" tool is to generate a heap dump of a given JVM process with the "jmap -&lt;br /&gt;
dump:file=&lt;filename&gt;" command:&lt;br /&gt;
C:\Pani&amp;gt;\Progra~1\java\jdk1.6.0_02\bin\java -Xms24m -Xmx24m GarbageCollection&lt;br /&gt;
Free/total memory:23725256 2503475222710400 2503475221618728 2503475220523584 25034752...&lt;br /&gt;
(Start another command window.)C:\Pani&amp;gt;\Progra~1\java\jdk1.6.0_02\bin\jps -l -m&lt;br /&gt;
764 GarbageCollection1204 sun.tools.jps.Jps -l -m&lt;br /&gt;
C:\Pani&amp;gt;\Progra~1\java\jdk1.6.0_02\bin\jmap -dump:file=GarbageCollection.map 764&lt;br /&gt;
Dumping heap to C:\Pani\GarbageCollection.map ...Heap dump file created&lt;br /&gt;
C:\Pani&amp;gt;dir *.map&lt;br /&gt;
12:08 19,816,895 GarbageCollection.map&lt;br /&gt;
So the heap dump file, "GarbageCollection.map", is a snapshot of all heap objects used by the running GarbageCollection.java&lt;br /&gt;
process.&lt;br /&gt;
Heap dump files can be browsed by the heap dump browser, "jhat", as described in the next section.&lt;br /&gt;
'jhat' - Java Heap Analysis Tool :&lt;br /&gt;
"jhat" - Java heap analysis tool or heap dump file browser: Parses a Java heap dump file and launches a Web server. "jhat"&lt;br /&gt;
enables you to browse heap dump files using your favorite webbrowser. "jhat" supports pre-designed queries (such as 'show all&lt;br /&gt;
instances of a known class "Foo"') as well as OQL (Object Query Language) - a SQL-like query language to query heap dumps.&lt;br /&gt;
Help on OQL is available from the OQL help page shown by "jhat". With the default port, OQL help is available at&lt;br /&gt;
&lt;a href="http://localhost:7000/oqlhelp/"&gt;http://localhost:7000/oqlhelp/&lt;/a&gt;&lt;br /&gt;
But the "jmap" tool included in the Windows version of JDK 1.6 only supports functions to print histogram of Java object heap&lt;br /&gt;
and generate a heap dump of a given JVM process:&lt;br /&gt;
C:\Pani&amp;gt;\Progra~1\java\jdk1.6.0_02\bin\jhat -help&lt;br /&gt;
Usage: jhat [-stack &lt;bool&gt;] [-refs &lt;bool&gt;] [-port &lt;port&gt;] [-baseline &lt;file&gt;] [-debug &lt;int&gt;] [-version] [-h-help] &lt;file&gt;&lt;br /&gt;
-stack false Turn off tracking object allocation call stack. -refs false Turn off tracking of references to objects -port &lt;port&gt;Set the port for the HTTP server. Default is 7000. -exclude &lt;file&gt;Specify a file that lists data members that should be excluded from the reachableFrom query. -baseline &lt;file&gt;Specify a baseline object dump. Objects in both heap dumps with the same ID and same class will be marked as not being "new". -debug &lt;int&gt;Set debug level. 0: No debug output 1: Debug hprof file parsing 2: Debug hprof file parsing, no server -version Report version number -h-help Print this help and exit &lt;file&gt;The file to read&lt;br /&gt;
For a dump file that contains multiple heap dumps,you may specify which dump in the fileby appending "#&lt;number&gt;" to the file name, i.e. "foo.hprof#3".&lt;br /&gt;
All boolean options default to "true"&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Starting 'jhat' Web Server on a Heap Dump File:&lt;br /&gt;
In an earlier tutorial example, I created a Java heap dump file with the "jmap" tool on my GarbageCollection.java program.&lt;br /&gt;
The heap dump file is named as GarbageCollection.map. Now I want to try to run the "jhat" Web server on this dump file and&lt;br /&gt;
browse the heap dump with a Web browser.&lt;br /&gt;
1. Run the "jhat" command with default options:&lt;br /&gt;
C:\Pani&amp;gt;\Progra~1\java\jdk1.6.0_02\bin\jhat GarbageCollection.map&lt;br /&gt;
Reading from GarbageCollection.map...Dump file created Jan 1 00:08:10 EDT 2008Snapshot read, resolving...Resolving 67324 objects...Chasing references, expect 13 dots.............Eliminating duplicate references.............Snapshot resolved.Started HTTP server on port 7000Server is ready.&lt;br /&gt;
2. Run a Web browser with &lt;a href="http://localhost:7000/"&gt;http://localhost:7000/&lt;/a&gt;. The "jhat" heap dump file server page shows up: &lt;br /&gt;
See next sections on how to use "jhat" Web server to browse heap objects.&lt;br /&gt;
Listing Instance Counts of All Classes :&lt;br /&gt;
Running "jhat" Web server on a heap dump file offers us a very good debugging tool. You can get statistical counts of loaded&lt;br /&gt;
classes and objects. You can review object contents and references. You can also run object queries to search for any&lt;br /&gt;
specific information.&lt;br /&gt;
First, let's see how to get instance counts for all loaded classes.&lt;br /&gt;
1. Run a Web browser with &lt;a href="http://localhost:7000/"&gt;http://localhost:7000/&lt;/a&gt;. The heap dump first page shows up.&lt;br /&gt;
2. Click the link of "Show instance counts for all classes (including platform)". The instance count page shows up:&lt;br /&gt;
65733 instances of class java.lang.String 362 instances of class java.lang.Class 330 instances of class [Ljava.lang.Object; 206 instances of class [C 66 instances of class [Ljava.lang.String; 58 instances of class java.util.Hashtable$Entry 50 instances of class [I 26 instances of class [B 19 instances of class java.util.Locale 19 instances of class java.util.concurrent.ConcurrentHashMap$HashEntry 17 instances of class [J 16 instances of class java.util.HashMap$Entry 16 instances of class java.util.concurrent.ConcurrentHashMap$Segment 16 instances of class java.util.concurrent.locks.ReentrantLock$NonfairSync 16 instances of class [D 16 instances of class [F 16 instances of class [Ljava.util.HashMap$Entry; 16 instances of class [Ljava.util.concurrent.ConcurrentHashMap$HashEntry; 14 instances of class java.lang.Object 14 instances of class java.util.HashMap 14 instances of class java.util.LinkedHashMap$Entry 12 instances of class java.io.ExpiringCache$Entry 11 instances of class java.net.URL 10 instances of class java.io.ObjectStreamField ....&lt;br /&gt;
The output shows that the highest count is the number of java.lang.String instances. This is expected, because I created&lt;br /&gt;
String arrays with 64*64 Strings in each array.&lt;br /&gt;
Browsing Object Instance Values:&lt;br /&gt;
After looking object instance counts, I want to find some object instances created by my program and browse their values. My&lt;br /&gt;
program, GarbageCollection.java, used the following code to create many java.lang.Object[] instances:&lt;br /&gt;
private static Object getOneMega() { Object[] lst = new Object[10]; lst[0] = new long[256*128]; lst[1] = new int[256*256]; lst[2] = new double[256*128]; lst[3] = new float[64*256]; lst[4] = new byte[64*1024]; String[] l = new String[64*64]; for (int i=0; i&amp;lt;64*64; i++) l[i] = new String("12345678"); // 16B lst[5] = l; lst[6] = new char[64*512]; return lst; } I want to find one of these Object[] instances and review its elements. 1. Run a Web browser with &lt;a href="http://localhost:7000/"&gt;http://localhost:7000/&lt;/a&gt;. The heap dump first page shows up.&lt;br /&gt;
2. Click the link of "Show instance counts for all classes (including platform)". The instance count page shows up.&lt;br /&gt;
3. Click the link of "instances" in the line of "330 instances of class [Ljava.lang.Object;". Remember that&lt;br /&gt;
"[Ljava.lang.Object;" is the class name for Object[] arrays. A list of all 330 instances is displayed with their addresses.&lt;br /&gt;
3. Click on the first instance of "[Ljava.lang.Object;@0x25a9e6d0 (48 bytes)". The contents of this instance show up:&lt;br /&gt;
Object at 0x25a9e6d0&lt;br /&gt;
Array of 10 objects&lt;br /&gt;
Class:class [Ljava.lang.Object;&lt;br /&gt;
Values0 : [J@0x25aaea00 (262152 bytes) 1 : [I@0x25aeea10 (262152 bytes) 2 : [D@0x25b2ea20 (262152 bytes) 3 : [F@0x25b6ea30 (65544 bytes) 4 : [B@0x25b7ea40 (65544 bytes) 5 : [Ljava.lang.String;@0x25b8ea50 (16392 bytes) 6 : [C@0x25baa7b0 (65544 bytes) 7 : null8 : null9 : null&lt;br /&gt;
References to this object:[Ljava.lang.Object;@0x2536e920 (72 bytes) : Element 8 of [Ljava.lang.Object;@0x2536e920&lt;br /&gt;
Excellent! I am lucky that the first instance of Object[] is created by my code. "jhat" does a good job showing me everything&lt;br /&gt;
about this instance. I can continue clicking its values or references to get information.&lt;br /&gt;
Conclusion: "jhat" is much easier to use than many Java debugger for browser heap objects.&lt;br /&gt;
Object Query Language (OQL):&lt;br /&gt;
OQL (Object Query Language): A SQL-like query language to query Java heap. OQL allows to filter/select information wanted&lt;br /&gt;
from Java heap. While pre-defined queries such as "show all instances of class X" are already supported by HAT, OQL adds more&lt;br /&gt;
flexibility. OQL is based on JavaScript expression language.&lt;br /&gt;
OQL query is of the form"&lt;br /&gt;
select &lt;javascript&gt;[ from [instanceof] &lt;class&gt;&lt;identifier&gt;[ where &lt;javascript&gt;] ]&lt;br /&gt;
where class name is fully qualified Java class name (example: java.net.URL) or array class name. [C is char array name,&lt;br /&gt;
[Ljava.io.File; is name of java.io.File[] and so on. Note that fully qualified class name does not always uniquely identify a&lt;br /&gt;
Java class at runtime. There may be more than one Java class with the same name but loaded by different loaders. So, class&lt;br /&gt;
name is permitted to be id string of the class object. If instanceof keyword is used, subtype objects are selected. If this&lt;br /&gt;
keyword is not specified, only the instances of exact class specified are selected. Both from and where clauses are optional.&lt;br /&gt;
In select and (optional) where clauses, the expression used in JavaScript expression. Java heap objects are wrapped as&lt;br /&gt;
convenient script objects so that fields may be accessed in natural syntax. For example, Java fields can be accessed with&lt;br /&gt;
obj.field_name syntax and array elements can be accessed with array[index] syntax. Each Java object selected is bound to a&lt;br /&gt;
JavaScript variable of the identifier name specified in from clause.&lt;br /&gt;
OQL Examples:&lt;br /&gt;
select all Strings of length 100 or more: select s from java.lang.String s where s.count &amp;gt;= 100&lt;br /&gt;
select all int arrays of length 256 or more: select a from [I a where a.length &amp;gt;= 256&lt;br /&gt;
show content of Strings that match a regular expression: select s.value.toString() from java.lang.String s where /java/(s.value.toString())&lt;br /&gt;
show path value of all File objects: select file.path.value.toString() from java.io.File file&lt;br /&gt;
show names of all ClassLoader classes: select classof(cl).name from instanceof java.lang.ClassLoader cl&lt;br /&gt;
show instances of the Class identified by given id string: select o from instanceof 0xd404b198 o&lt;br /&gt;
Note that 0xd404b198 is id of a Class (in a session). This is found by looking at the id shown in that class's page.&lt;br /&gt;
See next section on how to run OQL statements on the "jhat" Web server.&lt;br /&gt;
Searching for Instances with OQL Statements:&lt;br /&gt;
To test the power of OQL, I want to find those Object[] instances created by my program, excluding Object[] created by the&lt;br /&gt;
JVM platform.&lt;br /&gt;
1. Run a Web browser with &lt;a href="http://localhost:7000/"&gt;http://localhost:7000/&lt;/a&gt;. The heap dump first page shows up.&lt;br /&gt;
2. Click the link of "Execute Object Query Language (OQL) query". The OQL query page shows up.&lt;br /&gt;
3. Enter the following query and click the Execute button:&lt;br /&gt;
select i from [Ljava.lang.Object; i where i.length == 10&lt;br /&gt;
Cool. "jhat" returns a list of instances that matches my query condition: &lt;br /&gt;
But the previous OQL query is not good enough to return only Object[] instances I wanted. The query below will do a better&lt;br /&gt;
job. Try it.&lt;br /&gt;
select i from [Ljava.lang.Object; i where i.length == 10 &amp;amp;&amp;amp; i[5] != null &amp;amp;&amp;amp; classof(i[5]).name == '[Ljava.lang.String;'&lt;br /&gt;
Watch out the OQL statement syntax. It takes JavaScript expressions only, not SQL expressions.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3408720436525595785-4761406713505488543?l=wlabypani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/kfpMQ5yZ_TXQ_X4UvaweDGrnXEw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/kfpMQ5yZ_TXQ_X4UvaweDGrnXEw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/kfpMQ5yZ_TXQ_X4UvaweDGrnXEw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/kfpMQ5yZ_TXQ_X4UvaweDGrnXEw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/WeblogicSystemAdminstration/~4/GpZxjkCKgxg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://wlabypani.blogspot.com/feeds/4761406713505488543/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://wlabypani.blogspot.com/2010/01/jvm-troubleshooting-tools.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3408720436525595785/posts/default/4761406713505488543?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3408720436525595785/posts/default/4761406713505488543?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WeblogicSystemAdminstration/~3/GpZxjkCKgxg/jvm-troubleshooting-tools.html" title="JVM Troubleshooting Tools" /><author><name>Pani</name><uri>http://www.blogger.com/profile/08954955997652365752</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://3.bp.blogspot.com/_g6eQKpF5azY/SxF5x-Y4LDI/AAAAAAAAADM/aUOQSHsOjx8/S220/DSC02027.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://wlabypani.blogspot.com/2010/01/jvm-troubleshooting-tools.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEYDQHs5cCp7ImA9Wx5VE0Q.&quot;"><id>tag:blogger.com,1999:blog-3408720436525595785.post-496960256951304667</id><published>2010-01-09T10:16:00.000-08:00</published><updated>2010-10-06T13:16:11.528-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-06T13:16:11.528-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="WebLogic Cluster" /><category scheme="http://www.blogger.com/atom/ns#" term="WebLogic 9.2 MP3" /><category scheme="http://www.blogger.com/atom/ns#" term="HA" /><category scheme="http://www.blogger.com/atom/ns#" term="Failover" /><title>Types of Clustering and WebLogic</title><content type="html">&lt;span style="font-size: large;"&gt;&lt;strong&gt;Introduction to Clustering&lt;/strong&gt;&lt;/span&gt; &lt;br /&gt;
&lt;div&gt;&lt;/div&gt;The WebLogic Clusters offer a cost-effective, high-performance, and highly available architecture for the cluster-aware applications. There are many types of clusters in various environments, and capacity plannings. Generally, clusters are classified based on their functionality. Here I am breifly discussing about the types of clusters they are:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Failover Clusters&lt;/li&gt;
&lt;li&gt;Scalable High Performance Clusters&lt;/li&gt;
&lt;li&gt;Application Clusters&lt;/li&gt;
&lt;li&gt;Network Load balancing clusters&lt;/li&gt;
&lt;li&gt;Other types of clusters&lt;/li&gt;
&lt;/ol&gt;Let us examine the similarities and differences of each class of clusters.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style="font-size: large;"&gt;Failover Clusters&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
This class of cluster is the most widely used in today’s e-commerce environment. Sometimes they are also called HA clusters or segregated clusters. With this type, the emphasis is on complete avoidance of unplanned downtime and also on achieving high availability.&lt;br /&gt;
&lt;br /&gt;
If one of the nodes in a cluster becomes unavailable, due to either planned downtime for maintenance or unplanned downtime due to failure, another node takes over to provide the service to the end-user—a process known as failover. When failover occurs, users who are accessing the cluster service continue to access the service, and are unaware that it is being provided from a different server (node). This architecture emphasizes the availability of the database or application service, rather than performance or load balancing.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style="font-size: large;"&gt;High availability clusters&lt;/span&gt; &lt;/strong&gt;&lt;br /&gt;
allow multiple servers, in conjunction with shared disk storage units, to quickly recover from failures. Hardware or software failures, affecting either a critical component or an entire system, trigger a failover from one system in the cluster to another. Application processing and access to disk-based data is typically restored within minutes, although recovery times vary depending upon the specific characteristics of the application and the system configuration.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style="font-size: large;"&gt;Scalable High Performance Clusters&lt;/span&gt; &lt;/strong&gt;&lt;br /&gt;
This class of cluster provides scalability, high-performance, load balancing, and high availability through the use of parallel middleware. These are also sometimes called parallel clusters or high performance computing clusters (HPCC). They provide a single system image, or in other words, the application can be executed on any of the servers within the cluster. They are used to execute compute-intensive and data-intensive problems by running the job on multiple nodes at the same time.&lt;br /&gt;
&lt;br /&gt;
These clusters utilize parallel-aware software that breaks the task down into smaller chunks, which are dispatched across a network of interconnected systems. The network processes the chunks concurrently and communicates with the nodes using message-passing libraries to coordinate and synchronize the results. Cluster-aware applications take advantage of the network architecture in three ways:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Parallel Computing, Multi-Threading, and Modularization&lt;/li&gt;
&lt;li&gt;Load Balancing&lt;/li&gt;
&lt;li&gt;Automatic Failure&lt;/li&gt;
&lt;/ul&gt;Parallel database clusters like Oracle Real Application Clusters, IBM Sysplex Database Cluster, and Beowulf Computers fit into this group of clusters. Beowulf clusters are of particular interest to the scientific and educational communities. Beowulf clusters are built by using commodity systems – PCs, workstations, or servers running software such as Linux. They feature a parallel computing system consisting of multiple interconnected nodes and are able to execute parallel jobs.&lt;br /&gt;
Through message passing, nodes synchronize data and share results. Oracle RAC uses message passing to process requests and update data on each node, resulting in fast data access and a consistent database.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Application Server Clusters &lt;/strong&gt;&lt;br /&gt;
Nodes running application server clusters are connected to provide availability and scalability. In this type of cluster, each node runs an instance of the application server. They run the application server independently from each other’s instance. There is no concept of failover. When clustered in this way, the state of certain objects is maintained synchronously. Web server clients can connect to either of the application server instances. Application servers such as WebLogic Server, Websphere, and Oracle Application server are examples of this category of clusters.&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_OP6lRcE1-Ag/TKzY8V-kSTI/AAAAAAAADeI/li8g4V8w0M4/s1600/multi-cluster.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" ex="true" height="394" src="http://1.bp.blogspot.com/_OP6lRcE1-Ag/TKzY8V-kSTI/AAAAAAAADeI/li8g4V8w0M4/s640/multi-cluster.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
As an example, the WebLogic Server cluster consists of multiple copies of the WebLogic program running simultaneously and working together to provide increased scalability and reliability. The cluster appears to the web server clients as a single WebLogic Server instance. In WebLogic deployment, Servlets, JSPs, EJB, Remote Method Invocation (RMI) objects, Java Messaging Service (JMS) destinations, and Java Database Connectivity (JDBC) connections are usually clustered.&lt;br /&gt;
&lt;br /&gt;
Clustering in J2EE, as in the Oracle Applications server, is implemented across a number of tiers, namely the client tier, Web tier, EJB tier, and EIS tier. Every tier has load balancing and failover.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Other Types of Clusters &lt;/strong&gt;&lt;br /&gt;
The term cluster is loosely used to specify a condition when two networking components or two storage units are joined to provide backup and failover facility. Two or more clusters can also be located at remote locations and be linked to form a global cluster. Some of the other widely known clusters include:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;NetApp Filer Clusters&lt;/li&gt;
&lt;li&gt;Network Load Balancing Clusters&lt;/li&gt;
&lt;li&gt;Global Clusters&lt;/li&gt;
&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3408720436525595785-496960256951304667?l=wlabypani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/pGnoqvbf8JFR10dHYDXS687mcRc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/pGnoqvbf8JFR10dHYDXS687mcRc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/pGnoqvbf8JFR10dHYDXS687mcRc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/pGnoqvbf8JFR10dHYDXS687mcRc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/WeblogicSystemAdminstration/~4/2c4B0KLJJ5U" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://wlabypani.blogspot.com/feeds/496960256951304667/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://wlabypani.blogspot.com/2010/01/types-of-clusters.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3408720436525595785/posts/default/496960256951304667?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3408720436525595785/posts/default/496960256951304667?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WeblogicSystemAdminstration/~3/2c4B0KLJJ5U/types-of-clusters.html" title="Types of Clustering and WebLogic" /><author><name>Pani</name><uri>http://www.blogger.com/profile/08954955997652365752</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://3.bp.blogspot.com/_g6eQKpF5azY/SxF5x-Y4LDI/AAAAAAAAADM/aUOQSHsOjx8/S220/DSC02027.JPG" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_OP6lRcE1-Ag/TKzY8V-kSTI/AAAAAAAADeI/li8g4V8w0M4/s72-c/multi-cluster.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://wlabypani.blogspot.com/2010/01/types-of-clusters.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A08EQng-fSp7ImA9Wx5QEko.&quot;"><id>tag:blogger.com,1999:blog-3408720436525595785.post-4938425570959746728</id><published>2009-11-27T22:36:00.000-08:00</published><updated>2010-08-31T11:36:43.655-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-08-31T11:36:43.655-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="SSL" /><category scheme="http://www.blogger.com/atom/ns#" term="WLA" /><category scheme="http://www.blogger.com/atom/ns#" term="private key" /><category scheme="http://www.blogger.com/atom/ns#" term="Oracle Weblogic" /><category scheme="http://www.blogger.com/atom/ns#" term="WLS" /><category scheme="http://www.blogger.com/atom/ns#" term="public key" /><category scheme="http://www.blogger.com/atom/ns#" term="weblogic 11g" /><category scheme="http://www.blogger.com/atom/ns#" term="jks" /><category scheme="http://www.blogger.com/atom/ns#" term="keystore" /><title>SSL Configuaraion with Oracle Weblogic Server 11g</title><content type="html">&lt;/span&gt;Hey Smart WLA!!&amp;nbsp;here I am again for sharing my neew experiment on SSL Configuration on Oracle WebLogic 11g. Initially I thought of sharing in step-by-step sequance for the experiment.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
***********************************************************************************&lt;br /&gt;
Step1: Create a new WLS domain ***********************************************************************************&lt;br /&gt;
(If you already have a domain , Not required to create it ...Just enable the SSL port in WebLogic Admin console)&lt;br /&gt;
run config.cmd script&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: x-small;"&gt;MW_HOME=\Oracle\MiddlewareMW_HOME\wlserver_10.3\common\bin\config.cmd&lt;/span&gt;&lt;br /&gt;
or&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: x-small;"&gt; config.sh&lt;/span&gt; in Solaris box&lt;br /&gt;
create a new weblogic configuration&lt;br /&gt;
select &lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;next...&lt;/span&gt;&lt;br /&gt;
select OracleWebLogic Server Domain&lt;br /&gt;
select &lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;next...&lt;/span&gt;&lt;br /&gt;
Select Express Installation&lt;br /&gt;
select &lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;next...&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;username/password = weblogic/weblogic10&lt;/span&gt;&lt;br /&gt;
select &lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;next...&lt;/span&gt;&lt;br /&gt;
select default development mode/Sun SDK 160_11&lt;br /&gt;
select &lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;next...&lt;/span&gt;&lt;br /&gt;
select the configuration name=domain name = &lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: x-small;"&gt;ssldomain&lt;/span&gt;&lt;br /&gt;
click &lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;create&lt;/span&gt;&lt;br /&gt;
in my case - my &lt;a href="http://wlstbyexamples.blogspot.com/2009/10/dynamic-domain-creation-with-wlst.html"&gt;domain is created&lt;/a&gt; under : \Oracle\Middleware\user_projects\domains\ssldomain&lt;br /&gt;
This domain is created with only http listen port(7001) enabled. .Now, enable the SSL listen port as below:&lt;br /&gt;
go to Servers --&amp;gt; myserver --&amp;gt; general tabselect the "SSL Listen Port Enabled"&lt;br /&gt;
By default this will listen on port 7002 using default weblogic demo certificates.&lt;br /&gt;
click on apply. At this point - WLS is configured for one way SSL using default demo certificates.&lt;br /&gt;
Restart the server.&lt;br /&gt;
&lt;br /&gt;
***********************************************************************************&lt;br /&gt;
Step 2: Getting our own Certificate and setup SSL on Weblogic&lt;br /&gt;
***********************************************************************************&lt;br /&gt;
As of now, Our server is using default private key/default public key(certificate) and default trust.&lt;br /&gt;
Now, steps to use your own certificate and setup SSL on Weblogic is as follows:&lt;br /&gt;
1. get your own private key/certificate/trust for your certificate&lt;br /&gt;
2. create identity keystore (which will have your private key + certificate)&lt;br /&gt;
and create trust keystore (which will have trust cert for your own digital cert)&lt;br /&gt;
3. Use the identity and trust keystore created in step 2&lt;br /&gt;
and configure WebLogic to replace demo keystores with your own keystores.&lt;br /&gt;
Now, details for step 1:&lt;br /&gt;
create private key using keytool command&lt;br /&gt;
- --go to your domain dir and run setENV.cmd or setEnv.sh script&lt;br /&gt;
---now run the following keytool command to create private key&lt;br /&gt;
(use your own name and rest you can keep the same)&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;C:\Oracle\Middleware\user_projects\domains\ssldomain&amp;gt; keytool -genkey -keyalg RSA -alias mykey -keystore panikeystore.jks&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;Enter keystore password: weblogic10&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;Re-enter new password: weblogic10&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;What is your first and last name? [Unknown]: Sarangapani&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;What is the name of your organizational unit? [Unknown]: support&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;What is the name of your organization? [Unknown]: MyCompany&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;What is the name of your City or Locality? [Unknown]: Hyderabad&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;What is the name of your State or Province? [Unknown]: AP&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;What is the two-letter country code for this unit? [Unknown]: IN&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;Is CN=Sarangapani, OU=support, O=MyCompany, L=Hyderabad, ST=AP, C=IN correct? [no]: yes&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;Enter key password for &lt;mykey&gt;(RETURN if same as keystore password): weblogic10&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;Re-enter new password: weblogic10&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;As a result you obtain a file: panikeystore.jks (in the same dir),&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;containing a private key, and a self-signed public key&lt;/span&gt;&lt;br /&gt;
-------------------------------------------------------------&lt;br /&gt;
Now, its time to send your public key for getting it signed by trusted authority (we will send it to verisign)&lt;br /&gt;
This is done by retrieving the CSR (Cert Signature Request) from panikeystore.jks and sending it to one of the Certificate Authorities like VeriSign.&lt;br /&gt;
&lt;br /&gt;
Run the following command to get CSR:&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: x-small;"&gt;C:\Oracle\Middleware\user_projects\domains\ssldomain&amp;gt;keytool -certreq -keystore panikeystore.jksEnter keystore password: weblogic10&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: x-small;"&gt;-----BEGIN NEW CERTIFICATE REQUEST-----&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: x-small;"&gt;MIIBqzCCARQCAQAwazELMAkGA1UEBhMCSU4xEjAQBgNVBAgTCUthcm5hdGFrYTESMBAGA1UEBxMJ&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: x-small;"&gt;QmFuZ2Fsb3JlMQwwCgYDVQQKEwNCRUExEDAOBgNVBAsTB1N1cHBvcnQxFDASBgNVBAMTC1JhbWFr&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: x-small;"&gt;cmlzaG5hMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCxB2BdG1iBsIJvK3x2lcnn7GclEShT&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: x-small;"&gt;ib5sbiHa7h1DBqMZZc1lezGI55Nz1YSUZukgj7aZj9N4K7haV93LoD4pNREpLcp7DGxNODNclp5F&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: x-small;"&gt;DHTevqWx0rXqjwei5Euh2f5ACSFo3tL5o5QXkS3o4TeZ2QSypAyeu/+qtnk7Od/xGQIDAQABoAAw&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: x-small;"&gt;DQYJKoZIhvcNAQEEBQADgYEAXOYBI9LJPBVA+OyK/4od6ORkJnew/K7WWMjeLwZjwKI7INCHw4VG&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: x-small;"&gt;dG0v7z2JnSpgi43fipWyywt5fmXZqfKNtki5SNxV3kLHAWxardgZbZ8H/kO95CtbOcFtagPLH8pi&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: x-small;"&gt;+rp2iGFSlH6+UYtW1qXL3FM0srIxam6RgYqCixf5gGQ=&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: x-small;"&gt;-----END NEW CERTIFICATE REQUEST-----&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: x-small;"&gt;C:\Oracle\Middleware\user_projects\domains\ssldomain&amp;gt;&lt;/span&gt;&lt;br /&gt;
===============================================================&lt;br /&gt;
We need to copy and paste all this (including -----BEGIN NEW CERTIFICATE REQUEST----- and -----END NEW CERTIFICATE REQUEST-----) to the Certification Authority.&lt;br /&gt;
open a notepad and copy it there.&lt;br /&gt;
&lt;br /&gt;
Now we will go to verisign site to get this signed.&lt;br /&gt;
&lt;br /&gt;
Go to&lt;br /&gt;
&lt;a href="https://www.verisign.com/cgi-bin/clearsales_cgi/leadgen.htm?form_id=0110&amp;amp;toc=w63780188130110000&amp;amp;ra=65.205.251.51&amp;amp;email"&gt;https://www.verisign.com/cgi-bin/clearsales_cgi/leadgen.htm?form_id=0110&amp;amp;toc=w63780188130110000&amp;amp;ra=65.205.251.51&amp;amp;email&lt;/a&gt;=&lt;br /&gt;
&lt;br /&gt;
Enter your information and follow the instructions to submit the CSR&lt;br /&gt;
&lt;br /&gt;
First Name: Sarangapani&lt;br /&gt;
Last Name: M&lt;br /&gt;
e-mail: your &lt;a href="mailto:email@MyCompany.com"&gt;email@MyCompany.com&lt;/a&gt;&lt;br /&gt;
ompany: MyCompany&lt;br /&gt;
phone: 1234567890&lt;br /&gt;
state: Outside the US or Canada&lt;br /&gt;
Zip: 500081&lt;br /&gt;
Country: India&lt;br /&gt;
select "research only"&lt;br /&gt;
select "no budget"&lt;br /&gt;
select "research only"&lt;br /&gt;
click "Submit" button.&lt;br /&gt;
click the "Continue" button&lt;br /&gt;
again, click the "Continue" button&lt;br /&gt;
====================================&lt;br /&gt;
Technical details:&lt;br /&gt;
enter you details.................................&lt;br /&gt;
E-mail - your email. specify&amp;nbsp;company email id. (eg. your &lt;a href="mailto:email@MyCompany.com"&gt;email@MyCompany.com&lt;/a&gt;)====================================&lt;br /&gt;
select server platform = "all others" and paste your CSR&lt;br /&gt;
if it ask for password/chalenge phrase = weblogic10&lt;br /&gt;
====================================&lt;br /&gt;
once done, verisign will send you your digital cert in an email.&lt;br /&gt;
when you receive your email goto step3.&lt;br /&gt;
************************************************************************************&lt;br /&gt;
Step 3: Creating RootCA certification files(testrootca.cer) and PEM content of public key file(mycert.pem)&lt;br /&gt;
************************************************************************************&lt;br /&gt;
Verisign will then send you an email with the PEM content of the public key.&lt;br /&gt;
&lt;br /&gt;
Scroll at the end of the email and Save it under a file name &lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&lt;strong&gt;mycert.pem&lt;/strong&gt;&lt;/span&gt;.&lt;br /&gt;
&lt;br /&gt;
It also contains a link to get a root CA cert for your certificate i.e. a link to download&lt;br /&gt;
the Test CA Root.&lt;br /&gt;
follow the link to download Test CA Root - getcacert.cer.&lt;br /&gt;
save it under your domain dir.&lt;br /&gt;
&lt;br /&gt;
This file is in binary format.&lt;br /&gt;
Lets convert this in txt format.&lt;br /&gt;
double click on this file.&lt;br /&gt;
&lt;br /&gt;
click on details tab page --&amp;gt; copy to file (at the bottom) --&amp;gt; base 64 encoded x.509 format --&amp;gt; save as testrootca.cer under your domain dir.&lt;br /&gt;
&lt;br /&gt;
now you have&lt;br /&gt;
your cert - mycert.pem&lt;br /&gt;
test ca cert - testrootca.cer&lt;br /&gt;
&lt;br /&gt;
now open a textpad editor and merge testrootca.cer in your mycert.pem&lt;br /&gt;
&lt;br /&gt;
so at the end -you will have&lt;br /&gt;
your cert - mycert.pem (which will have a chain i.e. your cert + test ca root)&lt;br /&gt;
test ca cert - testrootca.cer&lt;br /&gt;
&lt;br /&gt;
**********************************************************************************&lt;br /&gt;
Step 4: Creating Identity key Store and Trust Key Store&lt;br /&gt;
**********************************************************************************&lt;br /&gt;
Import the public key into your identity keystore. It will go on the same alias as the private key:&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: x-small;"&gt;C:\Oracle\Middleware\user_projects\domains\ssldomain&amp;gt;keytool -import -alias mykey -file mycert.pem -keystore panikeystore.jks&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: x-small;"&gt;Enter keystore password: weblogic10&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: x-small;"&gt;Top-level certificate in reply:&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: x-small;"&gt;Owner: OU=For VeriSign authorized testing only. No assurances (C)VS1997, OU=www.verisign.com/repository/TestCPS Incorp. By Ref. Liab. LTD., O="VeriSign, Inc"Issuer: OU=For VeriSign authorized testing only. No assurances (C)VS1997, OU=www.verisign.com/repository/TestCPS Incorp. By Ref. Liab. LTD., O="VeriSign, Inc"Serial number: 52a9f424da674c9daf4f537852abef6eValid from: Sun Jun 07 05:30:00 IST 1998 until: Wed Jun 07 05:29:59 IST 2006Certificate fingerprints: MD5: 40:06:53:11:FD:B3:3E:88:0A:6F:7D:D1:4E:22:91:87 SHA1: 93:71:C9:EE:57:09:92:5D:0A:8E:FA:02:0B:E2:F5:E6:98:6C:60:DE&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: x-small;"&gt;... is not trusted. Install reply anyway? [no]: yes&lt;/span&gt;&lt;br /&gt;
Certificate reply was installed in keystore&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: x-small;"&gt;C:\Oracle\Middleware\user_projects\domains\ssldomain&amp;gt;&lt;/span&gt;&lt;br /&gt;
===========================================================&lt;br /&gt;
Lets create the trust keystore:&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: x-small;"&gt;C:\Oracle\Middleware\user_projects\domains\ssldomain&amp;gt;keytool -alias mytkey -trustcacerts -import -file getcacert.cer -keystore panitruststore.jks -storepass weblogic10&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: x-small;"&gt;Owner: OU=For VeriSign authorized testing only. No assurances (C)VS1997, OU=www.verisign.com/repository/TestCPS Incorp. By Ref. Liab. LTD., O="VeriSign, Inc"Issuer: OU=For VeriSign authorized testing only. No assurances (C)VS1997, OU=www.verisign.com/repository/TestCPS Incorp. By Ref. Liab. LTD., O="VeriSign, Inc"Serial number: 52a9f424da674c9daf4f537852abef6eValid from: Sun Jun 07 05:30:00 IST 1998 until: Wed Jun 07 05:29:59 IST 2006Certificate fingerprints: MD5: 40:06:53:11:FD:B3:3E:88:0A:6F:7D:D1:4E:22:91:87 SHA1: 93:71:C9:EE:57:09:92:5D:0A:8E:FA:02:0B:E2:F5:E6:98:6C:60:DE&lt;/span&gt;&lt;br /&gt;
Trust this certificate? [no]: yes&lt;br /&gt;
Certificate was added to keystore&lt;br /&gt;
&lt;br /&gt;
C:\Oracle\Middleware\user_projects\domains\ssldomain&amp;gt;&lt;br /&gt;
===========================================================&lt;br /&gt;
the above command will create panitruststore.jks i.e., our trust keystore.&lt;br /&gt;
&lt;br /&gt;
so at this time - we have&lt;br /&gt;
1. identity keystore = panikeystore.jks&lt;br /&gt;
2. trust keystore = panitruststore.jks&lt;br /&gt;
cheers.. you are almost done.&lt;br /&gt;
now just need to configure wls to use the above keystores instead of default demoidentity&lt;br /&gt;
and default demo trust keystore.&lt;br /&gt;
&lt;br /&gt;
**********************************************************************************************Step5: Step 5: Configuring Keystores and SSL in Weblogic11g console&lt;br /&gt;
**********************************************************************************************so Finally, we all done in creating our own custom Identity keystore which contains our private key + our certificate signed by VeriSign.&lt;br /&gt;
and Our own custom trust keystore which contains test root CA.&lt;br /&gt;
&lt;br /&gt;
now lets setup SSL on your server using your custom keystores.&lt;br /&gt;
&lt;br /&gt;
Our server is currently using default demo cert.&lt;br /&gt;
&lt;br /&gt;
Setup SSL in the admin server console under "Keystores &amp;amp; SSL" Tab Page.&lt;br /&gt;
Click on "change" and then select "Custom Identity and Custom Trust" from the drop down menu. click continue.&lt;br /&gt;
Then specify the full path for Identity(panikeystore.jks) and Trust Keystore(panitruststore.jks). Specify the passwords for both the stores. click continue.&lt;br /&gt;
Now specify the password and alias for private key. apply the changes&lt;br /&gt;
and you will need to restart the server.&lt;br /&gt;
&lt;br /&gt;
The above steps will configure SSL. WLS will use the private/public key (certificate) from our Identity keystore and the trust certificate from the trust keystore.&lt;br /&gt;
&lt;br /&gt;
Restart the server and test it.&lt;br /&gt;
go to &lt;a href="https://localhost:7002/console"&gt;https://localhost:7002/console&lt;/a&gt;&lt;br /&gt;
it will warn you as this is a test cert.&lt;br /&gt;
you are done setting up one way SSL with your own custom keystores.&lt;br /&gt;
&lt;br /&gt;
Cheers,&lt;br /&gt;
Your Pani the WLA&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3408720436525595785-4938425570959746728?l=wlabypani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/1m3ggDjh4tufZsyd8mTbOrUmvaU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/1m3ggDjh4tufZsyd8mTbOrUmvaU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/1m3ggDjh4tufZsyd8mTbOrUmvaU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/1m3ggDjh4tufZsyd8mTbOrUmvaU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/WeblogicSystemAdminstration/~4/VSIm2mg1esA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://wlabypani.blogspot.com/feeds/4938425570959746728/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://wlabypani.blogspot.com/2009/11/ssl-configuaraion-with-oracle-weblogic.html#comment-form" title="4 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3408720436525595785/posts/default/4938425570959746728?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3408720436525595785/posts/default/4938425570959746728?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WeblogicSystemAdminstration/~3/VSIm2mg1esA/ssl-configuaraion-with-oracle-weblogic.html" title="SSL Configuaraion with Oracle Weblogic Server 11g" /><author><name>Pani</name><uri>http://www.blogger.com/profile/08954955997652365752</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://3.bp.blogspot.com/_g6eQKpF5azY/SxF5x-Y4LDI/AAAAAAAAADM/aUOQSHsOjx8/S220/DSC02027.JPG" /></author><thr:total>4</thr:total><feedburner:origLink>http://wlabypani.blogspot.com/2009/11/ssl-configuaraion-with-oracle-weblogic.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CU8GSHk7fCp7ImA9Wx5QFUg.&quot;"><id>tag:blogger.com,1999:blog-3408720436525595785.post-9223061100181329961</id><published>2009-11-18T08:21:00.000-08:00</published><updated>2010-09-03T15:43:49.704-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-09-03T15:43:49.704-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="WebLogic 11g Proxy plugin" /><category scheme="http://www.blogger.com/atom/ns#" term="Sun One WebServer7" /><category scheme="http://www.blogger.com/atom/ns#" term="SunOne" /><category scheme="http://www.blogger.com/atom/ns#" term="Plugin" /><category scheme="http://www.blogger.com/atom/ns#" term="installation" /><category scheme="http://www.blogger.com/atom/ns#" term="tutorial" /><category scheme="http://www.blogger.com/atom/ns#" term="Solaris" /><title>Sun One WebServer7 Proxy for Weblogic 11g</title><content type="html">&lt;strong&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: 25px;"&gt;Installation Steps&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
I am going to install sun webserver on Solaris operating environment. Every operating environment will have different supporting installation bundles will be available for download. Download the sjsws-7_0-solaris-sparc[1].tar from sun and Extract it into one folder (Ex: sun)&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Step2:&lt;/strong&gt; Go to sun folder and execute the following command&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;$HOME/sun$ ./setup --console&lt;br /&gt;
You are running the installation program for Sun Java System Web Server 7.0.You will be asked to specify preferences that determine how Sun Java System WebServer 7.0 is installed and configured. &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;&lt;press&gt;&lt;br /&gt;
Are you sure? [yes]&lt;br /&gt;
To accept the default, press Enter.&lt;br /&gt;
To provide a different answer, type the information at the command prompt and &lt;/press&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;then press Enter. &lt;press&gt;&lt;br /&gt;
Welcome to the Sun Java System Web Server 7.0 Installation Program &lt;/press&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;&lt;press&gt;&lt;br /&gt;
&lt;press&gt;Sun Microsystems, Inc. ("Sun") SOFTWARE LICENSE AGREEMENT ("SLA") andENTITLEMENT for SOFTWARE&lt;br /&gt;
&amp;lt;--[28%]--[ENTER To Continue]--[n To Finish]--&amp;gt;&lt;br /&gt;
&amp;lt;--[57%]--[ENTER To Continue]--[n To Finish]--&amp;gt;&lt;br /&gt;
&amp;lt;--[86%]--[ENTER To Continue]--[n To Finish]--&amp;gt; &lt;/press&gt;&lt;/press&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;Have you read the Software License Agreement and do you accept all terms [no] {"&amp;lt;" goes back, "!" exits}? Yes &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;Sun Java System Web Server 7.0 Installation Directory [/sun/webserver7] {"&amp;lt;" goes back, "!" exits}: $HOME/sun/webserver7/ &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;Specified directory $HOME/sun/webserver7 &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;does not exist Create Directory? [Yes/No] [yes] {"&amp;lt;" goes back, "!" exits} Yes &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;Select the Type of Installation &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;1. Express&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;2. Custom&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;3. Exit &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;What would you like to do [1] {"&amp;lt;" goes back, "!" exits}? 2 &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;Component Selection &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;1. Server Core&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;2. Server Core 64-bit Binaries&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;3. Administration Command Line Interface&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;4. Sample Application&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;5. Language Pack &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;Enter the comma-separated list [1,2,3,4,5] {"&amp;lt;" goes back, "!" exits}: 1,3 &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;Based on component dependencies for your selection... &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;The following components will be installed:&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;Server Core&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;Administration Command Line Interface &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;Java Configuration&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;Sun Java System Web Server 7.0 requires Java Standard Edition. Provide the path to a Java Standard Edition 1.5.0_09 or greater.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;1. Install Java Standard Edition 1.5.0_09&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;2. Reuse existing Java SE 1.5.0_09 or greater&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;3. Exit &lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;What would you like to do [1] {"&amp;lt;" goes back, "!" exits}? 2&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;Enter the path to an existing, compatible Java Standard Edition installation. [] {"&amp;lt;" goes back, "!" exits} $HOME/Oracle/Middleware/jdk160_11 &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;Administration Options &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;1. Create an Administration Server and a Web Server Instance&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;2. Create an Administration Node &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;Enter your option [1] {"&amp;lt;" goes back, "!" exits} 1 &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;This panel collects some required information for creating an administrationserver. Host Name [$HostName] {"&amp;lt;" goes back, "!" exits} $HostName &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;SSL Port [8989] {"&amp;lt;" goes back, "!" exits} &amp;lt; &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;Administration Options &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;1. Create an Administration Server and a Web Server Instance&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;2. Create an Administration Node &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;Enter your option [1] {"&amp;lt;" goes back, "!" exits} 1 &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;This panel collects some required information for creating an administrationserver. Host Name [$HostName] {"&amp;lt;" goes back, "!" exits} $HostName &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;SSL Port [8989] {"&amp;lt;" goes back, "!" exits} 9898 &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;Create a non-SSL Port [yes/no] [no] {"&amp;lt;" goes back, "!" exits}: &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;Administrator User Name [admin] {"&amp;lt;" goes back, "!" exits} &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;Administrator Password: Retype Password: &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;A web server instance is created as part of the installation. This panel letsyou customize some of the server settings. &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;Server Name [$HostName] {"&amp;lt;" goes back, "!" exits} sunonepani &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;HTTP Port [8080] {"&amp;lt;" goes back, "!" exits} 8686 &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;Document Root Directory [$HOME/sun/webserver7/https-sunonepani/docs] {"&amp;lt;" goes back, "!" exits} &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;Product : Sun Java System Web Server&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;Location : $HOME/sun/webserver7&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;Disk Space : 115.43 MB------------------------------------------------------ Server CoreAdministration Command Line Interface Ready to Install &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;1. Install Now&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;2. Start Over&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;3. Exit &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;Installation What would you like to do [1] {"&amp;lt;" goes back, "!" exits}? 1 Installing Sun Java System Web Server-1%--------------25%-----------------50%-----------------75%--------------100%Installation Successful. &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;Next Steps:&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;1. Start the Administration Server by executing: $HOME/sun/webserver7/admin-server/bin/startserv &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;2. You can access the Web Admin Server by accessing the following &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;URL:&lt;/span&gt;&lt;a href="https://%24hostname:9898/"&gt;&lt;span style="font-family: 'courier new';"&gt;https://$hostname:9898/&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;3. Refer to the installation log file at$HOME/sun/webserver7/setup/Sun_Java_System_Web_Server_install.logfor more details.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: 130%;"&gt;WebServer Proxy Configuration&lt;/span&gt;&lt;br /&gt;
&lt;strong&gt;Step 3:&lt;/strong&gt; Copy the proxy plugin (ex:libproxy_61.so)&lt;br /&gt;
from&lt;span style="font-family: 'courier new';"&gt; $MW_HOME/weblogic10_3/server/plugins/solaris/sparc/&lt;/span&gt; to &lt;span style="font-family: 'courier new';"&gt;sun/webserver7/http-instancename/config/&lt;/span&gt;&lt;br /&gt;
&lt;strong&gt;Step 4:&lt;/strong&gt; Add the following lines in obj.conf file&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;$HOME/sun/webserver7/https-sunonepani/config]$ vi obj.conf&lt;/span&gt;&lt;br /&gt;
Open a Object tag and keep it as below under &amp;lt;&amp;gt;&lt;br /&gt;
name="weblogic" ppath="*/weblogic/*"&lt;br /&gt;
Under Object tag body means before closing the object tag , we need to keep as below ...&lt;br /&gt;
Service fn=wl_proxy WebLogicHost=Myhostserver WebLogicPort=8992 PathTrim="/weblogic"&lt;br /&gt;
then Close the Object tag&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Step 5:&amp;nbsp;&lt;/strong&gt;Add the following lines in magnus.conf file&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;$HOME/sun/webserver7/https-sunonepani/config]$ vi magnus.conf &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;Init fn="load-modules"funcs="wl_proxy,wl_init"shlib="libproxy_61.so"&lt;/span&gt; &lt;span style="font-family: 'courier new';"&gt;Init fn="wl_init"&lt;/span&gt;&lt;br /&gt;
&lt;strong&gt;&lt;br /&gt;
&lt;/strong&gt;&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;&lt;/span&gt;&lt;strong&gt;Step 6&lt;/strong&gt;: start the weblogic instance which is under wl_domain&lt;br /&gt;
&lt;span style="font-size: 85%;"&gt;&lt;span style="font-family: 'courier new'; font-size: 100%;"&gt;$HOME/$WL_DOMAIN/bin]$ startWebLogic.sh&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;strong&gt;&lt;br /&gt;
&lt;/strong&gt;&lt;br /&gt;
&lt;span style="font-size: 85%;"&gt;&lt;span style="font-family: 'courier new'; font-size: 100%;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;strong&gt;Step 7:&lt;/strong&gt; start the sun one admin server instance&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;$HOME/sun/webserver7/admin-server/bin]$ startserv&lt;/span&gt;&lt;br /&gt;
&lt;strong&gt;&lt;br /&gt;
&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;Step 8:&amp;nbsp;&lt;/strong&gt;start the sun one webserver instance&lt;br /&gt;
&lt;span style="font-family: 'courier new';"&gt;$HOME/sun/webserver7/https-sunonepani/bin]$ startserv&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'Courier New';"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Good References for WL domain creation&lt;br /&gt;
&lt;a href="http://wlstbyexamples.blogspot.com/2009/10/dynamic-domain-creation-with-wlst.html"&gt;Dynamic Domain creation&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: 130%;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3408720436525595785-9223061100181329961?l=wlabypani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ssgBl2bF9RdyZc4AMnXi0ZY8E-c/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ssgBl2bF9RdyZc4AMnXi0ZY8E-c/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ssgBl2bF9RdyZc4AMnXi0ZY8E-c/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ssgBl2bF9RdyZc4AMnXi0ZY8E-c/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/WeblogicSystemAdminstration/~4/ELir22fYmro" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://wlabypani.blogspot.com/feeds/9223061100181329961/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://wlabypani.blogspot.com/2009/11/sun-one-webserver7-proxy-for-weblogic.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3408720436525595785/posts/default/9223061100181329961?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3408720436525595785/posts/default/9223061100181329961?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WeblogicSystemAdminstration/~3/ELir22fYmro/sun-one-webserver7-proxy-for-weblogic.html" title="Sun One WebServer7 Proxy for Weblogic 11g" /><author><name>Pani</name><uri>http://www.blogger.com/profile/08954955997652365752</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://3.bp.blogspot.com/_g6eQKpF5azY/SxF5x-Y4LDI/AAAAAAAAADM/aUOQSHsOjx8/S220/DSC02027.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://wlabypani.blogspot.com/2009/11/sun-one-webserver7-proxy-for-weblogic.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUUBR3syfip7ImA9Wx5QFUg.&quot;"><id>tag:blogger.com,1999:blog-3408720436525595785.post-3699026918209732741</id><published>2009-11-17T02:35:00.000-08:00</published><updated>2010-09-03T15:34:16.596-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-09-03T15:34:16.596-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Oracle Weblogic" /><category scheme="http://www.blogger.com/atom/ns#" term="download" /><category scheme="http://www.blogger.com/atom/ns#" term="FREE" /><category scheme="http://www.blogger.com/atom/ns#" term="tutorial" /><category scheme="http://www.blogger.com/atom/ns#" term="Proxy Plugin" /><category scheme="http://www.blogger.com/atom/ns#" term="Apache 2" /><category scheme="http://www.blogger.com/atom/ns#" term="http-2.2.11" /><title>Apache Installation &amp; Configuaration</title><content type="html">Here we were experimenting with Apache Webserver Installation and Configuaration plug-in with the weblogic server&lt;br /&gt;
&lt;br /&gt;
Installation made simple Steps which you can follow them&lt;br /&gt;
&lt;br /&gt;
Step1: Download the any stable version of httpd for your operating environemnt (Now I am intersted in Solaris) suitable binaries given as tar/zip file (Ex: httpd-2.2.11.tar) and Extract it&lt;br /&gt;
&lt;br /&gt;
tar -xvf httpd-2.2.11.tar&lt;br /&gt;
&lt;br /&gt;
Step2: Go to httpd-2.2.11 directory and execute the confiure command to configure the apache in one folder (Ex: apache2)&lt;br /&gt;
&lt;br /&gt;
cd httpd-2.2.11&lt;br /&gt;
./configure --prefix=$Home/apache2&lt;br /&gt;
&lt;br /&gt;
Step3: We need to execute the below commands to build I mean compile the binaries&lt;br /&gt;
&lt;br /&gt;
make&lt;br /&gt;
make install&lt;br /&gt;
&lt;br /&gt;
Step4: take the backup of httpd.conf file&lt;br /&gt;
&lt;br /&gt;
cd apache2/conf&lt;br /&gt;
cp httpd.conf httpd.conf_original&lt;br /&gt;
&lt;br /&gt;
Step5: Edit the httpd.conf configuration file&lt;br /&gt;
&lt;br /&gt;
vi httpd.conf&lt;br /&gt;
ServerRoot "$Home/apache2"&lt;br /&gt;
(ServerRoot is the path to the server's configuration, error and log files.It is possible to change this path, provided all the necessary files are copiedto the new location accordingly)&lt;br /&gt;
Listen IPAddress:Port (Ex: Listen 4.192.50.25:9999)&lt;br /&gt;
LoadModule weblogic_module modules/mod_wl_22.so&lt;br /&gt;
User wlusername&lt;br /&gt;
#main content of wl application details to update in httpd.conf file&lt;br /&gt;
Open tag of IfModule&lt;br /&gt;
#keep the info in open tag of IfModule ---mod_weblogic.c&lt;ifmodule&gt;&lt;br /&gt;
WebLogicCluster hostname:9902,hostnamevir1:9902&lt;br /&gt;
MatchExpression *.jsp&lt;br /&gt;
close tag of IfModule&lt;br /&gt;
Open tag of Location&lt;br /&gt;
#keep /application root folder name in Lacation &lt;location&gt;&lt;br /&gt;
SetHandler weblogic-handler&lt;br /&gt;
DynamicServerList ON&lt;br /&gt;
HungServerRecoverSecs 600&lt;br /&gt;
ConnectTimeoutSecs 40&lt;br /&gt;
WLCookieName JSESSIONID&lt;br /&gt;
DebugConfigInfo OFF&lt;br /&gt;
Debug ON&lt;br /&gt;
WLLogFile /$Home/apache2/logs/web1.log&lt;br /&gt;
ConnectRetrySecs 2&lt;br /&gt;
Idempotent ON&lt;br /&gt;
FileCaching ON&lt;br /&gt;
WLProxySSL OFF&lt;br /&gt;
SecureProxy OFF&lt;br /&gt;
Debug OFF&lt;br /&gt;
Close tag of Location&lt;br /&gt;
&lt;/location&gt;&lt;br /&gt;
ServerAdmin &lt;a href="mailto:sarangapani.matoori@gmail.com"&gt;sarangapani.matoori@gmail.com&lt;/a&gt;&lt;br /&gt;
ServerName 4.192.50.25 (we can use dns name , if we don't have it then we can use the ip)&lt;br /&gt;
&lt;br /&gt;
Step6:copy the mod_wl_22.so module file from $Home/wl923/bea/weblogic92/server/plugin/solaris/sparc to $Home/apache2/modules&lt;br /&gt;
cp $Home/wl923/bea/weblogic92/server/plugin/solaris/sparc/mod_wl_22.so $Home/apache2/modules/&lt;br /&gt;
Step7:check the status of apche configuaration is ok&lt;br /&gt;
cd $Home/apache2/bin&lt;br /&gt;
apachectl -t&lt;br /&gt;
Step8: Now the starting your newly installed Apache webserver&lt;br /&gt;
apchectl -k start or httpd -k start&lt;br /&gt;
&lt;br /&gt;
Step9: Access the application with the apache port&lt;br /&gt;
&lt;a href="http://hostip:port(which%20is%20kept%20in%20httpd.conf/"&gt;http://hostip:port(which%20is%20kept%20in%20httpd.conf/&lt;/a&gt; file)/ProjectName/jsp/Logon.jsp&lt;br /&gt;
Step10: Stop the Apache&lt;br /&gt;
apchectl -k stop or httpd -k stop&lt;/ifmodule&gt;&lt;br /&gt;
&lt;ifmodule&gt;&lt;br /&gt;
&lt;/ifmodule&gt;&lt;br /&gt;
&lt;ifmodule&gt;Good Reference for creating your WL domain:&amp;nbsp;&lt;/ifmodule&gt;&lt;br /&gt;
&lt;ifmodule&gt;&lt;a href="http://wlstbyexamples.blogspot.com/2009/10/dynamic-domain-creation-with-wlst.html"&gt;Dynamic WebLogic Domain configuration&lt;/a&gt;&lt;/ifmodule&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3408720436525595785-3699026918209732741?l=wlabypani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/qcF2kkASvE7fdMaZ3FYnvJSpyv0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/qcF2kkASvE7fdMaZ3FYnvJSpyv0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/qcF2kkASvE7fdMaZ3FYnvJSpyv0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/qcF2kkASvE7fdMaZ3FYnvJSpyv0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/WeblogicSystemAdminstration/~4/sgLlOfkPcxg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://wlabypani.blogspot.com/feeds/3699026918209732741/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://wlabypani.blogspot.com/2009/11/apache-installation-configuaration.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3408720436525595785/posts/default/3699026918209732741?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3408720436525595785/posts/default/3699026918209732741?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/WeblogicSystemAdminstration/~3/sgLlOfkPcxg/apache-installation-configuaration.html" title="Apache Installation &amp; Configuaration" /><author><name>Pani</name><uri>http://www.blogger.com/profile/08954955997652365752</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="24" src="http://3.bp.blogspot.com/_g6eQKpF5azY/SxF5x-Y4LDI/AAAAAAAAADM/aUOQSHsOjx8/S220/DSC02027.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://wlabypani.blogspot.com/2009/11/apache-installation-configuaration.html</feedburner:origLink></entry></feed>

