[
https://issues.jboss.org/browse/WFLY-5321?page=com.atlassian.jira.plugin....
]
Jan Stourac commented on WFLY-5321:
-----------------------------------
Is this still relevant? As Tomaz already mentioned - there is a log message with context
present in the server.log. With {{WildFly 15.0.1.Final}}, I tried to deploy [helloworld
app|https://github.com/wildfly/quickstart/tree/15.0.1.Final/helloworld] and I can see
following messages in server.log during the app deployment:
{code}
11:57:28,761 INFO [org.jboss.as.repository] (management-handler-thread - 2) WFLYDR0001:
Content added at location
/home/jstourac/workspace/tests-wildfly-openssl/workspace/wildfly-15.0.0.Final/standalone/data/content/94/2f9afd71503e8ceec071eeafd821be218df569/content
11:57:28,764 INFO [org.jboss.as.server.deployment] (MSC service thread 1-6) WFLYSRV0027:
Starting deployment of "helloworld.war" (runtime-name:
"helloworld.war")
11:57:28,896 INFO [org.jboss.weld.deployer] (MSC service thread 1-6) WFLYWELD0003:
Processing weld deployment helloworld.war
11:57:28,989 INFO [org.hibernate.validator.internal.util.Version] (MSC service thread
1-6) HV000001: Hibernate Validator 6.0.13.Final
11:57:29,215 INFO [org.jboss.weld.Version] (MSC service thread 1-8) WELD-000900: 3.0.5
(Final)
11:57:29,486 INFO [io.smallrye.metrics] (MSC service thread 1-4) MicroProfile: Metrics
activated
11:57:30,310 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 80)
WFLYUT0021: Registered web context: '/helloworld' for server
'default-server'
11:57:30,318 INFO [org.jboss.as.server] (management-handler-thread - 2) WFLYSRV0010:
Deployed "helloworld.war" (runtime-name : "helloworld.war")
{code}
See this one particularly:
{code}
11:57:30,310 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 80)
WFLYUT0021: Registered web context: '/helloworld' for server
'default-server'
{code}
This message mentions context in which the app has been registered and also server where
it has been deployed.
Deploying a war to wildfly should mention the localhost url including
context root of that war in the log
---------------------------------------------------------------------------------------------------------
Key: WFLY-5321
URL:
https://issues.jboss.org/browse/WFLY-5321
Project: WildFly
Issue Type: Enhancement
Components: Web (Undertow)
Reporter: Geoffrey De Smet
Priority: Minor
Here what I see now in the log:
{code}
[2015-09-10 04:56:44,211] Artifact optaconf-webapp:war exploded: Artifact is being
deployed, please wait...
16:56:44,235 INFO [org.jboss.weld.deployer] (MSC service thread 1-9) JBAS016009:
Stopping weld service for deployment optaconf-webapp-0.1.0-SNAPSHOT
16:56:44,244 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877:
Stopped deployment optaconf-webapp-0.1.0-SNAPSHOT (runtime-name:
optaconf-webapp-0.1.0-SNAPSHOT) in 15ms
16:56:44,255 INFO [org.jboss.as.server] (management-handler-thread - 3) JBAS018558:
Undeployed "optaconf-webapp-0.1.0-SNAPSHOT" (runtime-name:
"optaconf-webapp-0.1.0-SNAPSHOT")
16:56:44,322 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876:
Starting deployment of "optaconf-webapp-0.1.0-SNAPSHOT" (runtime-name:
"optaconf-webapp-0.1.0-SNAPSHOT")
...
16:56:44,508 INFO [org.jboss.as.server] (management-handler-thread - 3) JBAS018559:
Deployed "optaconf-webapp-0.1.0-SNAPSHOT" (runtime-name :
"optaconf-webapp-0.1.0-SNAPSHOT")
[2015-09-10 04:56:44,519] Artifact optaconf-webapp:war exploded: Artifact is deployed
successfully
[2015-09-10 04:56:44,519] Artifact optaconf-webapp:war exploded: Deploy took 308
milliseconds
{code}
But as a developer, it's very hard to figure out the url to test the app, especially
if someone changed it recently. Note that in my case it could be any of these, depending
on the state of the jboss-web.xml, war file name (potentially exploded), IDE
configuration, etc:
-
http://localhost:8080/optaconf-webapp-0.1.0-SNAPSHOT/
-
http://localhost:8080/optaconf-webapp/
-
http://localhost:8080/optaconf/
--
This message was sent by Atlassian Jira
(v7.12.1#712002)