[jboss-jira] [JBoss JIRA] Created: (AS7-1996) Unsuccessfull deployment-scanner:add operation changes runtime state
Dominik Pospisil (JIRA)
jira-events at lists.jboss.org
Tue Oct 4 04:52:26 EDT 2011
Unsuccessfull deployment-scanner:add operation changes runtime state
--------------------------------------------------------------------
Key: AS7-1996
URL: https://issues.jboss.org/browse/AS7-1996
Project: Application Server 7
Issue Type: Bug
Components: Domain Management
Affects Versions: 7.1.0.Alpha1
Reporter: Dominik Pospisil
Assignee: Brian Stansberry
Steps to reproduce:
1) Start standalone server
2) Issue:
/subsystem=deployment-scanner/scanner=testScanner:add(scan-interval=2000,path="/noexisiting")
where /noexisting is some incorrect path
3) Issue:
/subsystem=deployment-scanner/scanner=testScanner:add(scan-interval=2000,path="/tmp/test")
where /tmp/test is a valid path
I think that the expected result would be that the step 2 fails, however this step should not affect runtime nor configuration model.
The result of step 3 should be then a success however it is actually a failure:
08:45:25,421 ERROR [org.jboss.as.controller] (pool-3-thread-8) Operation ("add") failed - address: ([
("subsystem" => "deployment-scanner"),
("scanner" => "testScanner")
]): org.jboss.msc.service.DuplicateServiceException: Service jboss.server.deployment.scanner.testScanner.path is already registered
at org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:154) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
at org.jboss.msc.service.ServiceControllerImpl.startInstallation(ServiceControllerImpl.java:226) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
at org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:560) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:201) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2211) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list