[
https://issues.jboss.org/browse/AS7-845?page=com.atlassian.jira.plugin.sy...
]
Brian Stansberry resolved AS7-845.
----------------------------------
Resolution: Done
http://github.com/jbossas/jboss-as/compare/ae8c859...3b6b04d
DeploymentUnit.getName() now returns the runtime-name. The runtime-name can also be
obtained as a deployment unit attachment under key Attachments.RUNTIME_NAME, but this is
deprecated.
The value of the last element of the deployment's address in the model is available to
deployment unit processors via a deployment unit attachment with key
Attachments.MANAGEMENT_NAME. I don't know any specific use case where that would be
needed, but it is available.
Incorrect handing of name and runtime-name in deployers
-------------------------------------------------------
Key: AS7-845
URL:
https://issues.jboss.org/browse/AS7-845
Project: Application Server 7
Issue Type: Bug
Components: Domain Management
Affects Versions: 7.0.0.Beta3
Reporter: Stan Silvert
Assignee: Brian Stansberry
Priority: Blocker
Fix For: 7.0.0.CR1
Various problems happen at deploy time if you deploy a file and change the name or
runtime-name arguments. (Note: in the CLI, the argument to change the runtime-name is
"runtime-name" rather than "runtime_name" as described in the help.
See AS7-785)
If I deploy foo.war and I only change the runtime-name=bar.war, it will deploy normally,
but the context will be set to /foo instead of /bar.
If I deploy stuff.war and change both names with name=hello and runtime-name=hello.war,
the context is set to /h and I will get a 404 when I try to hit my page:
[standalone@localhost:9999 /] deploy /projects/foo.war/stuff.war --name=hello
--runtime-name=hello.war
'hello' deployed successfully.
16:46:15,916 INFO [org.jboss.as.server.deployment] (ManagementCommunication-threads -
10) Content added at location C:\as7trunk\jboss-as\build\target\jboss-7.0.0.Beta4-S
NAPSHOT\standalone\data\content\91\b040bbc10337f5150474ee417f8aaeb005896d\content
16:46:26,096 INFO [org.jboss.as.server.deployment] (MSC service thread 1-6) Starting
deployment of "hello"
16:46:26,133 INFO [org.jboss.web] (MSC service thread 1-5) registering web context: /h
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira