0 Replies Latest reply on Feb 12, 2008 10:48 AM by Marco Huber

    Accessing entity beans from separate EAR file

    Marco Huber Newbie

      Hi all,

      I have a problem deploying my seam application.
      In my application structure I have 2 EARs. One with the services and one with the web-frontend (with seam). In the service-ear I have entity beans which have Seam annotations. Now when I deploy both ears Seam only install the component from web-frontend and skip the entity beans from the service-ear. I found following lines in the log-file, so Seam seems to find the entity but doesn't want to deploy it:

      2008-02-12 16:30:14,593 DEBUG [org.jboss.seam.deployment.URLScanner] scanning: C:/Programme/jboss/jboss-4.2.2.GA/server/default/tmp/deploy/tmp37003webFrontend.ear-contents/jboss-seam-2.0.1.GA.jar
      2008-02-12 16:30:14,593 DEBUG [org.jboss.seam.deployment.URLScanner] archive: C:\Programme\jboss\jboss-4.2.2.GA\server\default\tmp\deploy\tmp37003webFrontend.ear-contents\jboss-seam-2.0.1.GA.jar
      2008-02-12 16:30:14,828 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@125ee71, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@7588c{ url=null ,addedOrder=0}
      2008-02-12 16:30:16,187 DEBUG [org.jboss.seam.deployment.URLScanner] scanning: /C:/Programme/jboss/jboss-4.2.2.GA/server/default/tmp/deploy/tmp37003webFrontend.ear-contents/webFrontend-war-exp.war/WEB-INF/lib/jboss-seam-debug-2.0.1.GA.jar
      2008-02-12 16:30:16,187 DEBUG [org.jboss.seam.deployment.URLScanner] archive: C:\Programme\jboss\jboss-4.2.2.GA\server\default\tmp\deploy\tmp37003webFrontend.ear-contents\webFrontend-war-exp.war\WEB-INF\lib\jboss-seam-debug-2.0.1.GA.jar
      2008-02-12 16:30:16,203 DEBUG [org.jboss.seam.deployment.URLScanner] scanning: /C:/Programme/jboss/jboss-4.2.2.GA/server/default/tmp/deploy/tmp37002service.ear-contents/entity-jar-1.0-SNAPSHOT.jar
      2008-02-12 16:30:16,203 DEBUG [org.jboss.seam.deployment.URLScanner] archive: C:\Programme\jboss\jboss-4.2.2.GA\server\default\tmp\deploy\tmp37002service.ear-contents\entity-jar-1.0-SNAPSHOT.jar
      2008-02-12 16:30:16,421 DEBUG [org.jboss.seam.deployment.URLScanner] scanning: /C:/Programme/jboss/jboss-4.2.2.GA/server/default/tmp/deploy/tmp37003webFrontend.ear-contents/webFrontend-war-exp.war/WEB-INF/lib/jboss-seam-ui-2.0.1.GA.jar
      2008-02-12 16:30:16,421 DEBUG [org.jboss.seam.deployment.URLScanner] archive: C:\Programme\jboss\jboss-4.2.2.GA\server\default\tmp\deploy\tmp37003webFrontend.ear-contents\webFrontend-war-exp.war\WEB-INF\lib\jboss-seam-ui-2.0.1.GA.jar
      



      Have someone else try to deploy entity beans outside a Seam application and got Seam to use them? What is the best practice for such kind of scenario?

      The environement is Seam 2.0.1.GA on JBoss 4.2.2

      Thank in advance
      Marco