[jboss-dev-forums] [Design of JBossXB] - JBoss XB on IBM VM
kabir.khan@jboss.com
do-not-reply at jboss.com
Tue Jun 23 11:29:34 EDT 2009
Hi Alexey,
I am resolving some failures of AOP on IBMs VM for EAP 5, and seem to have run into an issue with JBoss XB.
The problems are to do with deploying things like
| <?xml version="1.0" encoding="UTF-8"?>
| <aop xmlns="urn:jboss:aop-beans:1.0">
| <metadata tag="test" class="org.jboss.test.aop.bean.POJOConstructorTest">
| ..
| </metadata>
|
| <introduction class="org.jboss.test.aop.bean.POJO">
| ..
| </introduction>
| </aop>
|
I am testing in AS 5.1.0.GA, and these classes are being parsed using
https://svn.jboss.org/repos/jbossas/projects/microcontainer/tags/2.0.6.GA/aop-mc-int/src/main/java/org/jboss/aop/microcontainer/beans/metadata/IntroductionBeanMetaDataFactory.java
https://svn.jboss.org/repos/jbossas/projects/microcontainer/tags/2.0.6.GA/aop-mc-int/src/main/java/org/jboss/aop/microcontainer/beans/metadata/MetaDataBeanMetaDataFactory.java
Gives errors like:
| 16:01:52,751 ERROR [AbstractKernelController] Error installing to Start: name=ayxy-czjy8o-fwaqtybn-1-fwaqvqgf-c9 state=Create
| java.lang.IllegalArgumentException: Neither classes nor expr set
| at org.jboss.aop.microcontainer.beans.IntroductionBinding.start(IntroductionBinding.java:148)
|
and
| 16:01:52,493 ERROR [AbstractKernelController] Error installing to Start: name=ayxy-czjy8o-fwaqtybn-1-fwaqvqge-c3 state=Create
| java.lang.IllegalArgumentException: Null className
| at org.jboss.aop.microcontainer.beans.ClassMetaData.start(ClassMetaData.java:103)
|
I'll dig into it a bit more, but the only reason I can see for this not happening is if the following methods are never called when parsing:
IntroductionBeanMetaDataFactory:
| @XmlAttribute(name="class")
| public void setClazz(String clazz)
| {
| this.clazz = clazz;
| }
|
MetaDataBeanMetaDataFactory:
| @XmlAttribute(name="class")
| public void setClazz(String clazz)
| {
| this.clazz = clazz;
| }
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4239471#4239471
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4239471
More information about the jboss-dev-forums
mailing list