[jboss-user] [JBoss Seam] - Re: Seam components inside java class libraries

rsnovelli do-not-reply at jboss.com
Wed Oct 17 11:50:13 EDT 2007


I created an empty sem.properties and put it in the root of my business archive. However, it didn't solve the problem.

I can see that the components are found in the startup:


  | 2007-10-17 13:29:48,298 INFO  [org.jboss.seam.deployment.Scanner] scanning: /C:/Program Files/jboss-4.2.0.GA/server/default/deploy/sirius-web.ear/lib/sirius-spc.jar
  | 2007-10-17 13:29:48,308 DEBUG [org.jboss.seam.deployment.Scanner] archive: C:\Program Files\jboss-4.2.0.GA\server\default\deploy\sirius-web.ear\lib\sirius-spc.jar
  | 2007-10-17 13:29:48,308 DEBUG [org.jboss.seam.deployment.Scanner] found: META-INF/
  | 2007-10-17 13:29:48,308 DEBUG [org.jboss.seam.deployment.Scanner] found: META-INF/MANIFEST.MF
  | 2007-10-17 13:29:48,308 DEBUG [org.jboss.seam.deployment.Scanner] found: br/
  | 2007-10-17 13:29:48,308 DEBUG [org.jboss.seam.deployment.Scanner] found: br/com/
  | 2007-10-17 13:29:48,308 DEBUG [org.jboss.seam.deployment.Scanner] found: br/com/techrobot/
  | 2007-10-17 13:29:48,308 DEBUG [org.jboss.seam.deployment.Scanner] found: br/com/techrobot/sirius/
  | 2007-10-17 13:29:48,308 DEBUG [org.jboss.seam.deployment.Scanner] found: br/com/techrobot/sirius/spc/
  | 2007-10-17 13:29:48,308 DEBUG [org.jboss.seam.deployment.Scanner] found: br/com/techrobot/sirius/spc/tests/
  | 2007-10-17 13:29:48,308 DEBUG [org.jboss.seam.deployment.Scanner] found: br/com/techrobot/sirius/spc/tests/TestComponent.class
  | 2007-10-17 13:29:48,308 DEBUG [org.jboss.seam.deployment.Scanner] found: seam.properties
  | 2007-10-17 13:29:48,308 INFO  [org.jboss.seam.deployment.Scanner] scanning: /C:/Program Files/jboss-4.2.0.GA/server/default/deploy/sirius-web.ear/sirius-web.war/WEB-INF/lib/sirius-spc.jar
  | 2007-10-17 13:29:48,308 DEBUG [org.jboss.seam.deployment.Scanner] archive: C:\Program Files\jboss-4.2.0.GA\server\default\deploy\sirius-web.ear\sirius-web.war\WEB-INF\lib\sirius-spc.jar
  | 2007-10-17 13:29:48,308 DEBUG [org.jboss.seam.deployment.Scanner] found: META-INF/
  | 2007-10-17 13:29:48,308 DEBUG [org.jboss.seam.deployment.Scanner] found: META-INF/MANIFEST.MF
  | 2007-10-17 13:29:48,308 DEBUG [org.jboss.seam.deployment.Scanner] found: br/
  | 2007-10-17 13:29:48,308 DEBUG [org.jboss.seam.deployment.Scanner] found: br/com/
  | 2007-10-17 13:29:48,308 DEBUG [org.jboss.seam.deployment.Scanner] found: br/com/techrobot/
  | 2007-10-17 13:29:48,308 DEBUG [org.jboss.seam.deployment.Scanner] found: br/com/techrobot/sirius/
  | 2007-10-17 13:29:48,308 DEBUG [org.jboss.seam.deployment.Scanner] found: br/com/techrobot/sirius/spc/
  | 2007-10-17 13:29:48,308 DEBUG [org.jboss.seam.deployment.Scanner] found: br/com/techrobot/sirius/spc/tests/
  | 2007-10-17 13:29:48,308 DEBUG [org.jboss.seam.deployment.Scanner] found: br/com/techrobot/sirius/spc/tests/TestComponent.class
  | ...
  | 2007-10-17 13:29:48,848 DEBUG [org.jboss.seam.deployment.ComponentScanner] found component class: br/com/techrobot/sirius/spc/tests/TestComponent.class
  | ...
  | 2007-10-17 13:29:49,439 DEBUG [org.jboss.seam.deployment.Scanner] directory: C:\Program Files\jboss-4.2.0.GA\server\default\deploy\sirius-web.ear\sirius-web.jar\br\com\techrobot\sirius\web\tests
  | 2007-10-17 13:29:49,439 DEBUG [org.jboss.seam.deployment.ComponentScanner] found component class: br/com/techrobot/sirius/web/tests/TestComponentAction.class
  | ...
  | 2007-10-17 13:30:00,295 INFO  [org.jboss.seam.Component] Component: testComponent, scope: EVENT, type: JAVA_BEAN, class: br.com.techrobot.sirius.spc.tests.TestComponent
  | 2007-10-17 13:30:00,305 DEBUG [org.jboss.seam.Component] interceptor stack: [Interceptor(org.jboss.seam.core.MethodContextInterceptor), Interceptor(org.jboss.seam.core.BijectionInterceptor), Interceptor(org.jboss.seam.transaction.RollbackInterceptor)]
  | 2007-10-17 13:30:00,305 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
  | 2007-10-17 13:30:00,305 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
  | 2007-10-17 13:30:00,305 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
  | 2007-10-17 13:30:00,305 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
  | 2007-10-17 13:30:00,305 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
  | 2007-10-17 13:30:00,305 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
  | 2007-10-17 13:30:00,305 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.testComponent.component
  | 2007-10-17 13:30:00,305 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
  | 2007-10-17 13:30:00,305 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
  | 2007-10-17 13:30:00,305 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
  | 2007-10-17 13:30:00,305 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
  | 2007-10-17 13:30:00,305 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
  | 2007-10-17 13:30:00,305 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
  | 2007-10-17 13:30:00,305 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.testComponent.component
  | 2007-10-17 13:30:00,325 INFO  [org.jboss.seam.Component] Component: testComponentAction, scope: EVENT, type: JAVA_BEAN, class: br.com.techrobot.sirius.web.tests.TestComponentAction
  | 2007-10-17 13:30:00,345 DEBUG [org.jboss.seam.Component] interceptor stack: [Interceptor(org.jboss.seam.core.MethodContextInterceptor), Interceptor(org.jboss.seam.core.ConversationInterceptor), Interceptor(org.jboss.seam.core.BijectionInterceptor), Interceptor(org.jboss.seam.transaction.RollbackInterceptor)]
  | 2007-10-17 13:30:00,345 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
  | 2007-10-17 13:30:00,345 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
  | 2007-10-17 13:30:00,345 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
  | 2007-10-17 13:30:00,345 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
  | 2007-10-17 13:30:00,345 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
  | 2007-10-17 13:30:00,345 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
  | 2007-10-17 13:30:00,345 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.testComponentAction.component
  | 2007-10-17 13:30:00,345 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
  | 2007-10-17 13:30:00,345 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
  | 2007-10-17 13:30:00,345 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
  | 2007-10-17 13:30:00,345 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
  | 2007-10-17 13:30:00,345 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
  | 2007-10-17 13:30:00,345 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
  | 2007-10-17 13:30:00,345 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.testComponentAction.component
  | 

If you would like to test it live, you can access the application in the following url: http://techrobot.webhop.net:8081/sirius/
You need to login. Use this: username = manager, password = secret
Then, after you are logged in, type this url: http://techrobot.webhop.net:8081/sirius/tests/testComponent.seam
In this page, click the button "DO SOMETHING".
You will see the exception and you will be able to see the components in their respectives contexts in the debug page.

Thanks in advance,
Regards,
Rodrigo.

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

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



More information about the jboss-user mailing list