9.5. The CarMart Quickstart Using Tomcat


9.5.1. Build the CarMart Quickstart to Tomcat

The following procedure provides directions to build the CarMart quickstart to Tomcat 7.
Prerequisite

Obtain the supported JBoss Data Grid Library Mode distribution files.

Procedure 9.4. Build the CarMart Quickstart to Tomcat

  1. Install the Maven Repository

    For initial testing in a small team, extract the JBoss Data Grid Maven repository to a directory on the local system:
    $ unzip jboss-datagrid-maven-repository-6.0.0.zip
    
    Copy to Clipboard Toggle word wrap
    For further information about the installation methods available to install the JBoss Data Grid Maven repository, refer to Chapter 4, Install and Use the Maven Repository.
  2. Add Manager Script Information

    This build assumes that the default configuration for Tomcat 7 will be used, including a default host name (localhost) and port (8080). To allow Maven's Tomcat plug-in to access the manager, add the following information to the tomcat-users.xml file (located at conf/tomcat-users.xml):
    <role rolename="manager-script"/>
    <user username="admin" password="" roles="manager-script"/>
    Copy to Clipboard Toggle word wrap
  3. Start Tomcat

    Use the following script to start Tomcat:
    $CATALINA_HOME/bin/catalina.sh start
    
    Copy to Clipboard Toggle word wrap
  4. Build your Application

    Use the following command to build your application using Maven:
    $ mvn clean package -Plibrary-jbossas -Ddatagrid.maven.repo=file:///path/to/unpacked/jdg/maven/repository
    
    Copy to Clipboard Toggle word wrap
Back to top
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2026 Red Hat