[webbeans-dev] Web beans Integration issues with GlassFish

Pete Muir pmuir at redhat.com
Tue Sep 1 10:37:18 EDT 2009


Roger rolled back to the Friday GF build, which fixed the various  
classloading issues he saw - so I guess this is/was a bug in GF.

On 31 Aug 2009, at 12:25, Barbara Louis wrote:

> Adding the JBoss alias.
>
> Thanks,
> Barbara
>
> Roger Kitain wrote:
>>
>> Forwarding to wider audience..
>>
>> -roger
>>
>>
>> Subject:
>> Re: 330 int
>> From:
>> Roger Kitain <Roger.Kitain at Sun.COM>
>> Date:
>> Mon, 31 Aug 2009 10:14:06 -0400
>> To:
>> Roger Kitain <Roger.Kitain at Sun.COM>
>> To:
>> Roger Kitain <Roger.Kitain at Sun.COM>
>> CC:
>> Pete Muir <pmuir at bleepbleep.org.uk>, Barbara Louis <Barbara.Louis at Sun.COM 
>> >
>>
>> Ok.  I got past the compilation errors below by copying the missing  
>> classes from the trunk to the branch.
>> However, I've had to make changes to the JSF2 example app to work  
>> with the 330 annotations.
>> For example, use "javax.inject.Named" instead of the webbeans one.
>> What replaces the webbeans @BindingType annotation?  I took a guess  
>> that it is @Qualifier (from 330)?
>> Even after getting a successful build on the example app, I get  
>> these deployment errors:
>>
>> java.lang.NullPointerException
>>    at  
>> org 
>> .jboss.webbeans.jsf.JsfApiAbstraction.<init>(JsfApiAbstraction.java: 
>> 48)
>>    at  
>> org 
>> .jboss 
>> .webbeans 
>> .bootstrap 
>> .WebBeansBootstrap.addImplementationServices(WebBeansBootstrap.java: 
>> 204)
>>    at  
>> org 
>> .jboss 
>> .webbeans 
>> .bootstrap.WebBeansBootstrap.startContainer(WebBeansBootstrap.java: 
>> 181)
>>    at  
>> org.glassfish.webbeans.WebBeansDeployer.event(WebBeansDeployer.java: 
>> 125)
>>    at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:88)
>>    at  
>> org 
>> .glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java: 
>> 202)
>>    at  
>> com 
>> .sun 
>> .enterprise 
>> .v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:310)
>>    at  
>> com 
>> .sun 
>> .enterprise 
>> .v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:175)
>>    at  
>> org 
>> .glassfish 
>> .deployment.admin.DeployCommand.execute(DeployCommand.java:270)
>>    at com.sun.enterprise.v3.admin.CommandRunnerImpl 
>> $4.execute(CommandRunnerImpl.java:430)
>>    at  
>> com 
>> .sun 
>> .enterprise 
>> .v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:440)
>>    at  
>> com 
>> .sun 
>> .enterprise 
>> .v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:527)
>>    at  
>> com 
>> .sun 
>> .enterprise 
>> .v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:157)
>>    at  
>> org 
>> .glassfish 
>> .deployment.autodeploy.AutoOperation.run(AutoOperation.java:121)
>>    at  
>> org 
>> .glassfish 
>> .deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.java:529)
>>    at  
>> org 
>> .glassfish 
>> .deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:415)
>>    at  
>> org 
>> .glassfish.deployment.autodeploy.AutoDeployer.run(AutoDeployer.java: 
>> 347)
>>    at  
>> org 
>> .glassfish.deployment.autodeploy.AutoDeployer.run(AutoDeployer.java: 
>> 332)
>>    at org.glassfish.deployment.autodeploy.AutoDeployService 
>> $1.run(AutoDeployService.java:200)
>>    at java.util.TimerThread.mainLoop(Timer.java:512)
>>    at java.util.TimerThread.run(Timer.java:462)
>> Aug 31, 2009 9:59:08 AM org.glassfish.web.loader.WebappClassLoader  
>> loadClass
>> SEVERE: webappClassLoader.stopped
>> Aug 31, 2009 9:59:08 AM org.glassfish.web.loader.WebappClassLoader  
>> loadClass
>> SEVERE: webappClassLoader.stopped
>> Aug 31, 2009 9:59:09 AM OSGiModuleImpl start
>> INFO: Started bundle org.glassfish.orb.iiop [6]
>> Aug 31, 2009 9:59:09 AM com.sun.faces.config.ConfigureListener  
>> contextInitialized
>> INFO: Initializing Mojarra 2.0.0 (RC b17) for context '/webbeans- 
>> numberguess-jsf2'
>> Aug 31, 2009 9:59:11 AM com.sun.enterprise.web.WebApplication start
>> INFO: Loading application webbeans-numberguess-jsf2 at /webbeans- 
>> numberguess-jsf2
>> Aug 31, 2009 9:59:11 AM org.glassfish.kernel.event.EventsImpl send
>> WARNING: Exception while dispatching an event
>> java.lang.NullPointerException
>>    at  
>> org 
>> .jboss 
>> .webbeans 
>> .bootstrap.WebBeansBootstrap.validateBeans(WebBeansBootstrap.java: 
>> 267)
>>    at  
>> org.glassfish.webbeans.WebBeansDeployer.event(WebBeansDeployer.java: 
>> 132)
>>    at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:88)
>>    at  
>> org 
>> .glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java: 
>> 217)
>>    at  
>> com 
>> .sun 
>> .enterprise 
>> .v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:311)
>>    at  
>> com 
>> .sun 
>> .enterprise 
>> .v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:175)
>>
>> Hopefully you are reading email today at some point.
>>
>> -roger
>>
>> Roger Kitain wrote:
>>>
>>> Hi Pete -
>>>
>>> Upon checking out that branch and doing:  mvn -U clean install I'm  
>>> getting compilation errors:
>>>
>>> [INFO] Compilation failure
>>>
>>> /Users/rogerk/webbeans/integration/webbeans-source/branches/ 
>>> PFD2_330_PREVIEW/impl/src/main/java/org/jboss/webbeans/bootstrap/ 
>>> BeforeBeanDiscoveryImpl.java:[30,33] cannot find symbol
>>> symbol  : class NormalScopeLiteral
>>> location: package org.jboss.webbeans.literal
>>>
>>> /Users/rogerk/webbeans/integration/webbeans-source/branches/ 
>>> PFD2_330_PREVIEW/impl/src/main/java/org/jboss/webbeans/ 
>>> conversation/ConversationImpl.java:[23,30] cannot find symbol
>>> symbol  : class Default
>>> location: package javax.enterprise.inject
>>>
>>> /Users/rogerk/webbeans/integration/webbeans-source/branches/ 
>>> PFD2_330_PREVIEW/impl/src/main/java/org/jboss/webbeans/ 
>>> conversation/ConversationImpl.java:[38,1] cannot find symbol
>>> symbol: class Default
>>> @Default
>>>
>>> /Users/rogerk/webbeans/integration/webbeans-source/branches/ 
>>> PFD2_330_PREVIEW/impl/src/main/java/org/jboss/webbeans/literal/ 
>>> DefaultLiteral.java:[20,30] cannot find symbol
>>> symbol  : class Default
>>> location: package javax.enterprise.inject
>>>
>>> /Users/rogerk/webbeans/integration/webbeans-source/branches/ 
>>> PFD2_330_PREVIEW/impl/src/main/java/org/jboss/webbeans/literal/ 
>>> DefaultLiteral.java:[27,54] cannot find symbol
>>> symbol: class Default
>>> public class DefaultLiteral extends AnnotationLiteral<Default>  
>>> implements Default {}
>>>
>>> /Users/rogerk/webbeans/integration/webbeans-source/branches/ 
>>> PFD2_330_PREVIEW/impl/src/main/java/org/jboss/webbeans/literal/ 
>>> DefaultLiteral.java:[27,74] cannot find symbol
>>> symbol: class Default
>>> public class DefaultLiteral extends AnnotationLiteral<Default>  
>>> implements Default {}
>>>
>>> /Users/rogerk/webbeans/integration/webbeans-source/branches/ 
>>> PFD2_330_PREVIEW/impl/src/main/java/org/jboss/webbeans/bootstrap/ 
>>> BeforeBeanDiscoveryImpl.java:[56,43] cannot find symbol
>>> symbol  : class NormalScopeLiteral
>>> location: class org.jboss.webbeans.bootstrap.BeforeBeanDiscover
>>>
>>> Roger Kitain wrote:
>>>> Hey thanks Pete -   I'll check it out.
>>>>
>>>> -roger
>>>>
>>>> Pete Muir wrote:
>>>>> I just committed the 330 integration.
>>>>>
>>>>> Here is the branch
>>>>> https://svn.jboss.org/repos/webbeans/ri/branches/PFD2_330_PREVIEW
>>>>> which you can make a release from if you need one.
>>>>>
>>>>> best
>>>>>
>>>>> On Fri, Aug 28, 2009 at 5:25 PM, Pete  
>>>>> Muir<pmuir at bleepbleep.org.uk> wrote:
>>>>>
>>>>>> Sorry, not going to get it done, still seeing at least 70+ tck  
>>>>>> failures.
>>>>>> I'll try to get it in by 1830 my time on Sunday.
>>>>>>
>>>>>> Again, aplogies.
>>>>>>
>>>>>> Pete
>>>>>>
>>>>>> -- 
>>>>>> Pete Muir
>>>>>> http://in.relation.to/Bloggers/Pete
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
> _______________________________________________
> Jsr-ri-integration-list mailing list
> Jsr-ri-integration-list at redhat.com
> https://redhat.com/mailman/listinfo/jsr-ri-integration-list




More information about the weld-dev mailing list