Thanks tim for fixing the SerialVersionUID problem. I think I'm running into
another problem with the weaving since this doesn't show up with plain geronimo
+ owb. Most of the jcdi tck fails with deployment errors like this:
2011-05-31 16:02:27,902 ERROR [WebBeansConfigurationListener] An error occured
while starting application context path :
[/org.jboss.jsr299.tck.tests.context.ContextTest]
2011-05-31 16:02:27,903 ERROR [ContextTest]] Exception sending context
initialized event to listener instance of class
org.apache.geronimo.openwebbeans.WebBeansConfigurationListener
javax.enterprise.inject.UnproxyableResolutionException: WebBeans with api type
with normal scope must be proxiable to inject.
org.jboss.jsr299.tck.tests.context.MySessionBean has final methods! CDI doesn't
allow that.
at
org.apache.webbeans.util.InjectionExceptionUtils.throwUnproxyableResolutionException(InjectionExceptionUtils.java:39)
at
org.apache.webbeans.util.WebBeansUtil.checkUnproxiableApiType(WebBeansUtil.java:1852)
at
org.apache.webbeans.component.creation.ManagedBeanCreatorImpl.checkCreateConditions(ManagedBeanCreatorImpl.java:70)
at
org.apache.webbeans.util.WebBeansUtil.defineManagedBean(WebBeansUtil.java:2598)
at
org.apache.webbeans.config.BeansDeployer.defineManagedBean(BeansDeployer.java:859)
at
org.apache.webbeans.config.BeansDeployer.deploySingleAnnotatedType(BeansDeployer.java:539)
at
org.apache.webbeans.config.BeansDeployer.deployFromClassPath(BeansDeployer.java:484)
at
org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:165)
at
org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:129)
at
org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:87)
at
org.apache.geronimo.openwebbeans.WebBeansConfigurationListener.contextInitialized(WebBeansConfigurationListener.java:85)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4521)
at
org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5004)
at
org.apache.catalina.core.StandardContext$1.call(StandardContext.java:4999)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
I don't see any final methods in MySessionBean:
@SessionScoped
class MySessionBean implements Serializable
{
private static final long serialVersionUID = 1L;
private int id = 0;
public void setId(int id)
{
this.id = id;
}
public int getId()
{
return id;
}
public void ping()
{
}
}
so I'm guessing the weaving might have added something??
Is there a description of what the weaving does in terms of java code? Or even
a description of what it does in java op codes?
thanks
david jencks