[wildfly-dev] Deploying app on managed domain
Brian Stansberry
brian.stansberry at redhat.com
Mon Jan 20 13:48:22 EST 2014
On 1/13/14, 10:03 AM, Arun Gupta wrote:
>>> I started bin/standalone.sh, deployed a WAR file (name is
>>> http-1.0-SNAPSHOT.war) with just one index.jsp. Accessing
>>> localhost:8080/http shows the expected results. Tried the same with
>>> bin/domain.sh but now localhost:8080/http is giving a 404.
>>
>> How exactly did you deploy it?
>
> - localhost:9990/console
> - Manage Deployments
> - Deployed the app and it did not ask for server groups.
>
Use the "Assign" button to the right of the "Add" and "Remove" buttons
to assign the deployment to server groups.
IMO including this as part of the "Add" wizard makes sense.
https://issues.jboss.org/browse/HAL-340
> Redeployed using jboss-cli as:
>
> deploy ~/workspaces/wildfly-lab/samples/javaee7/target/javaee7-1.0-SNAPSHOT.war
> --server-groups=main-server-group
>
> and that worked.
>
> However deploying using admin console (following the steps listed
> above) does not work for standalone. Or at least the application is
> not accessible at http://localhost:8080/javaee7-1.0-SNAPSHOT. What is
> the context path of the deployed application ?
>
It should be javaee7-1.0-SNAPSHOT unless you set the runtime-name
attribute to something else in the console wizard or override the
default in a deployment descriptor.
> Arun
>
>
>
>>
>>> What are the port number of the servers started in this managed domain
>>> ? Is Ports +0 and +150 in admin console trying to display that
>>> information ? If yes, then that is not very intuitive and the exact
>>> value of the port should be displayed. If not, what are these values ?
>>> Should this app be accessible on localhost:8080 ?
>>>
>>> Tried enabling the app from admin console and got the error:
>>> Failed to enable http-1.0-SNAPSHOT.war.
>>>
>>> Unexpected HTTP response: 500
>>>
>>> Request
>>> {
>>> "address" => [("deployment" => "http-1.0-SNAPSHOT.war")],
>>> "operation" => "deploy"
>>> }
>>>
>>> Response
>>>
>>> Internal Server Error
>>> {
>>> "outcome" => "failed",
>>> "failure-description" => "JBAS014884: No operation named 'deploy'
>>> exists at address [(\"deployment\" => \"http-1.0-SNAPSHOT.war\")]",
>>> "rolled-back" => true
>>> }
>>>
>>> Is this the correct way to deploy the app on managed domain ?
>>
>> No, it has to be deployed on server groups.
>>
>>
>> Alexey
>>
>>>
>>> Arun
>>>
>> _______________________________________________
>> wildfly-dev mailing list
>> wildfly-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/wildfly-dev
>
>
>
--
Brian Stansberry
Senior Principal Software Engineer
JBoss by Red Hat
More information about the wildfly-dev
mailing list