このコンテンツは選択した言語では利用できません。
Chapter 5. Try It Out
5.1. Run the Quickstarts リンクのコピーリンクがクリップボードにコピーされました!
5.1.1. Run the Quickstarts in Red Hat JBoss Developer Studio リンクのコピーリンクがクリップボードにコピーされました!
Procedure 5.1. Import the quickstarts into Red Hat JBoss Developer Studio
Important
- If you have not yet done so, Section 4.2.4.2, “Configure the Maven Settings for Use with Command Line”.
- Start Red Hat JBoss Developer Studio.
- From the menu, select
. - In the selection list, choose
, then click . Figure 5.1. Import Existing Maven Projects
- Browse to the directory of the quickstart you plan to test, for example the
helloworldquickstart, and click . The Projects list box is populated with thepom.xmlfile of the selected quickstart project.Figure 5.2. Select Maven Projects
- Click .
Procedure 5.2. Build and Deploy the helloworld quickstart
helloworld quickstart is one of the simplest quickstarts and is a good way to verify that the JBoss server is configured and running correctly.
- If you do not see a Servers tab or have not yet defined a server, follow the instructions here: Section 4.1.5, “Add the JBoss EAP Server Using Define New Server”. If you plan to deploy a quickstart that requires the
fullprofile or additional startup arguments, be sure to create the server runtime environment as noted in the quickstart instructions. - Right-click on the
jboss-helloworldproject in the Project Explorer tab and select . You are provided with a list of choices. Select .Figure 5.3. Run As - Run on Server
- Select JBoss EAP 6.1+ Runtime Server from the server list and click .
Figure 5.4. Run on Server
- The next screen displays the resources that are configured on the server. The
jboss-helloworldquickstart is configured for you. Click to deploy the quickstart.Figure 5.5. Modify Resources Configured on the Server
- Review the results.
- In the
Servertab, the JBoss EAP 6.3 Runtime Server status changes to[Started, Republish]. - The server Console tab shows messages detailing the JBoss EAP 6.3 server start and the helloworld quickstart deployment.
- A helloworld tab appears displaying the URL http://localhost:8080/jboss-helloworld/HelloWorld and the text "Hello World!".
- The following messages in the Console confirm deployment of the
jboss-helloworld.warfile:The registered web context is appended toJBAS018210: Register web context: /jboss-helloworld JBAS018559: Deployed "jboss-helloworld.war" (runtime-name : "jboss-helloworld.war")
JBAS018210: Register web context: /jboss-helloworld JBAS018559: Deployed "jboss-helloworld.war" (runtime-name : "jboss-helloworld.war")Copy to Clipboard Copied! Toggle word wrap Toggle overflow http://localhost:8080to provide the URL used to access the deployed application.
- To verify the
helloworldquickstart deployed successfully to the JBoss server, open a web browser and access the application at this URL: http://localhost:8080/jboss-helloworld
Procedure 5.3. Run the bean-validation quickstart Arquillian tests
bean-validation quickstart is an example of a quickstart that provides Arquillian tests.
- Follow the procedure above to import the
bean-validationquickstart into Red Hat JBoss Developer Studio. - If you do not see a Servers tab or have not yet defined a server, follow the instructions here: Section 4.1.5, “Add the JBoss EAP Server Using Define New Server”
- Right-click on the
jboss-bean-validationproject in the Project Explorer tab and select . You are provided with a list of choices. Select . - In the Goals input field of the Edit Configuration dialog, type:
clean test -Parq-jbossas-remoteThen click .Figure 5.6. Edit Configuration
- Review the results.The server Console tab shows messages detailing the JBoss EAP server start and the output of the
bean-validationquickstart Arquillian tests.Copy to Clipboard Copied! Toggle word wrap Toggle overflow
5.1.2. Run the Quickstarts Using a Command Line リンクのコピーリンクがクリップボードにコピーされました!
Procedure 5.4. Build and Deploy the Quickstarts Using a Command Line
- If you have not yet done so, Section 4.2.4.2, “Configure the Maven Settings for Use with Command Line”.
- Review the
README.htmlfile in the root directory of the quickstarts.This file contains general information about system requirements, how to configure Maven, how to add users, and how to run the Quickstarts. Be sure to read through it before you get started.It also contains a table listing the available quickstarts. The table lists each quickstart name and the technologies it demonstrates. It gives a brief description of each quickstart and the level of experience required to set it up. For more detailed information about a quickstart, click on the quickstart name.Some quickstarts are designed to enhance or extend other quickstarts. These are noted in thePrerequisitescolumn. If a quickstart lists prerequisites, you must install them first before working with the quickstart.Some quickstarts require the installation and configuration of optional components. Do not install these components unless the quickstart requires them. - Run the
helloworldquickstart.Thehelloworldquickstart is one of the simplest quickstarts and is a good way to verify that the JBoss server is configured and running correctly. Open theREADME.htmlfile in the root of thehelloworldquickstart. It contains detailed instructions on how to build and deploy the quickstart and access the running application - Run the other quickstarts.Follow the instructions in the
README.htmlfile located in the root folder of each quickstart to run the example.