<?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>Days of ...</title> <atom:link href="http://www.yellowbluebus.com/blog/feed/" rel="self" type="application/rss+xml" /><link>http://www.yellowbluebus.com/blog</link> <description>Useful technology stuff</description> <lastBuildDate>Sun, 10 Jul 2011 20:21:48 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.2.1</generator> <item><title>SOLVED: Apply only security updates in Ubuntu</title><link>http://www.yellowbluebus.com/blog/2011/07/10/solved-apply-only-security-updates-in-ubuntu/</link> <comments>http://www.yellowbluebus.com/blog/2011/07/10/solved-apply-only-security-updates-in-ubuntu/#comments</comments> <pubDate>Sun, 10 Jul 2011 19:07:56 +0000</pubDate> <dc:creator>aleksey</dc:creator> <category><![CDATA[howto]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[solved]]></category><guid isPermaLink="false">http://www.yellowbluebus.com/blog/?p=177</guid> <description><![CDATA[Sometimes I don&#8217;t want to update everything on my Ubuntu, but I want to keep it up to date with all patched security holes. At the same time I don&#8217;t like when updates happen automatically, like Ubuntu documentation suggests. This is the way to apply only security fixes: 1. Copy update sources list to a <a href='http://www.yellowbluebus.com/blog/2011/07/10/solved-apply-only-security-updates-in-ubuntu/'>[...]</a>]]></description> <content:encoded><![CDATA[<p>Sometimes I don&#8217;t want to update everything on my Ubuntu, but I want to keep it up to date with all patched security holes. At the same time I don&#8217;t like when updates happen automatically, like <a href="https://help.ubuntu.com/community/AutomaticSecurityUpdates" target="_blank">Ubuntu documentation suggests</a>.</p><p>This is the way to apply only security fixes:</p><p>1. Copy update sources list to a new file</p><p><pre class="devcodeblock" title=""><div class="devcodeoverflow"><ol><li>sudo cp /etc/apt/sources.list /etc/apt/security.sources.list</li></ol></div></pre></p><p>2. Comment out everything in new file, but leave only security repositories</p><p>3. Use following command to apply updates using new file:</p><p><pre class="devcodeblock" title=""><div class="devcodeoverflow"><ol><li>sudo apt-get upgrade -o Dir::Etc::SourceList=/etc/apt/security.sources.list</li></ol></div></pre></p><p>I created an alias in my .bash_aliases for it:</p><p><pre class="devcodeblock" title=""><div class="devcodeoverflow"><ol><li>alias updatesecurity='sudo apt-get upgrade -o Dir::Etc::SourceList=/etc/apt/security.sources.list'</li></ol></div></pre></p><p>Now I simply type <code><u>updatesecurity</u></code> to stay up to date.</p><p>I found this solution via <a href="http://serverfault.com/questions/270260/how-do-you-use-apt-get-to-only-install-critical-security-updates-on-ubuntu/282518#282518" target="_blank">ServerFault.com</a></p> ]]></content:encoded> <wfw:commentRss>http://www.yellowbluebus.com/blog/2011/07/10/solved-apply-only-security-updates-in-ubuntu/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Short list of how-to&#8217;s for new Linux installation</title><link>http://www.yellowbluebus.com/blog/2011/06/26/short-list-of-how-tos-for-new-linux-installation/</link> <comments>http://www.yellowbluebus.com/blog/2011/06/26/short-list-of-how-tos-for-new-linux-installation/#comments</comments> <pubDate>Sun, 26 Jun 2011 07:10:45 +0000</pubDate> <dc:creator>aleksey</dc:creator> <category><![CDATA[howto]]></category> <category><![CDATA[linux]]></category><guid isPermaLink="false">http://www.yellowbluebus.com/blog/?p=172</guid> <description><![CDATA[Install Sun Java: sudo vi /etc/apt/sources.list deb http://archive.canonical.com/ubuntu maverick partner sudo apt-get updatesudo apt-get install sun-java6-jdk Install Google Chrome unstable: Add this to /etc/apt/sources.list: deb http://dl.google.com/linux/deb/ stable non-free main sudo wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub &#62; google.pubsudo apt-key add google.pub sudo apt-get updatesudo apt-get install google-chrome-unstable]]></description> <content:encoded><![CDATA[<p>Install Sun Java:</p><p><pre class="devcodeblock" title=""><div class="devcodeoverflow"><ol><li>sudo vi /etc/apt/sources.list</li></ol></div></pre></p><p><pre class="devcodeblock" title=""><div class="devcodeoverflow"><ol><li>deb http://archive.canonical.com/ubuntu maverick partner</li></ol></div></pre></p><p><pre class="devcodeblock" title=""><div class="devcodeoverflow"><ol><li>sudo apt-get update</li><li>sudo apt-get install sun-java6-jdk</li></ol></div></pre></p><p>Install Google Chrome unstable:</p><p>Add this to /etc/apt/sources.list:<br /><pre class="devcodeblock" title=""><div class="devcodeoverflow"><ol><li>deb http://dl.google.com/linux/deb/ stable non-free main</li></ol></div></pre></p><p><pre class="devcodeblock" title=""><div class="devcodeoverflow"><ol><li>sudo wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub &gt; google.pub</li><li>sudo apt-key add google.pub </li><li>sudo apt-get update</li><li>sudo apt-get install google-chrome-unstable</li></ol></div></pre></p> ]]></content:encoded> <wfw:commentRss>http://www.yellowbluebus.com/blog/2011/06/26/short-list-of-how-tos-for-new-linux-installation/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>SOLVED: Save Hudson configs to Subversion. Automatically.</title><link>http://www.yellowbluebus.com/blog/2010/10/13/solved-save-hudson-configs-to-subversion-automatically/</link> <comments>http://www.yellowbluebus.com/blog/2010/10/13/solved-save-hudson-configs-to-subversion-automatically/#comments</comments> <pubDate>Wed, 13 Oct 2010 07:51:41 +0000</pubDate> <dc:creator>aleksey</dc:creator> <category><![CDATA[continuous integration]]></category> <category><![CDATA[howto]]></category> <category><![CDATA[hudson]]></category> <category><![CDATA[ideas]]></category> <category><![CDATA[software]]></category> <category><![CDATA[solved]]></category><guid isPermaLink="false">http://www.yellowbluebus.com/blog/?p=167</guid> <description><![CDATA[I decided to save Hudson configs to Subversion repository just in case something goes wrong with the server later and would need to restore all projects. A bit of googling first, found that there are plugins to to a backup of workplaces and configs. But why would I need to have them? I am on <a href='http://www.yellowbluebus.com/blog/2010/10/13/solved-save-hudson-configs-to-subversion-automatically/'>[...]</a>]]></description> <content:encoded><![CDATA[<p>I decided to save Hudson configs to Subversion repository just in case something goes wrong with the server later and would need to restore all projects. A bit of googling first, found that there are plugins to to a backup of workplaces and configs. But why would I need to have them? I am on Solaris, so I can create the same by my own hands. Here are my requirements:</p><ol><li>Backup should be a job within Hudson &#8211; since Hudson is a best cron you could find and I already have it</li><li>Backup should automatically discover added jobs and add then into Subversion &#8211; thus I will forget about it forever, no maintenance required</li></ol><p>Simples! So I created a custom build job within Hudson, pointed it to a Subversion location, where I will store backups and backup shell script, which will gather all Hudson configs and deal with Subversion. I told Hudson that I don&#8217;t want to create subfolder for a project within its workplace. Then I set to execute script this way: <code> ${WORKPLACE}/hudsonbackup.sh </code>Here is the script itself:</p><p><pre class="devcodeblock" title=""><div class="devcodeoverflow"><ol><li>#!/bin/bash</li><li>&nbsp;</li><li>SRC_FOLDER=$<span class="br0">&#123;</span>WORKSPACE<span class="br0">&#125;</span></li><li>SVN_PARAMS=&quot;--config-dir /.subversion/ --non-interactive --trust-server-cert --username f_tc_ci1 --password *****&quot;</li><li>SVN_COMMAND=&quot;/opt/csw/bin/svn&quot;</li><li>JOBS=`ls -al /.hudson/jobs/|grep -v job1|grep -v job2|awk ' NR&amp;gt;<span style="">3</span> <span class="br0">&#123;</span>print $<span style="">9</span><span class="br0">&#125;</span>'`</li><li>&nbsp;</li><li>CURR_FOLDER=`pwd`</li><li>&nbsp;</li><li>echo &quot;Copying Hudson configs&quot;</li><li>cp /.hudson/*.xml $<span class="br0">&#123;</span>SRC_FOLDER<span class="br0">&#125;</span></li><li>echo &quot;Done.&quot;</li><li>&nbsp;</li><li>cd $<span class="br0">&#123;</span>SRC_FOLDER<span class="br0">&#125;</span></li><li>&nbsp;</li><li>echo &quot;Processing Hudson jobs&quot;</li><li>for JOB in $<span class="br0">&#123;</span>JOBS<span class="br0">&#125;</span></li><li>do</li><li>&nbsp;&nbsp;echo &quot;Processing $<span class="br0">&#123;</span>JOB<span class="br0">&#125;</span>&quot;</li><li>&nbsp;&nbsp;if <span class="br0">&#91;</span> ! -e $<span class="br0">&#123;</span>JOB<span class="br0">&#125;</span> <span class="br0">&#93;</span></li><li>&nbsp;&nbsp;then</li><li>&nbsp;&nbsp;&nbsp;&nbsp;echo &quot;New job. Creating folder and adding it to SVN&quot;</li><li>&nbsp;&nbsp;&nbsp;&nbsp;mkdir&nbsp;&nbsp;$<span class="br0">&#123;</span>JOB<span class="br0">&#125;</span></li><li>&nbsp;&nbsp;&nbsp;&nbsp;$<span class="br0">&#123;</span>SVN_COMMAND<span class="br0">&#125;</span> add $<span class="br0">&#123;</span>SVN_PARAMS<span class="br0">&#125;</span> $<span class="br0">&#123;</span>JOB<span class="br0">&#125;</span>&nbsp;&nbsp;&nbsp;&nbsp;</li><li>&nbsp;&nbsp;&nbsp;&nbsp;SVN_COMMENT=&quot;$<span class="br0">&#123;</span>SVN_COMMENT<span class="br0">&#125;</span> Added $<span class="br0">&#123;</span>JOB<span class="br0">&#125;</span>&quot;</li><li>&nbsp;&nbsp;fi&nbsp;&nbsp;</li><li>&nbsp;</li><li>&nbsp;&nbsp;echo &quot;Saving $<span class="br0">&#123;</span>JOB<span class="br0">&#125;</span>/config.xml&quot;</li><li>&nbsp;&nbsp;if <span class="br0">&#91;</span> -e $<span class="br0">&#123;</span>JOB<span class="br0">&#125;</span>/.svn <span class="br0">&#93;</span></li><li>&nbsp;&nbsp;then</li><li>&nbsp;&nbsp;&nbsp;&nbsp;if <span class="br0">&#91;</span> -e $<span class="br0">&#123;</span>JOB<span class="br0">&#125;</span>/config.xml <span class="br0">&#93;</span></li><li>&nbsp;&nbsp;&nbsp;&nbsp;then</li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# config.xml already exist - don't need to add it to subversion</li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cp /.hudson/jobs/$<span class="br0">&#123;</span>JOB<span class="br0">&#125;</span>/config.xml $<span class="br0">&#123;</span>JOB<span class="br0">&#125;</span>/</li><li>&nbsp;&nbsp;&nbsp;&nbsp;else</li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo &quot;New job - new config.xml&quot;</li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cp /.hudson/jobs/$<span class="br0">&#123;</span>JOB<span class="br0">&#125;</span>/config.xml $<span class="br0">&#123;</span>JOB<span class="br0">&#125;</span>/</li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$<span class="br0">&#123;</span>SVN_COMMAND<span class="br0">&#125;</span> add $<span class="br0">&#123;</span>SVN_PARAMS<span class="br0">&#125;</span> $<span class="br0">&#123;</span>JOB<span class="br0">&#125;</span>/config.xml</li><li>&nbsp;&nbsp;&nbsp;&nbsp;fi</li><li>&nbsp;&nbsp;else</li><li>&nbsp;&nbsp;&nbsp;&nbsp;echo &quot;Problem creating and adding folder to Subversion&quot;</li><li>&nbsp;&nbsp;&nbsp;&nbsp;exit <span style="">1</span></li><li>&nbsp;&nbsp;fi</li><li>done</li><li>&nbsp;</li><li>echo &quot;Job processing is done. Committing...&quot;</li><li>$<span class="br0">&#123;</span>SVN_COMMAND<span class="br0">&#125;</span> ci $<span class="br0">&#123;</span>SVN_PARAMS<span class="br0">&#125;</span> -m &quot;Config saved by Hudson. $<span class="br0">&#123;</span>SVN_COMMENT<span class="br0">&#125;</span>&quot;</li><li>echo &quot;All done.&quot;</li></ol></div></pre></p><p>Note 1: My Subversion is on HTTPS server with the self-signed certificate, so I have to tell Subversion client to trust it explicitly. Its on line 4. On line 5 I constructed the path to Subversion client because Hudson executing shell scripts with quite limited PATH. Note 2: I need to ignore some jobs, so I added them on line 6. Also on this line I have hardcoded Hudson location (&#8220;/.hudson&#8221;) &#8211; it needs to be changed if your Hudson somewhere else. After all that I set this job to execute daily. It works!</p> ]]></content:encoded> <wfw:commentRss>http://www.yellowbluebus.com/blog/2010/10/13/solved-save-hudson-configs-to-subversion-automatically/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Recursive Linux &#8220;Find Files Containing&#8221;</title><link>http://www.yellowbluebus.com/blog/2010/01/06/recursive-linux-find-files-containing/</link> <comments>http://www.yellowbluebus.com/blog/2010/01/06/recursive-linux-find-files-containing/#comments</comments> <pubDate>Wed, 06 Jan 2010 10:30:35 +0000</pubDate> <dc:creator>aleksey</dc:creator> <category><![CDATA[howto]]></category> <category><![CDATA[solved]]></category> <category><![CDATA[technology]]></category><guid isPermaLink="false">http://www.yellowbluebus.com/blog/?p=164</guid> <description><![CDATA[find . -name "*.ext" -exec grep -i -H -n "texttofind" {} ;]]></description> <content:encoded><![CDATA[<p><code>find . -name "*.ext" -exec grep -i -H -n "texttofind" {} ;</code></p> ]]></content:encoded> <wfw:commentRss>http://www.yellowbluebus.com/blog/2010/01/06/recursive-linux-find-files-containing/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Problem testing Postfix</title><link>http://www.yellowbluebus.com/blog/2009/12/10/problem-testing-postfix/</link> <comments>http://www.yellowbluebus.com/blog/2009/12/10/problem-testing-postfix/#comments</comments> <pubDate>Thu, 10 Dec 2009 10:16:44 +0000</pubDate> <dc:creator>aleksey</dc:creator> <category><![CDATA[problem]]></category> <category><![CDATA[solved]]></category> <category><![CDATA[technology]]></category> <category><![CDATA[cannot write]]></category> <category><![CDATA[config]]></category> <category><![CDATA[howto]]></category> <category><![CDATA[postfix]]></category> <category><![CDATA[vps]]></category><guid isPermaLink="false">http://www.yellowbluebus.com/blog/2009/12/10/problem-testing-postfix/</guid> <description><![CDATA[I am installing Postfix on my unmanaged VPS hosting machine and I am doing it first time ever. I followed the installation manual on Ubuntu site and everything looks all right except one tiny thing: I can’t send email using Telnet. Here is the response: 421 4.3.0 collect: Cannot write ./dfnBA9gfVO030273 (bfcommit, uid=0, gid=111): No <a href='http://www.yellowbluebus.com/blog/2009/12/10/problem-testing-postfix/'>[...]</a>]]></description> <content:encoded><![CDATA[<p>I am installing Postfix on my unmanaged VPS hosting machine and I am doing it first time ever. I followed the installation manual on Ubuntu site and everything looks all right except one tiny thing: I can’t send email using Telnet. Here is the response:</p><p><pre>421 4.3.0 collect: Cannot write ./dfnBA9gfVO030273 (bfcommit, uid=0, gid=111): No such file or directory</pre></p><p>I googled for an answer, but nothing useful came up so I tried to debug the problem myself. By looking into mail logs (/var/log/mail.log, found by examining /etc/syslog.conf) I found following strange response:</p><p><pre> start postfix/master[15758]: fatal: bind 0.0.0.0 port 25: Address already in use</pre></p><p>That means only one thing: there is another process listening on this port. Hmm, what could it be? Sendmail, perhaps. I uninstalled it, according to guides I was using, but it was still running.</p><p>It’s time to stop it and start postfix!</p><p><pre>sudo service sendmail stop

