[JBoss JIRA] (WFLY-2497) CLONE - Admin Console does not handle resource adapter address properly
by Brian Stansberry (JIRA)
Brian Stansberry created WFLY-2497:
--------------------------------------
Summary: CLONE - Admin Console does not handle resource adapter address properly
Key: WFLY-2497
URL: https://issues.jboss.org/browse/WFLY-2497
Project: WildFly
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 8.0.0.Alpha1
Reporter: Bartosz Baranowski
Assignee: Bartosz Baranowski
Fix For: 8.0.0.CR1
console seems to handle RA entities in a a bad way. Not sure if this is by design and I am the one missing something.
In case of anonymous declaration( as per JCA specs ? ):
<resource-adapters>
<resource-adapter>
<archive>test</archive>
<transaction-support>NoTransaction</transaction-support>
</resource-adapter>
</resource-adapters>
Name of adapter( in model ) is set to to "test" - archive name. However if there are more adapters, model names become:
/subsystem=resource-adapters/resource-adapter=test
/subsystem=resource-adapters/resource-adapter=test->1
/subsystem=resource-adapters/resource-adapter=test->2
...
/subsystem=resource-adapters/resource-adapter=test->n++
Now, there is another trick. AS supports custom "ID":
<resource-adapters>
<resource-adapter id="XXX">
<archive>test</archive>
<transaction-support>NoTransaction</transaction-support>
</resource-adapter>
</resource-adapters>
In this case the model address is "/subsystem=resource-adapters/resource-adapter=XXX".
In case of second definition, console keeps displaying RA as "test" - since its the archive name. In case of definition with ID or one with '->#' this fails, since console depends on "getArchive()":
https://github.com/hal/core/blob/master/gui/src/main/java/org/jboss/as/co...
This affects WFLY and all previous release.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 2 months
[JBoss JIRA] (WFLY-2481) CDI.current().getBeanManager() returns a beanmanager from a different deployment
by Max Pimm (JIRA)
[ https://issues.jboss.org/browse/WFLY-2481?page=com.atlassian.jira.plugin.... ]
Max Pimm commented on WFLY-2481:
--------------------------------
Woops. Just seen the pull request.... ignore that comment.
> CDI.current().getBeanManager() returns a beanmanager from a different deployment
> --------------------------------------------------------------------------------
>
> Key: WFLY-2481
> URL: https://issues.jboss.org/browse/WFLY-2481
> Project: WildFly
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: CDI / Weld
> Affects Versions: 8.0.0.Beta1
> Environment: WildFly master build
> Reporter: Emond Papegaaij
> Assignee: Jozef Hartinger
>
> CDI.current().getBeanManager() uses the classname of the calling class to cache BeanManagers returned. This fails if multiple deployments contain classes with the same name. For example, wicket-cdi-1.1 looks up the BeanManager from org.apache.wicket.cdi.CdiConfiguration. If multiple Wicket-CDI applications are deployed in the same container, every BeanManager lookup will return the instance cached on the first call.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 2 months
[JBoss JIRA] (WFLY-800) Deployment fails while previous message implies content was fine
by Brian Stansberry (JIRA)
[ https://issues.jboss.org/browse/WFLY-800?page=com.atlassian.jira.plugin.s... ]
Brian Stansberry commented on WFLY-800:
---------------------------------------
Is this fixed? The jboss-metadata PR was merged. Is that in WF now?
> Deployment fails while previous message implies content was fine
> ----------------------------------------------------------------
>
> Key: WFLY-800
> URL: https://issues.jboss.org/browse/WFLY-800
> Project: WildFly
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: EE
> Environment: Ubuntu Linux 12.10, x86_64
> Reporter: Jari Juslin
> Assignee: David Lloyd
>
> In jboss-app.xml old style markup like this:
> {code:xml}
> <module-order>strict</module-order>
> {code}
> causes the whole deployment roll back. However, the deployer first claims it's OK and then throws undecipherable Exception message adding to the confusion.
> It is OK to refuse to deploy because XML contains invalid element, but _not_ OK to fail to deploy and not tell that element was invalid, but instead suggest the XML was malformed, which it was not.
> Beginning of the jboss-app.xml:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <jboss-app xmlns="http://www.jboss.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> version="7.0">
> <module-order>strict</module-order>
> {code}
> And the Exception:
> {noformat}
> 17:04:32,075 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015876: Starting deployment of "foo.ear"
> 17:04:32,099 WARN [org.jboss.metadata.parser.jboss.JBossAppMetaDataParser] (MSC service thread 1-2) module-order element in jboss-app.xml is deprecated and has been ignored
> 17:04:32,103 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."foo.ear".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."foo.ear".STRUCTURE: Failed to process phase STRUCTURE of deployment "foo.ear"
> at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_33]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_33]
> at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_33]
> Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011059: Failed to parse "/content/foo.ear/META-INF/jboss-app.xml"
> at org.jboss.as.ee.structure.EarMetaDataParsingProcessor.handleJbossMetadata(EarMetaDataParsingProcessor.java:123)
> at org.jboss.as.ee.structure.EarMetaDataParsingProcessor.deploy(EarMetaDataParsingProcessor.java:64)
> at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
> ... 5 more
> Caused by: com.ctc.wstx.exc.WstxParsingException: Received non-all-whitespace CHARACTERS or CDATA event in nextTag().
> at [row,col {unknown-source}]: [4,22]
> at com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:606)
> at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:479)
> at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:464)
> at com.ctc.wstx.sr.BasicStreamReader.nextTag(BasicStreamReader.java:1137)
> at org.jboss.metadata.parser.jboss.JBossAppMetaDataParser.parse(JBossAppMetaDataParser.java:88)
> at org.jboss.as.ee.structure.EarMetaDataParsingProcessor.handleJbossMetadata(EarMetaDataParsingProcessor.java:120)
> ... 7 more
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 2 months
[JBoss JIRA] (WFLY-2481) CDI.current().getBeanManager() returns a beanmanager from a different deployment
by Max Pimm (JIRA)
[ https://issues.jboss.org/browse/WFLY-2481?page=com.atlassian.jira.plugin.... ]
Max Pimm commented on WFLY-2481:
--------------------------------
I've been looking at this but before attempting a solution i thought i'd best run it by you.
My idea is to add a LoadingCache<String, BeanManagerProxy> to EnhancedWeld for each root BDA. This could be stored as a map with the root BDA as the key.
Can you see any problems with this? If not you can assign it to me.
> CDI.current().getBeanManager() returns a beanmanager from a different deployment
> --------------------------------------------------------------------------------
>
> Key: WFLY-2481
> URL: https://issues.jboss.org/browse/WFLY-2481
> Project: WildFly
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: CDI / Weld
> Affects Versions: 8.0.0.Beta1
> Environment: WildFly master build
> Reporter: Emond Papegaaij
> Assignee: Jozef Hartinger
>
> CDI.current().getBeanManager() uses the classname of the calling class to cache BeanManagers returned. This fails if multiple deployments contain classes with the same name. For example, wicket-cdi-1.1 looks up the BeanManager from org.apache.wicket.cdi.CdiConfiguration. If multiple Wicket-CDI applications are deployed in the same container, every BeanManager lookup will return the instance cached on the first call.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 2 months