[webbeans-issues] [JBoss JIRA] Commented: (WBINT-15) Problems using WebBeans in multiple Applications (EARS)

Martin Eigenbrodt (JIRA) jira-events at lists.jboss.org
Mon Jun 29 07:50:56 EDT 2009

    [ https://jira.jboss.org/jira/browse/WBINT-15?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12474154#action_12474154 ] 

Martin Eigenbrodt commented on WBINT-15:

>You shouldn't place beans.xml in the ear, only in the sub modules 
Are there any  example Programms  for deploying an ear using webbeans?
I've added the beans.xml to the ear since only placing it in the war gives an:
Caused by: java.lang.IllegalArgumentException: Exception loading class for ScopeKey addition.
	at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.addBeanComponent(BeanMetaDataFactoryVisitor.java:67)
	at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.deploy(BeanMetaDataFactoryVisitor.java:126)
	... 23 more
Caused by: java.lang.ClassNotFoundException: org.jboss.webbeans.bootstrap.WebBeansBootstrap from BaseClassLoader at 9c62da{VFSClassLoaderPolicy at 11e05b6{name=vfszip:/C:/Programme/Java/jboss-5.0.1.GA/server/default/deploy/Ear.ear/ domain=ClassLoaderDomain at 8b058b{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.system.NoAnnotationURLClassLoader at 13582d} roots=[MemoryContextHandler at 589743[path= context=vfsmemory://5c4o22s-t2hzy9-fwj4jfkg-1-fwj4jtc4-1z real=vfsmemory://5c4o22s-t2hzy9-fwj4jfkg-1-fwj4jtc4-1z], DelegatingHandler at 13267346[path=Ear.ear context=file:/C:/Programme/Java/jboss-5.0.1.GA/server/default/deploy/ real=file:/C:/Programme/Java/jboss-5.0.1.GA/server/default/deploy/Ear.ear]]  delegates=null exported=[META-INF] <IMPORT-ALL>NON_EMPTY}}
	at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:422)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
	at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.addBeanComponent(BeanMetaDataFactoryVisitor.java:63)
	... 24 more

> Problems using WebBeans in multiple Applications (EARS)
> -------------------------------------------------------
>                 Key: WBINT-15
>                 URL: https://jira.jboss.org/jira/browse/WBINT-15
>             Project: Web Beans Integration
>          Issue Type: Bug
>         Environment: JBoss 5.0.1.GA,
> TEsted with WebBean 1.0.0.Preview and today snapshot
>            Reporter: Martin Eigenbrodt
>            Assignee: Pete Muir
>             Fix For: 5.2.0.Beta4
>         Attachments: bug.zip
> Multiple EARS that use webbeans seem to  interfer.
> I've  prepared a simple testcase. The zip contains an ear "earA.ear" that includes a war with a simple jsf page and a backing bean. 
> The backing beans has got a method that is used within the jsf page:
> public String getText() {
>         return "Hello World!";
>     }
> The second ear "empty.ear" does only contain an empty beans.xml in the  META-INF dir.
> If you deploy just earA.ear you can view the jsf page at http://localhost:8080/EarAWar/index.jsf . It display a Heading "Test" and the line "Hello World" below.
> If you now deploy the earA.ear and the empty.ear and restart, the "Hello World" will be gone.

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


More information about the weld-issues mailing list