<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-33549622</id><updated>2011-04-21T23:46:50.169+01:00</updated><title type='text'>Maher TEBOURBI Blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mahertb.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33549622/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://mahertb.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Maher TEBOURBI</name><uri>http://www.blogger.com/profile/04211015586606401289</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-33549622.post-115901276202759269</id><published>2006-09-23T13:56:00.000+02:00</published><updated>2006-09-23T14:00:27.860+02:00</updated><title type='text'>new JSR</title><content type='html'>New interesting JSR for the future of Java &amp; Standards : http://www.jcp.org/en/jsr/detail?id=306&lt;div class="blogger-post-footer"&gt;Professional JEE applications&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33549622-115901276202759269?l=mahertb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33549622/posts/default/115901276202759269'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33549622/posts/default/115901276202759269'/><link rel='alternate' type='text/html' href='http://mahertb.blogspot.com/2006/09/new-jsr.html' title='new JSR'/><author><name>Maher TEBOURBI</name><uri>http://www.blogger.com/profile/04211015586606401289</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-33549622.post-115687986819988753</id><published>2006-08-29T21:28:00.000+02:00</published><updated>2006-08-29T22:23:24.716+02:00</updated><title type='text'>Debugging maven web application with eclipse</title><content type='html'>Recently I started a new JEE project using Maven2 as build tool, choice done du to the different services that it offers for project with a lot of modules and complex dependency ….&lt;br /&gt;One of the problems that I faced is debugging web layer with respect to the directory structure of the default web archtype.&lt;br /&gt;&lt;br /&gt;Here is the best method I found to solve this need:&lt;br /&gt;&lt;br /&gt;I suppose that you already created a maven2 web project if not see :&lt;br /&gt;&lt;a href="http://maven.apache.org/guides/mini/guide-webapp.html"&gt;http://maven.apache.org/guides/mini/guide-webapp.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;To run http web server I use jetty plugin by simply adding the jetty plugin to the pom.xml&lt;br /&gt;&lt;a href="http://jetty.mortbay.org/maven-plugin/howto.html"&gt;http://jetty.mortbay.org/maven-plugin/howto.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;In order to validate this phase it’s possible de run the web app from the command line: mvn jetty:run and wating for maven to download the plugin and if successful running the application.&lt;br /&gt;&lt;br /&gt;After that It’s time to configure eclipse for debugging the web app by selecting the Run &gt; Debug … from the menu&lt;br /&gt;# Set Main Class to "org.codehaus.classworlds.Launcher"&lt;br /&gt;&lt;br /&gt;Go to the argument tab:&lt;br /&gt;# Set Program arguments to "jetty6:run"&lt;br /&gt;# Set VM arguments to "-Xmx512M -Dclassworlds.conf=[MAVEN_HOME]/bin/m2.conf -Dmaven.home=[MAVEN_HOME]"&lt;br /&gt;(Replace MAVEN_HOME with the location of maven on your system)&lt;br /&gt;&lt;br /&gt;Go to the classpath tab:&lt;br /&gt;# remove the application from the user entries&lt;br /&gt;# add the "[MAVEN_HOME]/core/boot/classworlds-1.1.jar" to the user entries&lt;br /&gt;&lt;br /&gt;Go to the source tab:&lt;br /&gt;# add the current project to debug&lt;br /&gt;&lt;br /&gt;Now you can start debugging your application like you do it always&lt;br /&gt;&lt;br /&gt;It is very interesting to set the –o option to the maven command in order to accelerate the fix/debug process.&lt;div class="blogger-post-footer"&gt;Professional JEE applications&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33549622-115687986819988753?l=mahertb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33549622/posts/default/115687986819988753'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33549622/posts/default/115687986819988753'/><link rel='alternate' type='text/html' href='http://mahertb.blogspot.com/2006/08/debugging-maven-web-application-with.html' title='Debugging maven web application with eclipse'/><author><name>Maher TEBOURBI</name><uri>http://www.blogger.com/profile/04211015586606401289</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry></feed>
