1 2 Previous Next 22 Replies Latest reply on Aug 9, 2006 1:55 PM by zeddmaxim Go to original post
      • 15. Re: Seam Configuration Qeustion
        alrubinger

        Hiya. Spent a bunch of time over the weekend trying to get things up and running. Eventually I decided to scrap most of the environment and start fresh using the Seam Booking Example.

        Received the same errors as before, with components not getting registered. Any submits to the Seam Login page or "Register New User" link return me to the home page. Will attach a DEBUG-level log below. My environment is:

        Java 1.5.0_06
        JBoss 4.0.4 CR2 w/ EJB3 Profile Installed
        Seam 1.0 Beta 2

        Thanks again for any insight, Gavin. I have high hopes for using Seam on my next app based on your presentation and articles, and am anxious to get it working.

        S,
        ALR

        2006-04-24 15:46:53,098 INFO [org.jboss.remoting.transport.socket.SocketServerInvoker] Invoker started for locator: InvokerLocator [socket://10.1.4.50:3873/]
        2006-04-24 15:46:53,409 INFO [org.jboss.aop.deployment.AspectDeployer] Deployed AOP: file:/C:/jboss-4.0.4.CR2/server/alrubinger/deploy/ejb3-interceptors-aop.xml
        2006-04-24 15:46:55,012 INFO [org.jboss.web.WebService] Using RMI server codebase: http://IBMT41-99L4600:8083/
        2006-04-24 15:46:55,113 WARN [org.jboss.ejb.txtimer.EJBTimerServiceImpl] Cannot obtain TransactionManager from JNDI, using TxManager.getInstance(): javax.naming.NameNotFoundException: TransactionManager not bound
        2006-04-24 15:46:56,826 INFO [org.jboss.mail.MailService] Mail Service bound to java:/Mail
        2006-04-24 15:46:57,227 INFO [org.jboss.naming.NamingService] JNDI bootstrap JNP=/0.0.0.0:1099, RMI=/0.0.0.0:1098, backlog=50, no client SocketFactory, Server SocketFactory=class org.jboss.net.sockets.DefaultSocketFactory
        2006-04-24 15:46:57,247 INFO [org.jboss.ws.eventing.mgmt.SubscriptionManager] Bound event dispatcher to java:comp/env/EventDispatcher
        2006-04-24 15:46:57,738 INFO [org.apache.catalina.startup.Embedded] Catalina naming disabled
        2006-04-24 15:46:57,798 INFO [org.apache.catalina.startup.ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
        2006-04-24 15:46:57,798 INFO [org.apache.catalina.startup.ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
        2006-04-24 15:46:58,119 INFO [org.apache.coyote.http11.Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
        2006-04-24 15:46:58,119 INFO [org.apache.catalina.startup.Catalina] Initialization processed in 321 ms
        2006-04-24 15:46:58,119 INFO [org.jboss.web.tomcat.tc5.StandardService] Starting service jboss.web
        2006-04-24 15:46:58,129 INFO [org.apache.catalina.core.StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.16
        2006-04-24 15:46:58,169 INFO [org.apache.catalina.core.StandardHost] XML validation disabled
        2006-04-24 15:46:58,179 INFO [org.apache.catalina.startup.Catalina] Server startup in 60 ms
        2006-04-24 15:46:58,299 INFO [org.jboss.web.tomcat.tc5.TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
        2006-04-24 15:46:58,630 INFO [org.apache.catalina.loader.WebappLoader] Dual registration of jndi stream handler: factory already defined
        2006-04-24 15:46:58,921 INFO [org.jboss.web.tomcat.tc5.TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp27460jbossws.sar-contents/jbossws-exp.war/
        2006-04-24 15:46:59,171 INFO [org.jboss.resource.deployment.RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
        2006-04-24 15:46:59,302 INFO [org.jboss.resource.deployment.RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
        2006-04-24 15:47:00,173 INFO [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
        2006-04-24 15:47:00,414 INFO [org.jboss.mq.server.jmx.Queue.A] Bound to JNDI name: queue/A
        2006-04-24 15:47:00,414 INFO [org.jboss.mq.server.jmx.Queue.B] Bound to JNDI name: queue/B
        2006-04-24 15:47:00,414 INFO [org.jboss.mq.server.jmx.Queue.C] Bound to JNDI name: queue/C
        2006-04-24 15:47:00,414 INFO [org.jboss.mq.server.jmx.Queue.D] Bound to JNDI name: queue/D
        2006-04-24 15:47:00,414 INFO [org.jboss.mq.server.jmx.Queue.ex] Bound to JNDI name: queue/ex
        2006-04-24 15:47:00,434 INFO [org.jboss.mq.server.jmx.Topic.testTopic] Bound to JNDI name: topic/testTopic
        2006-04-24 15:47:00,434 INFO [org.jboss.mq.server.jmx.Topic.securedTopic] Bound to JNDI name: topic/securedTopic
        2006-04-24 15:47:00,434 INFO [org.jboss.mq.server.jmx.Topic.testDurableTopic] Bound to JNDI name: topic/testDurableTopic
        2006-04-24 15:47:00,434 INFO [org.jboss.mq.server.jmx.Queue.testQueue] Bound to JNDI name: queue/testQueue
        2006-04-24 15:47:00,454 INFO [org.jboss.mq.il.uil2.UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
        2006-04-24 15:47:00,524 INFO [org.jboss.mq.server.jmx.Queue.DLQ] Bound to JNDI name: queue/DLQ
        2006-04-24 15:47:00,654 INFO [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
        2006-04-24 15:47:00,865 INFO [org.jboss.web.tomcat.tc5.TomcatDeployer] deploy, ctxPath=/-jboss-seam-booking, warUrl=.../tmp/deploy/tmp274847-jboss-seam-booking-exp.war/
        2006-04-24 15:47:01,025 INFO [javax.servlet.ServletContextListener] Welcome to Seam 1.0 beta 2
        2006-04-24 15:47:01,035 DEBUG [org.jboss.seam.init.Initialization] not found: /seam.properties
        2006-04-24 15:47:01,035 DEBUG [org.jboss.seam.init.Initialization] not found: /seam-jndi.properties
        2006-04-24 15:47:01,035 INFO [org.jboss.seam.init.Initialization] initializing Seam
        2006-04-24 15:47:01,095 INFO [org.jboss.seam.Component] Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
        2006-04-24 15:47:01,115 DEBUG [org.jboss.seam.Component] org.jboss.seam.core.init.jndiPattern=jboss-seam-booking/#{ejbName}/local
        2006-04-24 15:47:01,316 INFO [org.jboss.seam.Component] Component: org.jboss.seam.core.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pages
        2006-04-24 15:47:01,336 INFO [org.jboss.seam.Component] Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Manager
        2006-04-24 15:47:01,346 DEBUG [org.jboss.seam.Component] org.jboss.seam.core.manager.conversationTimeout=120000
        2006-04-24 15:47:01,356 INFO [org.jboss.seam.Component] Component: switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.Switcher
        2006-04-24 15:47:01,366 INFO [org.jboss.seam.Component] Component: conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation
        2006-04-24 15:47:01,376 INFO [org.jboss.seam.Component] Component: conversationList, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationList
        2006-04-24 15:47:01,386 INFO [org.jboss.seam.Component] Component: conversationStack, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationStack
        2006-04-24 15:47:01,386 INFO [org.jboss.seam.Component] Component: facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesContext
        2006-04-24 15:47:01,396 INFO [org.jboss.seam.Component] Component: eventContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.EventContext
        2006-04-24 15:47:01,406 INFO [org.jboss.seam.Component] Component: sessionContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SessionContext
        2006-04-24 15:47:01,416 INFO [org.jboss.seam.Component] Component: statelessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.StatelessContext
        2006-04-24 15:47:01,416 INFO [org.jboss.seam.Component] Component: applicationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ApplicationContext
        2006-04-24 15:47:01,426 INFO [org.jboss.seam.Component] Component: conversationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationContext
        2006-04-24 15:47:01,426 INFO [org.jboss.seam.Component] Component: businessProcessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.BusinessProcessContext
        2006-04-24 15:47:01,456 INFO [org.jboss.seam.Component] Component: resourceBundle, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle
        2006-04-24 15:47:01,466 INFO [org.jboss.seam.Component] Component: org.jboss.seam.debug.introspector, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.debug.Introspector
        2006-04-24 15:47:01,506 DEBUG [org.jboss.seam.Component] instantiating Seam component: resourceBundle
        2006-04-24 15:47:01,516 INFO [org.jboss.seam.core.ResourceBundle] resource bundle missing: messages
        2006-04-24 15:47:01,637 INFO [org.jboss.seam.Component] Component: org.jboss.seam.debug.contexts, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.debug.Contexts
        2006-04-24 15:47:01,637 DEBUG [org.jboss.seam.contexts.Contexts] found in application context: resourceBundle
        2006-04-24 15:47:01,647 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.init
        2006-04-24 15:47:01,647 DEBUG [org.jboss.seam.contexts.Contexts] found in application context: resourceBundle
        2006-04-24 15:47:01,647 DEBUG [org.jboss.seam.Component] instantiating Seam component: sessionContext
        2006-04-24 15:47:01,647 DEBUG [org.jboss.seam.Component] instantiating Seam component: conversationContext
        2006-04-24 15:47:01,657 DEBUG [org.jboss.seam.Component] instantiating Seam component: statelessContext
        2006-04-24 15:47:01,657 DEBUG [org.jboss.seam.Component] instantiating Seam component: eventContext
        2006-04-24 15:47:01,657 DEBUG [org.jboss.seam.Component] instantiating Seam component: applicationContext
        2006-04-24 15:47:01,657 DEBUG [org.jboss.seam.Component] instantiating Seam component: businessProcessContext
        2006-04-24 15:47:01,657 DEBUG [org.jboss.seam.Component] instantiating Seam component: facesContext
        2006-04-24 15:47:01,657 INFO [org.jboss.seam.init.Initialization] done initializing Seam
        2006-04-24 15:47:01,787 INFO [org.apache.myfaces.config.FacesConfigurator] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
        2006-04-24 15:47:02,178 INFO [org.apache.myfaces.config.FacesConfigurator] Reading config jar:file:/C:/jboss-4.0.4.CR2/server/alrubinger/lib/jboss-seam-ui.jar!/META-INF/faces-config.xml
        2006-04-24 15:47:02,188 INFO [org.apache.myfaces.config.FacesConfigurator] Reading config jar:file:/C:/jboss-4.0.4.CR2/server/alrubinger/tmp/deploy/tmp274847-jboss-seam-booking-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/faces-config.xml
        2006-04-24 15:47:02,198 INFO [org.apache.myfaces.config.FacesConfigurator] Reading config /WEB-INF/faces-config.xml
        2006-04-24 15:47:02,278 ERROR [org.apache.myfaces.util.LocaleUtils] Locale name null or empty, ignoring
        2006-04-24 15:47:02,508 INFO [org.apache.myfaces.webapp.StartupServletContextListener] ServletContext 'C:\jboss-4.0.4.CR2\server\alrubinger\.\tmp\deploy\tmp274847-jboss-seam-booking-exp.war\' initialized.
        2006-04-24 15:47:02,569 INFO [org.jboss.web.tomcat.tc5.TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
        2006-04-24 15:47:02,709 INFO [org.apache.coyote.http11.Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
        2006-04-24 15:47:02,799 INFO [org.apache.jk.common.ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
        2006-04-24 15:47:02,839 INFO [org.apache.jk.server.JkMain] Jk running ID=0 time=0/70 config=null
        2006-04-24 15:47:02,849 INFO [org.jboss.system.server.Server] JBoss (MX MicroKernel) [4.0.4.CR2 (build: CVSTag=JBoss_4_0_4_CR2 date=200603311500)] Started in 13s:128ms
        2006-04-24 15:47:09,974 DEBUG [org.jboss.seam.contexts.Lifecycle] >>> Begin web request
        2006-04-24 15:47:10,014 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.manager
        2006-04-24 15:47:10,024 DEBUG [org.jboss.seam.core.Manager] No stored conversation
        2006-04-24 15:47:10,024 DEBUG [org.jboss.seam.contexts.Contexts] found in application context: org.jboss.seam.core.init
        2006-04-24 15:47:10,034 DEBUG [org.jboss.seam.jsf.SeamPhaseListener] After restore view, conversation context: ConversationContext(1)
        2006-04-24 15:47:10,395 ERROR [STDERR] Apr 24, 2006 3:47:10 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
        INFO: Added Library from: jar:file:/C:/jboss-4.0.4.CR2/server/alrubinger/tmp/deploy/tmp274847-jboss-seam-booking-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
        2006-04-24 15:47:10,405 ERROR [STDERR] Apr 24, 2006 3:47:10 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
        INFO: Added Library from: jar:file:/C:/jboss-4.0.4.CR2/server/alrubinger/tmp/deploy/tmp274847-jboss-seam-booking-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
        2006-04-24 15:47:10,425 ERROR [STDERR] Apr 24, 2006 3:47:10 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
        INFO: Added Library from: jar:file:/C:/jboss-4.0.4.CR2/server/alrubinger/tmp/deploy/tmp274847-jboss-seam-booking-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
        2006-04-24 15:47:10,425 ERROR [STDERR] Apr 24, 2006 3:47:10 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
        INFO: Added Library from: jar:file:/C:/jboss-4.0.4.CR2/server/alrubinger/tmp/deploy/tmp274847-jboss-seam-booking-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
        2006-04-24 15:47:10,455 ERROR [STDERR] Apr 24, 2006 3:47:10 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
        INFO: Added Library from: jar:file:/C:/jboss-4.0.4.CR2/server/alrubinger/tmp/deploy/tmp274847-jboss-seam-booking-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
        2006-04-24 15:47:10,816 DEBUG [org.jboss.seam.jsf.SeamPhaseListener] Before saving state
        2006-04-24 15:47:10,816 DEBUG [org.jboss.seam.core.Manager] Discarding conversation state: 1
        2006-04-24 15:47:10,856 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: user
        2006-04-24 15:47:10,866 DEBUG [org.jboss.seam.Component] seam component not found: user
        2006-04-24 15:47:10,866 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] could not resolve name
        2006-04-24 15:47:10,866 INFO [org.apache.myfaces.config.MyfacesConfig] No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true
        2006-04-24 15:47:10,866 INFO [org.apache.myfaces.config.MyfacesConfig] No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
        2006-04-24 15:47:10,866 INFO [org.apache.myfaces.config.MyfacesConfig] No context init parameter 'org.apache.myfaces.DETECT_JAVASCRIPT' found, using default value false
        2006-04-24 15:47:10,866 INFO [org.apache.myfaces.config.MyfacesConfig] No context init parameter 'org.apache.myfaces.AUTO_SCROLL' found, using default value false
        2006-04-24 15:47:10,876 DEBUG [org.jboss.seam.contexts.Lifecycle] After render response, destroying contexts
        2006-04-24 15:47:10,876 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing business process context
        2006-04-24 15:47:10,876 DEBUG [org.jboss.seam.contexts.BusinessProcessContext] no process instance to persist business process state
        2006-04-24 15:47:10,876 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying event context
        2006-04-24 15:47:10,876 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.core.manager
        2006-04-24 15:47:10,876 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying conversation context
        2006-04-24 15:47:10,876 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing server-side conversation context
        2006-04-24 15:47:10,876 DEBUG [org.jboss.seam.contexts.Lifecycle] <<< End web request
        


        • 16. Re: Seam Configuration Qeustion
          gavin.king

          Again, this is almost certainly because you do not have seam.properties in the archive that contains the User class. You can see from the log that Seam is not detecting the existence of this component.

          Open up your EAR, open the ejb jar inside it, and confirm that the seam.properties file is in the root of the ejb jar.

          • 17. Re: Seam Configuration Qeustion
            gavin.king

            Bingo, there is definitely no seam.properties file:

            2006-04-24 15:47:01,035 DEBUG [org.jboss.seam.init.Initialization] not found: /seam.properties



            • 18. Re: Seam Configuration Qeustion
              alrubinger

               

              "gavin.king@jboss.com" wrote:
              Bingo, there is definitely no seam.properties file:

              2006-04-24 15:47:01,035 DEBUG [org.jboss.seam.init.Initialization] not found: /seam.properties



              I hate to be contrary, I really do. But I have placed seam.properties in the root of EVERY JAR in my own application (I have one enclosing JAR containing 3 other JARs, and all have seam.properties). The line from my log file quoted above looks like it just couldn't find seam.properties in the WAR of the example application. When running JBoss AS with my own application, (and not the booking example), a search for the line "not found: /seam.properties" returns no results. I have 'em EVERYWHERE, and my components aren't getting instanciated. Their classes are seen by the scanner. The annotations are in place. They're just not getting loaded.

              I appreciate your help, and promise I've been looking over all the pointers given to me over and over to be sure I'm not missing anything.

              I wonder if it's something in my packaging, embedding the JARs in one another.

              S,
              ALR


              • 19. Re: Seam Configuration Qeustion
                gavin.king

                Perhaps you have a classloading problem. ie. maybe jboss-seam.jar is in multiple places, and so their are multiple instances of Name.class.

                • 20. Re: Seam Configuration Qeustion
                  gavin.king

                  BTW, probably the only way you are going to solve this is putting the Seam source in your eclipse sourcepath and using your debugger.

                  I've never seen this happen before.

                  • 21. Re: Seam Configuration Qeustion
                    alrubinger

                    Yes, Gavin, yes.

                    Classloading.

                    I had an older version of Seam chilling in WEB-INF/lib. Eclipse kindly hides this file from the resource view when the JAR is in your classpath.

                    It's the kind of error I make fun of my coworkers for.

                    Moral of the story, thread-followers: if Seam's not registering your components like mine or the original poster, make sure your versions of Seam and JBoss A/S line up.

                    Thanks Gavin. My symptoms when stepping through the debugger: Initialization found my classes, and the line "if(clazz.isNameAnnotationPresent())" or similar always returned false, even when the classes were properly annotated.

                    S,
                    ALR

                    • 22. Re: Seam Configuration Qeustion
                      zeddmaxim

                      Just an FYI, it does not have to be an "older" version of Seam, per se (Gavin alluded to this earlier, but I thought it may not be clear).

                      I've found that if the Seam jar resides in WEB-INF/lib at all, components are not found. (This assumes you have Seam on the classpath elsewhere.. Jboss lib folders, ears, etc.)

                      1 2 Previous Next