Is it possible to Build a EJB3 "jar" project using Seam?
zarathos.braggjc.gmail.com Aug 17, 2010 11:58 AMThe architecture of the SuD (System under discussion), separating various components of the system based on there objective. We have are web projects deployed on one sets servers and our business layer projects deployed on another set of servers. We will be implementing the business layer projects as EJB3 and as a Web Service (@WebService). We are attempting to us seam but are finding that nearly every reference/example has the projects setup as an EAR file. Is it not possible to implement Seam in a EJB3 as a JAR Project?
I have built the JAR Project added
- seam.properies (empty)
- META-INF (folder)
- components.xml
- ejb-jar.xml (included enterprise-beans/interceptors/assembly-descriptor as described for seam)
- standard-jaxws-endpoint-config.xml
On Deployment receiving:
DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "jboss.j2ee:ear=UserAuthServices.jar,jar=jboss-seam-2.2.1.CR1.jar,name=EjbSynchronizations,service=EJB3_endpoint" is missing the following dependencies:
Dependency "jboss.j2ee:ear=UserAuthServices.jar,jar=jboss-seam-2.2.1.CR1.jar,name=EjbSynchronizations,service=EJB3" (should be in state "Configured", but is actually in state "** NOT FOUND Depends on 'jboss.j2ee:ear=UserAuthServices.jar,jar=jboss-seam-2.2.1.CR1.jar,name=EjbSynchronizations,service=EJB3' **")
Deployment "jboss.j2ee:ear=UserAuthServices.jar,jar=jboss-seam-2.2.1.CR1.jar,name=TimerServiceDispatcher,service=EJB3_endpoint" is missing the following dependencies:
Dependency "jboss.j2ee:ear=UserAuthServices.jar,jar=jboss-seam-2.2.1.CR1.jar,name=TimerServiceDispatcher,service=EJB3" (should be in state "Configured", but is actually in state "** NOT FOUND Depends on 'jboss.j2ee:ear=UserAuthServices.jar,jar=jboss-seam-2.2.1.CR1.jar,name=TimerServiceDispatcher,service=EJB3' **")
DEPLOYMENTS IN ERROR:
Deployment "jboss.j2ee:ear=UserAuthServices.jar,jar=jboss-seam-2.2.1.CR1.jar,name=EjbSynchronizations,service=EJB3" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.j2ee:ear=UserAuthServices.jar,jar=jboss-seam-2.2.1.CR1.jar,name=EjbSynchronizations,service=EJB3' **
Deployment "jboss.j2ee:ear=UserAuthServices.jar,jar=jboss-seam-2.2.1.CR1.jar,name=TimerServiceDispatcher,service=EJB3" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.j2ee:ear=UserAuthServices.jar,jar=jboss-seam-2.2.1.CR1.jar,name=TimerServiceDispatcher,service=EJB3' **
I am about to pull back the wsdl and generate the client; however, during testing I am receiving:
...
10-08-17 11:06:22,730 ERROR [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] (http-127.0.0.1-8080-1) Exception during handler processing
java.lang.NullPointerException
at org.jboss.seam.servlet.ServletApplicationMap.get(ServletApplicationMap.java:54)
at org.jboss.seam.contexts.BasicContext.get(BasicContext.java:49)
at org.jboss.seam.Component.forName(Component.java:1947)
at org.jboss.seam.Component.getInstance(Component.java:2005)
...
Any help would be appreciated.
James..
PS: Running JBoss 5.x, Seam 2.2.1.CR1, Java 6.x