tag:blogger.com,1999:blog-149229982024-03-18T21:18:50.663-07:00TechnologyHari Mallepallyhttp://www.blogger.com/profile/13263604275213298262noreply@blogger.comBlogger108125tag:blogger.com,1999:blog-14922998.post-67544615428201849102016-02-08T13:29:00.004-08:002016-02-09T12:36:14.567-08:00OpenDayLight Framework information<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<div>
The domain is called SDN (Software Defined Network). Traditionally the networking devices have routing logic and controlling logic as well built into the hardware device(with software built into them). SDN takes away the controlling and additional responsibilities into application layer while the physical network still focus on the core functionality (data forwarding).</div>
</div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<div style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; border: 1px solid rgb(221, 221, 221); color: black; font-family: monospace, Courier; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; padding: 1em; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px;">
<div>
mvn archetype:generate -DarchetypeGroupId=org.opendaylight.controller -DarchetypeArtifactId=opendaylight-startup-archetype -DarchetypeVersion=1.1.0-SNAPSHOT -DarchetypeRepository=<a href="http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/" rel="nofollow" style="background: linear-gradient(transparent, transparent) 100% 50% no-repeat, url("data:image/svg+xml; color: #663366; padding-right: 13px; text-decoration: none;">http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</a>-DarchetypeCatalog=<a href="http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/archetype-catalog.xml" rel="nofollow" style="background: linear-gradient(transparent, transparent) 100% 50% no-repeat, url("data:image/svg+xml; color: #663366; padding-right: 13px; text-decoration: none;">http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/archetype-catalog.xml</a></div>
</div>
</div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<br /></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<div>
<span style="font-size: 16px;"><span style="font-family: "calibri" , "arial" , "helvetica" , sans-serif , "apple color emoji" , "segoe ui emoji" , "notocoloremoji" , "segoe ui symbol" , "android emoji" , "emojisymbols";"><a href="https://wiki.opendaylight.org/view/Controller_Core_Functionality_Tutorials:Main"></a><a href="https://wiki.opendaylight.org/view/Controller_Core_Functionality_Tutorials:Main">https://wiki.opendaylight.org/view/Controller_Core_Functionality_Tutorials:Main</a></span></span></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<a href="https://wiki.opendaylight.org/view/Events:ODL_Summit_Tutorials">https://wiki.opendaylight.org/view/Events:ODL_Summit_Tutorials</a> </div>
</div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; margin-bottom: 20px; orphans: auto; overflow: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; width: 979px; word-spacing: 0px;">
<table cellspacing="0" style="background-color: white; border-bottom-color: rgb(200, 200, 200); border-bottom-style: dotted; border-bottom-width: 1px; border-top-color: rgb(200, 200, 200); border-top-style: dotted; border-top-width: 1px; margin-top: 20px; overflow: auto; padding-bottom: 20px; padding-top: 20px; position: relative; width: 881px;"><tbody>
<tr style="border-spacing: 0px;" valign="top"><td colspan="2" style="display: table-cell; padding: 0px; position: relative; vertical-align: top; width: 100%;"><div>
<a href="https://www.blogger.com/null" style="background-color: #e6f2fa; color: #666666; cursor: pointer; display: inline-block; float: right; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; font-size: 10px; font-weight: normal; padding: 8px; position: relative;"></a></div>
<div style="color: #0072c6; font-family: wf_segoe-ui_light, 'Segoe UI Light', 'Segoe WP Light', 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; font-size: 21px; font-weight: normal; top: 0px;">
<a href="https://wiki.opendaylight.org/view/Controller_Core_Functionality_Tutorials:Main" style="text-decoration: none;" target="_blank">Controller Core Functionality Tutorials:Main ...</a></div>
<div style="color: #666666; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; font-size: 14px; font-weight: normal; margin: 10px 0px 16px;">
wiki.opendaylight.org</div>
<div style="color: #666666; display: block; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; font-size: 14px; font-weight: normal; max-height: 100px; overflow: hidden;">
CCFT Facts: Project Creation Date: January 8th, 2015 Lifecycle State: Incubation Primary Contact: Keith Burns Project Lead: Tom Pantelis ...</div>
</td></tr>
</tbody></table>
</div>
<br style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;" />
<br />
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<br /></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<a href="https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL:MD-SAL_Document_Review:Architecture"></a><a href="https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL:MD-SAL_Document_Review:Architecture">https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL:MD-SAL_Document_Review:Architecture</a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<br /></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
You can download VM that has eclipse and other stuff installed already. This is a ubuntu VM. </div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<a href="http://sdnhub.org/tutorials/sdn-tutorial-vm/"></a><a href="http://sdnhub.org/tutorials/sdn-tutorial-vm/">http://sdnhub.org/tutorials/sdn-tutorial-vm/</a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<span style="font-family: "verdana" , sans-serif , "arial" , "trebuchet ms" , "times new roman"; font-size: x-small;">To </span><span style="font-family: "verdana" , sans-serif , "arial" , "trebuchet ms" , "times new roman"; font-size: x-small;"><strong>import</strong></span><span style="font-family: "verdana" , sans-serif , "arial" , "trebuchet ms" , "times new roman"; font-size: x-small;"> an appliance in one of the above formats, simply double-click on the OVF/OVA file.</span><sup style="font-family: Verdana, sans-serif, Arial, 'Trebuchet MS', 'Times New Roman';">[<a href="https://www.virtualbox.org/manual/ch01.html#ftn.idp46730489751296" name="idp46730489751296">7</a>]</sup><span style="font-family: "verdana" , sans-serif , "arial" , "trebuchet ms" , "times new roman"; font-size: x-small;"> Alternatively, select "File" -> "Import appliance" from the Manager window. In the file dialog that comes up, navigate to the file with either the </span><code>.ovf</code><span style="font-family: "verdana" , sans-serif , "arial" , "trebuchet ms" , "times new roman"; font-size: x-small;"> or the </span><code>.ova</code><span style="font-family: "verdana" , sans-serif , "arial" , "trebuchet ms" , "times new roman"; font-size: x-small;"> file extension.</span></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<span style="font-family: "verdana" , sans-serif , "arial" , "trebuchet ms" , "times new roman";"><br /></span></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<a href="https://www.virtualbox.org/manual/ch01.html">https://www.virtualbox.org/manual/ch01.html</a> </div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<span style="font-family: "verdana" , sans-serif , "arial" , "trebuchet ms" , "times new roman";"><br /></span></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<br /></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<a href="https://wiki.opendaylight.org/view/Main_Page"></a><a href="https://wiki.opendaylight.org/view/Main_Page">https://wiki.opendaylight.org/view/Main_Page</a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<br /></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<a href="https://github.com/opendaylight/coretutorials"></a><a href="https://github.com/opendaylight/coretutorials">https://github.com/opendaylight/coretutorials</a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<br /></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<br /></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<a href="https://wiki.opendaylight.org/view/GettingStarted:Development_Environment_Setup"></a><a href="https://wiki.opendaylight.org/view/GettingStarted:Development_Environment_Setup">https://wiki.opendaylight.org/view/GettingStarted:Development_Environment_Setup</a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<br /></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
Documents from <a href="https://www.opendaylight.org/downloads">https://www.opendaylight.org/downloads</a> </div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<br /></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
Java</div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<a href="http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html"></a><a href="http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html" title="http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html Ctrl+Click or tap to follow the link">http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html</a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<br /></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<br /></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<br /></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<br /></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
We don't need to setup system by ourself in the beginning, the VM image from the site allows you to download ubuntu desktop version image.</div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<br /></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
since i have less RAM, I needed to modify the setting of the VM to 1.2G RAM from its 2GB ram (TOtal i have is 4GB running win 7)</div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<br /></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Calibri, Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
YangTools</div>
<br />
<div style="background-color: white; text-indent: 0px;">
<div style="font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px;">
<span style="font-size: 16px;"><span style="font-family: "calibri" , "arial" , "helvetica" , sans-serif , "apple color emoji" , "segoe ui emoji" , "notocoloremoji" , "segoe ui symbol" , "android emoji" , "emojisymbols";"><a href="http://www.yang-central.org/twiki/bin/view/Main/YangTools"></a><a href="http://www.yang-central.org/twiki/bin/view/Main/YangTools">http://www.yang-central.org/twiki/bin/view/Main/YangTools</a></span></span></div>
<div style="font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px;">
<span style="font-size: 16px;"><span style="font-family: "calibri" , "arial" , "helvetica" , sans-serif , "apple color emoji" , "segoe ui emoji" , "notocoloremoji" , "segoe ui symbol" , "android emoji" , "emojisymbols";"><br /></span></span></div>
<div style="font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px;">
<span style="font-size: 16px;"><span style="font-family: "calibri" , "arial" , "helvetica" , sans-serif , "apple color emoji" , "segoe ui emoji" , "notocoloremoji" , "segoe ui symbol" , "android emoji" , "emojisymbols";"><br /></span></span></div>
<div style="font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px;">
<span style="font-size: 16px;"><span style="font-family: "calibri" , "arial" , "helvetica" , sans-serif , "apple color emoji" , "segoe ui emoji" , "notocoloremoji" , "segoe ui symbol" , "android emoji" , "emojisymbols";">In case if you have any difficulty with maven version (ubuntu has 3.0.5 as default where as ODL needs 3.3.1 onwards, so we can download the maven zip file and unzip and then link it to mvn so that it ODL compilation will not have any problem.</span></span></div>
<div style="font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px;">
<span style="font-size: 16px;"><span style="font-family: "calibri" , "arial" , "helvetica" , sans-serif , "apple color emoji" , "segoe ui emoji" , "notocoloremoji" , "segoe ui symbol" , "android emoji" , "emojisymbols";"><br /></span></span></div>
<div style="font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px;">
<span style="font-size: 16px;"><span style="font-family: "calibri" , "arial" , "helvetica" , sans-serif , "apple color emoji" , "segoe ui emoji" , "notocoloremoji" , "segoe ui symbol" , "android emoji" , "emojisymbols";"><br /></span></span></div>
<div align="left" style="font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px;">
<span style="color: #010101; font-family: "calibri";"><span style="font-size: 11pt;"> sudo apt-get remove maven</span></span></div>
<div align="left" style="font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px;">
<span style="color: #010101; font-family: "calibri";"><span style="font-size: 11pt;"> sudo mkdir -p /opt/maven</span></span></div>
<div align="left" style="font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px;">
<span style="color: #010101; font-family: "calibri";"><span style="font-size: 11pt;"> cd /opt/maven</span></span></div>
<div align="left" style="font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px;">
<span style="color: #010101; font-family: "calibri";"><span style="font-size: 11pt;"> sudo wget</span></span> <a href="http://mirror.tcpdiag.net/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz"><span style="color: #0563c1; font-family: "calibri";"><span style="font-size: 11pt;"><u>http://mirror.tcpdiag.net/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz</u></span></span></a></div>
<div align="left" style="font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px;">
<span style="color: #010101; font-family: "calibri";"><span style="font-size: 11pt;"> sudo tar xvzf apache-maven-3.3.9-bin.tar.gz</span></span></div>
<div align="left">
<div style="font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px;">
<span style="color: #010101; font-family: "calibri";"><span style="font-size: 11pt;"> sudo ln -s /opt/maven/apache-maven-3.3.9/bin/mvn /usr/local/bin/mvn</span></span></div>
<div style="font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px;">
<span style="color: #010101; font-family: "calibri";"><span style="font-size: 11pt;"><br /></span></span></div>
<div style="font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px;">
<span style="color: #010101; font-family: "calibri";"><span style="font-size: 11pt;"><br /></span></span></div>
<div style="font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px;">
<span style="color: #010101; font-family: "calibri";"><span style="font-size: 11pt;"><br /></span></span></div>
<h2 style="font-style: normal; font-variant: normal; letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px;">
<span style="color: #010101; font-family: "calibri";"><span style="font-size: 11pt;">Networking concepts</span></span></h2>
<div>
<span style="color: #010101; font-family: "calibri";"><span style="font-size: 11pt;"><br /></span></span></div>
<div>
<span style="color: #010101; font-family: calibri;"><span style="font-size: 14.6667px;">SDN terminology:</span></span></div>
<div>
<span style="color: #010101; font-family: calibri;"><span style="font-size: 14.6667px;">http://www.cse.wustl.edu/~jain/cse570-13/ftp/m_16sdn.pdf</span></span></div>
<div>
<span style="color: #010101; font-family: calibri;"><span style="font-size: 14.6667px;"><br /></span></span></div>
<div>
<span style="color: #010101; font-family: calibri;"><span style="font-size: 14.6667px;">SDN for dummies, simple book</span></span></div>
<div>
<span style="color: #010101; font-family: calibri;"><span style="font-size: 14.6667px;">http://www.cisco.com/c/dam/en/us/solutions/collateral/data-center-virtualization/application-centric-infrastructure/sdnfordummies.pdf</span></span></div>
<div>
<span style="color: #010101; font-family: calibri;"><span style="font-size: 14.6667px;"><br /></span></span></div>
<div>
<span style="color: #010101; font-family: calibri;"><span style="font-size: 14.6667px;"><br /></span></span></div>
<div>
<span style="color: #010101; font-family: "calibri";"><span style="color: #010101; font-family: "calibri"; font-size: 14.6667px;">http://events.linuxfoundation.org/sites/events/files/slides/odlsummit15_dmitriy_mirantis_081215.pdf </span></span></div>
<div>
<span style="color: #010101; font-family: "calibri";"><span style="color: #010101; font-family: "calibri"; font-size: 14.6667px;"><br /></span></span></div>
<div>
<span style="color: #010101; font-family: "calibri";"><span style="color: #010101; font-family: "calibri"; font-size: 14.6667px;">http://www.fujitsu.com/global/documents/about/resources/publications/fstj/archives/vol49-3/paper07.pdf</span></span></div>
<div>
<span style="color: #010101; font-family: "calibri";"><span style="color: #010101; font-family: "calibri"; font-size: 14.6667px;"><br /></span></span></div>
<div>
<span style="color: #010101; font-family: "calibri";"><span style="color: #010101; font-family: "calibri"; font-size: 14.6667px;">https://www.infinera.com/wp-content/uploads/2015/07/Infinera_TP_Paving_the_Path_to_Multi-_Layer_Networking_via_SDN.pdf</span></span></div>
<div>
<span style="color: #010101; font-family: "calibri";"><span style="color: #010101; font-family: "calibri"; font-size: 14.6667px;"><br /></span></span></div>
</div>
</div>
</div>
Hari Mallepallyhttp://www.blogger.com/profile/13263604275213298262noreply@blogger.com0tag:blogger.com,1999:blog-14922998.post-32984297414468017662016-02-06T13:59:00.000-08:002016-02-06T13:59:56.180-08:00 java.lang.String out of START_OBJECT token<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="p1">
If you are developing new spring rest services and encounter the following issue</div>
<div class="p1">
<br /></div>
<div class="p1">
<br /></div>
<div class="p1">
Feb 06, 2016 10:17:05 AM org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver handleHttpMessageNotReadable</div>
<div class="p1">
WARNING: Failed to read HTTP message: <span class="s1">org.springframework.http.converter.HttpMessageNotReadableException</span>: Could not read document: Can not deserialize instance of java.lang.String out of START_OBJECT token</div>
<div class="p1">
at [Source: java.io.PushbackInputStream@353e55b8; line: 1, column: 1]; nested exception is <span class="s1">com.fasterxml.jackson.databind.JsonMappingException</span>: Can not deserialize instance of java.lang.String out of START_OBJECT token</div>
<br />
<div class="p1">
at [Source: java.io.PushbackInputStream@353e55b8; line: 1, column: 1]</div>
<div class="p1">
<br /></div>
<div class="p1">
<br /></div>
<blockquote class="tr_bq">
<blockquote class="tr_bq">
{</blockquote>
<blockquote class="tr_bq">
"user": {</blockquote>
<blockquote class="tr_bq">
"organizationId": 1,</blockquote>
<blockquote class="tr_bq">
"roleId": 1,</blockquote>
<blockquote class="tr_bq">
"statusId": 2,</blockquote>
<blockquote class="tr_bq">
"email": "test@test.com,</blockquote>
<blockquote class="tr_bq">
"password": "admin"</blockquote>
<blockquote class="tr_bq">
},</blockquote>
<blockquote class="tr_bq">
"person": {</blockquote>
<blockquote class="tr_bq">
"firstName": "",</blockquote>
<blockquote class="tr_bq">
"lastName": "",</blockquote>
<blockquote class="tr_bq">
"phone": "",</blockquote>
<blockquote class="tr_bq">
"mobile": ""</blockquote>
<blockquote class="tr_bq">
}</blockquote>
<blockquote class="tr_bq">
}</blockquote>
</blockquote>
<br />
<br />
The resolutions could be:<br />
<br />
<ul>
<li>Your JSON request is invalid, check if it is complete and correct. </li>
<li>You configured the spring mvc correctly.</li>
<li>You have required POM depedencies configured.</li>
<li>Your annotations are correct. @RequestBody is an important tag. </li>
</ul>
<br />
<div class="p1">
<span class="Apple-tab-span"></span><span class="s1"> @RequestMapping</span>(method = RequestMethod.<span class="s2">POST</span>,value = <span class="s3">"/test"</span>)</div>
<blockquote class="tr_bq">
<ul>
<li>
<div class="p1">
<span class="Apple-tab-span"> </span><span class="s4">public</span> Response testData(<span class="s1">@RequestBody</span> TestData <span class="s5">request</span>){</div>
<div class="p1">
<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>Response <span class="s5">response</span> = Response.positiveResponse();</div>
<div class="p2">
<span class="s6"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></span><span class="s4">return</span><span class="s6"> </span>response<span class="s6">;</span></div>
<div class="p1">
<span class="Apple-tab-span"> </span>}</div>
</li>
</ul>
</blockquote>
</div>
Hari Mallepallyhttp://www.blogger.com/profile/13263604275213298262noreply@blogger.com0tag:blogger.com,1999:blog-14922998.post-86106981688337552532016-01-27T10:54:00.003-08:002016-01-28T10:53:57.715-08:00Configuring tomcat7 with SSL<div dir="ltr" style="text-align: left;" trbidi="on">
Recording steps that worked for me. the certificate was created using <a href="https://letsencrypt.org/">letsencrypt</a><br />
<br />
<h3 style="text-align: left;">
<b><i><br /></i></b><b><i>The generated files in the directory with keys are :</i></b></h3>
<br />
<b>cert.pem chain.pem fullchain.pem privkey.pem </b><br />
<br />
now, using openSSL converted the certificate to p12 format.<br />
<br />
<b>openssl pkcs12 -export -in cert.pem -inkey privkey.pem -out cert_and_key.p12 -name tomcat -CAfile chain.pem -caname root</b><br />
<b><br /></b>
<b>(it will prompt you to input password, please provide, i found it not working while importing to java keystore without password to the p12 file)</b><br />
<br />
<h3 style="text-align: left;">
<i>Import to java keystore</i></h3>
Let us import it into a keystore file (KeyStore.jks), please make sure you provide the same password chosen in the previous step. Also it will prompt for keystore password, please provide one.<br />
<br />
<b> keytool -importkeystore -deststorepass CHANGEIT <changeit> -destkeypass CHANGEIT<changeit>-destkeystore KeyStore.jks -srckeystore cert_and_key.p12 -srcstoretype PKCS12 -alias tomcat</changeit></changeit></b><br />
Enter source keystore password: <br />
<br />
Not sure if its mandatory but needed to execute the following too.<br />
<br />
<b>keytool -import -trustcacerts -alias root -file chain.pem -keystore KeyStore.jks</b><br />
<b><br /></b>
<br />
<h3 style="text-align: left;">
<b><i>Tomcat configuration</i></b></h3>
<b>Now</b><br />
<b><br /></b>
<b>Let us configure the tomcat server.com (in /etc/tomcat7/server.xml) add this after the http connector (80 port).</b><br />
<b><br /></b>
<b><br />
<Connector port="443" protocol="org.apache.coyote.http11.Http11Protocol"
maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="/usr/share/tomcat7/certs/KeyStore.jks" keystorePass="CHANGEIT"
keyAlias="tomcat" keyPass="CHANGEIT"/ >
</b><br />
<b><br /></b>
Please make sure you are providing the path and the passwords specific to your application server. the keystore (.jks file) should be in accessible location. </div>
Hari Mallepallyhttp://www.blogger.com/profile/13263604275213298262noreply@blogger.com0tag:blogger.com,1999:blog-14922998.post-4925355463182126852016-01-14T16:44:00.004-08:002016-01-27T11:32:42.147-08:00Virtual Box Ubuntu configuring and connecting through ssh from host machine<div dir="ltr" style="text-align: left;" trbidi="on">
<table style="background-color: white; border-collapse: collapse; border-spacing: 0px; border: 0px; color: #222426; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 13px; line-height: 16.9px; margin: 0px; padding: 0px;"><tbody style="border: 0px; margin: 0px; padding: 0px;">
<tr style="border: 0px; margin: 0px; padding: 0px;"><td class="answercell" style="border: 0px; margin: 0px; padding: 0px; vertical-align: top;"><br /></td><td class="votecell" style="border: 0px; margin: 0px; padding: 0px 15px 0px 0px; vertical-align: top;"><br /></td><td class="answercell" style="border: 0px; margin: 0px; padding: 0px; vertical-align: top;"><div class="post-text" itemprop="text" style="border: 0px; font-size: 15px; line-height: 1.3; margin: 0px 0px 5px; padding: 0px; width: 660px; word-wrap: break-word;">
<div style="border: 0px; clear: both; margin-bottom: 1em; padding: 0px;">
The best way to login to a guest Linux VirtualBox VM is port forwarding.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEga-YJs7B_dGrZZwIGE3-zYCBURLRqAv_mnJZuiQ7Vfmc4xlzQdgH7D-GdCdX_qyHp7fZA7tYEm5WGNeedX-L2Spqm1h9VsUYTiXNii20Cin1uKtsxcp4NVEgGOVtAQglXWCSFB/s1600/Screen+Shot+2016-01-14+at+4.50.00+PM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="318" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEga-YJs7B_dGrZZwIGE3-zYCBURLRqAv_mnJZuiQ7Vfmc4xlzQdgH7D-GdCdX_qyHp7fZA7tYEm5WGNeedX-L2Spqm1h9VsUYTiXNii20Cin1uKtsxcp4NVEgGOVtAQglXWCSFB/s400/Screen+Shot+2016-01-14+at+4.50.00+PM.png" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHVur0PUVpBDkR481ibBAa2cDINh9dHxDq3co7DL7Fj6uj8UcqEQ_qnSe7AYeKGxAOCFyyIxWcDBNnB9DiPhPjKVitHie5bAiYlOiIGEbTXZqVqDla8d0e9BWs6M7wXg4JvD5-/s1600/Screen+Shot+2016-01-14+at+4.50.12+PM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="317" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHVur0PUVpBDkR481ibBAa2cDINh9dHxDq3co7DL7Fj6uj8UcqEQ_qnSe7AYeKGxAOCFyyIxWcDBNnB9DiPhPjKVitHie5bAiYlOiIGEbTXZqVqDla8d0e9BWs6M7wXg4JvD5-/s400/Screen+Shot+2016-01-14+at+4.50.12+PM.png" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<br />
By default, you should have one interface already which is using <a href="http://en.wikipedia.org/wiki/Network_address_translation" style="border: 0px; color: #005999; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;">NAT</a>. Then go to the <em style="border: 0px; margin: 0px; padding: 0px;">Network</em> settings and click the <em style="border: 0px; margin: 0px; padding: 0px;">Port Forwarding</em> button. Add a new <em style="border: 0px; margin: 0px; padding: 0px;">Rule</em>:</div>
<blockquote style="background-color: cornsilk; border-left-color: rgb(255, 235, 142); border-left-style: solid; border-width: 0px 0px 0px 2px; margin: 0px 0px 10px; padding: 10px; quotes: none;">
<div style="border: 0px; clear: both; padding: 0px;">
Host port 3022, guest port 22, name ssh, other left blank.</div>
</blockquote>
<div style="border: 0px; clear: both; margin-bottom: 1em; padding: 0px;">
or from command line</div>
<pre class="lang-bash prettyprint prettyprinted" style="background-color: #eeeeee; border: 0px; color: #393318; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;"><code style="border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;"><span class="typ" style="border: 0px; color: #2b91af; margin: 0px; padding: 0px;">VBoxManage</span><span class="pln" style="border: 0px; color: black; margin: 0px; padding: 0px;"> modifyvm myserver </span><span class="pun" style="border: 0px; color: black; margin: 0px; padding: 0px;">--</span><span class="pln" style="border: 0px; color: black; margin: 0px; padding: 0px;">natpf1 </span><span class="str" style="border: 0px; color: maroon; margin: 0px; padding: 0px;">"ssh,tcp,,3022,,22"</span></code></pre>
<div style="border: 0px; clear: both; margin-bottom: 1em; padding: 0px;">
where '<b>myserver</b>' is the name of the created VM. Check the added rules:</div>
<pre class="lang-bash prettyprint prettyprinted" style="background-color: #eeeeee; border: 0px; color: #393318; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;"><code style="border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;"><span class="typ" style="border: 0px; color: #2b91af; margin: 0px; padding: 0px;">VBoxManage</span><span class="pln" style="border: 0px; color: black; margin: 0px; padding: 0px;"> showvminfo myserver </span><span class="pun" style="border: 0px; color: black; margin: 0px; padding: 0px;">|</span><span class="pln" style="border: 0px; color: black; margin: 0px; padding: 0px;"> grep </span><span class="str" style="border: 0px; color: maroon; margin: 0px; padding: 0px;">'Rule'</span></code></pre>
<div style="border: 0px; clear: both; margin-bottom: 1em; padding: 0px;">
That's all! Please be sure you don't forget to install an <a href="http://en.wikipedia.org/wiki/Secure_Shell" style="border: 0px; color: #005999; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none;">SSH</a> server:</div>
<pre class="lang-bash prettyprint prettyprinted" style="background-color: #eeeeee; border: 0px; color: #393318; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;"><code style="border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;"><span class="pln" style="border: 0px; color: black; margin: 0px; padding: 0px;">sudo apt</span><span class="pun" style="border: 0px; color: black; margin: 0px; padding: 0px;">-</span><span class="pln" style="border: 0px; color: black; margin: 0px; padding: 0px;">get install openssh</span><span class="pun" style="border: 0px; color: black; margin: 0px; padding: 0px;">-</span><span class="pln" style="border: 0px; color: black; margin: 0px; padding: 0px;">server</span></code></pre>
<div style="border: 0px; clear: both; margin-bottom: 1em; padding: 0px;">
To SSH into the guest VM, write:</div>
<pre class="lang-bash prettyprint prettyprinted" style="background-color: #eeeeee; border: 0px; color: #393318; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;"><code style="border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;"><span class="pln" style="border: 0px; color: black; margin: 0px; padding: 0px;">ssh </span><span class="pun" style="border: 0px; color: black; margin: 0px; padding: 0px;">-</span><span class="pln" style="border: 0px; color: black; margin: 0px; padding: 0px;">p </span><span class="lit" style="border: 0px; color: maroon; margin: 0px; padding: 0px;">3022</span><span class="pln" style="border: 0px; color: black; margin: 0px; padding: 0px;"> user@127</span><span class="pun" style="border: 0px; color: black; margin: 0px; padding: 0px;">.</span><span class="lit" style="border: 0px; color: maroon; margin: 0px; padding: 0px;">0.0</span><span class="pun" style="border: 0px; color: black; margin: 0px; padding: 0px;">.</span><span class="lit" style="border: 0px; color: maroon; margin: 0px; padding: 0px;">1</span></code></pre>
<div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5H-ifzwvb55F4jEXC0_gtb_VRCZT9nSQ-hxJJcsmojjEUZjI5pqXuS41Y-1MS1_I3FuHOaSgObQItg2Vc6EG9srWGMRCTm-6fG_O9p-iCmfelRU7HlUWkripffyX0LLQHW3Z8/s1600/Screen+Shot+2016-01-14+at+5.02.08+PM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="275" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5H-ifzwvb55F4jEXC0_gtb_VRCZT9nSQ-hxJJcsmojjEUZjI5pqXuS41Y-1MS1_I3FuHOaSgObQItg2Vc6EG9srWGMRCTm-6fG_O9p-iCmfelRU7HlUWkripffyX0LLQHW3Z8/s400/Screen+Shot+2016-01-14+at+5.02.08+PM.png" width="400" /></a></div>
<code style="border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;"><span class="lit" style="border: 0px; color: maroon; margin: 0px; padding: 0px;"><br /></span></code></div>
</div>
</td></tr>
</tbody></table>
</div>
Hari Mallepallyhttp://www.blogger.com/profile/13263604275213298262noreply@blogger.com0tag:blogger.com,1999:blog-14922998.post-76495224986211436662013-01-21T07:25:00.003-08:002013-01-21T07:28:23.613-08:00Google code password<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Often some our our students have problem in understanding which password to be used for committing changes to a google code project. Here is how you can get your google code generated password. You can regenerate if you want to. Remember this password is different from your regular gmail password and shouldn't be confused with. Hope This clarifies confusion around password to google code.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgChjGxtbDk09SSp1HxjlPyGDpgeTc39uFYqNbzwDcex_DAIdPlz96tJoApYOOmIdXACTJHrYkFw-5Dnk9M7EDUpgUCXm166jMofqD4FPMx8cJ8G9j2XppFb_DJ33kXYvJla6Z7/s1600/How+to+commit+svn+code.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="250" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgChjGxtbDk09SSp1HxjlPyGDpgeTc39uFYqNbzwDcex_DAIdPlz96tJoApYOOmIdXACTJHrYkFw-5Dnk9M7EDUpgUCXm166jMofqD4FPMx8cJ8G9j2XppFb_DJ33kXYvJla6Z7/s400/How+to+commit+svn+code.png" width="400" /></a></div>
<br />
<br />
<br />
<br /></div>
Hari Mallepallyhttp://www.blogger.com/profile/13263604275213298262noreply@blogger.com0tag:blogger.com,1999:blog-14922998.post-77015344956674459032011-09-22T23:05:00.000-07:002011-09-22T23:05:57.767-07:00Planning for failure<div dir="ltr" style="text-align: left;" trbidi="on">
Process in IT companies looks a very ambiguous word. What looks fine in one company may not be acceptable in another company. I come across this site http://www.planningforfailure.com which compared the agile/Scrum with Kanban/Lean startup. It is an interesting read. Also the links mentioned in the blog are good. <br />
<br />
I also like the definition of a hacker. <br />"Someone who thinks outside the box. Someone who discards conventional
wisdom and does something else instead. Someone who looks at the edge
and wonders what's beyond. Someone who sees a set of rules and wonders
what happens if you don't follow them. <span><em>- Bruce
Schneie" </em></span><br />
<br />
<span><em>from http://www.thehackerchickblog.com/ </em></span> <br />
<br />
<br />
<br /></div>
Hari Mallepallyhttp://www.blogger.com/profile/13263604275213298262noreply@blogger.com0tag:blogger.com,1999:blog-14922998.post-86720177993370980532011-02-05T05:51:00.000-08:002011-02-05T05:59:17.803-08:00Debug maven application with jetty pluginHave the jetty plugin configured.<br /> <plugin><br /> <groupId>org.mortbay.jetty</groupId><br /> <artifactId>maven-jetty-plugin</artifactId><br /> <version>6.1.12</version><br /> <configuration><br /> <scanIntervalSeconds>10</scanIntervalSeconds><br /> <connectors><br /> <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector"><br /> <port>8888</port><br /> <maxIdleTime>60000</maxIdleTime><br /> </connector><br /> </connectors><br /> </configuration><br /> </plugin><br /><br />After that It’s time to configure eclipse for debugging the web app by selecting the Run > Debug … from the menu<br /># Set Main Class to "org.codehaus.classworlds.Launcher"<br /><br />Go to the argument tab:<br /># Set Program arguments to "jetty:run"<br /># Set VM arguments to "-Xmx512M -Dclassworlds.conf=[MAVEN_HOME]/bin/m2.conf -Dmaven.home=[MAVEN_HOME]"<br />(Replace MAVEN_HOME with the location of maven on your system)<br /><br />Go to the classpath tab:<br /># remove the application from the user entries<br /># add the "[MAVEN_HOME]/lib/classworlds.jar" to the user entries. in case if the classworlds.jar have version number in the name, please include. Essentially we need to add the correct jar to the classpath<br /><br />Go to the source tab:<br /># add the current project to debug<br /><br />Now you can start debugging your application like you do it always<br /><br />It is very interesting to set the –o option to the maven command in order to accelerate the fix/debug process.Hari Mallepallyhttp://www.blogger.com/profile/13263604275213298262noreply@blogger.com1tag:blogger.com,1999:blog-14922998.post-79863842773304294912010-08-02T00:34:00.000-07:002010-08-02T00:35:08.249-07:00how to change oracle xe default http port number?login to sqlpus with system account. <br />sqlplus system@xe<br /><br />see the present value<br /><br />select dbms_xdb.gethttpport as "HTTP-Port", bms_xdb.getftpport as "FTP-Port" from dual;<br /><br />--it shows actual value. now u want to change them, use the following?<br /><br />begin<br /><br /> dbms_xdb.sethttpport('9999'); <br /> dbms_xdb.setftpport('2100'); <br />end;<br />/Hari Mallepallyhttp://www.blogger.com/profile/13263604275213298262noreply@blogger.com0tag:blogger.com,1999:blog-14922998.post-72689448834021322592010-01-16T14:35:00.000-08:002010-01-16T14:38:55.865-08:00vmserver 2.0.2 ubuntu 9.10vmserver 2.0.2 licenses:<br />VMware Server for Windows A05FN-F2R0Z-V9380-4T085<br />VMware Server for Linux AA4D0-F8D2G-U7JGM-4100H<br /><br /><br />I had problem in installing vmserver in ubuntu 9.10. This <a href="http://radu.cotescu.com/2009/10/30/how-to-install-vmware-server-2-0-x-on-ubuntu-9-10-karmic-koala/">link</a> helped me to fix the problem. While trying the patch, it was showing error for a specific patch file that i have downloaded manually and placed along with the attahcment given in the post.<br /><br />it worked, have to see bringing up my vm images.Hari Mallepallyhttp://www.blogger.com/profile/13263604275213298262noreply@blogger.com0tag:blogger.com,1999:blog-14922998.post-29817137666928351392009-08-28T00:05:00.000-07:002009-08-28T00:15:29.831-07:00Ubuntu - hdmi, video, webcamI had problem with hdmi audio from ubuntu. Video is going fine to LCD tv through HDMI cable, but no audio.<br /><br />Not sure if that is a problem with operating system or the multimedia softwares, but I found mplayer supporting audio as well.<br /><br />Following line has fixed hdmi audio for me.<br /><span style="font-weight:bold;">mplayer -afm hwac3,hwdts, -ao alsa:device=hdmi -channels 2 file</span><br /><br />Skype, web cam:<br />Web cam was not detected by skype on ubuntu (9.04). After searching on internet, installed gspcs-source, followed by a system restart.<br /><br /><span style="font-weight:bold;">sudo apt-get install gspca-source</span><br /><br />Skype recognized my webcam and when ever I am on voice call with my skype contacts, I am able to share video through webcam.<br /><br />Kopete, yahoo IM problem:<br />Kopete was not able to connect to Yahoo server. fix I found on internet is add subdomain "cn" in the server name (account preferences). this "cn.scs.msg.yahoo.com" one worked for me. the default port of 5050 is same.<br /><br /><br />kopete is not able to detect webcam. It needs jasper conversion utility installed. I tried to to install libjasper-progs, but it seems replaced by another one in the ubuntu repository.<br />Here is the line that worked for me.<br /><br /><span style="font-weight:bold;">sudo apt-get install libjasper-runtime</span>Hari Mallepallyhttp://www.blogger.com/profile/13263604275213298262noreply@blogger.com0tag:blogger.com,1999:blog-14922998.post-65425227406649343492009-08-04T01:58:00.000-07:002009-08-04T02:00:19.689-07:00Low volumne in ubuntuIf you are struck up with low volumn in Ubuntu (even in 9.04)<br />do the following:<br /><br />sudo apt-get install gnome-alsamixer<br /><br /><br />after installing gnome-alsamixer run it, it pops up a UI. Increase the PCM value towards maximum. <br /><br />try the sound now, you got it full right?Hari Mallepallyhttp://www.blogger.com/profile/13263604275213298262noreply@blogger.com0tag:blogger.com,1999:blog-14922998.post-34005829521063914632009-07-29T06:00:00.000-07:002009-07-29T06:01:38.221-07:00Linux /Ubuntu tomcat -> too many open filesIssue:<br />How do I set the maximum number of files allowed to be open on a system<br />scenario: I am running 3 war files of magnolia CMS on local tomcat, third one is not getting deployed properly because of the "too many files" opened. <br /><br />Resolution:<br />The current setting for maximum number of open files can be viewed with the command:<br /><br /> ulimit -n<br /><br />This number indicates the maximum number of files normal users (i.e. non-root) can have open in a single session. Note that for the root user, ulimit -n will sometimes output 1024 even after following the procedure to increase the maximum number of open files. This won't effect root's ability to open large numbers of files, as only normal users are bound by this value.<br /><br />To increase the maximum number of open files beyond the default of 1024, two changes to the system may be necessary. In these examples, we will increase the maximum number of open files to the arbitrary value of 2048. All changes need to be made by the root user and users will need to log out and log back in before the changes will take effect.<br /><br /> 1. Configure the system to accept the desired value for maximum number of open files Check the value in /proc/sys/fs/file-max to see if it is larger than the value needed for the maximum number of open files:<br /><br /> # cat /proc/sys/fs/file-max<br /><br /> If the value isn't large enough, echo an appropriate number into the variable and add the change to /etc/sysctl.conf to make it persistent across reboots. If the number is already larger than the value you wish to use, skip to step 2.<br /><br /> # echo 2048 > /proc/sys/fs/file-max<br /><br /> and edit /etc/sysctl.conf to include the line:<br /><br /> fs.file-max = 2048<br /><br /> 2. Set the value for maximum number of open files In the file /etc/security/limits.conf, below the commented line that reads<br /><br /> #<domain> <type> <item> <value><br /><br /> add this line:<br /><br /> * - nofile 2048<br /><br /> This line sets the default number of open file descriptors for every user on the system to 2048. Note that the "nofile" item has two possible limit values under the <type> header: hard and soft. Both types of limits must be set before the change in the maximum number of open files will take effect. By using the "-" character, both hard and soft limits are set simultaneously.<br /><br /> The hard limit represents the maximum value a soft limit may have and the soft limit represents the limit being actively enforced on the system at that time. Hard limits can be lowered by normal users, but not raised and soft limits cannot be set higher than hard limits. Only root may raise hard limits.<br /><br />When increasing file limit descriptors, you may want to simply double the value. For example, if you need to increase the default value of 1024, increase the value to 2048 first. If you need to increase it again, try 4096, etc.Hari Mallepallyhttp://www.blogger.com/profile/13263604275213298262noreply@blogger.com2tag:blogger.com,1999:blog-14922998.post-33588595429292694352009-07-19T05:29:00.000-07:002009-07-19T05:32:13.406-07:00vmware keys not working on vmware server 2.0.1Keys like del, arrows are not working for me. ubuntu host and windows guest (xp,2003).<br />as per the <a href="http://communities.vmware.com/message/1087595">forum </a>suggestion, i have appended the following lines to /etc/vmware/config file (sudo credentials required on ubuntu).<br /><br />xkeymap.keycode.108 = 0x138 # Alt_R<br />xkeymap.keycode.106 = 0x135 # KP_Divide<br />xkeymap.keycode.104 = 0x11c # KP_Enter<br />xkeymap.keycode.111 = 0x148 # Up<br />xkeymap.keycode.116 = 0x150 # Down<br />xkeymap.keycode.113 = 0x14b # Left<br />xkeymap.keycode.114 = 0x14d # Right<br />xkeymap.keycode.105 = 0x11d # Control_R<br />xkeymap.keycode.118 = 0x152 # Insert<br />xkeymap.keycode.119 = 0x153 # Delete<br />xkeymap.keycode.110 = 0x147 # Home<br />xkeymap.keycode.115 = 0x14f # End<br />xkeymap.keycode.112 = 0x149 # Prior<br />xkeymap.keycode.117 = 0x151 # Next<br />xkeymap.keycode.78 = 0x46 # Scroll_Lock<br />xkeymap.keycode.127 = 0x100 # Pause<br />xkeymap.keycode.133 = 0x15b # Meta_L<br />xkeymap.keycode.134 = 0x15c # Meta_R<br /><br />well, a short cut suggestion was adding the following line alone.<br />xkeymap.keycode.135 = 0x15d # Menu <br /><br /><br />But I pasted both of them, not sure which one caused the fix.Hari Mallepallyhttp://www.blogger.com/profile/13263604275213298262noreply@blogger.com0tag:blogger.com,1999:blog-14922998.post-7014120921747702592009-07-07T00:49:00.000-07:002009-07-07T00:53:44.644-07:00FTP problem - Asci converted binary dataRecently I have taken all my data backup from ubuntu (laptop) to windows xp (desktop) to re-install OS in laptop. But ironically, filezilla ftp client transferred all images, pdf files, doc files in asci format.<br /><br />As I read on this, ascii format means, it strips off 8th bit of every byte (this bit used for a special purpose flag). Restoration may not be possible.<br /><br />See a sample, how I lost lot of data, print screen image of jetspeed tutorial page (in pdf)<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1HoqLvuRpaiNjSJ3uW2W333gkpBgrufX9c8HuPM7jLGdLZr9u7l_1vvR5eJT-0ZNYSNXkUf7SMUkkXeE6I2jgFA4wyBgA5iKKLMaGQEa2FEja52f0py_14MO9Uzcu7yukchIs/s1600-h/asci_corrupted.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 250px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1HoqLvuRpaiNjSJ3uW2W333gkpBgrufX9c8HuPM7jLGdLZr9u7l_1vvR5eJT-0ZNYSNXkUf7SMUkkXeE6I2jgFA4wyBgA5iKKLMaGQEa2FEja52f0py_14MO9Uzcu7yukchIs/s400/asci_corrupted.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5355622372936083106" /></a>Hari Mallepallyhttp://www.blogger.com/profile/13263604275213298262noreply@blogger.com0tag:blogger.com,1999:blog-14922998.post-67551799261639688232009-07-01T08:40:00.001-07:002009-07-01T08:42:39.594-07:00Eclipse Too many open files fix<span style="font-weight:bold;">Solution:</span><br />Fix is adding the following entry (to increase the open file count)<br />in configuration/config.ini<br />osgi.bundlefile.limit=100<br /><br />Problem:<br />I got this exception<br /><br />ZoneInfo: /usr/share/javazi/ZoneInfoMappings (Too many open files)<br />ZoneInfo: /usr/share/javazi/ZoneInfoMappings (Too many open files)<br />!SESSION 2009-07-01 20:47:34.805 -----------------------------------------------<br />eclipse.buildId=M20090211-1700<br />java.version=1.6.0_0<br />java.vendor=Sun Microsystems Inc.<br />BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_IN<br />Command-line arguments: -os linux -ws gtk -arch x86<br /><br />!ENTRY org.eclipse.tptp.platform.examples 4 0 2009-07-01 20:47:39.058<br />!MESSAGE <br />!STACK 0<br />java.util.zip.ZipException: error in opening zip file<br /> at java.util.zip.ZipFile.open(Native Method)<br /> at java.util.zip.ZipFile.<init>(ZipFile.java:131)<br /> at java.util.zip.ZipFile.<init>(ZipFile.java:148)<br /> at org.eclipse.osgi.framework.util.SecureAction.getZipFile(SecureAction.java:251)<br /> at org.eclipse.osgi.baseadaptor.bundlefile.ZipBundleFile.basicOpen(ZipBundleFile.java:81)<br /> at org.eclipse.osgi.baseadaptor.bundlefile.ZipBundleFile.getZipFile(ZipBundleFile.java:94)<br /> at org.eclipse.osgi.baseadaptor.bundlefile.ZipBundleFile.checkedOpen(ZipBundleFile.java:67)<br /> at org.eclipse.osgi.baseadaptor.bundlefile.ZipBundleFile.getEntry(ZipBundleFile.java:239)<br /> at org.eclipse.osgi.baseadaptor.BaseData.getEntry(BaseData.java:97)<br /> at org.eclipse.osgi.framework.internal.core.AbstractBundle.getEntry(AbstractBundle.java:1310)<br /> at org.eclipse.core.internal.registry.osgi.EclipseBundleListener.getExtensionURL(EclipseBundleListener.java:120)<br /> at org.eclipse.core.internal.registry.osgi.EclipseBundleListener.addBundle(EclipseBundleListener.java:158)<br /> at org.eclipse.core.internal.registry.osgi.EclipseBundleListener.processBundles(EclipseBundleListener.java:90)<br /> at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.onStart(RegistryStrategyOSGI.java:210)<br /> at org.eclipse.core.internal.registry.ExtensionRegistry.<init>(ExtensionRegistry.java:699)<br /> at org.eclipse.core.runtime.RegistryFactory.createRegistry(RegistryFactory.java:59)<br /> at org.eclipse.core.internal.registry.osgi.Activator.startRegistry(Activator.java:135)<br /> at org.eclipse.core.internal.registry.osgi.Activator.start(Activator.java:56)<br /> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:1009)<br /> at java.security.AccessController.doPrivileged(Native Method)<br /> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1003)<br /> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:984)<br /> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)<br /> at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:265)<br /> at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:400)<br /> at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:111)<br /> at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:427)<br /> at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:193)<br /> at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:370)<br /> at org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackage.java:33)<br /> at org.eclipse.osgi.framework.internal.core.MultiSourcePackage.loadClass(MultiSourcePackage.java:31)<br /> at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:443)<br /> at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:399)<br /> at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:387)<br /> at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)<br /> at java.lang.ClassLoader.loadClass(ClassLoader.java:268)<br /> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)<br /> at java.lang.Class.forName0(Native Method)<br /> at java.lang.Class.forName(Class.java:186)<br /> at org.eclipse.equinox.internal.app.Activator.start(Activator.java:55)<br /> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:1009)<br /> at java.security.AccessController.doPrivileged(Native Method)<br /> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1003)<br /> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:984)<br /> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)<br /> at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:265)<br /> at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:400)<br /> at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:111)<br /> at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:427)<br /> at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:193)<br /> at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:370)<br /> at org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackage.java:33)<br /> at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:443)<br /> at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:399)<br /> at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:387)<br /> at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)<br /> at java.lang.ClassLoader.loadClass(ClassLoader.java:268)<br /> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)<br /> at org.eclipse.core.internal.runtime.PlatformActivator.startAppContainer(PlatformActivator.java:47)<br /> at org.eclipse.core.internal.runtime.PlatformActivator.start(PlatformActivator.java:32)<br /> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:1009)<br /> at java.security.AccessController.doPrivileged(Native Method)<br /> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1003)<br /> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:984)<br /> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)<br /> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:355)<br /> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1074)<br /> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:616)<br /> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:508)<br /> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:299)<br /> at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:489)<br /> at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:211)<br /> at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:321)<br /><br />(eclipse:30567): Pango-WARNING **: error opening config file '/etc/pango/pangorc': Too many open files<br /><br /><br />(eclipse:30567): Pango-WARNING **: error opening config file '/home/harinath/.pangorc': Too many open files<br /><br /><br />(eclipse:30567): Pango-CRITICAL **: No modules found:<br />No builtin or dynamically loaded modules were found.<br />PangoFc will not work correctly.<br />This probably means there was an error in the creation of:<br /> '/etc/pango/pango.modules'<br />You should create this file by running:<br /> pango-querymodules > '/etc/pango/pango.modules'<br />Fontconfig error: Cannot load default config file<br /><br />(eclipse:30567): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderFc', script='latin'Hari Mallepallyhttp://www.blogger.com/profile/13263604275213298262noreply@blogger.com1tag:blogger.com,1999:blog-14922998.post-13829378279956537122009-06-23T23:40:00.000-07:002009-06-23T23:45:57.202-07:00Building portlets with Jetspeed 2.0If you are looking at open source based portlet 2.0 development, then a good starting point could be <a href="http://portals.apache.org/jetspeed-2/">jetspeed 2.0</a><br /><br />You can create a maven project with the custom archetype of jetspeed by following similar syntax as below.<br /><br /><span style="font-weight:bold;">mvn org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate -DarchetypeGroupId=org.apache.portals.jetspeed-2 -DarchetypeArtifactId=jetspeed-archetype -DarchetypeVersion=2.2.0 -DartifactId=hello -Dpackage=com.springboard -DgroupId=com.springboard -Dversion=1.0-SNAPSHOT</span><br /><br />You might come across an exception something like this<br /><br />Caused by: java.lang.ClassNotFoundException: org.apache.jetspeed.tools.db.serializer.JetspeedSerializerApplicationImpl<br /> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)<br /> at java.security.AccessController.doPrivileged(Native Method)<br /> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)<br /> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)<br /> at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)<br /> at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)<br /> at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)<br /> at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)<br /> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)<br /> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)<br /> at java.lang.Class.forName0(Native Method)<br /> at java.lang.Class.forName(Class.java:242)<br /> at org.apache.jetspeed.maven.utils.Serializer.execute(Serializer.java:73)<br /> ... 19 more<br />[INFO] ------------------------------------------------------------------------<br />[INFO] Total time: 9 seconds<br /><br /><br />the fix is that db plugin dependency is missing, I got rid of it by adding the dependency.<br /><br /> <dependency><br /> <groupId>org.apache.portals.jetspeed-2</groupId><br /> <artifactId>jetspeed-db-tools</artifactId><br /> <version>${org.apache.portals.jetspeed.version}</version> <br /> </dependency><br /><br /><br />Do not forget to add repository (might be optional).<br /> <repository><br /> <id>central</id><br /> <name>central</name><br /> <url>http://repo1.maven.org/maven2</url><br /> </repository>Hari Mallepallyhttp://www.blogger.com/profile/13263604275213298262noreply@blogger.com0tag:blogger.com,1999:blog-14922998.post-89596272153357024342009-03-17T21:42:00.001-07:002009-03-17T21:42:57.705-07:00Unix command to uncompressCompressed UNIX tar archives (typically tar.gz or .tgz extensions) can be extracted in a single command. This is faster and works with less disk space available.<br /><br /><br />To extract the compressed tar archive target.tar.gz into the current working directory with:<br /><br />gzip -dc target.tar.gz | tar xf -<br /><br />If the file was compressed with bzip2 (i.e., .tar.bz2), you can substitute the bzip2 command for gzip.<br /><br />If the archive was compressed with the UNIX compress command (archive ending in .Z) you can use:<br /><br />zcat target.tar.Z | tar xf -Hari Mallepallyhttp://www.blogger.com/profile/13263604275213298262noreply@blogger.com0tag:blogger.com,1999:blog-14922998.post-14230899297345318022009-02-24T08:43:00.000-08:002009-03-01T20:25:17.342-08:00fix for sql injectionSET NOCOUNT ON<br /><br />DECLARE @stringToFind VARCHAR(100)<br />DECLARE @stringToReplace VARCHAR(100)<br />DECLARE @schema sysname<br />DECLARE @table sysname<br />DECLARE @count INT<br />DECLARE @sqlCommand VARCHAR(8000)<br />DECLARE @where VARCHAR(8000)<br />DECLARE @columnName sysname<br />DECLARE @object_id INT<br /> <br />SET @stringToFind = '<<malicious script code>>'<br /><br /><br />SET @stringToReplace = ''<br /> <br />DECLARE TAB_CURSOR CURSOR FOR<br />SELECT B.NAME AS SCHEMANAME,<br /> A.NAME AS TABLENAME,<br /> A.OBJECT_ID<br />FROM sys.objects A<br /> INNER JOIN sys.schemas B<br /> ON A.SCHEMA_ID = B.SCHEMA_ID<br />WHERE TYPE = 'U'<br />ORDER BY 1<br /> <br />OPEN TAB_CURSOR<br /><br />FETCH NEXT FROM TAB_CURSOR<br />INTO @schema,<br /> @table,<br /> @object_id<br /> <br />WHILE @@FETCH_STATUS = 0<br /> BEGIN<br /> DECLARE COL_CURSOR CURSOR FOR<br /> SELECT A.NAME<br /> FROM sys.columns A<br /> INNER JOIN sys.types B<br /> ON A.SYSTEM_TYPE_ID = B.SYSTEM_TYPE_ID<br /> WHERE OBJECT_ID = @object_id<br /> AND IS_COMPUTED = 0<br /> AND B.NAME IN ('char','nchar','nvarchar','varchar','text','ntext')<br /><br /> OPEN COL_CURSOR<br /> <br /> FETCH NEXT FROM COL_CURSOR<br /> INTO @columnName<br /> <br /> WHILE @@FETCH_STATUS = 0<br /> BEGIN<br /> SET @sqlCommand = 'UPDATE ' + @schema + '.' + @table + ' SET [' + @columnName + '] = REPLACE(convert(nvarchar(max),[' + @columnName + ']),''' + @stringToFind + ''',''' + @stringToReplace + ''')'<br /> <br /> SET @where = ' WHERE [' + @columnName + '] LIKE ''%' + @stringToFind + '%'''<br /> <br /> EXEC( @sqlCommand + @where)<br /> <br /> SET @count = @@ROWCOUNT<br /> <br /> IF @count > 0<br /> BEGIN<br /> PRINT @sqlCommand + @where<br /> PRINT 'Updated: ' + CONVERT(VARCHAR(10),@count)<br /> PRINT '----------------------------------------------------'<br /> END<br /> <br /> FETCH NEXT FROM COL_CURSOR<br /> INTO @columnName<br /> END<br /> <br /> CLOSE COL_CURSOR<br /> DEALLOCATE COL_CURSOR<br /> <br /> FETCH NEXT FROM TAB_CURSOR<br /> INTO @schema,<br /> @table,<br /> @object_id<br /> END<br /><br />CLOSE TAB_CURSOR<br />DEALLOCATE TAB_CURSORHari Mallepallyhttp://www.blogger.com/profile/13263604275213298262noreply@blogger.com0tag:blogger.com,1999:blog-14922998.post-24998500106741785802009-02-04T20:56:00.000-08:002009-02-04T21:12:51.688-08:00Apache MyFaces TrinidadNOTE: some how all the xml related syntax is removed while rendering the post in blogspot.<br /><br /><br /><span style="font-style:italic;"><span style="font-weight:bold;">My team is exploring the use of JSF into one of our applications.<br /><br />We had smooth sail until we decided to use trinidad components. We wanted to have out of box support for the features we wanted to build into application and tomahawk and trinidad seem to be the way to go.<br />Some of the dependencies we had in our project POM file(related with myfaces and trinidad) are<br /> <dependency><br /> <groupid>org.apache.myfaces.core</groupid><br /> <artifactid>myfaces-api</artifactid><br /> <version>1.2.2</version><br /> <scope>compile</scope><br /> </dependency><br /><br /><br /> <dependency><br /> <groupid>org.apache.myfaces.core</groupid><br /> <artifactid>myfaces-impl</artifactid><br /> <version>1.2.2</version><br /> <scope>compile</scope><br /> </dependency><br /><br /> <dependency><br /> <groupid>org.apache.myfaces.tomahawk</groupid><br /> <artifactid>tomahawk</artifactid><br /> <version>1.1.8</version><br /> <scope>runtime</scope><br /> <exclusions><br /> <exclusion><br /> <groupid>javax.servlet</groupid><br /> <artifactid>jstl</artifactid><br /> </exclusion><br /> <exclusion><br /> <groupid>org.apache.myfaces.core</groupid><br /> <artifactid>myfaces-api</artifactid><br /> </exclusion><br /> <exclusion><br /> <groupid>org.apache.myfaces.core</groupid><br /> <artifactid>myfaces-impl</artifactid><br /> </exclusion><br /> </exclusions><br /> </dependency><br /><br /> <dependency><br /> <groupid>jstl</groupid><br /> <artifactid>jstl</artifactid><br /> <version>1.2</version><br /> <scope>runtime</scope><br /> </dependency><br /><br /> <dependency><br /> <groupid>com.sun.facelets</groupid><br /> <artifactid>jsf-facelets</artifactid><br /> <version>1.1.11</version><br /> </dependency><br /><br /><br /> <dependency><br /> <groupid>org.apache.myfaces.trinidad</groupid><br /> <artifactid>trinidad-api</artifactid><br /> <version>1.2.1</version><br /><br /> </dependency><br /><br /> <dependency><br /> <groupid>org.apache.myfaces.trinidad</groupid><br /> <artifactid>trinidad-impl</artifactid><br /> <version>1.2.1</version><br /> </dependency><br /> <dependency><br /> <groupid>org.apache.myfaces.trinidad</groupid><br /> <artifactid>trinidad-build</artifactid><br /> <version>1.2.1</version><br /> </dependency><br /><br /><br />Contents of web.xml<br /><br /><br /><br /><br /><web-app xmlns="http://java.sun.com/xml/ns/j2ee" xsi="http://www.w3.org/2001/XMLSchema-instance" schemalocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"><br /><context-param><br /> <param-name>contextConfigLocation</param-name><br /> <param-value>classpath:applicationContext.xml</param-value><br /></context-param><br /><listener><br /> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class><br /></listener><br /><listener><br /> <listener-class>org.springframework.web.context.request.RequestContextListener </listener-class><br /></listener><br /><context-param><br /> <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name><br /> <param-value>true</param-value><br /></context-param><br /><context-param><br /> <param-name>facelets.LIBRARIES</param-name><br /> <param-value>/WEB-INF/tomahawk.taglib.xml</param-value><br /></context-param><br /><context-param><br /> <param-name>javax.faces.DEFAULT_SUFFIX</param-name><br /> <param-value>.xhtml</param-value><br /></context-param><br /><context-param><br /> <param-name>facelets.DEVELOPMENT</param-name><br /> <param-value>true</param-value><br /></context-param><br /><context-param><br /> <param-name>javax.faces.CONFIG_FILES</param-name><br /> <param-value>/WEB-INF/backoffice-config.xml</param-value><br /></context-param><br /><context-param><br /> <param-name>javax.faces.STATE_SAVING_METHOD</param-name><br /> <param-value>client</param-value><br /></context-param><br /><context-param><br /> <param-name>org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION</param-name><br /> <param-value>20</param-value><br /></context-param><br /><context-param><br /> <param-name>org.apache.myfaces.SERIALIZE_STATE_IN_SESSION</param-name><br /> <param-value>true</param-value><br /></context-param><br /><context-param><br /> <param-name>org.apache.myfaces.COMPRESS_STATE_IN_SESSION</param-name><br /> <param-value>true</param-value><br /></context-param><br /><context-param><br /> <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name><br /> <param-value>true</param-value><br /></context-param><br /><context-param><br /> <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name><br /> <param-value>false</param-value><br /></context-param><br /><context-param><br /><param-name>org.apache.myfaces.PRETTY_HTML</param-name><br /><param-value>true</param-value><br /></context-param><br /><context-param><br /> <param-name>org.apache.myfaces.AUTO_SCROLL</param-name><br /> <param-value>true</param-value><br /></context-param><br /><context-param><br /> <param-name>org.apache.myfaces.SECRET</param-name><br /> <param-value>NzY1NDMyMTA=</param-value><br /></context-param><br /><context-param><br /> <param-name>org.apache.myfaces.VALIDATE</param-name><br /> <param-value>true</param-value><br /></context-param><br /><context-param><br /> <param-name>org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS</param-name><br /> <param-value>true</param-value><br /></context-param><br /><context-param><br /> <param-name>org.apache.myfaces.ADD_RESOURCE_CLASS</param-name><br /> <param-value>org.apache.myfaces.renderkit.html.util.DefaultAddResource</param-value><br /></context-param><br /><context-param><br /> <param-name>org.apache.myfaces.RESOURCE_VIRTUAL_PATH</param-name><br /> <param-value>/faces/myFacesExtensionResource</param-value><br /></context-param><br /><context-param><br /> <param-name>org.apache.myfaces.CHECK_EXTENSIONS_FILTER</param-name><br /> <param-value>true</param-value><br /></context-param><br /><context-param><br /> <param-name>javax.faces.PARTIAL_STATE_SAVING_METHOD</param-name><br /> <param-value>false</param-value><br /></context-param><br /><!-- Extensions Filter --><br /><filter><br /> <filter-name>extensionsFilter</filter-name><br /> <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class><br /> <init-param><br /> <param-name>uploadMaxFileSize</param-name><br /> <param-value>100m</param-value><br /> </init-param><br /> <init-param><br /> <param-name>uploadThresholdSize</param-name><br /> <param-value>100k</param-value><br /> </init-param><br /></filter><br /><filter-mapping><br /> <filter-name>extensionsFilter</filter-name><br /> <url-pattern>*.jsf</url-pattern><br /></filter-mapping><br /><filter-mapping><br /> <filter-name>extensionsFilter</filter-name><br /> <url-pattern>/faces/*</url-pattern><br /></filter-mapping><br /><listener><br /> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class><br /></listener><br /><servlet><br /> <servlet-name>Faces Servlet</servlet-name><br /> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class><br /> <load-on-startup>1</load-on-startup><br /></servlet><br /><servlet-mapping><br /> <servlet-name>Faces Servlet</servlet-name><br /> <url-pattern>*.jsf</url-pattern><br /></servlet-mapping><br /><welcome-file-list><br /> <welcome-file>index.jsp</welcome-file><br /> <welcome-file>index.html</welcome-file><br /></welcome-file-list><br /><filter><br /><filter-name>trinidad</filter-name><br /><filter-class><br />org.apache.myfaces.trinidad.webapp.TrinidadFilter<br /></filter-class><br /></filter><br /><filter-mapping><br /><filter-name>trinidad</filter-name><br /><servlet-name>Faces Servlet</servlet-name><br /></filter-mapping><br /><servlet><br /><servlet-name>resources</servlet-name><br /><servlet-class><br />org.apache.myfaces.trinidad.webapp.ResourceServlet<br /></servlet-class><br /></servlet><br /><servlet-mapping><br /><servlet-name>resources</servlet-name><br /><url-pattern>/adf/*</url-pattern><br /></servlet-mapping><br /><br /><context-param><br /> <param-name>org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER</param-name><br /> <param-value>com.sun.facelets.FaceletViewHandler</param-value><br /> </context-param><br /><br /> <context-param><br /> <param-name>facelets.VIEW_MAPPINGS</param-name><br /> <param-value>*.xhtml</param-value><br /> </context-param><br /><br /></web-app><br /><br /><br />faces-config.xml content is<br /><br /><application><br /><variable-resolver><br /> org.springframework.web.jsf.DelegatingVariableResolver<br /> </variable-resolver><br /><default-render-kit-id><br />org.apache.myfaces.trinidad.core<br /></default-render-kit-id><br /></application><br /><br /><br />Eclipse design time didnt handle trinidad tags properly (no UI rendering for tr components),but it worked fine.<br /><br />What I needed was to select rows in table using radio button option. It looks simple functionality but always it created problem. I remember doing some custom java script implementation to handle it, then we had difficult time even in .Net development. Now in java also we spent few days in fixing some very basic issue.<br />It is not technology which need to be blamed all the time. if we started with the <a href="http://myfaces.apache.org/trinidad/installation.html#Platform%20Information">formal instructions</a>, it would have been very easy for us.</span></span>Hari Mallepallyhttp://www.blogger.com/profile/13263604275213298262noreply@blogger.com0tag:blogger.com,1999:blog-14922998.post-18763306450787847272009-02-04T00:48:00.000-08:002009-02-04T00:58:06.711-08:00VMWare Server 2.0 on Ubuntu - Guest windows 2003 serverI had a need to refresh my M$ Knowledge and tried to do that.<br /><br />As my laptop (inspiron 1525) runs with Ubuntu, I have downloaded vmware server 2.0 (available for free from vmware site). And then installed windows 2003 on it. <br /><br />Few issues and how I resolved it.<br /><br />1. default windows desktop size was very small.<br /> fix: increase the resolution, and it made my windows desktop to use full laptop screen.<br />2. Login problem:<br /> I was not able to send Ctrl+Alt+Del signal after installing it, but then some one on internet suggested to try<br /> Ctrl+Alt+ PrintScrn combination, it worked.<br />3. Keyboard problem: Del button and arrow keys were not working. probably some other keys were too not working. down arrow was behaving as if it is the windows button, and backspace was working as del button. Yes I had no way of backspacing my text.<br /><br />Fix: I followed this <a href="http://nthrbldyblg.blogspot.com/2008/06/vmware-and-fubar-keyboard-effect.html">link</a> and found the fix working. <br /><br />I tried solution 3 mentioned in the blog post. <br />i.e login as root and execute 'echo "xkeymap.nokeycodeMap = true" >> ~/.vmware/config'<br />It worked for me. Yes it is not the typical sudo. sudo didnt work for me (also mentioned in the article). Opened new shell and logged in as root. then executed this command.<br /><br />Surprising, it worked. now I am very much comfortable in the vmware win2k3 image. <br /><br /><br />Yes, as it is free ware, vmware might have left some known issues along with it. But then I am able to solve the issues in front of me. <br /><br />Now, I can stick to Ubuntu and occassionally use windows by vmware server web console for specific needs.<br /><br />I am happy.Hari Mallepallyhttp://www.blogger.com/profile/13263604275213298262noreply@blogger.com0tag:blogger.com,1999:blog-14922998.post-86558474350299486622009-01-21T02:17:00.000-08:002009-01-21T02:19:08.098-08:00JOSSO 1.8Today I tried playing with JOSSO, I spent around 4 to 5 hours. Wanted to setup JOSSO with NTLM authentication, but not successful yet. <br /><br />Here is the log of what I have done.<br /><br />Follow instructions from <br /><a href="http://www.josso.org/confluence/display/JOSSO1/Quick+Start">http://www.josso.org/confluence/display/JOSSO1/Quick+Start</a><br />there is some confusion here, as the article talks of using commands to install josso, but the downloaded file is not having the stuff related with the documentation.<br /><br />Download Josso 1.8 release from sourceforge.net download lcoation.<br /><br /><a href="http://sourceforge.net/project/showfiles.php?group_id=116854&package_id=129496&release_id=653379">http://sourceforge.net/project/showfiles.php?group_id=116854&package_id=129496&release_id=653379</a><br /><br />you can download the .tgz file which is around 42MB. this contains josso-gsh shell, which can be used to deploy the war file (documents on josso confluence site use this shell to deploy, it took a while for me to identify which file has this gsh file)<br />gateway install --target "D:/servers/Tomcat 6.0" --platform tc60<br /><br /><br />Either you can do this or download the tomact version and use it directly/build from source and use it.<br /><br /><br />in case if you need any further information best option is to google and if the josso site pages are not coming properly (in my case its getting timedout) then read the google cache.<br /><br />As the 1.8 release happened almost a week back, we might face problems in setting up things propely, more help might come into internet in the comming weeks.Hari Mallepallyhttp://www.blogger.com/profile/13263604275213298262noreply@blogger.com0tag:blogger.com,1999:blog-14922998.post-83264644937902182322009-01-15T20:34:00.000-08:002009-01-15T20:37:56.897-08:00FREE Cheat Sheets for Developers<a href="http://refcardz.dzone.com/">FREE Cheat Sheets for Developers</a>Hari Mallepallyhttp://www.blogger.com/profile/13263604275213298262noreply@blogger.com0tag:blogger.com,1999:blog-14922998.post-17895714677356738392009-01-02T03:38:00.000-08:002009-01-02T03:41:16.061-08:00Open source alternatives for visioAs I am moving away from use of microsoft softwares, I was trying to find a proper alternative for visio, the famous microsoft modeling tool.<br /><br />There seem to be 2 of them as proper alternatives(dia and drawing of open office), but dia leads the way because of the similarity with visio and certain special objects which make it better in casual designing. <a href="http://projects.gnome.org/dia/">http://projects.gnome.org/dia/</a>.<br /><br />Check the URL for more details. It is a wondeful contribution by Free Software Foundation.Hari Mallepallyhttp://www.blogger.com/profile/13263604275213298262noreply@blogger.com0tag:blogger.com,1999:blog-14922998.post-46558726170363729932008-12-31T03:34:00.000-08:002008-12-31T03:41:29.047-08:00MavenMaven comes really handly when it comes to managing project structure, building code etc. Its flexible dependency management is the best feature I go for.<br /><br />In case if you want to start with maven, and looking for a starting point, Download latest maven (comes as a zip file, unzip it) and set your PATH environment variable to bin folder. <br />Now type "mvn archetype:generate" it lists out possible project types available. the follow up steps are self explanatory.<br /><br />If you are looking for a specific project type (like a simple web application with springs configured etc), you might need to google for it. With little bit of effort you will get to find proper archtypes.<br /><br />One problem I faced with maven POM (Project Object Model) files is with specific dependencies (jar files) which are not at all available on internet. I resolve them by creating similar structure locally and getting the near best possible jar file (yes I create folder strtucture, file name as required).Hari Mallepallyhttp://www.blogger.com/profile/13263604275213298262noreply@blogger.com1tag:blogger.com,1999:blog-14922998.post-67848679027038170892008-12-30T00:30:00.000-08:002008-12-30T04:10:52.743-08:00RESTful web servicesRESTful services are a nice way of integrating how the web interacts with Humans and Machines in the simplest format. Though developer community doesn't feel any pain in building standard web services using SOAP, WSDL over HTTP, there is lot of complexity behind implementing web services. <br /><br />RESTful web services offer simplest solution, making same HTTP protocol used for web services as well.<br /><br />There are 2 important aspects in RESTful services. <br /><br />1. Web method<br />2. Scope<br /><br />When we use standard web services, web service method name is very important. RESTful removes this overhead. Just use the standard HTTP GET, POST,PUT,DELETE etc methods for any transaction.<br /><br /><br />Scope of the request is similar to the query string logic of HTTP. Query string must be able to define the scope of a client request, on what he needs to be done.<br /><br />I will post more about it as and when I get time.Hari Mallepallyhttp://www.blogger.com/profile/13263604275213298262noreply@blogger.com0