-
1. Re: Archive deployment and seam component scanner problem ?
matthew.edwards Jan 11, 2006 2:54 PM (in response to powerware)When I first started with Seam I tried using a par archive. I could never get it to work. Gavin said that it didn't look like the par archive was going to be a standard, so I just stopped using them.
I think the question is: can classes included in one ejb3/par archive access classes in another ejb3/par archive? Is there any difference in having more than one ejb3 archive? -
2. Re: Archive deployment and seam component scanner problem ?
cesarizurieta Jan 12, 2006 10:25 AM (in response to powerware)I have no problems with this file structure:
app.ear |-app.war | |-... |-app.jar | |-... |-app.ejb3 | |-seam.properties | |-com/mycompany/SeamComponent1.class | |-... |-app.par |-seam.properties |-com/mycompany/SeamComponent2.class |-...
All components are correctly scanned. -
3. Re: Archive deployment and seam component scanner problem ?
cesarizurieta Jan 12, 2006 10:32 AM (in response to powerware)One more thing. You need to define the ejb3s and the par in the application.xml like this:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd"> <application> <display-name>myapp</display-name> <module> <ejb>app.par</ejb> </module> <module> <ejb>app.ejb3</ejb> </module> <module> <web> <web-uri>app.war</web-uri> <context-root>/myapp</context-root> </web> </module> </application>
-
4. Re: Archive deployment and seam component scanner problem ?
powerware Jan 12, 2006 3:27 PM (in response to powerware)My structure is the same .
i all archive which have seam components i included the emtpy seam.properties.
In my application.xml i included the archives and they are processed by JBoss.
I see in the log that seam is scanning the ejb3 and par archive
but it doesn't active my seam component.
Any clue ? -
5. Re: Archive deployment and seam component scanner problem ?
liebner Jan 22, 2006 8:28 AM (in response to powerware)Any news on this one?
Same problem I run to, and everything is the greatest and latest :-)
When scanning my ejb3 file I only get these results:14:24:47,859 INFO [Component] Component: org.jboss.seam.debug.contexts, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.debug.Contexts 14:24:47,875 INFO [Scanner] scanning: /C:/Programme/Java/jboss-4.0.4beta/server/default/tmp/deploy/tmp20806ServiceDictionary.ear-contents/ServiceDictionary.ejb3 14:24:47,937 INFO [Initialization] done initializing Seam
Nothing is bound and this all my jsf actions are going down the drain. I see that everything is fine for the booking example, but i can't see a difference.
Help greatly appreciated,
Stefan -
6. Re: Archive deployment and seam component scanner problem ?
gavin.king Jan 22, 2006 3:50 PM (in response to powerware)Guys, we can't help with any problem we can't reproduce. Either
(1) If you think there is a bug in the scanner code, submit a simple runnable EAR to JIRA
(2) Figure out what is different between your code and the booking example -
7. Re: Archive deployment and seam component scanner problem ?
amarinis Jan 24, 2006 6:43 PM (in response to powerware)I had a similar problem and found that the issue was that I included the jboss-seam.jar file in my WEB-INF/lib directory.
I removed the jar file from this directory and added the jboss-seam.jar file to the root folder of the ejb archive together with the seam.properties. -
8. Re: Archive deployment and seam component scanner problem ?
gavin.king Jan 24, 2006 6:47 PM (in response to powerware)yes, its best to deploy the seam jar in the ejb3 jar or in the ear