No <Around-invoke> or lifecycle callbacks (OC4J10.1.3.3)
chris.simons May 28, 2008 11:51 PMAs I mentioned in another (though somewhat off-topic) post, I am having difficult deploying the Booking example to a OC4J 10.1.3.3 container. The example as configured will deploy successfully to OC4J 11 TP4.
The problem is not that it doesn't find the SeamInterceptor class but that it can't find @AroundInvoke annotation that it extends from SessionBeanInterceptor (at least that is my guess).
The error message on deployment:
2008-05-28 16:45:42.059 ERROR J2EE EJB-03027 [jboss-seam-jee5] An error occured deploying EJB module: com.evermind.server.ejb.exception.DeploymentException: [jboss-seam-jee5:jboss-seam-jee5] - No <around-invoke
> or lifecycle callbacks were specified for interceptor org.jboss.seam.ejb.SeamInterceptor.
08/05/28 16:45:42 WARNING: Application.setConfig Application: jboss-seam-jee5 is in failed state as initialization failed.
java.lang.InstantiationException: Error initializing ejb-modules: [jboss-seam-jee5:jboss-seam-jee5] - No <around-invoke> or lifecycle callbacks were specified for interceptor org.jboss.seam.ejb.SeamInterceptor.
Could really use some help here. Is OC4J10R3 unable to find the interceptors because SeamInterceptor is inheriting them from a parent class? Is there something wrong my ejb-jar.xml or other configuration file?
resources/meta-inf/ejb-jar.xml
<?xml version="1.0" encoding="UTF-8"?> <ejb-jar xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd" version="3.0"> <interceptors> <interceptor> <interceptor-class>org.jboss.seam.ejb.SeamInterceptor</interceptor-class> </interceptor> </interceptors> <assembly-descriptor> <interceptor-binding> <ejb-name>*</ejb-name> <interceptor-class>org.jboss.seam.ejb.SeamInterceptor</interceptor-class> </interceptor-binding> </assembly-descriptor> </ejb-jar>
web.xml is exactly as in Booking example (no changes).
Again, example deploys to OC4J11 exactly as found in Booking example. Was hoping this latest release of OC4J10 was closer to OC4J11 TP4 than it truly is.
Thanks.