[jboss-user] [JBoss Tools (users)] - Re: Making Maven Archetype created Seam Project JBoss Tool c

scabanovich do-not-reply at jboss.com
Fri Dec 5 06:27:44 EST 2008


Web project should be dependent on EJB project. 

Open properties dialog for web project. 
Select section Java EE Module dependencies.
Check in the list EJB project. 
When dependency is created, it is saved in /.settings/org.eclipse.wst.common.component file as
<dependent-module deploy-path="/WEB-INF/lib" handle="module:/resource/burnout-ejb/burnout-ejb">
<dependency-type>uses</dependency-type>
</dependent-module>

After the modification of dependencies, to ensure update of Seam model, select on web project 'Close Project',  then 'Open Project', then clean/rebuild it. 

To check that Seam model is correct, use Seam Components view. It is necessary to customize the view (by view toolbar menu) by unchecking filter 'Seam Components from Referenced Projects. Also it may be more convenient to check in 'Scope Presentation' option 'Label' rather than 'Node', otherwise you need to know the scope of the component to find it.
Certainly, the component declared in EJB project must be under this project's node in this view. If web project uses EJB project, and its Seam model is loaded and updated correctly, then this component must be under web project's node as well.


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

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



More information about the jboss-user mailing list