Using JBOSS 5 and Richfaces.
I have an EAR file containing
lib.jar
ui.war
lib.war contains an EJB "Service"
@Stateless public class ServiceImpl implements Service { ... }
public class Backing{ @EJB Service myService; ....
javax.servlet.ServletException: Servlet execution threw an exception org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178) org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290) org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368) org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) root cause java.lang.Error: Unresolved compilation problem: EJB cannot be resolved to a type org.something.Backing.<init>(Backing.java:8) sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
Ignore my post above, I figured out that this probably has nothing to do with the JBOSS container. Some kind of issue in my Maven setup prevents the Backed.java class to be compiled correctly...