1 Reply Latest reply on Jan 11, 2010 5:53 PM by Ilya Dyoshin

    Problem in deploying richfaces components to jboss AS in Seam gen project

    Jaaouane Aymen Newbie
           
      Hi all,

      I'm a seam newbie.




      I have created a seam project using "seam gen".I have created a backing bean for The richfaces component <rich:extendedDataTable>. So,in this bean i have an attribute :

      private ExtendedTableDataModel<Journal> dataModel;


      My problem is when i statrt the JBOSS AS,i get the following error:



      Error installing to Real: name=vfsfile:/C:/jboss-5.1.0.GA/server/default/deploy/SIAPTUS.ear/ state=PreReal mode=Manual requiredState=Real
      org.jboss.deployers.spi.DeploymentException: Error deploying SIAPTUS.jar: org/richfaces/model/ExtendedTableDataModel
      at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:196)
      at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:99)
      at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internalDeploy(AbstractVFSRealDeployer.java:45)
      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
      at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
      at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
      at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
      at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
      at org.jboss.Main.boot(Main.java:221)
      at org.jboss.Main$1.run(Main.java:556)
      at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.NoClassDefFoundError: org/richfaces/model/ExtendedTableDataModel
      at java.lang.Class.getDeclaredMethods0(Native Method)
      at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
      at java.lang.Class.getDeclaredMethods(Unknown Source)
      at org.jboss.ejb3.interceptors.lang.SecurityActions$1.run(SecurityActions.java:43)
      at org.jboss.ejb3.interceptors.lang.SecurityActions$1.run(SecurityActions.java:41)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.ejb3.interceptors.lang.SecurityActions.getDeclaredMethods(SecurityActions.java:39)
      at org.jboss.ejb3.interceptors.lang.ClassHelper.populateAllMethods(ClassHelper.java:219)
      at org.jboss.ejb3.interceptors.lang.ClassHelper.getAllMethods(ClassHelper.java:88)
      at org.jboss.ejb3.interceptors.metadata.BeanInterceptorMetaDataBridge.initialise(BeanInterceptorMetaDataBridge.java:246)
      at org.jboss.ejb3.interceptors.metadata.BeanInterceptorMetaDataBridge.<init>(BeanInterceptorMetaDataBridge.java:138)
      at org.jboss.ejb3.interceptors.metadata.AdditiveBeanInterceptorMetaDataBridge.<init>(AdditiveBeanInterceptorMetaDataBridge.java:48)
      at org.jboss.ejb3.aop.BeanContainer.initialize(BeanContainer.java:194)
      at org.jboss.ejb3.EJBContainer.<init>(EJBContainer.java:249)
      at org.jboss.ejb3.session.SessionContainer.<init>(SessionContainer.java:119)
      at org.jboss.ejb3.session.SessionSpecContainer.<init>(SessionSpecContainer.java:69)
      at org.jboss.ejb3.stateless.StatelessContainer.<init>(StatelessContainer.java:112)
      at org.jboss.ejb3.Ejb3AnnotationHandler.getStatelessContainer(Ejb3AnnotationHandler.java:310)
      at org.jboss.ejb3.Ejb3DescriptorHandler.getStatelessContainer(Ejb3DescriptorHandler.java:499)
      at org.jboss.ejb3.Ejb3AnnotationHandler.getContainers(Ejb3AnnotationHandler.java:203)
      at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:718)
      at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:669)
      at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:651)
      at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:614)
      at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:491)
      at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:182)
      ... 34 more
      Caused by: java.lang.ClassNotFoundException: org.richfaces.model.ExtendedTableDataModel from


      BaseClassLoader@3f45a8{VFSClassLoaderPolicy@1f622fa{name=vfsfile:/C:/jboss-5.1.0.GA/server/default/deploy/SIAPTUS.ear/ domain=ClassLoaderDomain@ae0aae{name=seam.jboss.org:loader=SIAPTUS parentPolicy=AFTER_BUT_JAVA_BEFORE parent=ClassLoaderDomain@edbe39{DefaultDomain}} roots=[MemoryContextHandler@7499512[path= context=vfsmemory://5c4o52v-oghal0-g477prxb-1-g477qa7b-2c
      .
      .
      .




      I tried to add richfaces-ui.jar and richfaces-impl.jar to deployed-jars-ear.list.

      But I get the following error :


      java.lang.LinkageError: loader constraint violation: loader (instance of org/jboss/web/tomcat/service/WebCtxLoader$ENCLoader) previously initiated loading for a different type with name "org/richfaces/model/ExtendedTableDataModel"
      at $Proxy369.getJournalsDataModel(Unknown Source)



      Please Help me.

      Thanh you very much.

      Regards.