[webbeans-dev] Re: Instead of deployment types
by Gavin King
BTW, what exactly are the implications of adopting this rule for the SPI?
Do we still need to pass some sort Module object around, or can the
container figure it out based upon the Class objects?
Does the container just call theClass.getClassLoader() and then cast
it to some internal ClassLoader subclass to determine exactly where
the class came from?
We need to figure out how this works so I can update the SPI.
On Wed, May 20, 2009 at 9:37 PM, Gavin King <gavin.king(a)gmail.com> wrote:
> Folks, I spent a bunch of time with Bill Shannon and Roberto today.
> The results of these discussion were:
>
> Inter-module dependencies
> =====================
> We shouldn't introduce any special module-level dependency mechanism
> or module-private dependencies (such as my proposal for @Exported
> beans). We should wait for the Java Module System for that kind of
> thing.
>
> Instead we'll say that an injection point of a class X can resolve to
> a bean Y only when the Java EE spec requires that the bean class Y is
> visible to X (section 8.3 of the spec). So, for example, a bean in
> ejb-jar A is not available for injection into a bean in another
> ejb-jar B unless A declares a dependency to B in manifest.mf.
>
> This solution isn't quite as powerful as module-private dependencies,
> but it solves the cases I raised earlier today, and we'll get
> something more powerful when the Java Module System arrives.
--
Gavin King
gavin.king(a)gmail.com
http://in.relation.to/Bloggers/Gavin
http://hibernate.org
http://seamframework.org
15 years, 6 months
[webbeans-dev] Re: Build failed in Hudson: WebBeans-trunk-standalone #954
by Clint Popetz
I had previously switched my webbeans workspace jre and compliance
level to 1.6 because of build failures from existing code referencing
post 1.5 apis. What is the proper compliance level to be building
with, since hudson is complaining about my changes?
Thanks,
-Clint
On Thu, Jun 4, 2009 at 9:49 PM, <jboss-qa-internal(a)redhat.com> wrote:
> See http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/954/changes
>
> Changes:
>
> [shane.bryzak(a)jboss.com] updated section 8 assertions
>
> ------------------------------------------
> [...truncated 3153 lines...]
> A interceptor/src/main/resources/org/jboss/testharness/impl/packaging/jsr299
> A interceptor/src/main/resources/org/jboss/testharness/impl/packaging/jsr299/default
> A interceptor/src/main/resources/org/jboss/testharness/impl/packaging/jsr299/default/beans.xml
> A interceptor/src/main/resources/org/jboss/testharness/impl/packaging/ear
> A interceptor/src/main/resources/org/jboss/testharness/impl/packaging/ear/ejb-jar.xml
> A interceptor/pom.xml
> U .
> At revision 2767
> no change for https://svn.jboss.org/repos/webbeans/ri/trunk since the previous build
> Launching killing script.
> [WebBeans-trunk-standalone] $ bash /home/hudson/hudson_workspace/plugins/process-kill/WEB-INF/classes/hudson/plugins/process_kill/kill-script.sh
> [webbeans] $ /qa/tools/opt/maven-2.0.9/bin/mvn -f ${WORKSPACE}/tck/pom.xml -Dmaven.test.failure.ignore=true -U install
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO] JSR-299 TCK
> [INFO] JSR-299 TCK API
> [INFO] JSR-299 TCK tests and harness
> WAGON_VERSION: 1.0-beta-2
> [INFO] ------------------------------------------------------------------------
> [INFO] Building JSR-299 TCK
> [INFO] task-segment: [install]
> [INFO] ------------------------------------------------------------------------
> [INFO] [enforcer:enforce {execution: enforce}]
> [INFO] [site:attach-descriptor]
> [INFO] Preparing source:jar
> [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
> [INFO] [enforcer:enforce {execution: enforce}]
> [INFO] [source:jar {execution: attach-sources}]
> [INFO] [install:install]
> [INFO] Installing http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/po... to /home/hudson/.m2/repository/org/jboss/jsr299/tck/parent/1.0.0-SNAPSHOT/parent-1.0.0-SNAPSHOT.pom
> [INFO] ------------------------------------------------------------------------
> [INFO] Building JSR-299 TCK API
> [INFO] task-segment: [install]
> [INFO] ------------------------------------------------------------------------
> [INFO] snapshot org.jboss.webbeans:jsr299-api:1.0.0-SNAPSHOT: checking for updates from snapshots.jboss.org
> [INFO] snapshot org.jboss.webbeans:webbeans-parent:1.0.0-SNAPSHOT: checking for updates from snapshots.jboss.org
> [INFO] snapshot org.jboss.webbeans:webbeans-version-matrix:1.0.0-SNAPSHOT: checking for updates from snapshots.jboss.org
> [INFO] snapshot org.jboss.test-harness:jboss-test-harness-api:1.0.0-SNAPSHOT: checking for updates from snapshots.jboss.org
> [INFO] snapshot org.jboss.test-harness:jboss-test-harness-parent:1.0.0-SNAPSHOT: checking for updates from snapshots.jboss.org
> [INFO] [enforcer:enforce {execution: enforce}]
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] Compiling 5 source files to http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/ap...
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] No sources to compile
> [INFO] [surefire:test]
> [INFO] No tests to run.
> [INFO] [jar:jar]
> [INFO] Building jar: http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/ap...
> [INFO] Preparing source:jar
> [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
> [INFO] [enforcer:enforce {execution: enforce}]
> [INFO] [source:jar {execution: attach-sources}]
> [INFO] Building jar: http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/ap...
> [INFO] [install:install]
> [INFO] Installing http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/ap... to /home/hudson/.m2/repository/org/jboss/jsr299/tck/jsr299-tck-api/1.0.0-SNAPSHOT/jsr299-tck-api-1.0.0-SNAPSHOT.jar
> [INFO] Installing http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/ap... to /home/hudson/.m2/repository/org/jboss/jsr299/tck/jsr299-tck-api/1.0.0-SNAPSHOT/jsr299-tck-api-1.0.0-SNAPSHOT-sources.jar
> [INFO] ------------------------------------------------------------------------
> [INFO] Building JSR-299 TCK tests and harness
> [INFO] task-segment: [install]
> [INFO] ------------------------------------------------------------------------
> [INFO] snapshot org.jboss.test-harness:jboss-test-harness:1.0.0-SNAPSHOT: checking for updates from snapshots.jboss.org
> [INFO] [enforcer:enforce {execution: enforce}]
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [dependency:copy {execution: copy-in-container-dependencies}]
> [INFO] Configured Artifact: org.jboss.test-harness:jboss-test-harness:?:jar
> [INFO] Copying jboss-test-harness-1.0.0-SNAPSHOT.jar to http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im...
> [INFO] [compiler:compile]
> [INFO] Compiling 1440 source files to http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im...
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Compilation failure
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[12,18] sun.reflect.ReflectionFactory is Sun proprietary API and may be removed in a future release
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[12,18] sun.reflect.ReflectionFactory is Sun proprietary API and may be removed in a future release
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[157,51] cannot find symbol
> symbol : method getBeans(java.lang.reflect.Type,java.lang.annotation.Annotation[])
> location: interface javax.enterprise.inject.spi.BeanManager
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[80,32] cannot find symbol
> symbol : method getReference(javax.enterprise.inject.spi.Bean<org.jboss.jsr299.tck.tests.lookup.manager.FishFarmOffice>,java.lang.Class<org.jboss.jsr299.tck.tests.lookup.manager.FishFarmOffice>)
> location: interface javax.enterprise.inject.spi.BeanManager
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[35,25] cannot find symbol
> symbol : method addObserver(org.jboss.jsr299.tck.tests.event.resolve.binding.ResolvingChecksBindingTypeTest.AnObserver,org.jboss.jsr299.tck.tests.event.resolve.binding.BindingTypeABinding)
> location: interface javax.enterprise.inject.spi.BeanManager
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[36,25] cannot find symbol
> symbol : method addObserver(org.jboss.jsr299.tck.tests.event.resolve.binding.ResolvingChecksBindingTypeTest.AnObserver,org.jboss.jsr299.tck.tests.event.resolve.binding.BindingTypeBBinding)
> location: interface javax.enterprise.inject.spi.BeanManager
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[60,25] cannot find symbol
> symbol : method addObserver(javax.event.Observer<org.jboss.jsr299.tck.tests.event.register.observer2.ManagerRemoveObserverTest.AnEventType>)
> location: interface javax.enterprise.inject.spi.BeanManager
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[61,25] cannot find symbol
> symbol : method removeObserver(javax.event.Observer<org.jboss.jsr299.tck.tests.event.register.observer2.ManagerRemoveObserverTest.AnEventType>)
> location: interface javax.enterprise.inject.spi.BeanManager
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[67,25] cannot find symbol
> symbol : method addObserver(javax.event.Observer<org.jboss.jsr299.tck.tests.event.register.observer2.ManagerRemoveObserverTest.AnEventType>,java.lang.annotation.Annotation[])
> location: interface javax.enterprise.inject.spi.BeanManager
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[68,25] cannot find symbol
> symbol : method removeObserver(javax.event.Observer<org.jboss.jsr299.tck.tests.event.register.observer2.ManagerRemoveObserverTest.AnEventType>)
> location: interface javax.enterprise.inject.spi.BeanManager
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[42,47] cannot find symbol
> symbol : method getReference(javax.enterprise.inject.spi.Bean<org.jboss.jsr299.tck.tests.lookup.clientProxy.Fox>,java.lang.Class<org.jboss.jsr299.tck.tests.lookup.clientProxy.Fox>)
> location: interface javax.enterprise.inject.spi.BeanManager
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[66,54] cannot find symbol
> symbol : method getReference(javax.enterprise.inject.spi.Bean<org.jboss.jsr299.tck.tests.lookup.clientProxy.TunedTuna>,java.lang.Class<org.jboss.jsr299.tck.tests.lookup.clientProxy.TunedTuna>)
> location: interface javax.enterprise.inject.spi.BeanManager
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[25,37] ensureUniqueBean(java.lang.reflect.Type,java.util.Set<javax.enterprise.inject.spi.Bean<?>>) in org.jboss.jsr299.tck.impl.OldSPIBridge cannot be applied to (java.lang.Class<T>,java.util.Set<javax.enterprise.inject.spi.Bean<T>>)
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[32,82] cannot find symbol
> symbol : method getBeans(java.lang.reflect.Type,java.lang.annotation.Annotation[])
> location: interface javax.enterprise.inject.spi.BeanManager
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[64,23] cannot find symbol
> symbol : method getReference(javax.enterprise.inject.spi.Bean<capture#109 of ?>,java.lang.reflect.Type)
> location: interface javax.enterprise.inject.spi.BeanManager
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[33,25] cannot find symbol
> symbol : method addObserver(javax.event.Observer<org.jboss.jsr299.tck.tests.event.register.observer1.DuplicateBindingsToAddObserverTest.AnEventType>,org.jboss.jsr299.tck.tests.event.register.observer1.RoleBinding,org.jboss.jsr299.tck.tests.event.register.observer1.TameAnnotationLiteral,org.jboss.jsr299.tck.tests.event.register.observer1.TameAnnotationLiteral)
> location: interface javax.enterprise.inject.spi.BeanManager
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[45,25] cannot find symbol
> symbol : method addObserver(org.jboss.jsr299.tck.tests.event.register.observer1.ObserverExceptionAbortsTest.AnObserverWithException)
> location: interface javax.enterprise.inject.spi.BeanManager
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[46,25] cannot find symbol
> symbol : method addObserver(org.jboss.jsr299.tck.tests.event.register.observer1.ObserverExceptionAbortsTest.AnObserverWithException)
> location: interface javax.enterprise.inject.spi.BeanManager
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[32,25] cannot find symbol
> symbol : method addObserver(javax.event.Observer<org.jboss.jsr299.tck.tests.event.register.observer1.NonBindingTypesToAddObserverTest.AnEventType>,org.jboss.jsr299.tck.tests.event.register.observer1.AnimalStereotypeAnnotationLiteral)
> location: interface javax.enterprise.inject.spi.BeanManager
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[34,25] cannot find symbol
> symbol : method addObserver(javax.event.Observer<org.jboss.jsr299.tck.tests.event.resolve.type.ChecksEventTypeWhenResolvingTest.AnEventType>)
> location: interface javax.enterprise.inject.spi.BeanManager
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[294,19] cannot find symbol
> symbol : method addObserver(javax.event.Observer<org.jboss.jsr299.tck.tests.activities.NightTime>)
> location: interface javax.enterprise.inject.spi.BeanManager
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[54,25] cannot find symbol
> symbol : method addObserver(org.jboss.jsr299.tck.tests.event.resolve.type.ChecksTypeParametersWhenResolvingTest.AListObserver)
> location: interface javax.enterprise.inject.spi.BeanManager
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[55,25] cannot find symbol
> symbol : method addObserver(org.jboss.jsr299.tck.tests.event.resolve.type.ChecksTypeParametersWhenResolvingTest.AnotherListObserver)
> location: interface javax.enterprise.inject.spi.BeanManager
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[7,0] org.jboss.jsr299.tck.tests.deployment.lifecycle.InitializedBinding is not abstract and does not override abstract method annotationType() in java.lang.annotation.Annotation
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[61,25] cannot find symbol
> symbol : method addObserver(javax.event.Observer<org.jboss.jsr299.tck.tests.event.register.observer1.ManagerAddObserverTest.AnEventType>)
> location: interface javax.enterprise.inject.spi.BeanManager
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[68,25] cannot find symbol
> symbol : method addObserver(javax.event.Observer<org.jboss.jsr299.tck.tests.event.register.observer1.ManagerAddObserverTest.AnEventType>)
> location: interface javax.enterprise.inject.spi.BeanManager
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[85,25] cannot find symbol
> symbol : method addObserver(javax.event.Observer<org.jboss.jsr299.tck.tests.event.register.observer1.ManagerAddObserverTest.AnEventType>,java.lang.annotation.Annotation[])
> location: interface javax.enterprise.inject.spi.BeanManager
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[38,34] cannot find symbol
> symbol : method getReference(javax.enterprise.inject.spi.Bean<org.jboss.jsr299.tck.tests.implementation.enterprise.remove.StateKeeper>,java.lang.Class<org.jboss.jsr299.tck.tests.implementation.enterprise.remove.StateKeeper>)
> location: interface javax.enterprise.inject.spi.BeanManager
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[86,33] cannot find symbol
> symbol : method getReference(javax.enterprise.inject.spi.Bean<org.jboss.jsr299.tck.tests.implementation.enterprise.remove.DependentSessionInterface>,java.lang.Class<org.jboss.jsr299.tck.tests.implementation.enterprise.remove.DependentSessionInterface>)
> location: interface javax.enterprise.inject.spi.BeanManager
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[34,26] cannot find symbol
> symbol : method getReference(javax.enterprise.inject.spi.Bean<org.jboss.jsr299.tck.tests.lookup.dynamic.ObtainsInjectionPointBean>,java.lang.Class<org.jboss.jsr299.tck.tests.lookup.dynamic.ObtainsInjectionPointBean>)
> location: interface javax.enterprise.inject.spi.BeanManager
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[50,26] cannot find symbol
> symbol : method getReference(javax.enterprise.inject.spi.Bean<org.jboss.jsr299.tck.tests.lookup.dynamic.ObtainsInjectionPointBean>,java.lang.Class<org.jboss.jsr299.tck.tests.lookup.dynamic.ObtainsInjectionPointBean>)
> location: interface javax.enterprise.inject.spi.BeanManager
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[62,26] cannot find symbol
> symbol : method getReference(javax.enterprise.inject.spi.Bean<org.jboss.jsr299.tck.tests.lookup.dynamic.ObtainsInjectionPointBean>,java.lang.Class<org.jboss.jsr299.tck.tests.lookup.dynamic.ObtainsInjectionPointBean>)
> location: interface javax.enterprise.inject.spi.BeanManager
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[74,26] cannot find symbol
> symbol : method getReference(javax.enterprise.inject.spi.Bean<org.jboss.jsr299.tck.tests.lookup.dynamic.ObtainsInjectionPointBean>,java.lang.Class<org.jboss.jsr299.tck.tests.lookup.dynamic.ObtainsInjectionPointBean>)
> location: interface javax.enterprise.inject.spi.BeanManager
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[33,25] cannot find symbol
> symbol : method addObserver(org.jboss.jsr299.tck.tests.event.resolve.binding.DuplicateBindingTypesWhenResolvingTest.AnObserver,org.jboss.jsr299.tck.tests.event.resolve.binding.BindingTypeABinding)
> location: interface javax.enterprise.inject.spi.BeanManager
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[41,25] cannot find symbol
> symbol : method addObserver(org.jboss.jsr299.tck.tests.event.register.observer1.ConsumerNotifiedForEventTest.AnObserver)
> location: interface javax.enterprise.inject.spi.BeanManager
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[42,25] cannot find symbol
> symbol : method addObserver(org.jboss.jsr299.tck.tests.event.register.observer1.ConsumerNotifiedForEventTest.AnObserver,java.lang.annotation.Annotation)
> location: interface javax.enterprise.inject.spi.BeanManager
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[34,25] cannot find symbol
> symbol : method addObserver(org.jboss.jsr299.tck.tests.event.resolve.nonbinding.NonBindingTypesWhenResolvingTest.AnObserver)
> location: interface javax.enterprise.inject.spi.BeanManager
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[216,25] cannot find symbol
> symbol : method addObserver(javax.event.Observer<java.util.ArrayList<E>>)
> location: interface javax.enterprise.inject.spi.BeanManager
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[230,25] cannot find symbol
> symbol : method addObserver(javax.event.Observer<java.util.ArrayList<?>>)
> location: interface javax.enterprise.inject.spi.BeanManager
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[35,25] cannot find symbol
> symbol : method addObserver(org.jboss.jsr299.tck.tests.event.resolve.binding.ResolvingChecksBindingTypeMembersTest.AnObserver,org.jboss.jsr299.tck.tests.event.resolve.binding.BindingTypeCBinding)
> location: interface javax.enterprise.inject.spi.BeanManager
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[36,25] cannot find symbol
> symbol : method addObserver(org.jboss.jsr299.tck.tests.event.resolve.binding.ResolvingChecksBindingTypeMembersTest.AnObserver,org.jboss.jsr299.tck.tests.event.resolve.binding.BindingTypeCBinding)
> location: interface javax.enterprise.inject.spi.BeanManager
>
> http://hudson.qa.jboss.com/hudson/job/WebBeans-trunk-standalone/ws/tck/im... :[86,19] cannot find symbol
> symbol : method addObserver(org.jboss.jsr299.tck.tests.activities.current.EventCurrentActivityTest.TestableObserver<org.jboss.jsr299.tck.tests.activities.current.NightTime>)
> location: interface javax.enterprise.inject.spi.BeanManager
>
>
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 33 seconds
> [INFO] Finished at: Thu Jun 04 22:49:51 EDT 2009
> [INFO] Final Memory: 32M/72M
> [INFO] ------------------------------------------------------------------------
> [WebBeans-trunk-standalone] $ bash -xe /tmp/hudson660187775014125051.sh
> + kill 31306
> Recording test results
>
>
--
Clint Popetz
http://42lines.net
Scalable Web Application Development
15 years, 6 months
[webbeans-dev] Recent BeanManager commit
by Clint Popetz
This change:
http://fisheye.jboss.org/changelog/Webbeans/?cs=2765
is rather large, but it wasn't possible to make it smaller and still
commit without breaking tests. It consists of:
* Make the BeanManager interface match the spec. Since this was
rather large and involved a lot of changes, I went ahead and reorder
the methods to match the order that they are specified in JSR-299, so
that it's easier to track changes in the spec.
* Introduce new classes that the above signatures use, e.g.
inject/spi/Annotated*
* Make ManagerImpl implement the parts of the above changes
necessary to allow the rest of the source base to compile.
* Create a bridge in the tck-impl to implement removed calls in the
old SPI which the tck uses heavily and which weren't easily
refactorable as direct calls to the new SPI methods, for instance
getInstanceByType and getInstanceByName
* Make the tck use that bridge, and also use new signatures for
things that were easier to refactor, like addObserver and
removeObserver
* Make the bootstrap fire the new bootstrap events,
Before/AfterBeanDiscovery and AfterDeploymentValidation.
* Create implementations of those events, which I've placed in the
bootstrap package but which arguably could go in the events package
* Make the tests for those events work, because they are now
interfaces rather than binding annotations, and because their
semantics have changed. (BeforeBeanDiscovery was previously fired
_after_ beans were registered, but I have changed it to fire before,
which I think is correct.) Though this is not a complete coverage of
those events in the spec. For example, there is a requirement that
the validation phase collect all exceptions reported via observers
through AfterDeploymentValidation.addDeploymentProblem and report them
all after all observers have run.
* Add the javax.el api dependency to the api pom, since BeanManager
references it.
I have no tck failures out-of-container, and I have a few (less than
ten) sporadic failures in-container that I'm trying to nail down, but
I wanted to get the above changes in so that Pete would have the
annotated* classes in the api package to implement, and because I'm
tired of merging conflicts with all these changes :)
Let me know if there are issues I should resolve. Otherwise I'm going
to fix the above failures and then continue implementing the new
methods in ManagerImpl, in particular createInjectionTarget(), which I
need to make the wicket integration portable.
This is my first commit of any size to the core and the tck, so if I
have screwed up please let me know and I'll correct it promptly.
-Clint
--
Clint Popetz
http://42lines.net
Scalable Web Application Development
15 years, 6 months
[webbeans-dev] Another tck question
by Clint Popetz
I'm just full of them, it seems.
I'm able to get the tck runner to connect to jboss 5.1, but it gets
ClassNotFoundErrors for all the webbeans classes when running tests.
If I run ant in webbeans-build-aggregator/jboss-as, it installs an
artifact from repository.jboss.org, because it's resolving
dependencies like:
org.apache.maven:super-pom:jar:2.0 (selected)
org.jboss.webbeans.integration:webbeans-jboss-int-deployer:zip:5.2.0.Beta2:compile
(selected)
org.jboss.webbeans.integration:webbeans-jboss-int-jboss-ejb:jar:5.2.0.Beta2:runtime
(selected)
org.jboss.webbeans:webbeans-core:jar:1.0.0.PREVIEW1:compile (selected)
org.jboss.webbeans:jsr299-api:jar:1.0.0.PREVIEW1:compile (selected)
which is obviously not what I want. Should I be building my owner
version of webbeans-jboss-int-deployer locally to avoid this?
Flailing,
-Clint
15 years, 6 months
[webbeans-dev] JBoss 5.1.0
by Pete Muir
Please note, I have switched the TCK runs over to using JBoss 5.1.0
deployment APIs. Please make sure to use JBoss > 5.1(the deployment
API compatibility was broken between 5.0 and 5.1).
I have some TCK failures atm, I am debugging.
Results :
Failed tests:
testTransientConversationInstancesDestroyedAtRequestEnd
(org
.jboss
.jsr299
.tck.tests.context.conversation.client.ClientConversationContextTest)
testConversationPropagationToNonExistentConversationLeadsToTransientConversation
(org
.jboss
.jsr299
.tck.tests.context.conversation.client.ClientConversationContextTest)
testConversationNotPropagated
(org
.jboss
.jsr299
.tck.tests.context.conversation.client.ClientConversationContextTest)
testLongRunningConversationInstancesNotDestroyedAtRequestEnd
(org
.jboss
.jsr299
.tck.tests.context.conversation.client.ClientConversationContextTest)
testConversationsDontCrossSessionBoundary
(org
.jboss
.jsr299
.tck.tests.context.conversation.client.ClientConversationContextTest)
testConversationIdSetByContainerIsUnique
(org
.jboss
.jsr299
.tck.tests.context.conversation.client.ClientConversationContextTest)
testConversationActiveDuringNonFacesRequest
(org
.jboss
.jsr299
.tck.tests.context.conversation.client.ClientConversationContextTest)
testManualCidPropagation
(org
.jboss
.jsr299
.tck.tests.context.conversation.client.ClientConversationContextTest)
testInvalidatingSessionDestroysConversation
(org
.jboss
.jsr299
.tck
.tests
.context
.conversation.client.InvalidatingSessionDestroysConversationTest)
testConversationPropagated
(org
.jboss
.jsr299
.tck
.tests
.context
.conversation
.client.LongRunningConversationPropagatedByFacesContextTest)
testConversationPropagatedOverRedirect
(org
.jboss
.jsr299
.tck
.tests
.context
.conversation
.client.LongRunningConversationPropagatedByFacesContextTest)
testLongRunningConversationInstancesNotDestroyedAtRequestEnd
(org
.jboss
.jsr299
.tck
.tests.context.conversation.client.LongRunningInstancesNotDestroyedTest)
testRemovedEjbIgnored
(org
.jboss
.jsr299
.tck
.tests.implementation.enterprise.lifecycle.EnterpriseBeanLifecycleTest)
Tests run: 601, Failures: 13, Errors: 0, Skipped: 0
15 years, 6 months
[webbeans-dev] Help running tck in eclipse?
by Clint Popetz
Hi,
I've tried running the tck from within eclipse by following the instructions
here:
http://seamframework.org/WebBeans/JSR299TCKHarness
but I'm having no luck; it can't find an implementation of
StandaloneContainers, although I've manually added the runner to the
tck-impl project's dependencies.
Before I dive deeper, are those directions up to date? Is anyone running
the tck from within eclipse? If so, are you generating projects with
eclipse:eclipse or with m2eclipse?
Thanks,
-Clint
--
Clint Popetz
http://42lines.net
Scalable Web Application Development
15 years, 6 months
Re: [webbeans-dev] conversation context lifecycle
by Gavin King
How much control do we have over filter ordering in the new servlet
spec? now that web.xml fragments can be packaged into modules? Is it
possible to define a total ordering?
On Sun, May 31, 2009 at 1:49 PM, Michael Youngstrom <youngm(a)gmail.com> wrote:
> The after filter solution still isn't going to make everyone happy
> either. For example, if someone wants to provide some solution that
> hides the conversation in the JSF view state then this would not work
> for them either.
>
> If you want to keep it simple then just define the Conversation as
> being available for the whole request using a request parameter for
> propagation. We could still add to this default conversation
> implementation the Extension event. And this would be the definition
> of the default provided @ConversationScoped Context. If JSF or Wicket
> wishes to manage the conversation id in a completely different way
> then let them provide their own Context implementation for
> @ConversationScoped. :)
>
> So rather than catering to Wicket or JSF let's just cater to the
> servlet spec and let frameworks create their own ConversationContext
> if they want more control over Conversation propagation.
>
> Mike
>
>
> On Sun, May 31, 2009 at 1:40 PM, Gavin King <gavin.king(a)gmail.com> wrote:
>> 2009/5/30 Michael Youngstrom <youngm(a)gmail.com>:
>>> I'm not really happy with this solution. Over the last couple of
>>> hours I've really grown to like the power of a more servlet general
>>> conversation available to the full request. If a developer doesn't
>>> care about using a request parameter they shouldn't have to live with
>>> the post Filter restriction.
>>
>> I'm also finding this idea to be pretty seductive.
>>
>>> Isn't there some way we can make the conversation context more
>>> pluggable/extensible itself? WebBeans could ship with a general
>>> friendly request parameter based conversation propagation mechanism
>>> and other frameworks like Wicket could replace or extend the provided
>>> Conversation Manager to better fit their propagation requirements
>>> along with the potential limitations?
>>
>> In this release I don't want to do something extremely complex here.
>> If there is a simple solution that covers the major integration
>> usecases that we can think of, fine, let's go with it. But if not, I
>> would rather defer it.
>>
>>
>> --
>> Gavin King
>> gavin.king(a)gmail.com
>> http://in.relation.to/Bloggers/Gavin
>> http://hibernate.org
>> http://seamframework.org
>>
>
--
Gavin King
gavin.king(a)gmail.com
http://in.relation.to/Bloggers/Gavin
http://hibernate.org
http://seamframework.org
15 years, 6 months