[jboss-user] [JBoss AOP] - Re: Interceptor invoked in context of Servlet but not JSP

alen_ribic do-not-reply at jboss.com
Mon May 18 06:51:07 EDT 2009


Ok the Entity class relationship defined on the Department.getUsers is @javax.persistence.OneToMany and thats on the getter and not the attribute.
So, JSP could not be calling the attribute directly as the LazyInitializationException is thrown and @OneToMany that would cause it is defined on the getter.

My jboss-aop.xml if defined in a separate jar file in the root of the .ear.



  | MyEAR.ear/
  |     |
  |     |-----MyEJBClient.jar/
  |     |          |
  |     |          |----- META-INF/jboss-aop.xml
  |     |          |
  |     |          |----- com.mycomp.aop.myinterceptors.*
  |     |          |----- com.mycomp.entity.*
  |     |
  |     |-----MyWebApp.war/
  |                |
  |                |---- the Servlets + JSP
  | 


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231584#4231584

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231584



More information about the jboss-user mailing list