Skip to main content

Posts

Seattle Sunset: 4th Ave.

Taken on Dec 31, 2006

Run/Debug java webapp without packaging/deploying it with Jetty and under Maven2

Goals As the title mentioned, run(with maven2 command or in IDE)/debug(in IDE) java webapp without packaging the war file, installing/configuring any appserver like tomcat or deploying your code to anywhere. The practice will be "compile and run". Why Jetty ? Jetty is a lightweight, flexible and embeddable Java servlet container. It's so flexible that it can even start servicing a webapp directly from given classpath and a web.xml file without assembling them into a standard webapp. Step by step Introduce several dependencies into you pom file. This is required whatsoever if you want to run/debug jetty in IDE and make sure the servlet-api, xercesImpl and java tools.jar(if you want to run JSP) are in dependency list. <dependency> <groupId>jetty</groupId> <artifactId>org.mortbay.jetty</artifactId> <version>5.1.10</version> <scope>runtime</scope> </dependency> <dependency> <groupId>jetty</gr...

Simplify Avalon components development by switching to plexus

Avalon vs. PicoContainer or Spring Looking for the best IoC container is not the purpose of this article. Well... there is no "the best" without conditions, which means the answer varies according to the project you are working on. Personally I found Avalon useful in several projects where the requirement and scope is extremely uncertain. PicoContainer project has an article which outlines the difference between several popular ways of containing components (not necessarily IoC containers). In general, comparing to the other options, Avalon depicts the lifecycle of a component elegantly and meticulously. And the compensation is to require the code to depend on its framework API. Headache of Avalon? Simplified version of Avalon container that costs you less, Plexus Assume you decide to take what Avalon requires and build the application on top Avalon API as I have done, the headache coming along is usally about: Maintain endless XML meta files for each componenent Bu...

Is this my design?

I just came across this website design on deviantart.com. It resembles the home page of my waterview project amazingly. --http://www.deviantart.com/view/28556278-- --http://cyclops-group.sourceforge.net/projects/waterview--