WAR Bootstrap



# generate a new WAR bootstrap
mvn archetype:generate \
    -DarchetypeGroupId=org.duelengine \
    -DarchetypeArtifactId=war-bootstrap-archetype \

# build your boostrap
# NOTE: replace "bootstrap" with your chosen project name
cd bootstrap; mvn package; cd ..

# run the resulting WAR on the test bootstrap
# NOTE: again replace with your chosen artifact names
java -jar bootstrap/target/bootstrap.jar -p 8080 --tomcat \
    -war /=path/to/root.war \
    -war /myapp=path/to/myapp.war

JSP in Tomcat

If you want to support JSP within Tomcat, uncomment the org.apache.tomcat.embed:tomcat-embed-jasper dependency (it is commented out by default). Otherwise, it will load a lighter set of resources.

Glassfish 3.1

There is a conflict between the classes in embedded Glassfish and embedded Tomcat. As a result, the pom.xml needs to be modified to include/exclude the dependencies for one or the other. Currently, this defaults to Tomcat.

NOTE: there seems to be an issue with the Glassfish configuration as it isn't correctly loading anymore.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.