-
1. Re: Seam Configuration Qeustion
gavin.king Sep 28, 2005 3:52 PM (in response to sjaved8)What that file does is enables repository-scoped classloading. That is not most likely your problem.
More likely, you don't have a seam.properties in the archive with your seam components. -
2. Re: Seam Configuration Qeustion
sjaved8 Sep 28, 2005 4:17 PM (in response to sjaved8)I do have a seam.properties in the ejb3 archive at the same level as META-INF and com/... along with the jboss-seam jar It is a zero length file.
Do I also need to have a seam.properties in the war archive and the ear archive and if so, where?
I am using an exploded archive configuration, does this matter? -
3. Re: Seam Configuration Qeustion
gavin.king Sep 28, 2005 4:20 PM (in response to sjaved8)"sjaved8" wrote:
I do have a seam.properties in the ejb3 archive at the same level as META-INF and com/... along with the jboss-seam jar It is a zero length file.
Do I also need to have a seam.properties in the war archive and the ear archive and if so, where?
No, that should be fine."sjaved8" wrote:
I am using an exploded archive configuration, does this matter?
It shouldn't matter, no. -
4. Re: Seam Configuration Qeustion
sjaved8 Sep 28, 2005 4:33 PM (in response to sjaved8)O.K. Would these jboss problems be the culprit. These seems to be a know issue with jboss 4.0.3rc2 running on windows. By the way would jboss4.0.3rc2 on windows be a problem?
--- MBeans waiting for other MBeans ---
ObjectName: jboss.jms:alias=QueueConnectionFactory
State: FAILED
Reason: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]
ObjectName: jboss.jms:alias=TopicConnectionFactory
State: FAILED
Reason: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.jms:alias=TopicConnectionFactory
State: FAILED
Reason: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]
ObjectName: jboss.jms:alias=QueueConnectionFactory
State: FAILED
Reason: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] -
5. Re: Seam Configuration Qeustion
gavin.king Sep 28, 2005 4:37 PM (in response to sjaved8)"sjaved8" wrote:
By the way would jboss4.0.3rc2 on windows be a problem?
Yes.
http://www.jboss.com/products/seam/gettingstartedDownload both Seam 1.0 beta 1 and JBoss AS 4.0.3 rc 2 Seam special release (Will work from JBoss AS 4.0.3rc3 and above when released).
-
6. Re: Seam Configuration Qeustion
sjaved8 Sep 28, 2005 4:51 PM (in response to sjaved8)O.K. My bad. I'm embarassed, should have paid more attention. Thanks for your help
-
7. Re: Seam Configuration Qeustion
alrubinger Apr 21, 2006 11:40 AM (in response to sjaved8)Hi.
Was hoping for some assistance with a similar problem:11:09:53,822 DEBUG [SeamVariableResolver] resolving name: user 11:09:53,822 DEBUG [Component] seam component not found: user
The view returns me with the message "Conversion Error!" when my form is submitted.
I am using JBoss AS 4.0.4RC1 w/ Seam 1.0 Beta 2. Each of my JARs containing Seam components have an empty seam.properties file. Will attach some relevant code snippets and a DEBUG-level log below. Thanks in advance to anyone who might be able to shed some light for me.
S,
ALR
User.javapackage com.alrubinger.showcase.entity; import statements... @Entity() @Inheritance(strategy=InheritanceType.JOINED) @Name("user") @Scope(ScopeType.SESSION) public class User extends Category { ... }
RegistrationAction.javapackage com.alrubinger.showcase.webapp.action.ejb; import statements ... @Stateless @Name("register") @Interceptors(SeamInterceptor.class) public class RegistrationAction implements Registration { ... }
register.xhtml (Facelets)<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"> <head> <title>Register New User</title> </head> <body> <f:view> <h:form> <table border="0"> <tr> <td>Username</td> <td><h:inputText id="alr" value="#{user.username}"/></td> </tr> <tr> <td>Password</td> <td><h:inputSecret value="#{user.password}"/></td> </tr> </table> <h:messages/> <h:commandButton type="submit" value="Register" action="#{register.registration}"/> </h:form> </f:view> </body> </html>
And the log...11:08:32,454 INFO [Server] Starting JBoss (MX MicroKernel)... 11:08:32,454 INFO [Server] Release ID: JBoss [Zion] 4.0.4RC1 (build: CVSTag=JBoss_4_0_4_RC1 date=200602071519) 11:08:32,464 INFO [Server] Home Dir: C:\jboss-4.0.4RC1 11:08:32,464 INFO [Server] Home URL: file:/C:/jboss-4.0.4RC1/ 11:08:32,514 INFO [Server] Patch URL: null 11:08:32,514 INFO [Server] Server Name: alrubinger 11:08:32,514 INFO [Server] Server Home Dir: C:\jboss-4.0.4RC1\server\alrubinger 11:08:32,514 INFO [Server] Server Home URL: file:/C:/jboss-4.0.4RC1/server/alrubinger/ 11:08:32,514 INFO [Server] Server Temp Dir: C:\jboss-4.0.4RC1\server\alrubinger\tmp 11:08:32,514 INFO [Server] Root Deployment Filename: jboss-service.xml 11:08:33,316 INFO [ServerInfo] Java version: 1.5.0_01,Sun Microsystems Inc. 11:08:33,316 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_01-b08,Sun Microsystems Inc. 11:08:33,316 INFO [ServerInfo] OS-System: Windows XP 5.1,x86 11:08:34,627 INFO [Server] Core system initialized 11:08:36,370 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml 11:08:39,715 INFO [SocketServerInvoker] Invoker started for locator: InvokerLocator [socket://10.1.4.50:3873/] 11:08:41,598 INFO [AspectDeployer] Deployed AOP: file:/C:/jboss-4.0.4RC1/server/alrubinger/deploy/ejb3-interceptors-aop.xml 11:08:43,190 INFO [WebService] Using RMI server codebase: http://IBMT41-99L4600:8083/ 11:08:43,570 WARN [EJBTimerServiceImpl] Cannot obtain TransactionManager from JNDI, using TxManager.getInstance(): javax.naming.NameNotFoundException: TransactionManager not bound 11:08:50,450 INFO [NamingService] Started jndi bootstrap jnpPort=1099, rmiPort=1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, Server SocketFactory=org.jboss.net.sockets.DefaultSocketFactory@ad093076 11:08:50,791 INFO [EJB3Deployer] Default persistence.properties: {hibernate.transaction.flush_before_completion=true, hibernate.cglib.use_reflection_optimizer=false, hibernate.transaction.auto_close_session=false, hibernate.jndi.java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces, hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider, hibernate.transaction.manager_lookup_class=org.hibernate.transaction.JBossTransactionManagerLookup, hibernate.jndi.java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, hibernate.query.factory_class=org.hibernate.hql.ast.ASTQueryTranslatorFactory, hibernate.connection.release_mode=after_statement} 11:08:53,014 INFO [Embedded] Catalina naming disabled 11:08:54,656 INFO [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080 11:08:54,656 INFO [Catalina] Initialization processed in 1422 ms 11:08:54,656 INFO [StandardService] Starting service jboss.web 11:08:54,666 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.12 11:08:54,797 INFO [StandardHost] XML validation disabled 11:08:54,867 INFO [Catalina] Server startup in 211 ms 11:08:55,357 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar 11:08:55,558 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar 11:08:57,621 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS' 11:08:58,272 INFO [A] Bound to JNDI name: queue/A 11:08:58,272 INFO [B] Bound to JNDI name: queue/B 11:08:58,272 INFO [C] Bound to JNDI name: queue/C 11:08:58,282 INFO [D] Bound to JNDI name: queue/D 11:08:58,282 INFO [ex] Bound to JNDI name: queue/ex 11:08:58,352 INFO [testTopic] Bound to JNDI name: topic/testTopic 11:08:58,362 INFO [securedTopic] Bound to JNDI name: topic/securedTopic 11:08:58,362 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic 11:08:58,392 INFO [testQueue] Bound to JNDI name: queue/testQueue 11:08:58,442 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093 11:08:58,612 INFO [DLQ] Bound to JNDI name: queue/DLQ 11:08:59,053 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA' 11:08:59,564 INFO [Ejb3AnnotationHandler] found EJB3: ejbName=EncryptionServiceBean, class=com.alrubinger.core.ejb.services.encryption.EncryptionServiceBean, type=SERVICE 11:08:59,644 INFO [Ejb3AnnotationHandler] found EJB3: ejbName=MailServiceBean, class=com.alrubinger.core.ejb.services.mail.MailServiceBean, type=SERVICE 11:08:59,684 INFO [Ejb3AnnotationHandler] found EJB3: ejbName=XMLServiceBean, class=com.alrubinger.core.ejb.services.xml.XMLServiceBean, type=SERVICE 11:08:59,684 INFO [Ejb3Deployment] EJB3 deployment time took: 461 11:09:00,124 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:service=EJB3,jar=2-alrubinger-core-ejb.ejb3,name=EncryptionServiceBean with dependencies: 11:09:00,845 DEBUG [EncryptionServiceBean] Creating Service... 11:09:01,196 DEBUG [EncryptionServiceBean] Service Created 11:09:01,196 DEBUG [EncryptionServiceBean] Service Started 11:09:01,196 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:service=EJB3,jar=2-alrubinger-core-ejb.ejb3,name=MailServiceBean with dependencies: 11:09:01,536 DEBUG [MailServiceBean] Creating Service... 11:09:01,596 DEBUG [MailServiceBean] Service Created 11:09:01,606 DEBUG [MailServiceBean] Service Started 11:09:01,606 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:service=EJB3,jar=2-alrubinger-core-ejb.ejb3,name=XMLServiceBean with dependencies: 11:09:01,737 DEBUG [XMLServiceBean] Creating Service... 11:09:01,737 DEBUG [XMLServiceBean] Service Created 11:09:01,737 DEBUG [XMLServiceBean] Service Started 11:09:01,737 INFO [EJB3Deployer] Deployed: file:/C:/jboss-4.0.4RC1/server/alrubinger/deploy/2-alrubinger-core-ejb.ejb3 11:09:01,907 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/ 11:09:03,109 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined 11:09:04,801 INFO [Ejb3AnnotationHandler] found EJB3: ejbName=RegistrationAction, class=com.alrubinger.showcase.webapp.action.ejb.RegistrationAction, type=STATELESS 11:09:04,851 INFO [Ejb3Deployment] EJB3 deployment time took: 110 11:09:04,931 INFO [Ejb3Deployment] EJB3 deployment time took: 60 11:09:04,961 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=showcase-ds' to JNDI name 'java:showcase-ds' 11:09:05,072 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:service=EJB3,jar=showcase-ejb3.jar,name=RegistrationAction with dependencies: 11:09:05,362 INFO [EJB3Deployer] Deployed: file:/C:/jboss-4.0.4RC1/server/alrubinger/tmp/deploy/tmp247366-showcase-application.jar-contents/showcase-ejb3.jar 11:09:05,362 INFO [EJB3Deployer] Deployed: file:/C:/jboss-4.0.4RC1/server/alrubinger/tmp/deploy/tmp247366-showcase-application.jar-contents/showcase-entity-ejb3.jar 11:09:05,362 WARN [TomcatDeployer] Failed to map vhost: www.alrubinger.com 11:09:05,362 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=file:/C:/alrubinger/personal_workspace/showcase_seam/deploy/9-showcase.war/ 11:09:05,973 INFO [FacesConfigurator] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml 11:09:06,774 INFO [FacesConfigurator] Reading config jar:file:/C:/alrubinger/personal_workspace/showcase_seam/deploy/9-showcase.war/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/faces-config.xml 11:09:06,814 INFO [FacesConfigurator] Reading config jar:file:/C:/alrubinger/personal_workspace/showcase_seam/deploy/9-showcase.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/faces-config.xml 11:09:06,824 INFO [FacesConfigurator] Reading config jar:file:/C:/alrubinger/personal_workspace/showcase_seam/deploy/9-showcase.war/WEB-INF/lib/myfaces-all.jar!/META-INF/faces-config.xml 11:09:06,964 INFO [FacesConfigurator] Reading config /WEB-INF/faces-config.xml 11:09:10,029 ERROR [LocaleUtils] Locale name null or empty, ignoring 11:09:11,781 INFO [StartupServletContextListener] ServletContext 'C:\alrubinger\personal_workspace\showcase_seam\deploy\9-showcase.war\' initialized. 11:09:11,781 INFO [ServletContextListener] Welcome to Seam 1.0 beta 2 11:09:11,791 INFO [Initialization] reading properties from: /seam.properties 11:09:11,831 DEBUG [Initialization] not found: /seam-jndi.properties 11:09:11,831 INFO [Initialization] initializing Seam 11:09:12,052 INFO [Component] Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init 11:09:12,082 DEBUG [Component] org.jboss.seam.core.init.jndiPattern=jboss-seam-showcase/#{ejbName}/local 11:09:13,534 INFO [Component] Component: org.jboss.seam.core.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pages 11:09:13,584 INFO [Component] Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Manager 11:09:13,604 DEBUG [Component] org.jboss.seam.core.manager.conversationTimeout=120000 11:09:13,664 INFO [Component] Component: switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.Switcher 11:09:13,684 INFO [Component] Component: conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation 11:09:13,744 INFO [Component] Component: conversationList, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationList 11:09:13,764 INFO [Component] Component: conversationStack, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationStack 11:09:13,824 INFO [Component] Component: facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesContext 11:09:13,894 INFO [Component] Component: eventContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.EventContext 11:09:13,954 INFO [Component] Component: sessionContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SessionContext 11:09:13,964 INFO [Component] Component: statelessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.StatelessContext 11:09:14,014 INFO [Component] Component: applicationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ApplicationContext 11:09:14,024 INFO [Component] Component: conversationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationContext 11:09:14,045 INFO [Component] Component: businessProcessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.BusinessProcessContext 11:09:14,095 INFO [Component] Component: resourceBundle, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle 11:09:14,165 INFO [Component] Component: org.jboss.seam.debug.introspector, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.debug.Introspector 11:09:14,255 DEBUG [Component] instantiating Seam component: resourceBundle 11:09:14,305 INFO [ResourceBundle] resource bundle missing: messages 11:09:14,455 INFO [Component] Component: org.jboss.seam.debug.contexts, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.debug.Contexts 11:09:14,465 DEBUG [Contexts] found in application context: resourceBundle 11:09:14,535 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.init 11:09:14,545 INFO [Scanner] scanning: /C:/jboss-4.0.4RC1/server/alrubinger/tmp/deploy/tmp247366-showcase-application.jar-contents/showcase-ejb3.jar 11:09:14,545 DEBUG [Scanner] archive: C:\jboss-4.0.4RC1\server\alrubinger\tmp\deploy\tmp247366-showcase-application.jar-contents\showcase-ejb3.jar 11:09:14,545 DEBUG [Scanner] found: META-INF/ 11:09:14,545 DEBUG [Scanner] found: META-INF/MANIFEST.MF 11:09:14,545 DEBUG [Scanner] found: com/ 11:09:14,545 DEBUG [Scanner] found: com/alrubinger/ 11:09:14,545 DEBUG [Scanner] found: com/alrubinger/showcase/ 11:09:14,545 DEBUG [Scanner] found: com/alrubinger/showcase/webapp/ 11:09:14,545 DEBUG [Scanner] found: com/alrubinger/showcase/webapp/action/ 11:09:14,545 DEBUG [Scanner] found: com/alrubinger/showcase/webapp/action/ejb/ 11:09:14,545 DEBUG [Scanner] found: com/alrubinger/showcase/webapp/action/ejb/Registration.class 11:09:14,545 DEBUG [Scanner] found: com/alrubinger/showcase/webapp/action/ejb/RegistrationAction.class 11:09:14,545 DEBUG [Scanner] found: seam.properties 11:09:14,545 INFO [Scanner] scanning: /C:/jboss-4.0.4RC1/server/alrubinger/tmp/deploy/tmp247366-showcase-application.jar-contents/showcase-entity-ejb3.jar 11:09:14,545 DEBUG [Scanner] archive: C:\jboss-4.0.4RC1\server\alrubinger\tmp\deploy\tmp247366-showcase-application.jar-contents\showcase-entity-ejb3.jar 11:09:14,545 DEBUG [Scanner] found: META-INF/ 11:09:14,545 DEBUG [Scanner] found: META-INF/MANIFEST.MF 11:09:14,545 DEBUG [Scanner] found: META-INF/persistence.xml 11:09:14,545 DEBUG [Scanner] found: com/ 11:09:14,545 DEBUG [Scanner] found: com/alrubinger/ 11:09:14,545 DEBUG [Scanner] found: com/alrubinger/showcase/ 11:09:14,545 DEBUG [Scanner] found: com/alrubinger/showcase/entity/ 11:09:14,545 DEBUG [Scanner] found: com/alrubinger/showcase/entity/Address.class 11:09:14,555 DEBUG [Scanner] found: com/alrubinger/showcase/entity/Album.class 11:09:14,565 DEBUG [Scanner] found: com/alrubinger/showcase/entity/Artist.class 11:09:14,595 DEBUG [Scanner] found: com/alrubinger/showcase/entity/Category.class 11:09:14,595 DEBUG [Scanner] found: com/alrubinger/showcase/entity/Contact.class 11:09:14,605 DEBUG [Scanner] found: com/alrubinger/showcase/entity/Email.class 11:09:14,625 DEBUG [Scanner] found: com/alrubinger/showcase/entity/Image.class 11:09:14,625 DEBUG [Scanner] found: com/alrubinger/showcase/entity/License.class 11:09:14,625 DEBUG [Scanner] found: com/alrubinger/showcase/entity/LicenseType.class 11:09:14,635 DEBUG [Scanner] found: com/alrubinger/showcase/entity/Phone.class 11:09:14,665 DEBUG [Scanner] found: com/alrubinger/showcase/entity/Track.class 11:09:14,665 DEBUG [Scanner] found: com/alrubinger/showcase/entity/User.class 11:09:14,665 DEBUG [Scanner] found: seam.properties 11:09:14,695 DEBUG [Contexts] found in application context: resourceBundle 11:09:14,695 DEBUG [Component] instantiating Seam component: eventContext 11:09:14,695 DEBUG [Component] instantiating Seam component: facesContext 11:09:14,695 DEBUG [Component] instantiating Seam component: sessionContext 11:09:14,695 DEBUG [Component] instantiating Seam component: statelessContext 11:09:14,736 DEBUG [Component] instantiating Seam component: conversationContext 11:09:14,736 DEBUG [Component] instantiating Seam component: applicationContext 11:09:14,736 DEBUG [Component] instantiating Seam component: businessProcessContext 11:09:14,736 INFO [Initialization] done initializing Seam 11:09:14,846 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=file:/C:/alrubinger/personal_workspace/showcase_seam/deploy/9-showcase.war/ 11:09:14,946 INFO [StandardHost] XML validation disabled 11:09:15,737 INFO [FacesConfigurator] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml 11:09:15,887 INFO [FacesConfigurator] Reading config jar:file:/C:/alrubinger/personal_workspace/showcase_seam/deploy/9-showcase.war/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/faces-config.xml 11:09:15,887 INFO [FacesConfigurator] Reading config jar:file:/C:/alrubinger/personal_workspace/showcase_seam/deploy/9-showcase.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/faces-config.xml 11:09:15,937 INFO [FacesConfigurator] Reading config jar:file:/C:/alrubinger/personal_workspace/showcase_seam/deploy/9-showcase.war/WEB-INF/lib/myfaces-all.jar!/META-INF/faces-config.xml 11:09:16,067 INFO [FacesConfigurator] Reading config /WEB-INF/faces-config.xml 11:09:18,411 ERROR [LocaleUtils] Locale name null or empty, ignoring 11:09:19,432 INFO [StartupServletContextListener] ServletContext 'C:\alrubinger\personal_workspace\showcase_seam\deploy\9-showcase.war\' initialized. 11:09:19,432 INFO [ServletContextListener] Welcome to Seam 1.0 beta 2 11:09:19,442 INFO [Initialization] reading properties from: /seam.properties 11:09:19,452 DEBUG [Initialization] not found: /seam-jndi.properties 11:09:19,462 INFO [Initialization] initializing Seam 11:09:19,593 INFO [Component] Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init 11:09:19,613 DEBUG [Component] org.jboss.seam.core.init.jndiPattern=jboss-seam-showcase/#{ejbName}/local 11:09:19,633 INFO [Component] Component: org.jboss.seam.core.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pages 11:09:19,663 INFO [Component] Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Manager 11:09:19,673 DEBUG [Component] org.jboss.seam.core.manager.conversationTimeout=120000 11:09:19,723 INFO [Component] Component: switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.Switcher 11:09:19,743 INFO [Component] Component: conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation 11:09:19,773 INFO [Component] Component: conversationList, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationList 11:09:19,793 INFO [Component] Component: conversationStack, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationStack 11:09:19,833 INFO [Component] Component: facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesContext 11:09:19,863 INFO [Component] Component: eventContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.EventContext 11:09:19,873 INFO [Component] Component: sessionContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SessionContext 11:09:19,893 INFO [Component] Component: statelessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.StatelessContext 11:09:19,903 INFO [Component] Component: applicationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ApplicationContext 11:09:19,923 INFO [Component] Component: conversationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationContext 11:09:19,953 INFO [Component] Component: businessProcessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.BusinessProcessContext 11:09:19,963 INFO [Component] Component: resourceBundle, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle 11:09:20,013 INFO [Component] Component: org.jboss.seam.debug.introspector, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.debug.Introspector 11:09:20,073 DEBUG [Component] instantiating Seam component: resourceBundle 11:09:20,073 INFO [ResourceBundle] resource bundle missing: messages 11:09:20,103 INFO [Component] Component: org.jboss.seam.debug.contexts, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.debug.Contexts 11:09:20,113 DEBUG [Contexts] found in application context: resourceBundle 11:09:20,123 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.init 11:09:20,143 INFO [Scanner] scanning: /C:/jboss-4.0.4RC1/server/alrubinger/tmp/deploy/tmp247366-showcase-application.jar-contents/showcase-ejb3.jar 11:09:20,143 DEBUG [Scanner] archive: C:\jboss-4.0.4RC1\server\alrubinger\tmp\deploy\tmp247366-showcase-application.jar-contents\showcase-ejb3.jar 11:09:20,143 DEBUG [Scanner] found: META-INF/ 11:09:20,143 DEBUG [Scanner] found: META-INF/MANIFEST.MF 11:09:20,143 DEBUG [Scanner] found: com/ 11:09:20,143 DEBUG [Scanner] found: com/alrubinger/ 11:09:20,143 DEBUG [Scanner] found: com/alrubinger/showcase/ 11:09:20,143 DEBUG [Scanner] found: com/alrubinger/showcase/webapp/ 11:09:20,143 DEBUG [Scanner] found: com/alrubinger/showcase/webapp/action/ 11:09:20,143 DEBUG [Scanner] found: com/alrubinger/showcase/webapp/action/ejb/ 11:09:20,143 DEBUG [Scanner] found: com/alrubinger/showcase/webapp/action/ejb/Registration.class 11:09:20,143 DEBUG [Scanner] found: com/alrubinger/showcase/webapp/action/ejb/RegistrationAction.class 11:09:20,143 DEBUG [Scanner] found: seam.properties 11:09:20,143 INFO [Scanner] scanning: /C:/jboss-4.0.4RC1/server/alrubinger/tmp/deploy/tmp247366-showcase-application.jar-contents/showcase-entity-ejb3.jar 11:09:20,143 DEBUG [Scanner] archive: C:\jboss-4.0.4RC1\server\alrubinger\tmp\deploy\tmp247366-showcase-application.jar-contents\showcase-entity-ejb3.jar 11:09:20,143 DEBUG [Scanner] found: META-INF/ 11:09:20,143 DEBUG [Scanner] found: META-INF/MANIFEST.MF 11:09:20,143 DEBUG [Scanner] found: META-INF/persistence.xml 11:09:20,143 DEBUG [Scanner] found: com/ 11:09:20,143 DEBUG [Scanner] found: com/alrubinger/ 11:09:20,143 DEBUG [Scanner] found: com/alrubinger/showcase/ 11:09:20,143 DEBUG [Scanner] found: com/alrubinger/showcase/entity/ 11:09:20,143 DEBUG [Scanner] found: com/alrubinger/showcase/entity/Address.class 11:09:20,143 DEBUG [Scanner] found: com/alrubinger/showcase/entity/Album.class 11:09:20,143 DEBUG [Scanner] found: com/alrubinger/showcase/entity/Artist.class 11:09:20,143 DEBUG [Scanner] found: com/alrubinger/showcase/entity/Category.class 11:09:20,153 DEBUG [Scanner] found: com/alrubinger/showcase/entity/Contact.class 11:09:20,153 DEBUG [Scanner] found: com/alrubinger/showcase/entity/Email.class 11:09:20,153 DEBUG [Scanner] found: com/alrubinger/showcase/entity/Image.class 11:09:20,153 DEBUG [Scanner] found: com/alrubinger/showcase/entity/License.class 11:09:20,153 DEBUG [Scanner] found: com/alrubinger/showcase/entity/LicenseType.class 11:09:20,153 DEBUG [Scanner] found: com/alrubinger/showcase/entity/Phone.class 11:09:20,153 DEBUG [Scanner] found: com/alrubinger/showcase/entity/Track.class 11:09:20,153 DEBUG [Scanner] found: com/alrubinger/showcase/entity/User.class 11:09:20,153 DEBUG [Scanner] found: seam.properties 11:09:20,163 DEBUG [Contexts] found in application context: resourceBundle 11:09:20,163 DEBUG [Component] instantiating Seam component: eventContext 11:09:20,163 DEBUG [Component] instantiating Seam component: facesContext 11:09:20,163 DEBUG [Component] instantiating Seam component: sessionContext 11:09:20,163 DEBUG [Component] instantiating Seam component: statelessContext 11:09:20,183 DEBUG [Component] instantiating Seam component: conversationContext 11:09:20,183 DEBUG [Component] instantiating Seam component: applicationContext 11:09:20,183 DEBUG [Component] instantiating Seam component: businessProcessContext 11:09:20,183 INFO [Initialization] done initializing Seam 11:09:20,294 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080 11:09:20,764 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009 11:09:20,794 INFO [JkMain] Jk running ID=0 time=0/110 config=null 11:09:20,824 INFO [Server] JBoss (MX MicroKernel) [4.0.4RC1 (build: CVSTag=JBoss_4_0_4_RC1 date=200602071519)] Started in 48s:310ms 11:09:41,695 TRACE [ParameterFilter] Entered Filter 11:09:41,735 DEBUG [Lifecycle] >>> Begin web request 11:09:41,965 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.manager 11:09:41,975 DEBUG [Manager] No stored conversation 11:09:41,985 DEBUG [Contexts] found in application context: org.jboss.seam.core.init 11:09:41,985 DEBUG [SeamPhaseListener] After restore view, conversation context: ConversationContext(1) 11:09:51,459 ERROR [STDERR] Apr 21, 2006 11:09:51 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit INFO: Added Library from: jar:file:/C:/alrubinger/personal_workspace/showcase_seam/deploy/9-showcase.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml 11:09:51,559 ERROR [STDERR] Apr 21, 2006 11:09:51 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit INFO: Added Library from: jar:file:/C:/alrubinger/personal_workspace/showcase_seam/deploy/9-showcase.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml 11:09:51,639 ERROR [STDERR] Apr 21, 2006 11:09:51 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit INFO: Added Library from: jar:file:/C:/alrubinger/personal_workspace/showcase_seam/deploy/9-showcase.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml 11:09:51,709 ERROR [STDERR] Apr 21, 2006 11:09:51 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit INFO: Added Library from: jar:file:/C:/alrubinger/personal_workspace/showcase_seam/deploy/9-showcase.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml 11:09:51,769 ERROR [STDERR] Apr 21, 2006 11:09:51 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit INFO: Added Library from: jar:file:/C:/alrubinger/personal_workspace/showcase_seam/deploy/9-showcase.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml 11:09:53,131 DEBUG [SeamPhaseListener] Before saving state 11:09:53,131 DEBUG [Manager] Discarding conversation state: 1 11:09:53,822 DEBUG [SeamVariableResolver] resolving name: user 11:09:53,822 DEBUG [Component] seam component not found: user 11:09:53,822 DEBUG [SeamVariableResolver] could not resolve name 11:09:53,912 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true 11:09:53,912 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true 11:09:54,173 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.DETECT_JAVASCRIPT' found, using default value false 11:09:54,173 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.AUTO_SCROLL' found, using default value false 11:09:54,173 DEBUG [Lifecycle] After render response, destroying contexts 11:09:54,173 DEBUG [Lifecycle] flushing business process context 11:09:54,173 DEBUG [BusinessProcessContext] no process instance to persist business process state 11:09:54,173 DEBUG [Lifecycle] destroying event context 11:09:54,173 DEBUG [Contexts] destroying: org.jboss.seam.core.manager 11:09:54,183 DEBUG [Lifecycle] destroying conversation context 11:09:54,183 DEBUG [Lifecycle] flushing server-side conversation context 11:09:54,183 DEBUG [Lifecycle] <<< End web request 11:09:54,183 TRACE [ParameterFilter] Leaving Filter
-
8. Re: Seam Configuration Qeustion
gavin.king Apr 21, 2006 12:53 PM (in response to sjaved8)Do you have seam.properties in the archive with the User class?
-
9. Re: Seam Configuration Qeustion
alrubinger Apr 21, 2006 3:38 PM (in response to sjaved8)"gavin.king@jboss.com" wrote:
Do you have seam.properties in the archive with the User class?
Thanks for getting back to me, Gavin.
In the root of that archive, yes. And the scanner seems to pick up on it in the log.
S,
ALR -
10. Re: Seam Configuration Qeustion
alrubinger Apr 21, 2006 3:48 PM (in response to sjaved8)I might also draw some attention to the following errors, though I'm not sure how they're affecting my app (or if they're even expected):
11:09:51,459 ERROR [STDERR] Apr 21, 2006 11:09:51 AM com.sun.facelets.compiler.TagLibraryConfig load Implicit INFO: Added Library from: jar:file:/C:/alrubinger/personal_workspace/showcase_seam/deploy/9-showcase .war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml 11:09:51,559 ERROR [STDERR] Apr 21, 2006 11:09:51 AM com.sun.facelets.compiler.TagLibraryConfig load Implicit INFO: Added Library from: jar:file:/C:/alrubinger/personal_workspace/showcase_seam/deploy/9-showcase .war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml 11:09:51,639 ERROR [STDERR] Apr 21, 2006 11:09:51 AM com.sun.facelets.compiler.TagLibraryConfig load Implicit INFO: Added Library from: jar:file:/C:/alrubinger/personal_workspace/showcase_seam/deploy/9-showcase .war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml 11:09:51,709 ERROR [STDERR] Apr 21, 2006 11:09:51 AM com.sun.facelets.compiler.TagLibraryConfig load Implicit INFO: Added Library from: jar:file:/C:/alrubinger/personal_workspace/showcase_seam/deploy/9-showcase .war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml 11:09:51,769 ERROR [STDERR] Apr 21, 2006 11:09:51 AM com.sun.facelets.compiler.TagLibraryConfig load Implicit INFO: Added Library from: jar:file:/C:/alrubinger/personal_workspace/showcase_seam/deploy/9-showcase .war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
S,
ALR -
11. Re: Seam Configuration Qeustion
gavin.king Apr 21, 2006 3:51 PM (in response to sjaved8)Huh?? From the log you posted above, the scanner does *not* pick it up!
I would expect to see a line like:
Component: user, ... -
12. Re: Seam Configuration Qeustion
alrubinger Apr 21, 2006 3:59 PM (in response to sjaved8)I should be more clear to talk about one issue at a time. From the log file in my initial post, I have:
11:09:20,143 DEBUG [Scanner] archive: C:\jboss-4.0.4RC1\server\alrubinger\tmp\deploy\tmp247366-showc ase-application.jar-contents\showcase-entity-ejb3.jar 11:09:20,143 DEBUG [Scanner] found: META-INF/ 11:09:20,143 DEBUG [Scanner] found: META-INF/MANIFEST.MF 11:09:20,143 DEBUG [Scanner] found: META-INF/persistence.xml 11:09:20,143 DEBUG [Scanner] found: com/ 11:09:20,143 DEBUG [Scanner] found: com/alrubinger/ 11:09:20,143 DEBUG [Scanner] found: com/alrubinger/showcase/ 11:09:20,143 DEBUG [Scanner] found: com/alrubinger/showcase/entity/ 11:09:20,143 DEBUG [Scanner] found: com/alrubinger/showcase/entity/Address.class 11:09:20,143 DEBUG [Scanner] found: com/alrubinger/showcase/entity/Album.class 11:09:20,143 DEBUG [Scanner] found: com/alrubinger/showcase/entity/Artist.class 11:09:20,143 DEBUG [Scanner] found: com/alrubinger/showcase/entity/Category.class 11:09:20,153 DEBUG [Scanner] found: com/alrubinger/showcase/entity/Contact.class 11:09:20,153 DEBUG [Scanner] found: com/alrubinger/showcase/entity/Email.class 11:09:20,153 DEBUG [Scanner] found: com/alrubinger/showcase/entity/Image.class 11:09:20,153 DEBUG [Scanner] found: com/alrubinger/showcase/entity/License.class 11:09:20,153 DEBUG [Scanner] found: com/alrubinger/showcase/entity/LicenseType.class 11:09:20,153 DEBUG [Scanner] found: com/alrubinger/showcase/entity/Phone.class 11:09:20,153 DEBUG [Scanner] found: com/alrubinger/showcase/entity/Track.class 11:09:20,153 DEBUG [Scanner] found: com/alrubinger/showcase/entity/User.class 11:09:20,153 DEBUG [Scanner] found: seam.properties
...which I assumed to mean that the scanner was picking up my User class, but maybe it also needs to be picking it up elsewhere?
S,
ALR -
13. Re: Seam Configuration Qeustion
gavin.king Apr 21, 2006 4:08 PM (in response to sjaved8)Wel, yes, but that just says the scanner looks at the class file. It does not tell you that the component has been deployed. Are you *really sure* that you have an @Name annotation on that class?
Use you debugger to step through Initialization.addComponents(). -
14. Re: Seam Configuration Qeustion
alrubinger Apr 21, 2006 4:34 PM (in response to sjaved8)Ah.
Am grabbing source from Seam CVS to use the debugger as suggested. And yes, I'm fairly certain my code is properly annotated.package com.alrubinger.showcase.entity; import java.util.Collection; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.Inheritance; import javax.persistence.InheritanceType; import javax.persistence.ManyToOne; import javax.persistence.OneToMany; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.hibernate.validator.Length; import org.hibernate.validator.NotNull; import org.jboss.seam.ScopeType; import org.jboss.seam.annotations.Name; import org.jboss.seam.annotations.Scope; @Entity() @Inheritance(strategy=InheritanceType.JOINED) @Name("user") @Scope(ScopeType.SESSION) public class User extends Category { ... }
I'm not sure how this factors in, but User is a subclass of Category, which is an EJB3 Entity Bean, but not itself a Seam component.
S,
ALR