8 Replies Latest reply on Aug 2, 2006 12:02 PM by Patrick Smith

    Could not instantiate Seam component:

    Patrick Smith Newbie

      Hi Everyone,

      We are making a Seam application and we started with configuration files very similar to those in the booking and registration examples.

      To start off we are creating a simple login screen very similar to the one found in the registration example.
      However, when the login button we get the following:

      javax.faces.FacesException: Error calling action method of component with id _id2:_id14
       at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:79)
       at javax.faces.component.UICommand.broadcast(UICommand.java:106)
       at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
       at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
       at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:271)
       at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
       at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
       at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
       at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
       at java.lang.Thread.run(Thread.java:788)
      Caused by:
      org.jboss.seam.InstantiationException: Could not instantiate Seam component: login
       at org.jboss.seam.Component.newInstance(Component.java:704)
       at org.jboss.seam.Component.newInstance(Component.java:1257)
       at org.jboss.seam.Component.getInstance(Component.java:1212)
       at org.jboss.seam.Component.getInstance(Component.java:1195)
       at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:44)
       at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:134)
       at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:65)
       at com.sun.el.parser.AstValue.getTarget(AstValue.java:62)
       at com.sun.el.parser.AstValue.invoke(AstValue.java:147)
       at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
       at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
       at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
       at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
       ... 27 more
      Caused by:
      javax.naming.NameNotFoundException: LoginAction not bound
       at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
       at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
       at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
       at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
       at javax.naming.InitialContext.lookup(InitialContext.java:363)
       at org.jboss.seam.Component.instantiate(Component.java:743)
       at org.jboss.seam.Component.newInstance(Component.java:700)
       ... 39 more
      


      Our Login and LoginAction class are pretty much identical to those found in the examples, what could cause this to happen?

        • 1. Re: Could not instantiate Seam component:
          Patrick Smith Newbie

          Here is some more information on our configuration:

          Web.xml:

          <?xml version="1.0" encoding="UTF-8"?>
          
          <web-app version="2.4"
           xmlns="http://java.sun.com/xml/ns/j2ee"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
          
           <!-- Seam -->
          
           <listener>
           <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
           </listener>
          
           <!-- Propagate conversations across redirects -->
           <filter>
           <filter-name>Seam Redirect Filter</filter-name>
           <filter-class>org.jboss.seam.servlet.SeamRedirectFilter</filter-class>
           </filter>
          
           <filter-mapping>
           <filter-name>Seam Redirect Filter</filter-name>
           <url-pattern>*.seam</url-pattern>
           </filter-mapping>
          
          
           <context-param>
           <param-name>org.jboss.seam.core.init.debug</param-name>
           <param-value>true</param-value>
           </context-param>
          
           <!-- Global JNDI name pattern for JBoss EJB3 (change for other servers)
           <context-param>
           <param-name>org.jboss.seam.core.init.jndiPattern</param-name>
           <param-value>projectMgmt/#{ejbName}/local</param-value>
           </context-param>
           -->
          
           <!-- JSF -->
          
           <context-param>
           <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
           <param-value>client</param-value>
           </context-param>
          
           <context-param>
           <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
           <param-value>.xhtml</param-value>
           </context-param>
          
           <context-param>
           <param-name>facelets.DEVELOPMENT</param-name>
           <param-value>true</param-value>
           </context-param>
          
           <servlet>
           <servlet-name>Faces Servlet</servlet-name>
           <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
           <load-on-startup>1</load-on-startup>
           </servlet>
          
           <!-- Faces Servlet Mapping -->
           <servlet-mapping>
           <servlet-name>Faces Servlet</servlet-name>
           <url-pattern>*.seam</url-pattern>
           </servlet-mapping>
          
           <!-- MyFaces -->
           <listener>
           <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
           </listener>
          
           <!-- JSF RI -->
           <!--
           <listener>
           <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
           </listener>
           -->
          
          </web-app>
          


          faces-config.xml:
          <?xml version="1.0" encoding="UTF-8"?>
          <!DOCTYPE faces-config
          PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
           "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
          <faces-config>
          
          <application>
           <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
           </application>
          
          
           <!-- A phase listener is needed by all Seam applications -->
          
           <lifecycle>
           <phase-listener>org.jboss.seam.jsf.SeamPhaseListener</phase-listener>
           </lifecycle>
          
          </faces-config>


          seam.properties:
          org.jboss.seam.core.init.jndiPattern #{ejbName}/local


          And finally our LoginAction class:
          import javax.ejb.Stateless;
          import javax.persistence.EntityManager;
          import javax.persistence.PersistenceContext;
          
          import model.User;
          
          import org.jboss.seam.annotations.In;
          import org.jboss.seam.annotations.Logger;
          import org.jboss.seam.annotations.Name;
          import org.jboss.seam.annotations.Out;
          
          import org.jboss.seam.log.Log;
          
          @Stateless
          @Name("login")
          public class LoginAction implements Login
          {
          
           @In
           @Out
           private User user;
          
           @PersistenceContext
           private EntityManager em;
          
           @Logger
           private Log log;
          
           public String login()
           {
          
           User u = em.find(User.class, "pasmith");
          
          
           if(u.getPassword().equals(user.getPassword())) {
           System.out.println("CORRECT PASSWORD FOR " + u.getUsername());
           }
          
           return "home";
           }
          
          }
          


          • 2. Re: Could not instantiate Seam component:
            sateesh kumar Newbie

            Hi,

            Does your sema.properties file should have the Value projectMgmt/#{ejbName}/local instead of #{ejbName}/local .

            It should follow the convention earFileName/#{ejbName}/local unless you are using some other server.

            If this doesn't work uncomment the below in web.xml and have an empty seam.properties file..

            <context-param>
             <param-name>org.jboss.seam.core.init.jndiPattern</param-name>
             <param-value>projectMgmt/#{ejbName}/local</param-value>
            </context-param>
            


            Sateesh

            • 3. Re: Could not instantiate Seam component:
              Patrick Smith Newbie

              Hi Sateesh,

              Thanks for your reply.

              In both cases (either using seam.properties, or an empty seam.properties and the information in web.xml) we encounter the same error.

              javax.naming.NameNotFoundException: projectMgmt not bound
               at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
               at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
               at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
              


              Do you have any other suggestions?

              • 4. Re: Could not instantiate Seam component:
                sateesh kumar Newbie

                Hi ,

                Check the JNDIView from the JMX Console to see how your EJB is bound..

                That might help..

                Hope the name of the ear file is projectMgmt.ear

                Sateesh

                • 5. Re: Could not instantiate Seam component:
                  Patrick Smith Newbie

                  Hi Sateesh,
                  Thanks again for your reply.
                  I checked under the JNDIView service from the JMX Console and invoked the "list" operation. (Did I do that right?)

                  I looked under Global JNDI Namespace and got this:

                  +- EventDispatcher (class: org.jboss.ws.eventing.mgmt.DispatcherDelegate)
                   +- UserTransactionSessionFactory (proxy: $Proxy12 implements interface org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory)
                   +- console (class: org.jnp.interfaces.NamingContext)
                   | +- PluginManager (proxy: $Proxy56 implements interface org.jboss.console.manager.PluginManagerMBean)
                   +- UUIDKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.uuid.UUIDKeyGeneratorFactory)
                   +- HAPartition (class: org.jnp.interfaces.NamingContext)
                   | +- DefaultPartition (class: org.jboss.ha.framework.server.HAPartitionImpl)
                   +- HASessionState (class: org.jnp.interfaces.NamingContext)
                   | +- Default (class: org.jboss.ha.hasessionstate.server.HASessionStateImpl)
                   +- JAXR (class: org.apache.ws.scout.registry.ConnectionFactoryImpl)
                   +- UserTransaction (class: org.jboss.tm.usertx.client.ClientUserTransaction)
                   +- invokers (class: org.jnp.interfaces.NamingContext)
                   | +- [computer name](class: org.jnp.interfaces.NamingContext)
                   | | +- iiop (class: org.jboss.invocation.iiop.IIOPInvoker)
                   +- jmx (class: org.jnp.interfaces.NamingContext)
                   | +- invoker (class: org.jnp.interfaces.NamingContext)
                   | | +- RMIAdaptor (proxy: $Proxy55 implements interface org.jboss.jmx.adaptor.rmi.RMIAdaptor,interface org.jboss.jmx.adaptor.rmi.RMIAdaptorExt)
                   | +- rmi (class: org.jnp.interfaces.NamingContext)
                   | | +- RMIAdaptor[link -> jmx/invoker/RMIAdaptor] (class: javax.naming.LinkRef)
                   +- HiLoKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.hilo.HiLoKeyGeneratorFactory)
                  


                  I see no mention of my EJB or anything related to it.

                  Any more help is greately appreciated, as I am totally lost :(

                  Thanks agian.

                  • 6. Re: Could not instantiate Seam component:
                    sateesh kumar Newbie

                    Hi,

                    Are there any Errors in the Console when you deploy the EAR File ??

                    It will be helpful if you post the Console Output ..

                    Sateesh

                    • 7. Re: Could not instantiate Seam component:
                      Patrick Smith Newbie

                      Hi Sateesh,
                      We appreciate your help.

                      Here is the contents of our console.log:

                      10:35:23,693 INFO [EARDeployer] Init J2EE application: file:/var/lib/jbossas/server/all/deploy/projectMgmt.ear
                      10:35:26,474 INFO [Ejb3DescriptorHandler] adding class annotation org.jboss.annotation.internal.DefaultInterceptorMarker to action.LoginAction org.jboss.annotation.internal.DefaultInterceptorMarkerImpl@23c223c2
                      10:35:26,543 INFO [Ejb3Deployment] EJB3 deployment time took: 349
                      10:35:26,556 INFO [JmxKernelAbstraction] installing MBean: persistence.units:ear=projectMgmt.ear,jar=projectMgmt.jar,unitName=projectMgmtDatabase with dependencies:
                      10:35:26,556 INFO [JmxKernelAbstraction] jboss.jca:name=DefaultDS,service=ManagedConnectionFactory
                      10:35:26,654 INFO [Version] Hibernate EntityManager 3.2.0.CR1
                      10:35:26,670 INFO [Version] Hibernate Annotations 3.2.0.CR1
                      10:35:26,681 INFO [Environment] Hibernate 3.2 cr2
                      10:35:26,690 INFO [Environment] hibernate.properties not found
                      10:35:26,694 INFO [Environment] Bytecode provider name : javassist
                      10:35:26,701 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
                      10:35:26,939 INFO [Ejb3Configuration] found EJB3 Entity bean: model.Comment
                      10:35:26,940 INFO [Ejb3Configuration] found EJB3 Entity bean: model.Project
                      10:35:26,942 INFO [Ejb3Configuration] found EJB3 Entity bean: model.Task
                      10:35:26,943 INFO [Ejb3Configuration] found EJB3 Entity bean: model.TimeRecord
                      10:35:26,944 INFO [Ejb3Configuration] found EJB3 Entity bean: model.User
                      10:35:26,946 WARN [Ejb3Configuration] Persistence provider caller does not implements the EJB3 spec correctly. PersistenceUnitInfo.getNewTempClassLoader() is null.
                      10:35:27,030 INFO [Configuration] Reading mappings from resource: META-INF/orm.xml
                      10:35:27,035 INFO [Ejb3Configuration] [PersistenceUnit: projectMgmtDatabase] no META-INF/orm.xml found
                      10:35:27,167 INFO [AnnotationBinder] Binding entity from annotated class: model.Comment
                      10:35:27,217 INFO [EntityBinder] Bind entity model.Comment on table comment
                      10:35:27,283 INFO [AnnotationBinder] Binding entity from annotated class: model.Project
                      10:35:27,283 INFO [EntityBinder] Bind entity model.Project on table project
                      10:35:27,352 INFO [AnnotationBinder] Binding entity from annotated class: model.Task
                      10:35:27,353 INFO [EntityBinder] Bind entity model.Task on table task
                      10:35:27,362 INFO [AnnotationBinder] Binding entity from annotated class: model.TimeRecord
                      10:35:27,362 INFO [EntityBinder] Bind entity model.TimeRecord on table time_record
                      10:35:27,365 INFO [AnnotationBinder] Binding entity from annotated class: model.User
                      10:35:27,365 INFO [EntityBinder] Bind entity model.User on table user
                      10:35:28,065 INFO [CollectionBinder] Mapping collection: model.Task.timeSpent -> time_record
                      10:35:28,066 INFO [CollectionBinder] Mapping collection: model.Task.comments -> comment
                      10:35:28,068 INFO [CollectionBinder] Mapping collection: model.Project.tasks -> task
                      10:35:28,071 INFO [CollectionBinder] Mapping collection: model.Task.tasks -> task
                      10:35:28,072 INFO [CollectionBinder] Mapping collection: model.User.tasks -> task
                      10:35:28,234 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
                      10:35:28,248 INFO [InjectedDataSourceConnectionProvider] Using provided datasource
                      10:35:28,257 INFO [SettingsFactory] RDBMS: HSQL Database Engine, version: 1.8.0
                      10:35:28,257 INFO [SettingsFactory] JDBC driver: HSQL Database Engine Driver, version: 1.8.0
                      10:35:28,329 INFO [Dialect] Using dialect: org.hibernate.dialect.HSQLDialect
                      10:35:28,337 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory
                      10:35:28,342 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
                      10:35:28,345 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
                      10:35:28,345 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
                      10:35:28,345 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
                      10:35:28,346 INFO [SettingsFactory] JDBC batch size: 15
                      10:35:28,346 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
                      10:35:28,347 INFO [SettingsFactory] Scrollable result sets: enabled
                      10:35:28,347 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): disabled
                      10:35:28,347 INFO [SettingsFactory] Connection release mode: auto
                      10:35:28,349 INFO [SettingsFactory] Default batch fetch size: 1
                      10:35:28,349 INFO [SettingsFactory] Generate SQL with comments: disabled
                      10:35:28,349 INFO [SettingsFactory] Order SQL updates by primary key: disabled
                      10:35:28,349 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
                      10:35:28,353 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
                      10:35:28,354 INFO [SettingsFactory] Query language substitutions: {}
                      10:35:28,354 INFO [SettingsFactory] Second-level cache: enabled
                      10:35:28,354 INFO [SettingsFactory] Query cache: disabled
                      10:35:28,354 INFO [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider
                      10:35:28,356 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
                      10:35:28,356 INFO [SettingsFactory] Structured second-level cache entries: disabled
                      10:35:28,366 INFO [SettingsFactory] Statistics: disabled
                      10:35:28,366 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
                      10:35:28,367 INFO [SettingsFactory] Default entity-mode: pojo
                      10:35:28,432 INFO [SessionFactoryImpl] building session factory
                      10:35:29,455 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
                      10:35:29,475 INFO [SchemaExport] Running hbm2ddl schema export
                      10:35:29,475 INFO [SchemaExport] exporting generated schema to database
                      10:35:29,486 INFO [SchemaExport] Executing import script: /import.sql
                      10:35:29,487 INFO [SchemaExport] schema export complete
                      10:35:29,503 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
                      10:35:29,551 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=projectMgmt.ear,jar=projectMgmt.jar,name=LoginAction,service=EJB3 with dependencies:
                      10:35:29,551 INFO [JmxKernelAbstraction] persistence.units:ear=projectMgmt.ear,jar=projectMgmt.jar,unitName=projectMgmtDatabase
                      10:35:30,291 INFO [EJBContainer] STARTED EJB: action.LoginAction ejbName: LoginAction
                      10:35:30,317 INFO [EJB3Deployer] Deployed: file:/var/lib/jbossas/server/all/tmp/deploy/tmp22378projectMgmt.ear-contents/projectMgmt.jar
                      10:35:30,320 INFO [TomcatDeployer] deploy, ctxPath=/projectMgmt, warUrl=.../tmp/deploy/tmp22378projectMgmt.ear-contents/projectMgmt-exp.war/
                      10:35:31,510 INFO [FacesConfigurator] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
                      10:35:31,593 INFO [FacesConfigurator] Reading config jar:file:/var/lib/jbossas/server/all/tmp/deploy/tmp22378projectMgmt.ear-contents/jboss-seam.jar!/META-INF/faces-config.xml
                      10:35:31,597 INFO [FacesConfigurator] Reading config jar:file:/var/lib/jbossas/server/all/tmp/deploy/tmp22378projectMgmt.ear-contents/projectMgmt.jar-contents/jboss-seam.jar!/META-INF/faces-config.xml
                      10:35:31,601 INFO [FacesConfigurator] Reading config jar:file:/var/lib/jbossas/server/all/tmp/deploy/tmp22378projectMgmt.ear-contents/projectMgmt-exp.war/WEB-INF/lib/jboss-seam-debug.jar!/META-INF/faces-config.xml
                      10:35:31,605 INFO [FacesConfigurator] Reading config jar:file:/var/lib/jbossas/server/all/tmp/deploy/tmp22378projectMgmt.ear-contents/projectMgmt-exp.war/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/faces-config.xml
                      10:35:31,611 INFO [FacesConfigurator] Reading config jar:file:/var/lib/jbossas/server/all/tmp/deploy/tmp22378projectMgmt.ear-contents/projectMgmt-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/faces-config.xml
                      10:35:31,617 INFO [FacesConfigurator] Reading config jar:file:/var/lib/jbossas/server/all/tmp/deploy/tmp22378projectMgmt.ear-contents/projectMgmt-exp.war/WEB-INF/lib/tomahawk-1.1.0.jar!/META-INF/faces-config.xml
                      10:35:31,640 INFO [FacesConfigurator] Reading config /WEB-INF/faces-config.xml
                      10:35:31,761 ERROR [LocaleUtils] Locale name null or empty, ignoring
                      10:35:32,207 INFO [StartupServletContextListener] ServletContext '/var/lib/jbossas/server/all/./tmp/deploy/tmp22378projectMgmt.ear-contents/projectMgmt-exp.war/' initialized.
                      10:35:32,208 INFO [ServletContextListener] Welcome to Seam 1.0.1.GA
                      10:35:32,218 INFO [Initialization] no components.xml file found
                      10:35:32,219 INFO [Initialization] reading properties from: /seam.properties
                      10:35:32,220 INFO [Initialization] reading properties from: /jndi.properties
                      10:35:32,228 INFO [Initialization] initializing Seam
                      10:35:32,263 INFO [Component] Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
                      10:35:32,441 INFO [Component] Component: org.jboss.seam.core.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pages
                      10:35:32,456 INFO [Component] Component: events, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Events
                      10:35:32,468 INFO [Component] Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Manager
                      10:35:32,511 INFO [Component] Component: switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.Switcher
                      10:35:32,527 INFO [Component] Component: redirect, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Redirect
                      10:35:32,541 INFO [Component] Component: httpError, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.HttpError
                      10:35:32,556 INFO [Component] Component: userPrincipal, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.UserPrincipal
                      10:35:32,569 INFO [Component] Component: isUserInRole, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.IsUserInRole
                      10:35:32,580 INFO [Component] Component: conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation
                      10:35:32,674 INFO [Component] Component: conversationList, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationList
                      10:35:32,679 INFO [Component] Component: conversationStack, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationStack
                      10:35:32,683 INFO [Component] Component: facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesContext
                      10:35:32,689 INFO [Component] Component: pageContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.PageContext
                      10:35:32,694 INFO [Component] Component: eventContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.EventContext
                      10:35:32,699 INFO [Component] Component: sessionContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SessionContext
                      10:35:32,704 INFO [Component] Component: statelessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.StatelessContext
                      10:35:32,710 INFO [Component] Component: applicationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ApplicationContext
                      10:35:32,715 INFO [Component] Component: conversationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationContext
                      10:35:32,719 INFO [Component] Component: businessProcessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.BusinessProcessContext
                      10:35:32,724 INFO [Component] Component: locale, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Locale
                      10:35:32,728 INFO [Component] Component: messages, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.Messages
                      10:35:32,735 INFO [Component] Component: interpolator, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Interpolator
                      10:35:32,740 INFO [Component] Component: facesMessages, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesMessages
                      10:35:32,751 INFO [Component] Component: resourceBundle, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle
                      10:35:32,758 INFO [Component] Component: localeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.LocaleSelector
                      10:35:32,767 INFO [Component] Component: uiComponent, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.UiComponent
                      10:35:32,817 INFO [Component] Component: org.jboss.seam.remoting.messaging.subscriptionRegistry, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.remoting.messaging.SubscriptionRegistry
                      10:35:32,823 INFO [Component] Component: pojoCache, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.PojoCache
                      10:35:32,828 INFO [Component] Component: org.jboss.seam.debug.introspector, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.debug.Introspector
                      10:35:32,856 INFO [Component] Component: org.jboss.seam.debug.contexts, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.debug.Contexts
                      10:35:32,868 INFO [Scanner] scanning: /var/lib/jbossas/server/all/tmp/deploy/tmp22378projectMgmt.ear-contents/projectMgmt.jar
                      10:35:32,872 WARN [Component] Component class should be serializable: user
                      10:35:32,872 INFO [Component] Component: user, scope: SESSION, type: ENTITY_BEAN, class: model.User
                      10:35:32,876 INFO [Component] Component: login, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: action.LoginAction, JNDI: LoginAction/local
                      10:35:32,887 INFO [Initialization] done initializing Seam
                      10:35:32,958 INFO [EARDeployer] Started J2EE application: file:/var/lib/jbossas/server/all/deploy/projectMgmt.ear
                      10:36:02,862 INFO [Pages] no pages.xml file found
                      10:36:05,106 ERROR [STDERR] Aug 2, 2006 10:36:05 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                      INFO: Added Library from: jar:file:/var/lib/jbossas/server/all/tmp/deploy/tmp22378projectMgmt.ear-contents/projectMgmt-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
                      10:36:05,167 ERROR [STDERR] Aug 2, 2006 10:36:05 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                      INFO: Added Library from: jar:file:/var/lib/jbossas/server/all/tmp/deploy/tmp22378projectMgmt.ear-contents/projectMgmt-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
                      10:36:05,199 ERROR [STDERR] Aug 2, 2006 10:36:05 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                      INFO: Added Library from: jar:file:/var/lib/jbossas/server/all/tmp/deploy/tmp22378projectMgmt.ear-contents/projectMgmt-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
                      10:36:05,290 ERROR [STDERR] Aug 2, 2006 10:36:05 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                      INFO: Added Library from: jar:file:/var/lib/jbossas/server/all/tmp/deploy/tmp22378projectMgmt.ear-contents/projectMgmt-exp.war/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/seam.taglib.xml
                      10:36:05,337 ERROR [STDERR] Aug 2, 2006 10:36:05 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                      INFO: Added Library from: jar:file:/var/lib/jbossas/server/all/tmp/deploy/tmp22378projectMgmt.ear-contents/projectMgmt-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
                      10:36:05,400 ERROR [STDERR] Aug 2, 2006 10:36:05 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                      INFO: Added Library from: jar:file:/var/lib/jbossas/server/all/tmp/deploy/tmp22378projectMgmt.ear-contents/projectMgmt-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
                      10:36:05,756 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true
                      10:36:05,756 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
                      10:36:05,756 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.DETECT_JAVASCRIPT' found, using default value false
                      10:36:05,756 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.AUTO_SCROLL' found, using default value false
                      


                      Thanks agian.

                      • 8. Re: Could not instantiate Seam component:
                        Patrick Smith Newbie

                        Ahh, All is well now!

                        Must have made a typo in my ear name previously.
                        thanks again!