1 Reply Latest reply on Dec 23, 2010 12:16 PM by _walker_ .

    Can't deploy seam ejb3 application on glassfish

    _walker_ . Newbie

      Hello. I'm new to JBossSeam.
      I tried to create my first project with seam. But i have exeption by deploying on Glassfish.


      [#|2010-12-23T19:39:16.670+0300|INFO|glassfish3.0.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=24;_ThreadName=Thread-1;|Initializing Mojarra 2.0.2 (FCS b10) for context ''|#]
      
      [#|2010-12-23T19:39:19.517+0300|INFO|glassfish3.0.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=24;_ThreadName=Thread-1;|Monitoring jndi:/server/WEB-INF/faces-config.xml for modifications|#]
      
      [#|2010-12-23T19:39:27.027+0300|SEVERE|glassfish3.0.1|org.apache.catalina.core.StandardContext|_ThreadID=24;_ThreadName=Thread-1;|PWC1306: Startup of context  failed due to previous errors|#]
      
      [#|2010-12-23T19:39:27.036+0300|SEVERE|glassfish3.0.1|org.apache.catalina.core.StandardContext|_ThreadID=24;_ThreadName=Thread-1;|PWC1305: Exception during cleanup after start failed
      org.apache.catalina.LifecycleException: PWC2769: Manager has not yet been started
           at org.apache.catalina.session.StandardManager.stop(StandardManager.java:892)
           at org.apache.catalina.core.StandardContext.stop(StandardContext.java:5456)
           at com.sun.enterprise.web.WebModule.stop(WebModule.java:530)
           at org.apache.catalina.core.StandardContext.start(StandardContext.java:5284)
           at com.sun.enterprise.web.WebModule.start(WebModule.java:499)
           at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928)
           at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912)
           at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694)
           at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1947)
           at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1619)
           at com.sun.enterprise.web.WebApplication.start(WebApplication.java:90)
           at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)
           at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241)
           at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236)
           at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:339)
           at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183)
           at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:305)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1224)
           at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:365)
           at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:204)
           at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
           at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
           at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:245)
           at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
           at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
           at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
           at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
           at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
           at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
           at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
           at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
           at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
           at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
           at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
           at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
           at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
           at java.lang.Thread.run(Thread.java:662)
      |#]
      
      [#|2010-12-23T19:39:27.037+0300|SEVERE|glassfish3.0.1|org.apache.catalina.core.ContainerBase|_ThreadID=24;_ThreadName=Thread-1;|ContainerBase.addChild: start: 
      org.apache.catalina.LifecycleException: java.lang.LinkageError: loader constraint violation: when resolving method "javassist.util.proxy.FactoryHelper.toClass(Ljavassist/bytecode/ClassFile;Ljava/lang/ClassLoader;Ljava/security/ProtectionDomain;)Ljava/lang/Class;" the class loader (instance of org/glassfish/javaee/full/deployment/EarLibClassLoader) of the current class, org/jboss/seam/util/ProxyFactory, and the class loader (instance of org/apache/felix/framework/ModuleImpl$ModuleClassLoader) for resolved class, javassist/util/proxy/FactoryHelper, have different Class objects for the type javassist/bytecode/ClassFile used in the signature
           at org.apache.catalina.core.StandardContext.start(StandardContext.java:5289)
           at com.sun.enterprise.web.WebModule.start(WebModule.java:499)
           at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928)
           at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912)
           at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694)
           at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1947)
           at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1619)
           at com.sun.enterprise.web.WebApplication.start(WebApplication.java:90)
           at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)
           at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241)
           at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236)
           at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:339)
           at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183)
           at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:305)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1224)
           at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:365)
           at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:204)
           at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
           at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
           at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:245)
           at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
           at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
           at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
           at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
           at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
           at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
           at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
           at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
           at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
           at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
           at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
           at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
           at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
           at java.lang.Thread.run(Thread.java:662)
      Caused by: java.lang.LinkageError: loader constraint violation: when resolving method "javassist.util.proxy.FactoryHelper.toClass(Ljavassist/bytecode/ClassFile;Ljava/lang/ClassLoader;Ljava/security/ProtectionDomain;)Ljava/lang/Class;" the class loader (instance of org/glassfish/javaee/full/deployment/EarLibClassLoader) of the current class, org/jboss/seam/util/ProxyFactory, and the class loader (instance of org/apache/felix/framework/ModuleImpl$ModuleClassLoader) for resolved class, javassist/util/proxy/FactoryHelper, have different Class objects for the type javassist/bytecode/ClassFile used in the signature
           at org.jboss.seam.util.ProxyFactory.createClass3(ProxyFactory.java:350)
           at org.jboss.seam.util.ProxyFactory.createClass2(ProxyFactory.java:325)
           at org.jboss.seam.util.ProxyFactory.createClass(ProxyFactory.java:284)
           at org.jboss.seam.Component.createProxyFactory(Component.java:2426)
           at org.jboss.seam.Component.getProxyFactory(Component.java:1513)
           at org.jboss.seam.Component.wrap(Component.java:1504)
           at org.jboss.seam.Component.instantiateJavaBean(Component.java:1442)
           at org.jboss.seam.Component.instantiate(Component.java:1359)
           at org.jboss.seam.Component.newInstance(Component.java:2122)
           at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
           at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
           at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:116)
           at org.jboss.seam.init.Initialization.init(Initialization.java:740)
           at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36)
           at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:4664)
           at com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:535)
           at org.apache.catalina.core.StandardContext.start(StandardContext.java:5266)
           ... 38 more
      |#]
      
      [#|2010-12-23T19:39:27.039+0300|WARNING|glassfish3.0.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=24;_ThreadName=Thread-1;|java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.LinkageError: loader constraint violation: when resolving method "javassist.util.proxy.FactoryHelper.toClass(Ljavassist/bytecode/ClassFile;Ljava/lang/ClassLoader;Ljava/security/ProtectionDomain;)Ljava/lang/Class;" the class loader (instance of org/glassfish/javaee/full/deployment/EarLibClassLoader) of the current class, org/jboss/seam/util/ProxyFactory, and the class loader (instance of org/apache/felix/framework/ModuleImpl$ModuleClassLoader) for resolved class, javassist/util/proxy/FactoryHelper, have different Class objects for the type javassist/bytecode/ClassFile used in the signature
      java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.LinkageError: loader constraint violation: when resolving method "javassist.util.proxy.FactoryHelper.toClass(Ljavassist/bytecode/ClassFile;Ljava/lang/ClassLoader;Ljava/security/ProtectionDomain;)Ljava/lang/Class;" the class loader (instance of org/glassfish/javaee/full/deployment/EarLibClassLoader) of the current class, org/jboss/seam/util/ProxyFactory, and the class loader (instance of org/apache/felix/framework/ModuleImpl$ModuleClassLoader) for resolved class, javassist/util/proxy/FactoryHelper, have different Class objects for the type javassist/bytecode/ClassFile used in the signature
           at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:932)
           at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912)
           at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694)
           at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1947)
           at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1619)
           at com.sun.enterprise.web.WebApplication.start(WebApplication.java:90)
           at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)
           at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241)
           at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236)
           at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:339)
           at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183)
           at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:305)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
           at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1224)
           at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:365)
           at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:204)
           at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
           at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
           at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:245)
           at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
           at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
           at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
           at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
           at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
           at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
           at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
           at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
           at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
           at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
           at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
           at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
           at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
           at java.lang.Thread.run(Thread.java:662)
      |#]|



      My dependencys:


              <dependency>
                  <groupId>org.jboss.seam</groupId>
                  <artifactId>jboss-seam</artifactId>
                  <version>2.2.0.GA</version>
              </dependency>
              <dependency>
                  <groupId>javax</groupId>
                  <artifactId>javaee-api</artifactId>
                  <version>6.0</version>
                  <scope>provided</scope>
              </dependency>
      
              <dependency>
                  <groupId>junit</groupId>
                  <artifactId>junit</artifactId>
                  <version>3.8.2</version>
                  <scope>test</scope>
              </dependency>
      
              <dependency>
                  <groupId>org.slf4j</groupId>
                  <artifactId>slf4j-api</artifactId>
                  <version>1.5.8</version>
              </dependency>
              <dependency>
                  <groupId>org.slf4j</groupId>
                  <artifactId>slf4j-log4j12</artifactId>
                  <version>1.5.8</version>
              </dependency>
             <dependency>
                  <groupId>log4j</groupId>
                  <artifactId>log4j</artifactId>
                  <version>1.2.14</version>
              </dependency>
      
      
      
      
              <dependency>
                  <groupId>org.hibernate</groupId>
                  <artifactId>hibernate</artifactId>
                  <version>3.5.3-Final</version>
              </dependency>
              <dependency>
                  <groupId>org.hibernate</groupId>
                  <artifactId>hibernate-validator</artifactId>
                  <version>3.0.0.GA</version>
              </dependency>
      
      <!--
              <dependency>
               <groupId>org.hibernate</groupId>
               <version>4.0.2.GA</version>
               <artifactId>hibernate-validator-legacy</artifactId>
             </dependency>-->
              <dependency>
                  <groupId>org.hibernate</groupId>
                  <artifactId>hibernate-entitymanager</artifactId>
                  <version>3.5.6-Final</version>
              </dependency>
              <dependency>
                  <groupId>org.hibernate</groupId>
                  <artifactId>hibernate-core</artifactId>
                  <version>3.5.6-Final</version>
              </dependency>
              <dependency>
                  <groupId>org.hibernate</groupId>
                  <artifactId>hibernate-tools</artifactId>
                  <version>3.2.4.GA</version>
              </dependency>
              <dependency>
                  <groupId>org.hibernate</groupId>
                  <artifactId>hibernate-annotations</artifactId>
                  <version>3.5.6-Final</version>
              </dependency>
              <dependency>
                  <groupId>org.hibernate</groupId>
                  <artifactId>ejb3-persistence</artifactId>
                  <version>3.3.2.Beta1</version>
              </dependency>
      
      
              <dependency>
                  <groupId>net.sf.ehcache</groupId>
                  <artifactId>ehcache-core</artifactId>
                  <version>2.1.0</version>
              </dependency>
              <dependency>
                  <groupId>net.sf.ehcache</groupId>
                  <artifactId>ehcache</artifactId>
                  <version>1.6.1</version>
              </dependency>
              <dependency>
                  <groupId>cglib</groupId>
                  <artifactId>cglib</artifactId>
                  <version>2.2</version>
              </dependency>
      
              <dependency>
                  <groupId>commons-fileupload</groupId>
                  <artifactId>commons-fileupload</artifactId>
                  <version>1.2.1</version>
              </dependency>
              <dependency>
                  <groupId>commons-io</groupId>
                  <artifactId>commons-io</artifactId>
                  <version>1.4</version>
              </dependency>
              <dependency>
                  <groupId>commons-lang</groupId>
                  <artifactId>commons-lang</artifactId>
                  <version>2.3</version>
              </dependency>
              <dependency>
                  <groupId>commons-collections</groupId>
                  <artifactId>commons-collections</artifactId>
                  <version>3.2.1</version>
              </dependency>
              <dependency>
                  <groupId>mysql</groupId>
                  <artifactId>mysql-connector-java</artifactId>
                  <version>5.1.13</version>
              </dependency>
              <dependency>
                  <groupId>javassist</groupId>
                  <artifactId>javassist</artifactId>
                  <version>3.9.0.GA</version>
              </dependency>
              <dependency>
                  <groupId>org.apache.poi</groupId>
                  <artifactId>poi</artifactId>
                  <version>3.2-FINAL</version>
              </dependency>
              <dependency>
                  <groupId>javax.sql</groupId>
                  <artifactId>jdbc-stdext</artifactId>
                  <version>2.0</version>
              </dependency>
              <dependency>
                  <groupId>javax.transaction</groupId>
                  <artifactId>jta</artifactId>
                  <version>1.1</version>
              </dependency>
              <dependency>
                  <groupId>net.sourceforge.jexcelapi</groupId>
                  <artifactId>jxl</artifactId>
                  <version>2.6.8</version>
              </dependency>
              <dependency>
                  <groupId>javax.mail</groupId>
                  <artifactId>mail</artifactId>
                  <version>1.4.2</version>
              </dependency>
      
        <dependency>
                  <groupId>org.jboss.seam</groupId>
                  <artifactId>jboss-seam</artifactId>
                  <version>2.2.0.GA</version>
              </dependency>
      
              <dependency>
                  <groupId>org.primefaces</groupId>
                  <artifactId>primefaces</artifactId>
                  <version>2.2.M1</version>
              </dependency>
      
              <dependency>
                  <groupId>com.sun.faces</groupId>
                  <artifactId>jsf-api</artifactId>
                  <version>2.0.2-b10</version>
              </dependency>
              <dependency>
                  <groupId>com.sun.faces</groupId>
                  <artifactId>jsf-impl</artifactId>
                  <version>2.0.2-b10</version>
              </dependency>
              <dependency>
                  <groupId>javax.servlet</groupId>
                  <artifactId>jstl</artifactId>
                  <version>1.1.2</version>
              </dependency>
              <dependency>
                  <groupId>taglibs</groupId>
                  <artifactId>standard</artifactId>
                  <version>1.1.2</version>
              </dependency>
      
              <dependency>
                  <groupId>com.sun.facelets</groupId>
                  <artifactId>jsf-facelets</artifactId>
                  <version>1.1.15</version>
              </dependency>
              <dependency>
                  <groupId>javax</groupId>
                  <artifactId>javaee-web-api</artifactId>
                  <version>6.0</version>
                  <scope>provided</scope>
              </dependency>




      web.xml





      <?xml version="1.0" encoding="UTF-8"?>
      <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
          <context-param>
              <param-name>javax.faces.PROJECT_STAGE</param-name>
              <param-value>Development</param-value>
          </context-param>
          <context-param>
              <param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name>
              <param-value>true</param-value>
          </context-param>
          <listener>
              <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
          </listener>
          <listener>
      
          <context-param>
              <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
              <param-value>org.jboss.seam.jsf.SeamViewHandler</param-value>
          </context-param>
      
          <context-param>
              <param-name>org.ajax4jsf.SKIN</param-name>
              <param-value>DEFAULT</param-value>
          </context-param>
      
         <filter>
              <filter-name>Seam Filter</filter-name>
              <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
          </filter>
          <filter-mapping>
              <filter-name>Seam Filter</filter-name>
              <url-pattern>/*</url-pattern>
          </filter-mapping>
      
      
          <servlet>
              <servlet-name>Seam Resource Servlet</servlet-name>
              <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
          </servlet>
          <servlet-mapping>
              <servlet-name>Seam Resource Servlet</servlet-name>
              <url-pattern>/seam/resource/*</url-pattern>
          </servlet-mapping>
          <servlet>
              <servlet-name>Faces Servlet</servlet-name>
              <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
              <load-on-startup>1</load-on-startup>
          </servlet>
          <servlet-mapping>
              <servlet-name>Faces Servlet</servlet-name>
              <url-pattern>*.seam</url-pattern>
          </servlet-mapping>
          <session-config>
              <session-timeout>
                  30
              </session-timeout>
          </session-config>
      </web-app>




      components.xml




      <?xml version="1.0" encoding="UTF-8"?>
      <components xmlns="http://jboss.com/products/seam/components"
           xmlns:bpm="http://jboss.com/products/seam/bpm"
           xmlns:core="http://jboss.com/products/seam/core"
           xmlns:jms="http://jboss.com/products/seam/jms"
           xmlns:mail="http://jboss.com/products/seam/mail"
           xmlns:persistence="http://jboss.com/products/seam/persistence"
           xmlns:security="http://jboss.com/products/seam/security"
           xmlns:transaction="http://jboss.com/products/seam/transaction"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://jboss.com/products/seam/transaction http://jboss.com/products/seam/transaction-2.2.xsd
                     http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.2.xsd
                     http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.2.xsd
                     http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.2.xsd
                     http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.2.xsd
                     http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.2.xsd
                     http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-2.2.xsd
                     http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.2.xsd
                     http://jboss.com/products/seam/jms http://jboss.com/products/seam/jms-2.2.xsd">
      
           <component name="org.jboss.seam.core.init">
                <property name="debug">${seam.debug}</property>
                <property name="jndi-pattern">setupnote-ear-${version}/#{ejbName}/local
                </property>
           </component>
      
           <core:manager concurrent-request-timeout="500"
                conversation-id-parameter="cid" conversation-timeout="120000" />
      
           <transaction:ejb-transaction />
      
           <persistence:managed-persistence-context
                auto-create="true" name="entityManager" persistence-unit-jndi-name="java:/setupnote-EntityManagerFactory" />
      
      
      
           <mail:mail-session host="localhost" password="test"
                port="2525" username="test" />
      
      </components>