sudo service postfix restart</pre></p><p>&#160;</p><p>Problem solved!</p> ]]></content:encoded> <wfw:commentRss>http://www.yellowbluebus.com/blog/2009/12/10/problem-testing-postfix/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Moved my blog</title><link>http://www.yellowbluebus.com/blog/2009/12/01/moved-my-blog/</link> <comments>http://www.yellowbluebus.com/blog/2009/12/01/moved-my-blog/#comments</comments> <pubDate>Tue, 01 Dec 2009 13:59:36 +0000</pubDate> <dc:creator>aleksey</dc:creator> <category><![CDATA[blogging]]></category> <category><![CDATA[life]]></category> <category><![CDATA[technology]]></category><guid isPermaLink="false">http://www.yellowbluebus.com/blog/2009/12/01/moved-my-blog/</guid> <description><![CDATA[Moved my blog to a cheaper VPS. Also now this blog is served by Lighttpd instead of Apache. Everything seems to be a bit faster!]]></description> <content:encoded><![CDATA[<p>Moved my blog to a cheaper VPS. Also now this blog is served by Lighttpd instead of Apache. Everything seems to be a bit faster!</p> ]]></content:encoded> <wfw:commentRss>http://www.yellowbluebus.com/blog/2009/12/01/moved-my-blog/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Make Home/End/Delete keys work in Solaris bash</title><link>http://www.yellowbluebus.com/blog/2009/06/22/make-homeend-key-work-in-solaris-bash/</link> <comments>http://www.yellowbluebus.com/blog/2009/06/22/make-homeend-key-work-in-solaris-bash/#comments</comments> <pubDate>Mon, 22 Jun 2009 16:14:14 +0000</pubDate> <dc:creator>aleksey</dc:creator> <category><![CDATA[howto]]></category> <category><![CDATA[software]]></category> <category><![CDATA[fix]]></category> <category><![CDATA[keyboard]]></category> <category><![CDATA[solaris]]></category> <category><![CDATA[solved]]></category><guid isPermaLink="false">http://www.yellowbluebus.com/blog/2009/06/22/make-homeend-key-work-in-solaris-bash/</guid> <description><![CDATA[This is most frustrating thing that I experience when I encounter Solaris bash prompt: the Home, End and Delete keyboard keys will not work because for some reason Solaris doesn’t understand them as useful keys. But there is the way to enable those keys! Add following lines to your ~/.bashrc file: # home key bind <a href='http://www.yellowbluebus.com/blog/2009/06/22/make-homeend-key-work-in-solaris-bash/'>[...]</a>]]></description> <content:encoded><![CDATA[<p>This is most frustrating thing that I experience when I encounter Solaris bash prompt: the Home, End and Delete keyboard keys will not work because for some reason Solaris doesn’t understand them as useful keys. But there is the way to enable those keys!</p><p>Add following lines to your ~/.bashrc file:</p><p># home key <br />bind &#8216;&quot;e[1~&quot;:beginning-of-line&#8217; <br /># del key <br />bind &#8216;&quot;e[3~&quot;:delete-char&#8217; <br /># end key <br />bind &#8216;&quot;e[4~&quot;:end-of-line&#8217; <br /># pgup key <br />bind &#8216;&quot;e[5~&quot;:history-search-forward&#8217; <br /># pgdn key <br />bind &#8216;&quot;e[6~&quot;:history-search-backward&#8217;</p><p>Save and source file. Now keys will work as they should.</p> ]]></content:encoded> <wfw:commentRss>http://www.yellowbluebus.com/blog/2009/06/22/make-homeend-key-work-in-solaris-bash/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>VMWare DHCP service wont’start &#8211; SOLVED</title><link>http://www.yellowbluebus.com/blog/2009/05/08/vmware-dhcp-service-wontstart-solved/</link> <comments>http://www.yellowbluebus.com/blog/2009/05/08/vmware-dhcp-service-wontstart-solved/#comments</comments> <pubDate>Fri, 08 May 2009 12:43:22 +0000</pubDate> <dc:creator>aleksey</dc:creator> <category><![CDATA[howto]]></category> <category><![CDATA[java]]></category> <category><![CDATA[problem]]></category> <category><![CDATA[software]]></category> <category><![CDATA[solved]]></category> <category><![CDATA[DHCP]]></category> <category><![CDATA[vmware]]></category><guid isPermaLink="false">http://www.yellowbluebus.com/blog/2009/05/08/vmware-dhcp-service-wontstart-solved/</guid> <description><![CDATA[I use VMWare to run a bunch of different Linux VMs on my home PC, which is running Vista SP1. Today I encountered strange thing: Linux VM won’t get an IP address from VMWare DHCP. I’ve opened VMWare Virtual Networks management console (as Administrator, of course, or it won’t let you make and save any <a href='http://www.yellowbluebus.com/blog/2009/05/08/vmware-dhcp-service-wontstart-solved/'>[...]</a>]]></description> <content:encoded><![CDATA[<p>I use VMWare to run a bunch of different Linux VMs on my home PC, which is running Vista SP1. Today I encountered strange thing: Linux VM won’t get an IP address from VMWare DHCP. I’ve opened VMWare Virtual Networks management console (as Administrator, of course, or it won’t let you make and save any changes) just to find out that DHCP service is not started. I tried to start it from there, but it failed to do so.</p><p>So I went to Vista Services console and tried to start “VMWare DHCP service from there”. Again, failed to start with no explanation, even cryptic one. So I went to Windows Events viewer and there, under Windows Logs-System, I found a lot of messages from VMNetDHCP:</p><p> <span lang="RU"><br /><blockquote><p>The description for Event ID 2 from source VMnetDHCP cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.</p><p>If the event originated on another computer, the display information had to be saved with the event.</p><p>The following information was included with the event:</p><p>Can&#8217;t open C:ProgramDataVMwarevmnetdhcp.conf: Access is denied.</p><p>/ The data is invalid</p><p>the message resource is present but the message is not found in the string/message table</p></blockquote><p>Though the message says that the message is not found, it has enough information to fix the problem.</p><p> So, I’ve taken a look at the security properties for C:ProgramDataVMWare folder and found that SYSTEM account somehow is not in a list of permitted users. The only account, who was permitted to access that folder, was my Windows user account. So I added SYSTEM account with all permissions to this folder, waited when Windows propagated my change to all files and tried to start VMWare DHCP service again. It worked!</span><p>Then I simply restarted network within Linux VM (sudo /etc/init.d/networking restart) and got back to work.</p> ]]></content:encoded> <wfw:commentRss>http://www.yellowbluebus.com/blog/2009/05/08/vmware-dhcp-service-wontstart-solved/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>JBOSS Seam 2.1.1GA on JBOSS AS 5.0.1GA: Table is not mapped</title><link>http://www.yellowbluebus.com/blog/2009/05/07/jboss-seam-211ga-on-jboss-as-501ga-table-is-not-mapped/</link> <comments>http://www.yellowbluebus.com/blog/2009/05/07/jboss-seam-211ga-on-jboss-as-501ga-table-is-not-mapped/#comments</comments> <pubDate>Thu, 07 May 2009 18:37:46 +0000</pubDate> <dc:creator>aleksey</dc:creator> <category><![CDATA[howto]]></category> <category><![CDATA[java]]></category> <category><![CDATA[problem]]></category> <category><![CDATA[software]]></category> <category><![CDATA[solved]]></category> <category><![CDATA["not found"]]></category> <category><![CDATA["not mapped"]]></category> <category><![CDATA[hibernate]]></category> <category><![CDATA[jboss]]></category> <category><![CDATA[seam]]></category> <category><![CDATA[solution]]></category><guid isPermaLink="false">http://www.yellowbluebus.com/blog/2009/05/07/jboss-seam-211ga-on-jboss-as-501ga-table-is-not-mapped/</guid> <description><![CDATA[I created sample JBOSS Seam project in Eclipse and decided to generate entity code from&#160; existing database. It worked fine, but when I try to run it, it shows me that Hibernade is not able to map entity beans to the corresponding tables. The error message is like this: org.hibernate.hql.ast.QuerySyntaxException: &#60;your table&#62; is not mapped <a href='http://www.yellowbluebus.com/blog/2009/05/07/jboss-seam-211ga-on-jboss-as-501ga-table-is-not-mapped/'>[...]</a>]]></description> <content:encoded><![CDATA[<p>I created sample JBOSS Seam project in Eclipse and decided to generate entity code from&#160; existing database. It worked fine, but when I try to run it, it shows me that Hibernade is not able to map entity beans to the corresponding tables. The error message is like this:</p><p><span style="widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; font: 13px arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(0,0,0); word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span"><span style="border-collapse: collapse; font-family: arial; white-space: pre; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px" class="Apple-style-span">org.hibernate.hql.ast.QuerySyntaxException: &lt;your table&gt; is not mapped</span></span></p><p>I spent around three hours trying to read all available information on it, but most of it just useless – it looks like people don’t know whats happening, so they recommend bizarre tricks. Like, for example, having empry seam.settings file in each folder, meh.</p><p>Finally, I found the solution in Seam Jira: <a href="https://jira.jboss.org/jira/browse/JBSEAM-3821"><u><font color="#0066cc">https://jira.jboss.org/jira/browse/JBSEAM-3821</font></u></a></p><p>They rocemmend to to force Hibernate to use Seam’s EntityManager by changing two files:</p><p>1. components.xml</p><blockquote><p>&#160;&#160;&#160; &lt;persistence:entity-manager-factory name=&quot;bookingDatabase&quot; installed=&quot;false&quot;/&gt; <br />&#160;&#160;&#160; &lt;!&#8211; If Seam loads the persistence unit (JBoss 4.x), the EntityManagerFactory will be resolved from #{bookingDatabase}. <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; On JBoss AS 5, the EntityManagerFactory is retrieved from JNDI (the binding occurs during application deployment). &#8211;&gt; <br />&#160;&#160;&#160; &lt;persistence:managed-persistence-context name=&quot;em&quot; auto-create=&quot;true&quot; <br />&#160;&#160;&#160;&#160;&#160;&#160; entity-manager-factory=&quot;#{bookingDatabase}&quot; persistence-unit-jndi-name=&quot;java:/bookingEntityManagerFactory&quot;/&gt;</p></blockquote><p>2. persistence.xml</p><blockquote><p> &lt;!&#8211; Binds the EntityManagerFactory to JNDI where Seam can look it up. <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; This is only relevant when the container automatically loads the persistence unit, as is the case in JBoss AS 5. &#8211;&gt; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;property name=&quot;jboss.entity.manager.factory.jndi.name&quot; value=&quot;java:/bookingEntityManagerFactory&quot;/&gt;</p></blockquote><p>Hope that Google will find that page and the proper solution would be much more easily found!</p> ]]></content:encoded> <wfw:commentRss>http://www.yellowbluebus.com/blog/2009/05/07/jboss-seam-211ga-on-jboss-as-501ga-table-is-not-mapped/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Trying Team Concert build system</title><link>http://www.yellowbluebus.com/blog/2008/10/28/trying-team-concert-build-system/</link> <comments>http://www.yellowbluebus.com/blog/2008/10/28/trying-team-concert-build-system/#comments</comments> <pubDate>Tue, 28 Oct 2008 12:30:55 +0000</pubDate> <dc:creator>aleksey</dc:creator> <category><![CDATA[java]]></category> <category><![CDATA[jazz]]></category> <category><![CDATA[software]]></category><guid isPermaLink="false">http://www.yellowbluebus.com/blog/2008/10/28/trying-team-concert-build-system/</guid> <description><![CDATA[After yesterday’s success in installation of Team Concert, I went through the “Do and Learn” tutorial. The amount of new information and, especially, new views in IDE, is overwhelming! Though the tutorial tries its best to guide through sample project, it would take my time to digest the information. So far, I managed to get <a href='http://www.yellowbluebus.com/blog/2008/10/28/trying-team-concert-build-system/'>[...]</a>]]></description> <content:encoded><![CDATA[<p>After yesterday’s success in installation of Team Concert, I went through the “Do and Learn” tutorial. The amount of new information and, especially, new views in IDE, is overwhelming! Though the tutorial tries its best to guide through sample project, it would take my time to digest the information. So far, I managed to get through it, but have been stuck on building my HelloWorld application.</p><p>The problem is that freshly created build engine, named “HelloWorldEngine”, telling me that Jazz Build Engine is not yet connected to repository. But in another window jbe.exe process is connected and waiting for builds.</p><p>I restarted jbe with –verbose parameter to see what it does, but this resulted in only one additional line to be displayed: “2008-10-28 12:16:42 [Jazz build engine] Not using a proxy to reach <a href="https://localhost:9443/jazz/">https://localhost:9443/jazz/</a>” I would expect it to be more verbose that that. Perhaps it needs to tell me something more about which build engine id it tries to use…</p><p>And build engine id is exactly my problem here. By default jbe is going to use “default” build engine, not my “HelloWorldEngine”. There is parameter, which is not mentioned in tutorial, but mentioned if you try to run jbe.exe:</p><blockquote><p>-engineId &lt;engine id&gt;&#160;&#160; (engine id of a build engine defined in the Jazz repository, default is &quot;default&quot;)</p></blockquote><p>Once I started jbe with proper parameter – my build was fired off.</p><p>And first one was a failure:</p><blockquote><p>com.ibm.team.build.internal.engine.InvalidPropertyValueException: CRRTC3512E: The location &quot;C:javajazzbuildsystembuildengineeclipsefetchedScrumProjectbuild.xml&quot; referenced by property &quot;com.ibm.team.build.ant.buildFile&quot; does not exist.</p></blockquote><p> This is because I named Team Concert project “ScrumProject”, but in Java perspective I followed HelloWorld cue card and named my Java project “HelloWorld”. The build system was puzzled to find it. Team Concert Tutorial says this:</p><blockquote><p>13. In the Build file field, type the following path: <kbd>fetched/projectname/build.xml</kbd>, where <kbd>projectname</kbd> is the name of your Jazz project.</p></blockquote><p>This is not exactly the truth. This should have the name of my Java project.</p><p>So I went and fixed the project name in Ant tab. Requested the build and, voila, it builds!</p><p>Now its time to create new project, which will do something bigger, than printing “Hello, World!”</p> ]]></content:encoded> <wfw:commentRss>http://www.yellowbluebus.com/blog/2008/10/28/trying-team-concert-build-system/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)
Object Caching 658/780 objects using disk

Served from: www.yellowbluebus.com @ 2011-08-07 16:09:58 -->