[JBoss JIRA] Created: (JBAS-8775) Too aggressive annotation scanning of classes by WarAnnotationMetaDataDeployer leads to incorrect metadata being created
by jaikiran pai (JIRA)
Too aggressive annotation scanning of classes by WarAnnotationMetaDataDeployer leads to incorrect metadata being created
-------------------------------------------------------------------------------------------------------------------------
Key: JBAS-8775
URL: https://issues.jboss.org/browse/JBAS-8775
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Web (Tomcat) service
Reporter: jaikiran pai
The WarAnnotationMetaDataDeployer scans all the classes for Java EE resource injection annotations. The spec specifies only a certain "type" of classes in a web-app which are eligible for resource injection. Annotation scanning of unwanted classes in the web-app leads to an incorrect Environment metadata being created for JBossWebMetaData.
(More details to follow in subsequent replies and forum posts, after the holidays :) )
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 1 month
[JBoss JIRA] Created: (AS7-856) Replace -DskipTests=true with -DallTests
by Thomas Diesler (JIRA)
Replace -DskipTests=true with -DallTests
----------------------------------------
Key: AS7-856
URL: https://issues.jboss.org/browse/AS7-856
Project: Application Server 7
Issue Type: Task
Reporter: Thomas Diesler
Assignee: Thomas Diesler
Fix For: 7.0.0.CR1
Using skipTests as a flag has a negative side effect such that you cannot do
> mvn -Dtest=SomeTestCase test
in an integration module any more. Instead you have to do
> mvn -DskipTests=false -Dtest=SomeTestCase test
This is non-intuitive and non-standard. Instead I propose to use an
alternate switch like 'allTests' to turn on profiles which run the
complete set of tests. IMHO its ok to exclude entire (testsuite) modules
from the build (i.e. not to compile the tests) because compilation
errors show up in the IDE and Hudson anyway.
I propose
1) By default, all normal modules and testsuite/smoke will be built in
the standard way
(i.e. failing tests will fail the build)
2) By adding -DskipTests=true tests that would normally be executed are skipped
3) By adding -DallTests all modules that contain tests will be executed. In Hudson you could add -fae
which fails the build at the end - so catch all failing tests in a single run
It boils down to whether you want to compile tests that you don't want to execute.
IMHO that's not necessary in day to day work - Hudson can catch this.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 1 month
[JBoss JIRA] Created: (AS7-891) Failed to enable datasource ("generate more then one cf")
by Heiko Braun (JIRA)
Failed to enable datasource ("generate more then one cf")
---------------------------------------------------------
Key: AS7-891
URL: https://issues.jboss.org/browse/AS7-891
Project: Application Server 7
Issue Type: Bug
Components: JCA
Reporter: Heiko Braun
Assignee: Stefano Maestri
Fix For: 7.0.0.CR1
18:40:07,600 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.data-source.java:/H2DS: org.jboss.msc.service.StartException in service jboss.data-source.java:/H2DS: Error during the deployment of java:/H2DS
at org.jboss.as.connector.subsystems.datasources.AbstractDataSourceService.start(AbstractDataSourceService.java:113)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1675)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_24]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_24]
at java.lang.Thread.run(Thread.java:680) [:1.6.0_24]
Caused by: org.jboss.msc.service.StartException in anonymous service: unable to start the ds because it generate more than one cf
at org.jboss.as.connector.subsystems.datasources.AbstractDataSourceService.start(AbstractDataSourceService.java:108)
... 4 more
18:40:07,603 INFO [org.jboss.as.server] (MSC service thread 1-2) Service status report
Services which failed to start:
service jboss.data-source.java:/H2DS: org.jboss.msc.service.StartException in service jboss.data-source.java:/H2DS: Error during the deployment of java:/H2DS
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 1 month