Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
14.8. The (Transactional) CarMart Quickstart Using JBoss Enterprise Web Server
library-tomcat profile can be used when running this quickstart with JBoss Enterprise Web Server because this profile enables library mode.
14.8.1. Quickstart Prerequisites Link kopierenLink in die Zwischenablage kopiert!
- Java 6.0 (Java SDK 1.6) or better
- JBoss Enterprise Application Platform 6.x or JBoss Enterprise Web Server 2.x
- Maven 3.0 or better
- Configure the Maven Repository. For details, see Chapter 3, Install and Use the Maven Repositories
14.8.2. Build and Deploy the Transactional CarMart Quickstart Link kopierenLink in die Zwischenablage kopiert!
Ensure that the following prerequisites are met before building and deploying the CarMart quickstart.
- Configure Maven (See Section 14.8.1, “Quickstart Prerequisites”)
- To configure JBoss Enterprise Web Server, add the following lines to the
conf/tomcat-users.xmlfile:<role rolename="manager-script"/> <user username="admin" password="admin" roles="manager-script"/><role rolename="manager-script"/> <user username="admin" password="admin" roles="manager-script"/>Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Configure Maven by adding the following configuration information to the Maven
settings.xmlfile with the appropriate credentials:<server> <id>tomcat</id> <username>admin</username> <password>admin</password> </server>
<server> <id>tomcat</id> <username>admin</username> <password>admin</password> </server>Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Start JBoss Enterprise Web Server:
- In a command line terminal, navigate to the root of the JBoss Enterprise Web Server directory.
- Use one of the following commands to start the server with a web profile:For Linux:
$TOMCAT_HOME/bin/catalina.sh run
$TOMCAT_HOME/bin/catalina.sh runCopy to Clipboard Copied! Toggle word wrap Toggle overflow For Windows:%TOMCAT_HOME%\bin\catalina.bat run
%TOMCAT_HOME%\bin\catalina.bat runCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Procedure 14.15. Build and Deploy the Transactional CarMart Quickstart
- In a command line terminal, navigate to the root directory for the quickstart.
- Enter the following command to build and deploy archive:
mvn -Plibrary-tomcat clean package tomcat:deploy
mvn -Plibrary-tomcat clean package tomcat:deployCopy to Clipboard Copied! Toggle word wrap Toggle overflow - The
target/jboss-carmart-tx.warfile is deployed to the running instance of JBoss Enterprise Web Server.
14.8.3. View the Transactional CarMart Quickstart Link kopierenLink in die Zwischenablage kopiert!
The CarMart quickstart must be built and deployed to be viewed.
Procedure 14.16. View the CarMart Quickstart
- To view the application, use your browser to navigate to the following link:
http://localhost:8080/jboss-carmart-tx
http://localhost:8080/jboss-carmart-txCopy to Clipboard Copied! Toggle word wrap Toggle overflow
14.8.4. Undeploy The Transactional CarMart Quickstart Link kopierenLink in die Zwischenablage kopiert!
- In a command line terminal, navigate to the root directory of the quickstart.
- Undeploy the archive as follows:
mvn -Plibrary-tomcat tomcat:undeploy
mvn -Plibrary-tomcat tomcat:undeployCopy to Clipboard Copied! Toggle word wrap Toggle overflow
14.8.5. Test the Transactional CarMart Quickstart Link kopierenLink in die Zwischenablage kopiert!
- Undeploy the archive (see Section 14.8.4, “Undeploy The Transactional CarMart Quickstart”)
- Stop JBoss Enterprise Web Server, if it is running.
- In a command line terminal, navigate to root directory for the quickstart.
- Build the quickstarts as follows:
mvn clean package
mvn clean packageCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Run the tests as follows:
mvn test -Puitests-jbossas -Das7home=/path/to/server
mvn test -Puitests-jbossas -Das7home=/path/to/serverCopy to Clipboard Copied! Toggle word wrap Toggle overflow