<?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"
	>

<channel>
	<title>ORATECH_blog</title>
	<atom:link href="http://blog.fekw.de/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.fekw.de</link>
	<description>Oracle, ADF, JHeadstart, J2EE &#38; other technical stuff</description>
	<pubDate>Sun, 07 Mar 2010 22:38:23 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Using xmlparserv2.jar in Altova XMLSpy</title>
		<link>http://blog.fekw.de/2009/01/28/using-xmlparserv2jar-in-altova-xmlspy/</link>
		<comments>http://blog.fekw.de/2009/01/28/using-xmlparserv2jar-in-altova-xmlspy/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 16:24:09 +0000</pubDate>
		<dc:creator>Frank Engel</dc:creator>
		
		<category><![CDATA[JDeveloper]]></category>

		<category><![CDATA[Oracle]]></category>

		<category><![CDATA[XML]]></category>

		<category><![CDATA[Java]]></category>

		<category><![CDATA[xmlspy]]></category>

		<category><![CDATA[xsl]]></category>

		<guid isPermaLink="false">http://blog.fekw.de/?p=148</guid>
		<description><![CDATA[This a short howto about using Oracle xmlparserv2 in Altova XMLSpy. At the end there is a ready to us xmlparserv2standalone for download.

Get xmlparserv2.jar from jdev or oc4j lib directory.
D:\oc4j\lib\xmlparserv2.jar
Unzip xmlparserv2 into any temp directory.
For example: D:\xmlpaserv2_unzip_directory
Edit:
D:\xmlpaserv2_unzip_directory\META-INF\MANIFEST.MF
add the Main-Class for the xsl parser:
Manifest-Version: 1.0
Created-By: 1.4.2_10 (Sun Microsystems Inc.)
Main-Class: oracle.xml.parser.v2.oraxsl
Keep a blank line at the end [...]]]></description>
			<content:encoded><![CDATA[<p>This a short howto about using Oracle xmlparserv2 in Altova XMLSpy. At the end there is a ready to us xmlparserv2standalone for download.</p>
<ol>
<li>Get xmlparserv2.jar from jdev or oc4j lib directory.<br />
<span class="code">D:\oc4j\lib\xmlparserv2.jar</span></li>
<li>Unzip xmlparserv2 into any temp directory.<br />
For example: <span class="code">D:\xmlpaserv2_unzip_directory</span></li>
<li>Edit:<br />
<span class="code">D:\xmlpaserv2_unzip_directory\META-INF\MANIFEST.MF</span><br />
add the Main-Class for the xsl parser:<br />
<span class="code">Manifest-Version: 1.0<br />
Created-By: 1.4.2_10 (Sun Microsystems Inc.)<br />
Main-Class: oracle.xml.parser.v2.oraxsl</span><br />
Keep a blank line at the end of the file.</li>
<li>Create a new jar archive<br />
<span class="code">D:\xmlpaserv2_unzip_directory&gt; jar cmf D:\xmlpaserv2_unzip_directory\META-INF\MANIFEST.MF xmlparserv2standalone.jar *</span></li>
<li>Write a command script to start xmlparserv2standalone from XMLSpy.<br />
Insert the following command:<br />
<span class="code">java -jar D:\Tools\lib\xmlparserv2standalone.jar %1 %3 &gt;%2</span><br />
<a href="http://blog.fekw.de/wp-content/uploads/2009/01/runoraxsl_cmd.png"><img class="alignnone size-medium wp-image-149" title="runoraxsl_cmd" src="http://blog.fekw.de/wp-content/uploads/2009/01/runoraxsl_cmd-300x57.png" alt="" width="300" height="57" /></a></li>
<li>Edit XMLSpy Option to use the command script and xmlparserv2standalone.jar:<br />
<a href="http://blog.fekw.de/wp-content/uploads/2009/01/xmlspy_options.png"><img class="alignnone size-medium wp-image-150" title="xmlspy_options" src="http://blog.fekw.de/wp-content/uploads/2009/01/xmlspy_options-300x218.png" alt="" width="300" height="218" /></a></li>
</ol>
<p>That&#8217;s it.</p>
<p class="download">Prepared Oracle xmlparserv2standalone for download: <span style="color: #ffffff;"><strong><a href="http://blog.fekw.de/wp-content/uploads/2009/01/xmlparserv2standalone.jar">xmlparserv2standalone</a></strong></span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fekw.de/2009/01/28/using-xmlparserv2jar-in-altova-xmlspy/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Ubuntu 8.1: configure synaptics touchpad</title>
		<link>http://blog.fekw.de/2008/11/20/ubuntu-81-configure-synaptics-touchpad/</link>
		<comments>http://blog.fekw.de/2008/11/20/ubuntu-81-configure-synaptics-touchpad/#comments</comments>
		<pubDate>Thu, 20 Nov 2008 15:49:28 +0000</pubDate>
		<dc:creator>Frank Engel</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Kubuntu]]></category>

		<category><![CDATA[touchpad]]></category>

		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.fekw.de/?p=147</guid>
		<description><![CDATA[Since ubuntu 8.1 xorg.conf won&#8217;t be used to configure input devices. Now XSever uses HAL directly. To configure the touchpad with gsynaptic frontend do the following steps.

enable SHMConfig
install gsynaptics: $ sudo apt-get install gsynaptics
reboot

After installation, gsynaptics can be found under System &#62; Preferences &#62; Touchpad.
Read the community documentation SynapticsTouchpad !!!
]]></description>
			<content:encoded><![CDATA[<p>Since ubuntu 8.1 xorg.conf won&#8217;t be used to configure input devices. Now XSever uses HAL directly. To configure the touchpad with gsynaptic frontend do the following steps.</p>
<ol>
<li><a href="https://help.ubuntu.com/community/SynapticsTouchpad#shmconfig" target="_blank">enable SHMConfig</a></li>
<li>install gsynaptics: <span class="code">$ sudo apt-get install gsynaptics</span></li>
<li>reboot</li>
</ol>
<p>After installation, <strong>gsynaptics</strong> can be found under <strong>System &gt; Preferences &gt; Touchpad.</strong></p>
<p class="information"><strong>Read the community documentation <a class="backlink" rel="nofollow" href="https://help.ubuntu.com/community/Synapticshttps://help.ubuntu.com/community/SynapticsTouchpad" target="_blank">SynapticsTouchpad</a> !!!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fekw.de/2008/11/20/ubuntu-81-configure-synaptics-touchpad/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Howto play encrypted dvd with kaffeine or vlc</title>
		<link>http://blog.fekw.de/2008/10/05/howto-play-encrypted-dvd-with-kaffeine-or-vlc/</link>
		<comments>http://blog.fekw.de/2008/10/05/howto-play-encrypted-dvd-with-kaffeine-or-vlc/#comments</comments>
		<pubDate>Sat, 04 Oct 2008 23:14:30 +0000</pubDate>
		<dc:creator>Frank Engel</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[DVD]]></category>

		<category><![CDATA[Kaffeine]]></category>

		<category><![CDATA[VLC]]></category>

		<guid isPermaLink="false">http://blog.fekw.de/?p=146</guid>
		<description><![CDATA[
Kubuntu 8.04
Kaffeine PLayer 0.8.6
VLC media player 0.8.6e


choose to install your favourite player, Kaffeine or VLC:
for Kaffeine: # sudo apt-get install kaffeine
for VLC: # sudo apt-get install vlc libvlc0 libvlc0-dev
This will install the player and also depending recommended libs.
install dvd and encryption libs:
 # sudo apt-get install libdvdread3 libdvdcss2 regionset
DVD video discs may be encoded with [...]]]></description>
			<content:encoded><![CDATA[<ul class="information">
<li>Kubuntu 8.04</li>
<li>Kaffeine PLayer 0.8.6</li>
<li>VLC media player 0.8.6e</li>
</ul>
<ol>
<li>choose to install your favourite player, Kaffeine or VLC:<br />
for Kaffeine:<span class="code"> # sudo apt-get install kaffeine</span><br />
for VLC:<span class="code"> # sudo apt-get install vlc libvlc0 libvlc0-dev</span><br />
This will install the player and also depending recommended libs.</li>
<li>install dvd and encryption libs:<br />
<span class="code"> # sudo apt-get install libdvdread3 libdvdcss2 regionset</span></li>
<li>DVD video discs may be encoded with a region code restricting the area of the world in which they can be played. Therefore DVD players need to have a specified region to be set. To detec if your players has a region set, insert any dvd without (!) encryption and run regionset:<br />
<span class="code"> $ regionset</span><br />
The output should contain something like that:</p>
<pre class="syntax-highlight:sh">
fengel@D630fengel:~$ regionset
regionset version 0.1 -- reads/sets region code on DVD drives
Current Region Code settings:
RPC Phase: II
type: SET // &lt;---  region set
vendor resets available: 4
user controlled changes resets available: 4
drive plays discs from region(s): 2, mask=0xFD  // &lt;-- your region (see wikipedia link below)

Would you like to change the region setting of your drive? [y/n]:
</pre>
<p>This means a region is set and you can exit regionset without changes and proceed to step 4.<br />
If there&#8217;s no region set, then continue setting your region. Here&#8217;s an overview about DVD region settings: <a href="http://en.wikipedia.org/wiki/DVD_region_codes#Region_codes_and_countries" target="_blank">http://en.wikipedia.org/wiki/DVD_region_codes#Region_codes_and_countries<br />
</a>Now go on and set your region.</li>
<li>install css decryption:<br />
<span class="code"> # sudo /usr/share/doc/kaffeine/install-css.sh</span></li>
<li>for Kaffeine:<br />
Open Kaffeine &gt; Settings &gt; xine Engine Parameters &gt; Select &#8220;Media&#8221; section &gt; Select the &#8220;Expert Options&#8221;  tab &gt; Change&#8221;CSS decryption method&#8221; from &#8220;key&#8221; to &#8220;title&#8221;.</li>
<li>for VLC: no addtional settings needed.</li>
<li>Restart your system.</li>
<li>Insert an encrypted DVD and wait until it&#8217;s detected by the system. In some case this may take a  while. It differs depending on the DVD drive manufacturer. (on my HP nx7400 it was much faster than on my Dell D630)</li>
<li>When the DVD is detected open your favourite player and enjoy the movie!</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.fekw.de/2008/10/05/howto-play-encrypted-dvd-with-kaffeine-or-vlc/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Howto make screenshots including mouse pointer and expanded menus on linux</title>
		<link>http://blog.fekw.de/2008/10/03/howto-make-screenshots-including-mouse-pointer-and-expanded-menus-on-linux/</link>
		<comments>http://blog.fekw.de/2008/10/03/howto-make-screenshots-including-mouse-pointer-and-expanded-menus-on-linux/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 23:16:08 +0000</pubDate>
		<dc:creator>Frank Engel</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[KDE]]></category>

		<category><![CDATA[Kubuntu]]></category>

		<category><![CDATA[wine]]></category>

		<guid isPermaLink="false">http://blog.fekw.de/?p=143</guid>
		<description><![CDATA[Today I figured out how to take screenshots including mouse pointers and expanded menus on my linux system. As I got  it finally working I was really statisfied, because this is one of the features I&#8217;m still missing for example in KSnapshot. So here&#8217;s how I got it working. No rocket science, just simple. [...]]]></description>
			<content:encoded><![CDATA[<p>Today I figured out how to take screenshots including mouse pointers and expanded menus on my linux system. As I got  it finally working I was really statisfied, because this is one of the features I&#8217;m still missing for example in KSnapshot. So here&#8217;s how I got it working. No rocket science, just simple. The only thing I did was installing my favorite windows screenshot tool on linux using wine. Took a screenshot. Ready!</p>
<p>Here we go:</p>
<ol>
<li>install &#8220;wine&#8221; from your linux distribution repository:<br />
- for adept use:<br />
<span class="code"> # <em>apt-get install wine</em></span> or get it from here: <a href="http://www.winehq.org/site/download" target="_blank">http://www.winehq.org/site/download</a></li>
<li>download the winXP version of xnview from here: <a href="http://pagesperso-orange.fr/pierre.g/xnview/endownload.html" target="_blank">http://pagesperso-orange.fr/pierre.g/xnview/endownload.html</a></li>
<li>install it using wine:<br />
<span class="code"> # wine XnView-win-full-de.exe<br />
</span></li>
<li>start XnView go to Tools &gt; Capture screen:<br />
<a href="http://blog.fekw.de/wp-content/uploads/2008/10/capture_settings.png"><img class="alignnone size-medium wp-image-144" title="capture_settings" src="http://blog.fekw.de/wp-content/uploads/2008/10/capture_settings-300x263.png" alt="" width="300" height="263" /></a></p>
<p><span class="alert">You can&#8217;t effect the Capture area. XnView will always capture the entire desktop. To get single windows or region screenshots you have to use the &#8220;crop&#8221; function afterwards. Even the &#8220;Hot key&#8221; option doesn&#8217;t work. So you can only use the &#8220;delay&#8221; method. That&#8217;s because XnView can&#8217;t handle th e whole X-Server and multiple desktop stuff on linux, I suppose.</span> Here&#8217;s a screenshot including mouse pointer and expanded menu:</p>
<p><a href="http://blog.fekw.de/wp-content/uploads/2008/10/shot_with_pointer.png"><img class="alignnone size-medium wp-image-145" title="shot_with_pointer" src="http://blog.fekw.de/wp-content/uploads/2008/10/shot_with_pointer-300x212.png" alt="" width="300" height="212" /></a></p>
<p>Yeah! :-]</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.fekw.de/2008/10/03/howto-make-screenshots-including-mouse-pointer-and-expanded-menus-on-linux/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Kubuntu: Howto configure synaptic touchpad</title>
		<link>http://blog.fekw.de/2008/09/22/kubuntu-howto-configure-synaptic-touchpad/</link>
		<comments>http://blog.fekw.de/2008/09/22/kubuntu-howto-configure-synaptic-touchpad/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 08:36:25 +0000</pubDate>
		<dc:creator>Frank Engel</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[KDE]]></category>

		<category><![CDATA[Kubuntu]]></category>

		<category><![CDATA[touchpad]]></category>

		<guid isPermaLink="false">http://blog.fekw.de/?p=140</guid>
		<description><![CDATA[Requirements
For TouchFreeze and Qsynaptic.

install required qt-packages:
 $ sudo apt-get install qt3-designer qt3-dev-tools libqt3-mt-dev qt4-designer qt4-dev-tools
install latest synaptics driver:
$ sudo apt-get install libsynaptics0
edit  /etc/X11/xorg.conf :
add the following line to the touchpad section:
Option          &#8220;SHMConfig&#8221;             &#8220;on&#8221;
This [...]]]></description>
			<content:encoded><![CDATA[<h2>Requirements</h2>
<p>For TouchFreeze and Qsynaptic.</p>
<ol>
<li>install required qt-packages:<br />
<span class="code"> $ sudo apt-get install qt3-designer qt3-dev-tools libqt3-mt-dev </span><span class="code">qt4-designer qt4-dev-tools</span></li>
<li>install latest synaptics driver:<br />
<span class="code">$ sudo apt-get install libsynaptics0</span></li>
<li>edit  /etc/X11/xorg.conf :<br />
add the following line to the touchpad section:<br />
<span class="code">Option          &#8220;SHMConfig&#8221;             &#8220;on&#8221;</span><br />
This allows configuration of the touchpad at runtime.</li>
</ol>
<h2>TouchFreeze: enable / disable touchpad from system tray</h2>
<ol>
<li>install required qt-packages:<br />
<span class="code"> $ sudo apt-get install qt4-designer qt4-dev-tools</span></li>
<li>get latest touchfreeze-tarball from here:<br />
<a href="http://qsynaptics.sourceforge.net/dl.html" target="_blank">http://qsynaptics.sourceforge.net/dl.html</a></li>
<li>compile touchfreeze:<br />
<span class="code">/opt/touchfreeze-0.2.2$ /usr/share/qt4/bin/qmake<br />
/opt/touchfreeze-0.2.2$ make</span></li>
<li>copy the TouchFreeze binary in your ~/.kde/Autostart folder:<br />
<span class="code"> /opt/touchfreeze-0.2.2$ ln -s touchfreeze ~/.kde/Autostart/</span></li>
<li>restart X server:<br />
<strong class="code">Ctrl + Alt + Backspace</strong></li>
<li>TouchFreeze utility is now present in the system tray and you can enable/disable the touchpad.</li>
</ol>
<h2>QSynaptics: configure synaptic touchpadQsynaptic is a standalone application.</h2>
<ol>
<li>install required qt-packages:<br />
<span class="code"> $ sudo apt-get install qt3-designer qt3-dev-tools libqt3-mt-dev </span></li>
<li>get latest qsynaptic-tarball from here:<a href="http://prdownloads.sourceforge.net/qsynaptics/qsynaptics-0.21.tar.bz2?download"><br />
http://prdownloads.sourceforge.net/qsynaptics/qsynaptics-0.21.tar.bz2?download</a></li>
<li>compile qsynaptic:<br />
<span class="code">/opt/qsynaptics$ /usr/share/qt3/bin/qmake<br />
/opt/qsynaptics$ make</span></li>
<li>run qsynaptics:<br />
<span class="code">/opt/qsynaptics/bin$ ./qsynaptics</span></li>
<li>configure your touchpad</li>
</ol>
<h2>xorg.conf: configure synaptic touchpad</h2>
<p>If qsynaptic doesn&#8217;t work. Try configuring &#8220;etc/X11.xorg.conf&#8221; manually:</p>
<pre class="syntax-highlight:sh">

Section &quot;InputDevice&quot;
Identifier    &quot;Synaptics Touchpad&quot;
Driver        &quot;synaptics&quot;
Option        &quot;SendCoreEvents&quot;    &quot;true&quot;
Option        &quot;Device&quot;        &quot;/dev/psaux&quot;
Option        &quot;Protocol&quot;        &quot;auto-dev&quot;
Option        &quot;HorizEdgeScroll&quot;    &quot;0&quot;
Option    &quot;SHMConfig&quot; &quot;on&quot;
Option    &quot;MinSpeed&quot;  &quot;1&quot;
Option    &quot;MaxSpeed&quot;  &quot;10&quot;
Option    &quot;AccelFactor&quot; &quot;0.2&quot;
EndSection
</pre>
<p><span class="information">For detailed option description read: <a href="http://linux.die.net/man/5/synaptics" target="_blank">http://linux.die.net/man/5/synaptics</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fekw.de/2008/09/22/kubuntu-howto-configure-synaptic-touchpad/feed/</wfw:commentRss>
		</item>
		<item>
		<title>KDE Session Management and Autostarting</title>
		<link>http://blog.fekw.de/2008/09/21/kde-session-management-and-autostarting/</link>
		<comments>http://blog.fekw.de/2008/09/21/kde-session-management-and-autostarting/#comments</comments>
		<pubDate>Sun, 21 Sep 2008 09:49:09 +0000</pubDate>
		<dc:creator>Frank Engel</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[KDE]]></category>

		<category><![CDATA[Kubuntu]]></category>

		<guid isPermaLink="false">http://blog.fekw.de/?p=142</guid>
		<description><![CDATA[First time I added an application to &#8220;~/home/.kde/Autostart&#8221; it comes up with another (+1) instance every relogin to X session. This was because of the settings in ksession manager.
Go to &#8220;Start &#62; System Settings &#62; Advanced &#62;Session Manager&#8221;.  There are two options how to fix this issue.

On Login:
enable &#8220;Restore manually saved session&#8221;
Advanced:
enter a comma [...]]]></description>
			<content:encoded><![CDATA[<p>First time I added an application to &#8220;~/home/.kde/Autostart&#8221; it comes up with another (+1) instance every relogin to X session. This was because of the settings in ksession manager.</p>
<p>Go to &#8220;Start &gt; System Settings &gt; Advanced &gt;Session Manager&#8221;.  There are two options how to fix this issue.</p>
<ol>
<li><strong>On Login:</strong><br />
enable &#8220;Restore manually saved session&#8221;</li>
<li><strong>Advanced:</strong><br />
enter a comma separated list of executables to be excluded from session management</li>
</ol>
<p>This settings force the applications added to &#8220;~/home/.kde/Autostart&#8221; to startup with only one instance every logon to X session.</p>
<p><span class="information">For further details refer to this guide: <a href="http://jucato.org/kde/kde-autostart.html#ksmserver" target="_blank">http://jucato.org/kde/kde-autostart.html#ksmserver</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fekw.de/2008/09/21/kde-session-management-and-autostarting/feed/</wfw:commentRss>
		</item>
		<item>
		<title>JDeveloper 10.1.3.x: Restore corrupted window layout</title>
		<link>http://blog.fekw.de/2008/09/20/jdeveloper-1013x-restore-corrupted-window-layout/</link>
		<comments>http://blog.fekw.de/2008/09/20/jdeveloper-1013x-restore-corrupted-window-layout/#comments</comments>
		<pubDate>Sat, 20 Sep 2008 12:10:39 +0000</pubDate>
		<dc:creator>Frank Engel</dc:creator>
		
		<category><![CDATA[JDeveloper]]></category>

		<guid isPermaLink="false">http://blog.fekw.de/?p=137</guid>
		<description><![CDATA[If you have problems because of your ide windowlayout is corrupted and you would like to restore it, then perform the following steps:

close JDeveloper
delete this file:
$ rm -rf your_jdev_home/system/oracle.ide.10.1.3.42.70/windowinglayout.xml
This forces JDeveloper to revert back to the default layout upon next start.
restart JDeveloper

Now JDeveloper will show up with the default window layout.
corrupted layout (before):

restored default layout [...]]]></description>
			<content:encoded><![CDATA[<p>If you have problems because of your ide windowlayout is corrupted and you would like to restore it, then perform the following steps:</p>
<ol>
<li>close JDeveloper</li>
<li>delete this file:<br />
<span class="code">$ rm -rf your_jdev_home/system/oracle.ide.10.1.3.42.70/windowinglayout.xml</span></p>
<p>This forces JDeveloper to revert back to the default layout upon next start.</li>
<li>restart JDeveloper</li>
</ol>
<p>Now JDeveloper will show up with the default window layout.</p>
<p>corrupted layout (before):</p>
<p><a href="http://blog.fekw.de/wp-content/uploads/2008/09/wired.png"><img class="alignnone size-medium wp-image-139" title="wired" src="http://blog.fekw.de/wp-content/uploads/2008/09/wired-300x231.png" alt="" width="300" height="231" /></a></p>
<p>restored default layout (after):</p>
<p><a href="http://blog.fekw.de/wp-content/uploads/2008/09/normal.png"><img class="alignnone size-medium wp-image-138" title="normal" src="http://blog.fekw.de/wp-content/uploads/2008/09/normal-300x231.png" alt="" width="300" height="231" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fekw.de/2008/09/20/jdeveloper-1013x-restore-corrupted-window-layout/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Howto make wget working with proxy</title>
		<link>http://blog.fekw.de/2008/08/26/howto-make-wget-working-with-proxy/</link>
		<comments>http://blog.fekw.de/2008/08/26/howto-make-wget-working-with-proxy/#comments</comments>
		<pubDate>Tue, 26 Aug 2008 09:54:16 +0000</pubDate>
		<dc:creator>Frank Engel</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.fekw.de/?p=136</guid>
		<description><![CDATA[It is sometimes necessary to run wget inside a network where a proxy requests authentication. This can be achieved by defining two variables, in current shell or in ~/.bashrc:
export http_proxy=&#8221;http://proxyserver:port&#8221;
export ftp_proxy=&#8221;http://proxyserver:port&#8221;
Means for example:
export http_proxy=&#8221;http://proxy.example.com:8080&#8243;
export ftp_proxy=&#8221;http://proxy.example.com:8080&#8243;
You can use ?proxy-username=&#8221;username&#8221; and ?proxy-passwd=&#8221;password&#8221; to set proxy user name and password where required. Replace user name with your proxy [...]]]></description>
			<content:encoded><![CDATA[<p>It is sometimes necessary to run wget inside a network where a proxy requests authentication. This can be achieved by defining two variables, in current shell or in ~/.bashrc:</p>
<p class="code">export http_proxy=&#8221;http://proxyserver:port&#8221;<br />
export ftp_proxy=&#8221;http://proxyserver:port&#8221;</p>
<p>Means for example:</p>
<p class="code">export http_proxy=&#8221;http://proxy.example.com:8080&#8243;<br />
export ftp_proxy=&#8221;http://proxy.example.com:8080&#8243;</p>
<p>You can use <strong>?proxy-username=&#8221;username&#8221;</strong> and <strong>?proxy-passwd=&#8221;password&#8221;</strong> to set proxy user name and password where required. Replace user name with your proxy server user name and password with your proxy server password.</p>
<p class="code">$ wget &#8211;proxy-user=&#8221;username&#8221; &#8211;proxy-passwd=&#8221;password&#8221; URL</p>
<p>Another alternative is to specify user and password in http_proxy / ftp_proxy environment variable as follows:</p>
<p class="code">export http_proxy=&#8221;http://username:password@proxy.example.com:8080&#8243;</p>
<p>Then you can run wget as normal like:</p>
<p class="code">$ wget URL</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fekw.de/2008/08/26/howto-make-wget-working-with-proxy/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Howto: Install ADF 10 runtime and deploy ADF BC App to Oracle WebLogic 10.3 running on Linux</title>
		<link>http://blog.fekw.de/2008/08/23/howto-install-adf-10-runtime-and-deploy-adf-bc-app-to-oracle-weblogic-103-running-on-linux/</link>
		<comments>http://blog.fekw.de/2008/08/23/howto-install-adf-10-runtime-and-deploy-adf-bc-app-to-oracle-weblogic-103-running-on-linux/#comments</comments>
		<pubDate>Sat, 23 Aug 2008 00:14:07 +0000</pubDate>
		<dc:creator>Frank Engel</dc:creator>
		
		<category><![CDATA[ADF]]></category>

		<category><![CDATA[Weblogic]]></category>

		<category><![CDATA[BC]]></category>

		<category><![CDATA[JDeveloper]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://blog.fekw.de/?p=129</guid>
		<description><![CDATA[This tutorial shows how to deploy an ADF BC Application to an Oracle Weblogic 10.3 Application Server running on Linux.
For the windows installation you should refer to the great tutorial and screencast from Shay Shmeltzer on OTN. Read: Deploying The SRDemo ADF Sample Application on WebLogic Servers
But if you try to adept this way of [...]]]></description>
			<content:encoded><![CDATA[<p>This tutorial shows how to deploy an ADF BC Application to an Oracle Weblogic 10.3 Application Server running on Linux.</p>
<p>For the windows installation you should refer to the great tutorial and screencast from Shay Shmeltzer on OTN. Read: <a href="http://www.oracle.com/technology/products/jdev/howtos/weblogic/deployingwls.html">Deploying The SRDemo ADF Sample Application on WebLogic Servers</a><br />
But if you try to adept this way of installation to linux, you&#8217;ll probably end up in some errors. That&#8217;s from my experience so far. Maybe because the whole ADF / WebLogic / Jdeveloper stuff is quite in development state and will work better in 11g release later on.</p>
<ul class="required">
<li class="lihead">Requirements:</li>
<li><a href="http://www.oracle.com/technology/software/products/ias/htdocs/wls_main.html">Oracle 	WebLogic Server 10.3</a></li>
<li><a href="http://www.oracle.com/technology/software/products/jdev/htdocs/soft10134.html">Jdeveloper 	10.1.3.4</a></li>
<li><a href="http://download.oracle.com/otn/java/jdeveloper/10134/extensions/adfinstaller.zip">Oracle 	ADF Installer 10.1.3.4</a></li>
</ul>
<p>Now, let&#8217;s start. The following sections assume that you&#8217;ve installed Oracle WebLogic Server 10.3 successful, an empty WebLogic domain is created  and there is  a ready to deploy ADF BC application or any other ADF application. It doens&#8217;t have to be a BC app. I suppose also a toplink app will work, because we will setup the complete ADF runtime on WebLogic, which also for example includes toplink libraries.</p>
<h2>1. Setting up ADF Libraries on WebLogic</h2>
<p>Before we actually deploy the application onto the WebLogic server we need to install the ADF Runtime libraries on the server. To do this we can use either the installer that is embedded inside JDeveloper or the stand alone ADF Installer utility - which we&#8217;ll use in this how-to.<br />
The detailed instructions for setting ADF libraries on WebLogic are described in the deployment chapter of the ADF Developer Guide. (Note that these instruction are for windows installation - we will install on linux!)</p>
<h3>1.1 Shutdown WebLogic instance</h3>
<p>It&#8217;s recommended to shutdown the WebLogic instance for the domain where you want to install the ADF runtime.</p>
<h3>1.2 Prepare ADF Installer properties</h3>
<p>Download and unzip the ADF Installer. Follow the included &#8220;README.html&#8221; and edit the &#8220;adfinstaller.properties&#8221; as follows:</p>
<pre class="syntax-highlight:sh">
# The absolute path to the directory containing  the ADF jars to be installed.
# This is the location of the directory where you unzipped the adfinsatller.zip
OracleHome = /path_to_adfinstaller_dir/

# Home directory for the destination application server,
# where the ADF Jars need to be installed
DesHome = /your_weblogic_home/wlserver_10.3/

# Specify the platform for the Application Server where the ADF libraries need
# to be installed. This has to be one of the following choices.
# OC4J/AS/TOMCAT/JBOSS/WEBLOGIC
type = WEBLOGIC

# Specify the weblogic domain directory, when choosing the type as WEBLOGIC
UserHome = /your_weblogic_home/user_projects/domains/your_weblogic_domain/

# If the type is OC4J or AS, change the oc4jInstance Name if it is other than the default name home.
Oc4jInstanceName = home

# Specify the install action to be taken.
# Please note, UNINSTALL is not supported with AS
# INSTALL/UNINSTALL/RESTORE
InstallOption = INSTALL

# Please specify the version of the ADF libraries to be restored, in case of
# the RESTORE Option. Uncomment and provide the correct version.

# RES_VERSION = 10.1.3.xx.xx

# Specify if the output should be silent, or written to the screen.
# The installer output is also written to a ${platform}.html file.
# silent = true
</pre>
<h3>1.3 Run ADF Installer</h3>
<p>Run the ADF Installer as described in the &#8220;README.html&#8221;.</p>
<pre class="syntax-highlight:sh">
fengel@D630fengel:~/Temp/adfinstaller$ java -jar runinstaller.jar adfinstaller.properties
The version for the ADF libraries being installed is 10.1.3.42.70

Installer log will be written to /home/fengel/Temp/adfinstaller//weblogic.html
ADF Runtime Installer
Modify your startup file to invoke the setupadf.cmd(.sh) file to configure your classpath.

Copied  /home/fengel/Temp/adfinstaller/BC4J/lib/adfcm.jar to instance  /opt/bea/wlserver_10.3/ADF/lib/adfcm.jar
Copied  /home/fengel/Temp/adfinstaller/BC4J/lib/adfm.jar to instance  /opt/bea/wlserver_10.3/ADF/lib/adfm.jar
Copied  /home/fengel/Temp/adfinstaller/BC4J/lib/adfmweb.jar to instance  /opt/bea/wlserver_10.3/ADF/lib/adfmweb.jar
[...]
</pre>
<h3>1.4 Remove &#8220;^M&#8221; from &#8220;setupadf.sh&#8221;</h3>
<p>The ADF Installer creates a &#8220;setupadf.sh&#8221; script which is responsible for loading ADF libs into classpath. Anyway, this script is buggy and will end up in errors when executed. Reason: The ADF Installer puts a &#8220;^M&#8221; carriage return character at each end of line. This won&#8217;t work on linux.<br />
To remove the &#8220;^M&#8221; characters at the end of all lines open &#8220;setupadf.sh&#8221; in vi, use:<br />
<span class="code">:%s/^V^M//g</span></p>
<p>The ^v is a CONTROL-V character and ^m is a CONTROL-M. When you type this, it will look like this:<br />
<span class="code">:%s/^M//g</span></p>
<p class="information">Information:<br />
In UNIX, you can escape a control character by preceeding it with a CONTROL-V. The :%s is a basic search and replace command in vi. It tells vi to replace the regular expression between the first and second slashes (^M) with the text between the second and third slashes (nothing in this case). The g at the end directs vi to search and replace globally (all occurrences).</p>
<p>Save &#8220;setupadf.sh&#8221; and exit vi, use:<br />
<span class="code">:wq</span></p>
<h3>1.5 Replace relative path with ${WL_HOME}</h3>
<p>Now open &#8220;setupadf.sh&#8221; again with a more comfortable editor like kate or gedit. Replace all the relative paths to &#8220;<strong>../../../wlserver_10.3//</strong>&#8221; with &#8220;<strong>${WL_HOME}</strong>&#8220;.<br />
<a class="shutterset" href="http://blog.fekw.de/wp-content/uploads/2008/08/setupadf_replace.png"><img class="alignnone size-medium wp-image-130" title="setupadf_replace" src="http://blog.fekw.de/wp-content/uploads/2008/08/setupadf_replace-250x300.png" alt="" width="250" height="300" /></a></p>
<h3>1.6 Set bc4j lib usage</h3>
<p>If your Business Component using Oracle DB you should change the generic BC4J library to the Oracle specific one. Change the &#8220;bc4jdomgnrc.jar&#8221; to &#8220;bc4jdomorcl.jar&#8221;:</p>
<pre class="syntax-highlight:sh">
## bc4j generic
#CLASSPATH=${CLASSPATH}:${WL_HOME}/ADF/jlib/bc4jdomgnrc.jar
## bc4j oracle
CLASSPATH=${CLASSPATH}:${WL_HOME}/ADF/lib/bc4jdomorcl.jar
</pre>
<h3>1.7 Edit &#8220;setDomainEnv.sh&#8221; to call &#8220;setupadf.sh&#8221;</h3>
<p>The &#8220;setDomainEnv.sh&#8221; is called by &#8220;startWebLogic.sh&#8221; and is used to build and export the CLASSPATH. The ADF libs need to be included to CLASSPATH, so the &#8220;setupadf.sh&#8221; must be called from here.<br />
Open &#8220;your_domain/bin/setDomainEnv.sh&#8221; with a text editor, scroll down to &#8220;#SET CLASSPATH&#8221; and append the following changes. In that way the ADF libs are added to CLASSPATH and loaded during startup of the server instance.</p>
<pre class="syntax-highlight:sh">
# SET THE CLASSPATH
# include ADF runtime libs
. &quot;${DOMAIN_HOME}/setupadf.sh&quot;

CLASSPATH=&quot;${PRE_CLASSPATH}${CLASSPATHSEP}${WEBLOGIC_CLASSPATH}${CLASSPATHSEP}${POST_CLASSPATH}${CLASSPATHSEP}${WLP_POST_CLASSPATH}${CLASSPATH}&quot;
export CLASSPATH
</pre>
<p>Save and exit.</p>
<h3>1.8 Start Weblogic Instance</h3>
<p>The ADF libs should now be loaded during startup. So start your WebLogic instance:<br />
<span class="code">fengel@D630fengel:/opt/bea/user_projects/domains/adfdomain$ ./startWebLogic.sh</span><br />
&#8230; and check the console output. Here they are:<br />
<a class="shutterset" href="http://blog.fekw.de/wp-content/uploads/2008/08/console_startup_adf_libs.png"><img class="alignnone size-medium wp-image-131" title="console_startup_adf_libs" src="http://blog.fekw.de/wp-content/uploads/2008/08/console_startup_adf_libs-300x171.png" alt="" width="300" height="171" /></a><br />
Now ADF is running on WebLogic.</p>
<h2>2 Prepare and deploy ADF BC application</h2>
<p>This part shows what is needed for successful deployment of a ADF BC application to Oracle WebLogic 10.3 Application Server.</p>
<h3>2.1 Configure Application Module to use JDBC connection</h3>
<p>As there are problems using datasource connections you should use JDBC connection for all of your application modules.</p>
<h3>2.2 Add libs for BC apps and JDBC support to ViewController Project</h3>
<p>For a BC app and JDBC support you need to include some additional libraries to the ViewController Project. Add the following libraries to ViewController Project:</p>
<ul>
<li> In the ViewController project properties, go to Libraries.</li>
<li> Add the following libraries that are needed for the Model project:
<ul>
<li> BC4J Oracle Domains</li>
<li>Oracle JDBC</li>
<li>SQLJ Runtime</li>
</ul>
</li>
</ul>
<p><a class="shutterset" href="http://blog.fekw.de/wp-content/uploads/2008/08/viewcontroller_libs.png"><img class="alignnone size-medium wp-image-132" title="viewcontroller_libs" src="http://blog.fekw.de/wp-content/uploads/2008/08/viewcontroller_libs-300x239.png" alt="" width="300" height="239" /></a><br />
For more information read: <a href="http://blogs.oracle.com/jheadstart/deployment/">How to deploy a JDev 10.1.3 application to OracleAS 10.1.2 (Step 4,5)</a></p>
<h3>2.3 Create Deployment Profile</h3>
<p>Add a new &#8220;war&#8221; deployment profile to your ViewController project:</p>
<p><a class="shutterset" href="http://blog.fekw.de/wp-content/uploads/2008/08/deployment_profile1.png"><img class="alignnone size-medium wp-image-133" title="deployment_profile1" src="http://blog.fekw.de/wp-content/uploads/2008/08/deployment_profile1-300x226.png" alt="" width="300" height="226" /></a><br />
(You can either create a deployment profile from the context menu of you web.xml.)</p>
<h3>2.4 Enable JDBC and BC4J Libs in deployment profile</h3>
<p>This step is very essential. If you don&#8217;t do this, you&#8217;ll end up in a JBO-30003 error when trying to checkout an application module.<br />
The JBDC and BC4J libs need to be include in your deployment. You have to enable them. Go to your &#8220;<strong>deployment profile &gt; properties &gt; WEB-INF/lib &gt; Contributors</strong>&#8221; and enable the libs you added to your ViewController project in step 2.2:</p>
<p><a class="shutterset" href="http://blog.fekw.de/wp-content/uploads/2008/08/deployment_profile2.png"><img class="alignnone size-medium wp-image-134" title="deployment_profile2" src="http://blog.fekw.de/wp-content/uploads/2008/08/deployment_profile2-300x225.png" alt="" width="300" height="225" /></a><br />
Depending on your project requirements you may have to enable other libraries too. For more information read: <a href="http://blogs.oracle.com/jheadstart/deployment/">How to deploy a JDev 10.1.3 application to OracleAS 10.1.2 (Step 7,8,9)</a></p>
<h3>2.5 Deployment</h3>
<p>Recommending an established connection to the WebLogic Server you can deploy the application by one-click-deployment from the context menu of the deployment profile.</p>
<p>Otherwise deployment needs to be done in two steps:</p>
<ol>
<li> create *.war archive from deployment profile</li>
<li> from inside WebLogic administration console upload *.war archive and deploy.</li>
</ol>
<h3>2.6 Check running application</h3>
<p>Now the ADF application should be up and running on WebLogic.<br />
<a class="shutterset" href="http://blog.fekw.de/wp-content/uploads/2008/08/hrapp.png"><img class="alignnone size-medium wp-image-135" title="hrapp" src="http://blog.fekw.de/wp-content/uploads/2008/08/hrapp-300x212.png" alt="" width="300" height="212" /></a><br />
That&#8217;s it.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fekw.de/2008/08/23/howto-install-adf-10-runtime-and-deploy-adf-bc-app-to-oracle-weblogic-103-running-on-linux/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Howto: Install Oracle Database XE 10g on RHEL4</title>
		<link>http://blog.fekw.de/2008/07/21/howto-install-oracle-database-xe-10g-on-rhel4/</link>
		<comments>http://blog.fekw.de/2008/07/21/howto-install-oracle-database-xe-10g-on-rhel4/#comments</comments>
		<pubDate>Mon, 21 Jul 2008 07:11:42 +0000</pubDate>
		<dc:creator>Frank Engel</dc:creator>
		
		<category><![CDATA[Database]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[10g]]></category>

		<category><![CDATA[Oracle]]></category>

		<category><![CDATA[RHEL4]]></category>

		<category><![CDATA[XE]]></category>

		<guid isPermaLink="false">http://blog.fekw.de/?p=127</guid>
		<description><![CDATA[
OS
RHEL4 Update 5 32bit
Kernel
2.6.9-67.0.20.0.2.ELsmp
Database
Oracle Database 10g Release 2 (10.2.0.1) Express Edition (Universal)

This (quick-)installation guide is just an abstract of the Oracleİ Database Express Edition Installation Guide 10g Release 2 (10.2) for Linux.
For the following steps you need to &#8220;root&#8220;!


Create user and groups
We will now create a user &#8220;oracle&#8221; for later use as database administrator.
Create groups:
# [...]]]></description>
			<content:encoded><![CDATA[<ul class="information">
<li class="lihead">OS</li>
<li>RHEL4 Update 5 32bit</li>
<li class="lihead">Kernel</li>
<li>2.6.9-67.0.20.0.2.ELsmp</li>
<li class="lihead">Database</li>
<li>Oracle Database 10g Release 2 (10.2.0.1) Express Edition (Universal)</li>
</ul>
<p class="inforamtion">This (quick-)installation guide is just an abstract of the <a href="http://download.oracle.com/docs/cd/B25329_01/doc/install.102/b25144/toc.htm" target="_blank">Oracleİ Database Express Edition Installation Guide 10g Release 2 (10.2) for Linux</a>.</p>
<p>For the following steps you need to &#8220;<strong>root</strong>&#8220;!</p>
<ol>
<li>
<h3>Create user and groups</h3>
<p>We will now create a user &#8220;<strong>oracle</strong>&#8221; for later use as database administrator.<br />
Create groups:</p>
<p class="code"># groupadd oinstall<br />
# groupadd dba<br />
# groupadd oper</p>
<p>Create OS user &#8220;<strong>oracle</strong>&#8221; with group permissions and home &#8220;/home/oracle&#8221;:</p>
<p class="code"># useradd -g oinstall -G dba,oper -d /home/oracle oracle</p>
<p>Set password for user oracle:</p>
<p class="code"># passwd oracle</p>
</li>
<li>
<h3>Server Component Kernel Parameter Requirements</h3>
<p>The Oracle Database XE installation checks your system for the following kernel parameter settings. If the kernel parameters of your system are less than the values needed, then the installation will modify the kernel parameters.<br />
To prevent mismatches you can edit &#8220;<strong>/etc/sysctl.conf</strong>&#8221; and add the following parameter settings:</p>
<pre class="syntax-highlight:sh">
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
</pre>
<p>Save and exit.<br />
Now run the following command to change the current kernel parameters:</p>
<p class="code"># /sbin/sysctl -p</p>
</li>
<li>
<h3>Install required packages</h3>
<p class="code"># yum install glibc libaio</p>
</li>
<li>
<h3>Download Oracle Database XE 10.2.0.1</h3>
<p>Download Oracle XE from here: <a href="http://www.oracle.com/technology/software/products/database/xe/htdocs/102xelinsoft.html">Oracle Database 10g Release 2 (10.2.0.1) Express Edition for Linux x86</a>.<br />
If you downloaded the oracle-xe-univ-10.2.0.1-1.0.i386.rpm executable, you would enter this command:</p>
<p class="code"># rpm -ivh downloads/oracle-xe-univ-10.2.0.1-1.0.i386.rpm</p>
</li>
<li>
<h3>When prompted, run the following command:</h3>
<p class="code"># /etc/init.d/oracle-xe configure</p>
<p>For this howto keep the defaults for HTTP and listener port. Just set your SYS password and decide whether you want the database to start automatically when the computer starts. If you enter Yes, then the database starts immediately<br />
If you need to change the configuration settings, then you can do so by running &#8220;oracle-xe configure&#8221; again.</li>
<li>
<h3>Setting the Oracle Database XE Server Environment Variables</h3>
<p>Performing this step, you may run into an error regarding &#8220;nls_lang.sh&#8221;. If so, correct he error as described <a href="http://blog.fekw.de/2008/07/15/oracle-xe-10g-r2-10201-nls_langsh-error/">here</a> and redo this step.<br />
Ok. Now set the environment variables by running this script:</p>
<p class="code"># /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh</p>
<p>To add this environment variables permanently go to the home directory for user &#8220;<strong>oracle</strong>&#8221; and edit the &#8220;<strong>.bash_profile</strong>. Add the following lins at the end:</p>
<pre class="syntax-highlight:sh">
. /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh
</pre>
</li>
<li>
<h3>Reboot</h3>
<p>Now to make sure the shortcuts will appear in the menu for &#8220;<strong>oracle</strong>&#8221; perform a reboot (maybe restarting the x-server will also suffice). Regard stopping the database first, if still running.</li>
<li>
<h3>Start / stop databse</h3>
<p>To start / stop the database manually, run this commands:</p>
<p class="code"># /etc/init.d/oracle-xe start<br />
# /etc/init.d/oracle-xe stop</p>
<p>This only works for the &#8220;<strong>root</strong>&#8221; user. Logged in as normal &#8220;<strong>oracle</strong>&#8221; user you&#8217;ll have shortcuts in the menu or try these scripts:</p>
<p class="code">$ $ORALCE_HOME/config/scripts/startdb.sh<br />
$ $ORALCE_HOME/config/scripts/startdb.sh</p>
</li>
<li>
<h3>Relogin as user &#8220;<strong>oracle</strong>&#8220;</h3>
<p>Now you should see the menu shortcuts for Oracle XE.</p>
<p>To adminstrate the database open your browser (I recommend using firefox) and go to: &#8220;<a href="127.0.0.1:8080/apex">127.0.0.1:8080/apex</a>&#8220;.<br />
If you&#8217;re not able to open this url, then check you browser network settings. Prevent &#8220;127.0.0.1&#8243; from using a proxy setting the &#8220;No proxy for:&#8221;-parameter in the network settings.</li>
</ol>
<p>Done.</p>
<p>For further details read the <a href="http://download.oracle.com/docs/cd/B25329_01/doc/install.102/b25144/toc.htm" target="_blank">Oracleİ Database Express Edition Installation Guide 10g Release 2 (10.2) for Linux</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fekw.de/2008/07/21/howto-install-oracle-database-xe-10g-on-rhel4/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
