[JBoss JIRA] Created: (CDITCK-85) The CDI TCK assumes ear support by all impls
by Kyle Grucci (JIRA)
The CDI TCK assumes ear support by all impls
--------------------------------------------
Key: CDITCK-85
URL: https://jira.jboss.org/jira/browse/CDITCK-85
Project: CDI TCK
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 1.0.1.CR1
Environment: All
Reporter: Kyle Grucci
The Web Profile spec falls under the Java EE 6 JSR which just went final. Since CDI is a requirement of the EE Web Profile, the CDI TCK must be able to run against it (ie it can't assume full EE and thus ear support). This is currently not the case since the TCK contains some ear files and some tests which rely upon them. At the very least it probably makes sense to have a second testsuite XML file which doesn't assume full EE. Otherwise impls of CDI which are not Full EE impls cannot run and pass the CDI TCK since the current testsuite xml file contains some ears.
Until you are able to provide the alternate xml file, would it be possible for you to provide use with the tests to exclude whan not running on Full EE - (i.e. the tests which use ear files)?
Thanks.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 10 months
[JBoss JIRA] Created: (WELD-338) weld-numberguess example doesn't work with jboss-6.0.0.M1 in cluster
by Martin Gencur (JIRA)
weld-numberguess example doesn't work with jboss-6.0.0.M1 in cluster
--------------------------------------------------------------------
Key: WELD-338
URL: https://jira.jboss.org/jira/browse/WELD-338
Project: Weld
Issue Type: Bug
Components: Examples
Affects Versions: 1.0.0.GA
Reporter: Martin Gencur
Fix For: 1.0.1.CR1
Trying to continue with the same session id on different jboss instance and web browser leads to the following exception on the instance's console:
12:41:21,767 WARN [SessionBasedJBossCacheService] Problem accessing session data : class java.lang.NullPointerException null
Steps to reproduce:
1) download jboss-6.0.0.M1 (for example from http://reports.qa.atl.jboss.com/release_tests/binaries/JBossAS/jboss-6.0....)
2) unzip it twice to different folders
3) run the first instance from its bin directory: ./run.sh -c all -g DocsPartition -u 239.255.101.101 -b localhost -Djboss.messaging.ServerPeerID=1 -Djboss.service.binding.set=ports-default
4) run the second instance from its bin directory: ./run.sh -c all -g DocsPartition -u 239.255.101.101 -b localhost -Djboss.messaging.ServerPeerID=2 -Djboss.service.binding.set=ports-01
5) edit examples/jsf/numberguess/src/main/webapp-jboss5/WEB-INF/web.xml (add <distributable/> as its first tag so that the application..... !!! I don't know for sure if it is enough, maybe this is the problem !!!)
6) run mvn package in examples/jsf/numberguess
7) copy resulting war file (weld-numberguess.war) from numberguess/target/ directory to serve/all/farm directory at first jbossAS instance
8) remove cookies for "localhost" domain from web browser, disable cookies
9) go to http://localhost:8080/weld-numberguess/home.jsf, play for 2-3 times with application (try to guess a number)
10) copy&paste the url (for example "http://localhost:8080/weld-numberguess/home.jsf;jsessionid=VBobYX3Itd9fUI...") into another window with cookies disabled, change port number from 8080 to 8180 and go to the page
11) now you can see the exception in the second jboss instance's console and the application behaves like it doesn't know this session and starts from scratch
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 10 months
[JBoss JIRA] Created: (CDITCK-89) TCK on Policy Tests
by Gurkan Erdogdu (JIRA)
TCK on Policy Tests
-------------------
Key: CDITCK-89
URL: https://jira.jboss.org/jira/browse/CDITCK-89
Project: CDI TCK
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Gurkan Erdogdu
Hi;
I am currently testing org.jboss.jsr299.tck.tests.policy.PolicyAvailabilityTest. My questions are on the following test methods
- testProducerPoliciesOnClass
Sheep is produced by "EnabledSheepProducer" class that is defined in beans.xml and "NotEnabledSheepProducer" class that is not defined in beans.xml. So the first assertion in the test is correct
1) assert getBeans(Sheep.class, new AnnotationLiteral<Wild>(){}).size() == 2;
But how the second assertion is correct?
2) assert getBeans(Sheep.class, new AnnotationLiteral<Tame>(){}).size() == 2;
NotEnabledSheepProducer is not defined in beans.xml. So producer field and method that is contained in this class are disabled.
- testProducerPoliciesOnMethodAndField
CatProducer class defines producer field and method that are annotated with @Alternative. According to the spec section 5.1.1 "the alternative is a producer method, field or resource, and the bean class that declares the method or field is listed in beans.xml". CatProducer class is not defined in beans.xml so those producer beans must be disabled and must not be used in resolutions.
So the following assertions must be false, because CatProducer class is not defined in beans.xml
assert getBeans(Cat.class, new AnnotationLiteral<Wild>(){}).size() == 2;
assert getBeans(Cat.class, new AnnotationLiteral<Tame>(){}).size() == 2;
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 10 months