[JBoss Seam] - Re: seam cannot reference EJB, why?
by hsiung
here is the startup log in which Seam scans the ejb jar:
20:03:09,933 INFO [ServletContextListener] Welcome to Seam 1.2.1
| 20:03:09,953 INFO [Scanner] scanning: /D:/opt/jboss-4.0.5/server/default/./tmp/deploy/tmp1148FBN-app.ear-contents/FBN-JSF-exp.war/WEB-INF/lib/jboss-s
| eam.jar
| 20:03:10,033 INFO [Scanner] scanning: /D:/opt/jboss-4.0.5/server/default/tmp/deploy/tmp1148FBN-app.ear-contents/jboss-seam.jar
| 20:03:10,083 INFO [Initialization] Namespace: http://jboss.com/products/seam/security, package: org.jboss.seam.security, prefix: org.jboss.seam.secur
| ity
| 20:03:10,083 INFO [Initialization] Namespace: http://jboss.com/products/seam/drools, package: org.jboss.seam.drools, prefix: org.jboss.seam.drools
| 20:03:10,083 INFO [Initialization] Namespace: http://jboss.com/products/seam/mail, package: org.jboss.seam.mail, prefix: org.jboss.seam.mail
| 20:03:10,083 INFO [Initialization] Namespace: http://jboss.com/products/seam/web, package: org.jboss.seam.web, prefix: org.jboss.seam.web
| 20:03:10,083 INFO [Initialization] Namespace: http://jboss.com/products/seam/theme, package: org.jboss.seam.theme, prefix: org.jboss.seam.theme
| 20:03:10,083 INFO [Initialization] Namespace: http://jboss.com/products/seam/jms, package: org.jboss.seam.jms, prefix: org.jboss.seam.jms
| 20:03:10,083 INFO [Initialization] Namespace: http://jboss.com/products/seam/framework, package: org.jboss.seam.framework, prefix: org.jboss.seam.cor
| e.framework
| 20:03:10,093 INFO [Scanner] scanning: /D:/opt/jboss-4.0.5/server/default/tmp/deploy/tmp1148FBN-app.ear-contents/jboss-seam-debug.jar
| 20:03:10,093 INFO [Scanner] scanning: D:\opt\jboss-4.0.5\server\default\.\tmp\deploy\tmp1148FBN-app.ear-contents\FBN-JSF-exp.war\WEB-INF\classes
| 20:03:10,093 INFO [Scanner] scanning: /D:/opt/jboss-4.0.5/server/default/./tmp/deploy/tmp1148FBN-app.ear-contents/FBN-JSF-exp.war/WEB-INF/lib/jboss-s
| eam-ui.jar
| 20:03:10,093 INFO [Scanner] scanning: /D:/opt/jboss-4.0.5/server/default/./tmp/deploy/tmp1148FBN-app.ear-contents/FBN-JSF-exp.war/WEB-INF/lib/jboss-s
| eam-debug.jar
| 20:03:10,093 INFO [Scanner] scanning: /D:/opt/jboss-4.0.5/server/default/tmp/deploy/tmp1148FBN-app.ear-contents/FBN-EJB.jar
| 20:03:10,103 INFO [Initialization] reading /WEB-INF/components.xml
| 20:03:10,233 INFO [Initialization] reading jar:file:/D:/opt/jboss-4.0.5/server/default/tmp/deploy/tmp1148FBN-app.ear-contents/jboss-seam.jar!/META-IN
| F/components.xml
| 20:03:10,253 INFO [Initialization] reading jar:file:/D:/opt/jboss-4.0.5/server/default/./tmp/deploy/tmp1148FBN-app.ear-contents/FBN-JSF-exp.war/WEB-I
| NF/lib/jboss-seam.jar!/META-INF/components.xml
| 20:03:10,253 INFO [Initialization] reading properties from: /seam.properties
| 20:03:10,263 INFO [Initialization] reading properties from: /jndi.properties
| 20:03:10,263 INFO [Initialization] initializing Seam
| 20:03:10,313 INFO [Scanner] scanning: /D:/opt/jboss-4.0.5/server/default/tmp/deploy/tmp1148FBN-app.ear-contents/jboss-seam-debug.jar
| 20:03:10,734 INFO [Scanner] scanning: D:\opt\jboss-4.0.5\server\default\.\tmp\deploy\tmp1148FBN-app.ear-contents\FBN-JSF-exp.war\WEB-INF\classes
| 20:03:10,744 INFO [Scanner] scanning: /D:/opt/jboss-4.0.5/server/default/./tmp/deploy/tmp1148FBN-app.ear-contents/FBN-JSF-exp.war/WEB-INF/lib/jboss-s
| eam-ui.jar
| 20:03:11,084 INFO [Scanner] scanning: /D:/opt/jboss-4.0.5/server/default/./tmp/deploy/tmp1148FBN-app.ear-contents/FBN-JSF-exp.war/WEB-INF/lib/jboss-s
| eam-debug.jar
| 20:03:11,094 INFO [Scanner] scanning: /D:/opt/jboss-4.0.5/server/default/tmp/deploy/tmp1148FBN-app.ear-contents/FBN-EJB.jar
| 20:03:11,174 INFO [Scanner] scanning: /D:/opt/jboss-4.0.5/server/default/./tmp/deploy/tmp1148FBN-app.ear-contents/FBN-JSF-exp.war/WEB-INF/lib/jboss-s
| eam.jar
| 20:03:12,777 INFO [Scanner] scanning: /D:/opt/jboss-4.0.5/server/default/tmp/deploy/tmp1148FBN-app.ear-contents/jboss-seam.jar
| 20:03:13,838 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.security.identity
| 20:03:13,888 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.persistence.persistenceProvider
| 20:03:13,908 INFO [Component] Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
| 20:03:14,048 INFO [Initialization] Installing components...
| 20:03:14,069 INFO [Component] Component: org.jboss.seam.core.applicationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Appl
| icationContext
| 20:03:14,069 INFO [Component] Component: org.jboss.seam.core.businessProcessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.
| BusinessProcessContext
| 20:03:14,079 INFO [Component] Component: org.jboss.seam.core.conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversat
| ion
| 20:03:14,649 INFO [Component] Component: org.jboss.seam.core.conversationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Con
| versationContext
| 20:03:14,649 INFO [Component] Component: org.jboss.seam.core.conversationEntries, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.Convers
| ationEntries
| 20:03:14,649 INFO [Component] Component: org.jboss.seam.core.conversationList, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationL
| ist
| 20:03:14,649 INFO [Component] Component: org.jboss.seam.core.conversationStack, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation
| Stack
| 20:03:14,649 INFO [Component] Component: org.jboss.seam.core.eventContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.EventConte
| xt
| 20:03:14,659 INFO [Component] Component: org.jboss.seam.core.events, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Events
| 20:03:14,659 INFO [Component] Component: org.jboss.seam.core.exceptions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Exceptions
| 20:03:14,669 INFO [Component] Component: org.jboss.seam.core.expressions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Expressions
|
| 20:03:14,679 INFO [Component] Component: org.jboss.seam.core.facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesConte
| xt
| 20:03:14,679 INFO [Component] Component: org.jboss.seam.core.facesMessages, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesMes
| sages
| 20:03:14,689 INFO [Component] Component: org.jboss.seam.core.facesPage, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.FacesPage
| 20:03:14,689 INFO [Component] Component: org.jboss.seam.core.httpError, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.HttpError
| 20:03:14,689 INFO [Component] Component: org.jboss.seam.core.image, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Image
| 20:03:15,701 INFO [Component] Component: org.jboss.seam.core.interpolator, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Interpolator
|
| 20:03:15,701 INFO [Component] Component: org.jboss.seam.core.isUserInRole, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.IsUserInRo
| le
| 20:03:15,701 INFO [Component] Component: org.jboss.seam.core.locale, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Locale
| 20:03:15,701 INFO [Component] Component: org.jboss.seam.core.localeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.LocaleSelect
| or
| 20:03:15,701 INFO [Component] Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Manager
| 20:03:15,711 INFO [Component] Component: org.jboss.seam.core.messages, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.Messages
| 20:03:15,711 INFO [Component] Component: org.jboss.seam.core.methodContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.MethodCon
| text
| 20:03:15,731 INFO [Component] Component: org.jboss.seam.core.pageContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.PageContext
|
| 20:03:15,731 INFO [Component] Component: org.jboss.seam.core.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pages
| 20:03:15,741 INFO [Component] Component: org.jboss.seam.core.persistenceContexts, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pe
| rsistenceContexts
| 20:03:15,741 INFO [Component] Component: org.jboss.seam.core.pojoCache, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.PojoCache
| 20:03:15,751 INFO [Component] Component: org.jboss.seam.core.redirect, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Redirect
| 20:03:15,751 INFO [Component] Component: org.jboss.seam.core.renderer, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.ui.facelet.FaceletsRe
| nderer
| 20:03:15,751 INFO [Component] Component: org.jboss.seam.core.resourceBundle, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBund
| le
| 20:03:15,751 INFO [Component] Component: org.jboss.seam.core.safeActions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SafeActions
|
| 20:03:15,751 INFO [Component] Component: org.jboss.seam.core.sessionContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SessionC
| ontext
| 20:03:15,761 INFO [Component] Component: org.jboss.seam.core.switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.Switcher
| 20:03:15,761 INFO [Component] Component: org.jboss.seam.core.uiComponent, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.UiComponent
| 20:03:15,771 INFO [Component] Component: org.jboss.seam.core.userPrincipal, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.UserPrinc
| ipal
| 20:03:15,771 INFO [Component] Component: org.jboss.seam.core.validation, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Validation
| 20:03:15,771 INFO [Component] Component: org.jboss.seam.core.validators, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Validators
| 20:03:15,771 INFO [Component] Component: org.jboss.seam.framework.currentDate, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.Cur
| rentDate
| 20:03:15,801 INFO [Component] Component: org.jboss.seam.framework.currentDatetime, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework
| .CurrentDatetime
| 20:03:15,801 INFO [Component] Component: org.jboss.seam.framework.currentTime, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.Cur
| rentTime
| 20:03:15,801 INFO [Component] Component: org.jboss.seam.mail.mailSession, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.mail.MailSession
|
| 20:03:15,801 INFO [Component] Component: org.jboss.seam.security.configuration, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.security.C
| onfiguration
| 20:03:15,811 INFO [Component] Component: org.jboss.seam.security.identity, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.security.Identity
| 20:03:15,831 INFO [Component] Component: org.jboss.seam.servlet.exceptionFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.Excep
| tionFilter
| 20:03:15,851 INFO [Component] Component: org.jboss.seam.servlet.multipartFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.Multi
| partFilter
| 20:03:15,851 INFO [Component] Component: org.jboss.seam.servlet.redirectFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.Redire
| ctFilter
| 20:03:15,851 INFO [Component] Component: org.jboss.seam.theme.theme, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.theme.Theme
| 20:03:15,851 INFO [Component] Component: org.jboss.seam.theme.themeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.theme.ThemeSelect
| or
| 20:03:15,851 INFO [Component] Component: org.jboss.seam.ui.entityConverter, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.ui.EntityConv
| erter
| 20:03:15,861 INFO [Component] Component: org.jboss.seam.ui.entityConverterStore, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.ui.EntityConvert
| erStore
| 20:03:15,861 INFO [Component] Component: org.jboss.seam.ui.graphicImage.dynamicImageResource, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.s
| eam.ui.graphicImage.DynamicImageResource
| 20:03:15,861 INFO [Component] Component: org.jboss.seam.ui.graphicImage.dynamicImageStore, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.ui.
| graphicImage.DynamicImageStore
| 20:03:15,861 INFO [Component] Component: org.jboss.seam.ui.resource.webResource, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.ui.resour
| ce.WebResource
| 20:03:15,861 INFO [Lifecycle] starting up: org.jboss.seam.servlet.exceptionFilter
| 20:03:15,861 INFO [Lifecycle] starting up: org.jboss.seam.ui.graphicImage.dynamicImageResource
| 20:03:15,871 INFO [Lifecycle] starting up: org.jboss.seam.servlet.multipartFilter
| 20:03:15,871 INFO [Lifecycle] starting up: org.jboss.seam.ui.resource.webResource
| 20:03:15,871 INFO [Lifecycle] starting up: org.jboss.seam.servlet.redirectFilter
| 20:03:15,871 INFO [Initialization] done initializing Seam
| 20:03:15,871 INFO [SeamFilter] Initializing filter: org.jboss.seam.servlet.multipartFilter
| 20:03:15,871 INFO [SeamFilter] Initializing filter: org.jboss.seam.servlet.exceptionFilter
| 20:03:15,871 INFO [SeamFilter] Initializing filter: org.jboss.seam.servlet.redirectFilter
| 20:03:15,941 INFO [EARDeployer] Started J2EE application: file:/D:/Ideartis/Software-assets/FBN/FBN-app/FBN-app.ear
| 20:03:16,282 INFO [Lifecycle] starting up: org.jboss.seam.security.identity
| 20:03:16,332 INFO [Lifecycle] starting up: org.jboss.seam.security.identity
| 20:03:18,295 INFO [Lifecycle] starting up: org.jboss.seam.security.identity
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041654#4041654
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041654
17 years, 8 months
[JBossCache] - Regional classloaders and state transfer
by FredrikJ
We are currently using the 2.0 beta 2 release, and have some problem with the state transfer.
We are using regional based classloaders with an example cache like:
/a/ -> ClassLoader A
/b/ -> ClassLoader B
The startup sequence of the cache looks like:
1. Create cache
2. Register classloaders
3. Start the cache
Now, we startup Cache #1 and everything is working well. We add some ClassLoader A specific objects under /a/... and can read and write them correctly. Placing ClassLoader B specific objects under /b/... also works fine.
Then we start Cache #2 using the same start sequence as above, but then we run into problems. Cache #1 has objects in it's cache so a state transfer is initialized. The regions have been initialized in Cache #2 with proper classloaders so that should be fine. However, the state transfer from Cache #1 is triggered on the root '/'.
When Cache #2 gets the initial state transfer it goes a little like this:
1. Do I have regional based classloaders? yes.
2. Do I have a classloader defined for region '/'? no.
3. Use default classloader.
4. ClassNotFoundException
The class not found is of course due to the fact that objects under /a/... will require ClassLoader A. The steps are of course my interpretation from stepping the code in a debugger, I might be wrong.
Any feedback regarding this would be much appreciated, I am not really sure yet on how to solve the problem if the state transfer is for the whole cache with the root node as reference.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041653#4041653
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041653
17 years, 8 months