[wildfly-dev] Deployment unit runtime-name - must it have a packaging type suffix?

Jaikiran Pai jai.forums2013 at gmail.com
Thu Jan 4 23:44:18 EST 2018


In context of this[1] forum thread, is runtime-name expected/mandated to 
include even the packaging type suffix (.war, .ear etc) or can it be any 
name? For example, for a deployment foo.war, is it valid to have it 
deployed with a runtime-name "bar"? Or should it be bar.war?

What's happening in this case is that there are deployment unit 
processors which identify the "type"[2] of the deployment based on the 
deploymentUnit.getName() and in the absence of the suffix, end up not 
recognizing the type of the deployment unit which then cascades into 
issues like the one in that thread, where the WEB-INF/classes isn't 
added as a resource root to the module of the deployment unit, since it 
wasn't considered a WAR type deployment.


[1] https://developer.jboss.org/thread/276899

[2] 
https://github.com/wildfly/wildfly/blob/master/undertow/src/main/java/org/wildfly/extension/undertow/deployment/WarDeploymentInitializingProcessor.java#L46

-Jaikiran



More information about the wildfly-dev mailing list