-
1. Re: Component not found in War
pmuir Nov 17, 2006 11:33 AM (in response to gquintana)Yu can't put seam components in the war. If you don't want them in the EJB jar you could always put them in another jar. Just don't forget seam.properties for them to loaded automatically.
-
2. Re: Component not found in War
gavin.king Nov 17, 2006 11:35 AM (in response to gquintana)So you package your component class directly in WEB-INF/classes? OK, well, you would need to add a WEB-INF/classes/META-INF/seam.properties file so that Seam's scanner will scan that directory for components.
-
3. Re: Component not found in War
gquintana Nov 20, 2006 6:46 AM (in response to gquintana)I tried to put an empty seam.properties file in MyApp.ear/MyWeb.war/WEB-INF/classes/META-INF (as you told me) without success. I tried to put it in MyApp.ear/MyWeb.war/WEB-INF/classes as well.
I am using JBoss Seam 1.0.1 on JBoss AS 4.0.5.GA. Should I upgrade to JBoss Seam 1.1.Beta2? -
4. Re: Component not found in War
gavin.king Nov 20, 2006 11:40 AM (in response to gquintana)Hum, OK, then perhaps that doesn't work. I thought it would, but I guess I need to scan on a different classloader. Or perhaps it just can't work at all. Add a feature request to JIRA if this really matters to you and you want me to investigate firther.
-
5. [Resolved] Re: Component not found in War
gquintana Nov 21, 2006 2:41 AM (in response to gquintana)I will package them separately as petemuir told me to, I tried and it works:
MyApp.ear
+- MyEjb.jar: Business beans (EJB 3)
+- MyWeb.jar: Presentation beans
+- MyWeb.war: JSP, images...
Nevertheless it could be a good thing to have this feature in future release. The Stripes framework automatically detects annotated action beans located in a War, so it is not impossible.
Thanks for your help