[jboss-user] [JBoss AOP] - java.lang.IllegalStateException: Should not have null domainName for scoped bean

Pasta Farian do-not-reply at jboss.com
Wed Apr 21 15:11:35 EDT 2010


Pasta Farian [http://community.jboss.org/people/pastafarian] replied to the discussion

"java.lang.IllegalStateException: Should not have null domainName for scoped bean"

To view the discussion, visit: http://community.jboss.org/message/538848#538848

--------------------------------------------------------------
More information...

Here is my jboss-aop.xml which is placed in the META-INF directory of the war file. The war file is one of several independent war files in the EAR file.

<aop xmlns="urn:jboss:aop-beans:1.0">
    <interceptor/>
    <bind pointcut="execution(* com.acme.*->*(..))">
        <interceptor-ref name="com.intuit.loghub.aop.LogInterceptor"/>
    </bind>

</aop>

I tried putting a <domain name="TestDomain> element around the <bind> element but I still got the same exception above.

I found a mention of Domain in the EJB3 Customized deployment docs:  http://www.jboss.org/ejb3/docs/tutorial/configuration/configuration.html http://www.jboss.org/ejb3/docs/tutorial/configuration/configuration.html


h3. Domains
 The <domain ... /> elements configure the server side. There is a  default domain for each bean type. This is where the server side interceptor chains are defined using the AOP Pointcut Language  (i.e. <bind pointcut="..." />). Please see the AOP documentation for more information on the Pointcut Language. The Domains  are also used to introduce default annotations and thus create default behavior for each of the bean types. For example, take a  look at the "Stateless Bean" domain. Notice that through the <annotation expr="..." /> element, a default  @org.jboss.annotation.ejb.PoolClass is created for each stateless  session bean that does not explicitly define a @org.jboss.annotation.ejb.PoolClass  annotation on the class.


Except the war file in question doesn't have any EJBs in it! It's just a resteasy servlet and supporting code.

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/538848#538848]

Start a new discussion in JBoss AOP at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2027]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100421/8d764daa/attachment.html 


More information about the jboss-user mailing list