Permalink
Browse files

JBEAP-12917,JBEAP-12920: Fix deploy and add undeploy to JBDS instruct…

…ions where needed
  • Loading branch information...
sgilda committed Sep 5, 2017
1 parent f93e456 commit 18a174243a5e10764d474650f08b1ed68c2e638a
@@ -106,6 +106,7 @@ This quickstart consists of multiple projects, so it deploys and runs differentl
* Right-click on the `${project.artifactId}-client` project and choose `Run As` --> `Java Application`.
* In the `Select Java Application` window, choose `AsynchronousClient - org.jboss.as.quickstarts.ejb.asynchronous.client` and click `OK`.
* The client output displays in the `Console` window.
3. To undeploy the project, right-click on the `${project.artifactId}-ejb` project and choose `Run As` --> `Maven build`. Enter `wildfly:undeploy` for the `Goals` and click `Run`.
## Debug the Application
View
@@ -81,11 +81,12 @@ Enter a name in the input field and click the _Greet_ button to see the response
You can also start the server and deploy the quickstarts or run the Arquillian tests from Eclipse using JBoss tools. For general information about how to import a quickstart, add a ${product.name} server, and build and deploy a quickstart, see [Use JBoss Developer Studio or Eclipse to Run the Quickstarts](${use.eclipse.url}).
For this quickstart, follow the special instructions to build [Quickstarts Containing an EAR](https://github.com/jboss-developer/jboss-developer-shared-resources/blob/master/guides/USE_JBDS.md#quickstarts-containing-an-ear).
For this quickstart, follow the special instructions to build [Quickstarts Containing an EAR](https://github.com/jboss-developer/jboss-developer-shared-resources/blob/master/guides/USE_JBDS.md#deploy-and-undeploy-a-quickstart-ear-project).
1. Right-click on the `${project.artifactId}` subproject, and choose `Run As` --> `Run on Server`.
1. Right-click on the `${project.artifactId}-ear` subproject, and choose `Run As` --> `Run on Server`.
2. Choose the server and click `Finish`.
3. This starts the server, deploys the application, and opens a browser window that accesses the running application at <http://localhost:8080/ejb-in-ear>.
3. This starts the server, deploys the application, and opens a browser window that accesses the running application.
4. 3. To undeploy the project, right-click on the `${project.artifactId}-ear` project and choose `Run As` --> `Maven build`. Enter `wildfly:undeploy` for the `Goals` and click `Run`.
## Debug the Application
View
@@ -164,6 +164,7 @@ This quickstart consists of multiple projects, so it deploys and runs differentl
* In the `Select Java Application` window, choose `RemoteEJBClient - org.jboss.as.quickstarts.ejb.remote.client` and click `OK`.
* The client output displays in the `Console` window.
3. To undeploy the project, right-click on the `${project.artifactId}-server-side` project and choose `Run As` --> `Maven build`. Enter `wildfly:undeploy` for the `Goals` and click `Run`.
## Debug the Application
@@ -337,11 +337,12 @@ This quickstart requires additional configuration and deploys and runs different
1. Be sure to [Add the Application Users](#add-the-application-users) as described above.
2. Follow the steps above to [Configure the Server](#configure-the-server). Stop the server at the end of that step.
3. To deploy the application to the ${product.name} server, right-click on the `ejb-security-context-propagation` project and choose `Run As` --> `Run on Server`.
4. To access the application, right-click on the `ejb-security-context-propagation` project and choose `Run As` --> `Java Application`.
3. To deploy the application to the ${product.name} server, right-click on the `${project.artifactId}` project and choose `Run As` --> `Run on Server`.
4. To access the application, right-click on the `${project.artifactId}` project and choose `Run As` --> `Java Application`.
5. Choose `RemoteClient - org.jboss.as.quickstarts.ejb_security_context_propagation` and click `OK`.
6. Review the output in the console window.
7. Be sure to [Restore the Server Configuration](#restore-the-server-configuration) when you have completed testing this quickstart.
7. To undeploy the project, right-click on the `${project.artifactId}` project and choose `Run As` --> `Maven build`. Enter `wildfly:undeploy` for the `Goals` and click `Run`.
8. Be sure to [Restore the Server Configuration](#restore-the-server-configuration) when you have completed testing this quickstart.
## Debug the Application

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -213,7 +213,7 @@ When you access the application, you are presented with a browser login challeng
For Linux: ${jboss.home.name}/bin/jboss-cli.sh --connect --file=enable-role-mappers.cli
For Windows: ${jboss.home.name}\bin\jboss-cli.bat --connect --file=enable-role-mappers.cli
You should see the following result when you run the script:
{
"outcome" => "success",
"response-headers" => {
@@ -292,6 +292,7 @@ You can also start the server and deploy the quickstarts or run the Arquillian t
* You are presented with a browser login challenge. Enter the credentials as described above under [Access the Application](#access-the-application) to see the running application. Note that `Has admin permission` is `false`.
* Leave the application running in JBoss Developer Studio. To configure the server to use the legacy role mappers, open a terminal, and run the `enable-role-mappers.cli` script as described above under [Access the Application](#access-the-application).
* Go back to JBoss Developer Studio and click `Refresh the current page`. Note that `Has admin permission` is now `true`.
* To undeploy the project, right-click on the `${project.artifactId}` project and choose `Run As` --> `Maven build`. Enter `wildfly:undeploy` for the `Goals` and click `Run`.
* Be sure to [Restore the Server Configuration](#restore-the-server-configuration) when you have completed testing this quickstart.
## Debug the Application
@@ -201,7 +201,7 @@ Enter `clean package wildfly:deploy` for the `Goals:` and click `Run`. This depl
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Enter `exec:exec` for the `Goals` and click `Run`.
* To undeploy the project, right-click on the `${project.artifactId}` project and choose `Run As` --> `Maven build`. Enter `wildfly:undeploy` for the `Goals` and click `Run`.
* Be sure to [Restore the Server Configuration](#restore-the-server-configuration) when you have completed testing this quickstart.
## Debug the Application
View
@@ -18,7 +18,7 @@ This quickstart takes the following steps to implement EJB security:
3. Add the `@RolesAllowed({ "guest" })` annotation to the EJB declaration to authorize access only to users with `guest` role access rights.
4. Add the `@RolesAllowed({ "admin" })` annotation to the administrative method in the `SecuredEJB` to authorize access only
to users with `admin` role access rights.
5. Add an application user with `guest` role access rights to the EJB. This quickstart defines a user `quickstartUser` with
5. Add an application user with `guest` role access rights to the EJB. This quickstart defines a user `quickstartUser` with
password `quickstartPwd1!` in the `guest` role. The `guest` role matches the allowed user role defined in the `@RolesAllowed`
annotation in the EJB but it should not be granted access to the administrative method annotated with `RolesAllowed({"admin"})`.
@@ -83,7 +83,7 @@ You configure the security domain by running JBoss CLI commands. For your conven
You should see the following result when you run the script:
The batch executed successfully
process-state: reload-required
process-state: reload-required
5. Stop the ${product.name} server.
@@ -101,11 +101,11 @@ After stopping the server, open the `${jboss.home.name}/standalone/configuration
domain that was set in the EJBs via annotation to the Elytron `ApplicationDomain` that will be responsible for authenticating
and authorizing access to the EJBs.
2. The `http-remoting-connector` in the `remoting` subsystem was updated to use the `application-sasl-authentication` factory:
<http-connector name="http-remoting-connector" connector-ref="default" security-realm="ApplicationRealm" sasl-authentication-factory="application-sasl-authentication"/>
This config allows for the identity that was established at the connection level to be propagated to the components.
## Start the Server
1. Open a command prompt and navigate to the root of the ${product.name} directory.
@@ -138,13 +138,13 @@ Type this command to execute the client:
When you run the `mvn exec:exec` command, you see the following output. Note there may be other log messages interspersed between these.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Successfully called secured bean, caller principal quickstartUser
Principal has admin permission: false
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
The username and credentials used to establish the connection to the application server are configured in the `wildfly-config.xml`
@@ -161,13 +161,13 @@ section but this time include the `admin` role as follows to grant `quickstartUs
Running the client again should immediately reflect the new permission level of the user:
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Successfully called secured bean, caller principal quickstartUser
Principal has admin permission: true
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
@@ -212,6 +212,7 @@ You can also start the server and deploy the quickstarts or run the Arquillian t
* To deploy the server project, right-click on the `${project.artifactId}` project and choose `Run As` --> `Run on Server`.
* You are presented with a browser login challenge. Enter the credentials as described above to access and test the running application.
* Be sure to [Restore the Server Configuration](#restore-the-server-configuration) when you have completed testing this quickstart.
* To undeploy the project, right-click on the `${project.artifactId}` project and choose `Run As` --> `Maven build`. Enter `wildfly:undeploy` for the `Goals` and click `Run`.
## Debug the Application
@@ -89,6 +89,13 @@ If the `Name` input text box is empty, then the `Response` output text will disp
You can also start the server and deploy the quickstarts or run the Arquillian tests from Eclipse using JBoss tools. For general information about how to import a quickstart, add a ${product.name} server, and build and deploy a quickstart, see [Use JBoss Developer Studio or Eclipse to Run the Quickstarts](${use.eclipse.url}).
For this quickstart, follow the special instructions to build [Quickstarts Containing an EAR](https://github.com/jboss-developer/jboss-developer-shared-resources/blob/master/guides/USE_JBDS.md#deploy-and-undeploy-a-quickstart-ear-project)
1. Right-click on the `${project.artifactId}-ear` subproject, and choose `Run As` --> `Run on Server`.
2. Choose the server and click `Finish`.
3. This starts the server, deploys the application, and opens a browser window that accesses the running application.
4. To undeploy the project, right-click on the `${project.artifactId}-ear` project and choose `Run As` --> `Maven build`. Enter `wildfly:undeploy` for the `Goals` and click `Run`.
## Debug the Application
@@ -123,6 +123,8 @@ This quickstart consists of multiple projects and requires installation of the `
3. Right-click on the `${project.artifactId}-service` project and choose `Run As` --> `Run on Server`.
4. Right-click on the `${project.artifactId}-webapp` project and choose `Run As` --> `Run on Server`.
5. [Start JConsole](#start-jconsole) and [Test the MBeans in JConsole](#test-the-mbeans-in-jconsole) as described above.
6. To undeploy the web application, right-click on the `${project.artifactId}-wepapp` project and choose `Run As` --> `Maven build`. Enter `wildfly:undeploy` for the `Goals` and click `Run`.
7. To undeploy the web service, right-click on the `${project.artifactId}-service` project and choose `Run As` --> `Maven build`. Enter `wildfly:undeploy` for the `Goals` and click `Run`.
## Debug the Application
View
@@ -89,6 +89,8 @@ This quickstart consists of multiple projects containing interdependencies on ea
* `Batch` mode: In the `Servers` tab, right-click on the server and choose `Add and Remove`. If the `${project.artifactId}-app-shared`, `${project.artifactId}-app-appA`, and `${project.artifactId}-app-appB` projects are the only projects in the list, click `Add All`. Otherwise, use multi-select to select them and click `Add`. Then click `Finish`.
3. Right-click on the `${project.artifactId}-app-appA` project and choose `Run As` --> `Run on Server`. A browser window appears that accesses the running `appA` application.
4. Right-click on the `${project.artifactId}-app-appB` project and choose `Run As` --> `Run on Server`. A browser window appears that accesses the running `appB` application.
5. To undeploy the `${project.artifactId}-app-appB`project, right-click on it and choose `Run As` --> `Maven build`. Enter `wildfly:undeploy` for the `Goals` and click `Run`.
6. To undeploy the `${project.artifactId}-app-appA`project, right-click on it and choose `Run As` --> `Maven build`. Enter `wildfly:undeploy` for the `Goals` and click `Run`.
## Debug the Application
View
@@ -78,6 +78,13 @@ You can check that the Web Service is running and deployed correctly by accessin
You can also start the server and deploy the quickstarts or run the Arquillian tests from Eclipse using JBoss tools. For general information about how to import a quickstart, add a ${product.name} server, and build and deploy a quickstart, see [Use JBoss Developer Studio or Eclipse to Run the Quickstarts](${use.eclipse.url}).
For this quickstart, follow the special instructions to build [Quickstarts Containing an EAR](https://github.com/jboss-developer/jboss-developer-shared-resources/blob/master/guides/USE_JBDS.md#deploy-and-undeploy-a-quickstart-containing-server-and-java-client-projects)
1. Right-click on the `${project.artifactId}-service` subproject, and choose `Run As` --> `Run on Server`.
2. Choose the server and click `Finish`.
3. This starts the server, deploys the application, and opens a browser window that accesses the running application.
4. To undeploy the project, right-click on the `${project.artifactId}-ear` project and choose `Run As` --> `Maven build`. Enter `wildfly:undeploy` for the `Goals` and click `Run`.
## Debug the Application
View
@@ -79,6 +79,13 @@ You can check that the Web Service is running and deployed correctly by accessin
You can also start the server and deploy the quickstarts or run the Arquillian tests from Eclipse using JBoss tools. For general information about how to import a quickstart, add a ${product.name} server, and build and deploy a quickstart, see [Use JBoss Developer Studio or Eclipse to Run the Quickstarts](${use.eclipse.url}).
For this quickstart, follow the special instructions to build [Quickstarts Containing an EAR](https://github.com/jboss-developer/jboss-developer-shared-resources/blob/master/guides/USE_JBDS.md#deploy-and-undeploy-a-quickstart-containing-server-and-java-client-projects)
1. Right-click on the `${project.artifactId}-service` subproject, and choose `Run As` --> `Run on Server`.
2. Choose the server and click `Finish`.
3. This starts the server, deploys the application, and opens a browser window that accesses the running application.
4. To undeploy the project, right-click on the `${project.artifactId}-ear` project and choose `Run As` --> `Maven build`. Enter `wildfly:undeploy` for the `Goals` and click `Run`.
## Debug the Application
View
@@ -124,6 +124,7 @@ This quickstart requires that you first deploy the service, and then run the cli
* Review the output in the console window. You should see the following message:
`Jay Boss's discount is 10.00`
3. To undeploy the project, right-click on the `${project.artifactId}-service` project and choose `Run As` --> `Maven build`. Enter `wildfly:undeploy` for the `Goals` and click `Run`.
## Debug the Application
@@ -119,11 +119,12 @@ _Note:_ You will see the following warnings in the server log. You can ignore th
You can also start the server and deploy the quickstarts or run the Arquillian tests from Eclipse using JBoss tools. For general information about how to import a quickstart, add a ${product.name} server, and build and deploy a quickstart, see [Use JBoss Developer Studio or Eclipse to Run the Quickstarts](${use.eclipse.url}).
For this quickstart, follow the special instructions to build [Quickstarts Containing an EAR](https://github.com/jboss-developer/jboss-developer-shared-resources/blob/master/guides/USE_JBDS.md#quickstarts-containing-an-ear)
For this quickstart, follow the special instructions to build [Quickstarts Containing an EAR](https://github.com/jboss-developer/jboss-developer-shared-resources/blob/master/guides/USE_JBDS.md#deploy-and-undeploy-a-quickstart-ear-project)
1. Right-click on the `${project.artifactId}-ear` subproject, and choose `Run As` --> `Run on Server`.
2. Choose the server and click `Finish`.
3. This starts the server, deploys the application, and opens a browser window that accesses the running application at <http://localhost:8080/kitchensink-ear-web>.
4. To undeploy the project, right-click on the `${project.artifactId}-ear` project and choose `Run As` --> `Maven build`. Enter `wildfly:undeploy` for the `Goals` and click `Run`.
## Debug the Application
@@ -193,12 +193,12 @@ You should see messages similar to the following:
You can also start the server and deploy the quickstarts or run the Arquillian tests from Eclipse using JBoss tools. For general information about how to import a quickstart, add a ${product.name} server, and build and deploy a quickstart, see [Use JBoss Developer Studio or Eclipse to Run the Quickstarts](${use.eclipse.url}).
For this quickstart, follow the special instructions to build [Quickstarts Containing an EAR](https://github.com/jboss-developer/jboss-developer-shared-resources/blob/master/guides/USE_JBDS.md#quickstarts-containing-an-ear)
For this quickstart, follow the special instructions to build [Quickstarts Containing an EAR](https://github.com/jboss-developer/jboss-developer-shared-resources/blob/master/guides/USE_JBDS.md#deploy-and-undeploy-a-quickstart-ear-project)
1. Right-click on the `${project.artifactId}-web` subproject, and choose `Run As` --> `Run on Server`.
2. Choose the server and click `Finish`.
3. This starts the server, deploys the application, and opens a browser window that accesses the running application at <http://localhost:8080/${project.artifactId}-web/>.
4. To undeploy the project, right-click on the `${project.artifactId}-web` project and choose `Run As` --> `Maven build`. Enter `wildfly:undeploy` for the `Goals` and click `Run`.
## Debug the Application
View
@@ -164,6 +164,7 @@ _NOTE:_
* Be sure to [Configure an SMTP Server on Your Local Machine](#configure-an-smtp-server-on-your-local-machine).
* Be sure to configure the ${product.name} custom mail configuration as described above under [Configure the ${product.name} Server](#configure-the-server). Stop the server at the end of that step.
* To deploy the server project, right-click on the `${project.artifactId}` project and choose `Run As` --> `Run on Server`. A browser window appears that accesses the running application.
* To undeploy the project, right-click on the `${project.artifactId}` project and choose `Run As` --> `Maven build`. Enter `wildfly:undeploy` for the `Goals` and click `Run`.
* Be sure to [Remove the Mail Configuration](#remove-the-mail-configuration) when you have completed testing this quickstart.
Oops, something went wrong.

0 comments on commit 18a1742

Please sign in to comment.