<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ghattu&#039;s Technology Blog &#187; wlst</title>
	<atom:link href="http://ghattus.com/tag/wlst/feed/" rel="self" type="application/rss+xml" />
	<link>http://ghattus.com</link>
	<description>A blog about technology that I work on in my day to day job</description>
	<lastBuildDate>Thu, 03 Dec 2009 00:56:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Old WLST tools</title>
		<link>http://ghattus.com/2009/12/02/old-wlst-tools/</link>
		<comments>http://ghattus.com/2009/12/02/old-wlst-tools/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 00:56:54 +0000</pubDate>
		<dc:creator>sghattu</dc:creator>
				<category><![CDATA[Application Server]]></category>
		<category><![CDATA[WebLogic]]></category>
		<category><![CDATA[jython]]></category>
		<category><![CDATA[wlst]]></category>

		<guid isPermaLink="false">http://ghattus.com/?p=165</guid>
		<description><![CDATA[As you might know after the acquisition of BEA Systems by Oracle, Dev2Dev site has been discontinued. Unfortunately I don&#8217;t see a replacement for that, not only we lost some rich information, but a number of good tools. In that context, in the last few months I had inquiries from some users asking where they could find the original [...]]]></description>
			<content:encoded><![CDATA[<p>As you might know after the acquisition of BEA Systems by Oracle, Dev2Dev site has been discontinued. Unfortunately I don&#8217;t see a replacement for that, not only we lost some rich information, but a number of good tools.<span id="more-165"></span></p>
<p>In that context, in the last few months I had inquiries from some users asking where they could find the original WLST that works with WebLogic 8.1 and 7.0, also WLST Script Generator and Console extension that work with WebLogic 9.x.</p>
<p>Now you can get these from the new google code project <a href="http://wlst-archives.googlecode.com/">wlst-modules</a>. WLST Script Generator 9.x can be downloaded from <a href="http://wlst-archives.googlecode.com/files/wlstScriptGenerator_91.zip">here</a>. The zip contains a ReadMe.html that should walk you through the configurations steps. And for those unfortunate souls who are still using WebLogic 7.0 and 8.1, WLST jar can be downloaded from <a href="http://wlst-archives.googlecode.com/files/wlst.jar">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://ghattus.com/2009/12/02/old-wlst-tools/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>No WLST cachedir with python.cachedir.skip</title>
		<link>http://ghattus.com/2009/09/11/no-wlst-cachedir-with-python-cachedir-skip/</link>
		<comments>http://ghattus.com/2009/09/11/no-wlst-cachedir-with-python-cachedir-skip/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 16:11:21 +0000</pubDate>
		<dc:creator>sghattu</dc:creator>
				<category><![CDATA[11g]]></category>
		<category><![CDATA[WebLogic]]></category>
		<category><![CDATA[jython]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[weblogic server]]></category>
		<category><![CDATA[wlst]]></category>
		<category><![CDATA[cachedir]]></category>
		<category><![CDATA[WebLogic 11g]]></category>

		<guid isPermaLink="false">http://ghattus.com/?p=111</guid>
		<description><![CDATA[In one of my previous post I have talked about python.cachedir and how it may cause some errors during WLST/Jython initialization. With WebLogic 11g Oracle has upgraded the Jython Version from 2.1 to 2.2 (see my post here), which opens up yet another way of getting rid of these errors. In fact you can get [...]]]></description>
			<content:encoded><![CDATA[<p>In one of my previous <a href="http://ghattus.com/2009/08/how-are-python-cachedir-and-the-error-sys-package-mgr-cant-create-package-cache-dir-are-related.html">post</a> I have talked about python.cachedir and how it may cause some errors during WLST/Jython initialization.<br />
With WebLogic 11g <a href="http://www.oracle.com">Oracle </a>has upgraded the Jython Version from 2.1 to 2.2 (see my post <a href="http://ghattus.com/2009/08/jython-2-2-in-weblogic-11g.html">here</a>), which opens up yet another way of getting rid of these errors. In fact you can get rid of the cachedir entirely by starting WLST with <strong>-Dpython.cachedir.skip=true</strong>, this will instruct Jython not to create the CacheDir.<br />
I haven&#8217;t done extensive testing with this option but so far I haven&#8217;t seen any issues by not creating this cachedir.</p>
]]></content:encoded>
			<wfw:commentRss>http://ghattus.com/2009/09/11/no-wlst-cachedir-with-python-cachedir-skip/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How are python.cachedir and the error &quot;*sys-package-mgr*: can&#039;t create package cache dir&quot; are related</title>
		<link>http://ghattus.com/2009/08/04/how-are-python-cachedir-and-the-error-sys-package-mgr-cant-create-package-cache-dir-are-related/</link>
		<comments>http://ghattus.com/2009/08/04/how-are-python-cachedir-and-the-error-sys-package-mgr-cant-create-package-cache-dir-are-related/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 10:50:02 +0000</pubDate>
		<dc:creator>sghattu</dc:creator>
				<category><![CDATA[WebLogic]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jython]]></category>
		<category><![CDATA[jython syntax]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[wlst]]></category>
		<category><![CDATA[/var/tmp]]></category>
		<category><![CDATA[cachedir]]></category>
		<category><![CDATA[ImportError]]></category>
		<category><![CDATA[sys-package-mgr]]></category>

		<guid isPermaLink="false">http://ghattus.com/?p=57</guid>
		<description><![CDATA[Resolving "*sys-package-mgr*: can't create package cache dir" errors with WLST]]></description>
			<content:encoded><![CDATA[<p>While starting <a href="http://edocs.bea.com/wls/docs91/config_scripting/index.html">WLST </a>or for that matter <a href="http://www.jython.org">Jython</a>, you might have seen this annoying error message,</p>
<blockquote><p>*sys-package-mgr*: can&#8217;t create package cache dir, &#8216;/tmp/cachedir/packages&#8217;<br />
Traceback (innermost last):<br />
File &#8220;&lt;iostream&gt;&#8221;, line 12, in ?<br />
ImportError: no module named java</p></blockquote>
<p><span id="more-57"></span></p>
<p>When Jython initializes it scans all the jar files it can find at startup to build the package and class structure available to the JVM. This information is written to files in a directory named &#8216;cachedir&#8217;, WLST chooses your &#8216;java.io.tmpdir&#8217; to store these files. There is a problem with this approach especially on Unix machines.</p>
<p><strong>Problem:</strong></p>
<p>Most Unix machines are shared across a number of users. Say &#8220;user1&#8243; first logs into the machine and fired up &#8216;java weblogic.WLST&#8217;, Jython will create the &#8216;cachedir&#8217; under <strong>&#8216;/var/tmp/&#8217;</strong> and this directory will be owned by &#8216;user1&#8242;. This user will have no problems using WLST. Now &#8216;user2&#8242; logs in and fires up WLST, this process will try to write to the same directory, <strong>&#8216;/var/tmp/cachedir&#8217;</strong> which is now owned by &#8216;user1&#8242; and hence fails with the above error message.</p>
<p><strong>Solution:</strong></p>
<p>There is a pretty simple and straight forward solution to this problem. Jython supports a System property (<strong>python.cachedir</strong>) that you can set which will determine the directory where this &#8216;cachedir&#8217; is created. So in our case to start WLST you will use,</p>
<blockquote><p>java -Dpython.cachedir=/home/user1 weblogic.WLST</p></blockquote>
<p>This will create the cachedir under /home/user1, and this way all users can have their own cachedir&#8217;s without running into each other. For a more elegant solution you can create a simple unix script that wraps the call to WLST and adding the right cachedir location per user. Sample is shown below,</p>
<blockquote><p>#!/bin/sh</p>
<p># Setup classpath, probably execute setDomainEnv.sh</p>
<p>java -Dpython.cachedir=~ weblogic.WLST</p></blockquote>
<p>As long as the<strong> &#8216;~&#8217;</strong> resolves properly to the home directory for the user executing WLST you will never have to worry about this &#8216;cachedir&#8217; related error messages.. <img src='http://ghattus.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://ghattus.com/2009/08/04/how-are-python-cachedir-and-the-error-sys-package-mgr-cant-create-package-cache-dir-are-related/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Default protocol in WebLogic and why is it important</title>
		<link>http://ghattus.com/2009/07/26/default-protocol-in-weblogic-and-why-is-it-important/</link>
		<comments>http://ghattus.com/2009/07/26/default-protocol-in-weblogic-and-why-is-it-important/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 21:17:12 +0000</pubDate>
		<dc:creator>sghattu</dc:creator>
				<category><![CDATA[WebLogic]]></category>
		<category><![CDATA[channel]]></category>
		<category><![CDATA[cluster]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jython]]></category>
		<category><![CDATA[weblogic server]]></category>
		<category><![CDATA[wlst]]></category>
		<category><![CDATA[protocol]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[t3]]></category>
		<category><![CDATA[t3s]]></category>

		<guid isPermaLink="false">http://ghattus.com/?p=55</guid>
		<description><![CDATA[It is a good practice to set the Default Protocol in WebLogic]]></description>
			<content:encoded><![CDATA[<p>If your WebLogic Server makes outbound connections to other systems it is wise to know what a DefaultProtocol is. Generally, when you create a WebLogic domain and haven&#8217;t configured SSL you will not have to do anything.<span id="more-55"></span></p>
<p>But once SSL is configured and you have dis-abled the non-ssl port, you should make sure that the DefaultProtocol your WebLogic Server uses is SSL (either t3s, https or iiops). If you haven&#8217;t done this, your WebLogic Server will try to use &#8220;t3&#8243; (default) for any outbound connections and since the ListenPort is disabled it will fail.</p>
<p>Here&#8217;s a simple wlst script to change the default protocol to t3s for all the servers in the domain.</p>
<blockquote><p># After connecting to the Admin Server</p>
<p>edit()</p>
<p>startEdit()</p>
<p>servers = cmo.getServers()</p>
<p>for i in servers:</p>
<p>i.setDefaultProtocol(&#8220;t3s&#8221;)</p>
<p>save()</p>
<p>activate()</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://ghattus.com/2009/07/26/default-protocol-in-weblogic-and-why-is-it-important/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
