I follow the Struts 2 tutorial and setup a simple Struts 2 application.
Create Struts 2 Web Application Using Maven To Manage Artifacts and To Build The Application
I used the struts2-core version 2.2.1 and also added a maven-jetty-plugin for running the web application. But when i run mvn jetty:run, the following error is found.
java.lang.IllegalArgumentException: Javassist library is missing in classpath! Please add missed dependency!
It is found that in struts2-core version 2.2.1, the Javassist dependency was excluded in OGNL. So i have to add this dependency in the pom.xml by myself.
So here comes to the project details. Continue reading Struts 2 – Setup a Struts 2 Web Application in Maven →
Normally, the maven-jetty-plugin should be configured in the pom of your Maven webapp project/module. But the project i am working is a legacy Java project with many modules and the webapp module depends on others. so i cannot simply start it due to the build sequence.
What i am going to do is to add an new Maven module for integration test of the Maven webapp module and it would be build in the last module such that all other modules are ready.
Continue reading Maven – Using maven-jetty-plugin to Start a webapp of another Maven Module →
After creating all the entity beans in the backend project. it’s time to move on to the frontend stuff. First, we need to decide what Java frontend framework is used in our project. so i take the chance to learn Tapestry.
With Maven, we can make use of the Archetype as a project template to start our first Tapestry project. This post shows u how to make start your first Tapestry project in Eclipse with m2eclipse installed.
Continue reading Tapestry – Create a Tapestry Project in Maven →
I always think that building a good developing environment for developers are essential in terms of efficiency as well as quality. maven-jetty-plugin let you run the webapp without deploying the .war to Java web container and run debug mode directly in the Eclipse IDE.
Continue reading Maven – Run Webapp by maven-jetty-plugin →