Thursday, September 22, 2011

Planning for failure

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 which  compared the agile/Scrum with Kanban/Lean startup. It is an interesting read. Also the links mentioned in the blog are good. 

I also like the definition of a hacker.
"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. - Bruce Schneie" 


Saturday, February 05, 2011

Debug maven application with jetty plugin

Have the jetty plugin configured.
<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">

After that It’s time to configure eclipse for debugging the web app by selecting the Run > Debug … from the menu
# Set Main Class to "org.codehaus.classworlds.Launcher"

Go to the argument tab:
# Set Program arguments to "jetty:run"
# Set VM arguments to "-Xmx512M -Dclassworlds.conf=[MAVEN_HOME]/bin/m2.conf -Dmaven.home=[MAVEN_HOME]"
(Replace MAVEN_HOME with the location of maven on your system)

Go to the classpath tab:
# remove the application from the user entries
# 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

Go to the source tab:
# add the current project to debug

Now you can start debugging your application like you do it always

It is very interesting to set the –o option to the maven command in order to accelerate the fix/debug process.