10 Replies Latest reply on Jan 26, 2010 2:48 PM by Peter Johnson

    JBoss Maven Problem

    Gilles Dupont Tagne Tagne Newbie

      Hi Guys,

       

      I created a Seam war project with eclipse Galileo, JBoss Tools 3.1.0 CR1 and m2clipse 0.9.9. I use maven 2.2.1. After the project was created i deployed it in JBoss AS 5.1.0 GA. The project couldn't be deploy because of this exception

       

      01:16:06,991 ERROR [[/portal]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
      java.lang.IllegalStateException: Two components with the same name and precedence - component name: authenticator, component classes: de.cimt.portal.session.Authenticator, de.cimt.portal.session.Authenticator
           at org.jboss.seam.init.Initialization.addComponentDescriptor(Initialization.java:601)
           at org.jboss.seam.init.Initialization.installScannedComponentAndRoles(Initialization.java:954)
           at org.jboss.seam.init.Initialization.installHotDeployableComponents(Initialization.java:852)
           at org.jboss.seam.init.Initialization.init(Initialization.java:730)
           at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36)
           at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
           at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
           at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
           at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
           at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
           at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
           at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
           at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
           at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
           at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
           at $Proxy38.start(Unknown Source)
           at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
           at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
           at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
           at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
           at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
           at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
           at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
           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.ServiceController.doChange(ServiceController.java:688)
           at org.jboss.system.ServiceController.start(ServiceController.java:460)
           at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
           at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
           at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
           at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
           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:1178)
           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.hotdeploy.HDScanner.scan(HDScanner.java:362)
           at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
           at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
           at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
           at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
           at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
           at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
           at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
           at java.lang.Thread.run(Thread.java:637)
      01:16:07,015 ERROR [StandardContext] Error listenerStart
      01:16:07,015 ERROR [StandardContext] Context [/portal] startup failed due to previous errors
      01:16:07,089 ERROR [AbstractKernelController] Error installing to Start: name=jboss.web.deployment:war=/portal state=Create mode=Manual requiredState=Installed
      org.jboss.deployers.spi.DeploymentException: URL file:/Applications/jboss-5.1.0.GA/server/default/tmp/5c4o11e-pn5ky7-g4ui6t8e-1-g4uic66y-d2/portal.war/ deployment failed
           at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:331)
           at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
           at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
           at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
           at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
           at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
           at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
           at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
           at $Proxy38.start(Unknown Source)
           at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
           at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
           at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
           at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
           at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
           at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
           at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
           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.ServiceController.doChange(ServiceController.java:688)
           at org.jboss.system.ServiceController.start(ServiceController.java:460)
           at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
           at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
           at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
           at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
           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:1178)
           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.hotdeploy.HDScanner.scan(HDScanner.java:362)
           at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
           at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
           at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
           at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
           at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
           at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
           at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
           at java.lang.Thread.run(Thread.java:637)
      01:16:07,095 INFO  [PersistenceUnitDeployment] Stopping persistence unit persistence.unit:unitName=#portal
      01:16:07,095 INFO  [SessionFactoryImpl] closing
      01:16:07,095 INFO  [SessionFactoryObjectFactory] Unbinding factory from JNDI name: persistence.unit:unitName=#portal
      01:16:07,095 INFO  [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
      01:16:07,095 INFO  [SessionFactoryObjectFactory] Unbound factory from JNDI name: persistence.unit:unitName=#portal
      01:16:07,248 ERROR [AbstractKernelController] Error installing to Real: name=vfsfile:/Users/gilles/Documents/workspace_diplom/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBossServer/deploy/portal.war/ state=PreReal mode=Manual requiredState=Real
      org.jboss.deployers.spi.DeploymentException: URL file:/Applications/jboss-5.1.0.GA/server/default/tmp/5c4o11e-pn5ky7-g4ui6t8e-1-g4uic66y-d2/portal.war/ deployment failed
           at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:331)
           at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
           at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
           at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
           at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
           at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
           at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
           at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
           at $Proxy38.start(Unknown Source)
           at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
           at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
           at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
           at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
           at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
           at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
           at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
           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.ServiceController.doChange(ServiceController.java:688)
           at org.jboss.system.ServiceController.start(ServiceController.java:460)
           at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
           at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
           at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
           at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
           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:1178)
           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.hotdeploy.HDScanner.scan(HDScanner.java:362)
           at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
           at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
           at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
           at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
           at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
           at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
           at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
           at java.lang.Thread.run(Thread.java:637)
      01:16:07,293 WARN  [HDScanner] Failed to process changes
      org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
      
      *** DEPLOYMENTS IN ERROR: Name -> Error
      
      vfsfile:/Users/gilles/Documents/workspace_diplom/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBossServer/deploy/portal.war/ -> org.jboss.deployers.spi.DeploymentException: URL file:/Applications/jboss-5.1.0.GA/server/default/tmp/5c4o11e-pn5ky7-g4ui6t8e-1-g4uic66y-d2/portal.war/ deployment failed
      
      
      DEPLOYMENTS IN ERROR:
        Deployment "vfsfile:/Users/gilles/Documents/workspace_diplom/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBossServer/deploy/portal.war/" is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: URL file:/Applications/jboss-5.1.0.GA/server/default/tmp/5c4o11e-pn5ky7-g4ui6t8e-1-g4uic66y-d2/portal.war/ deployment failed
      
           at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:993)
           at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:939)
           at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:873)
           at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)
           at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:369)
           at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
           at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
           at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
           at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
           at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
           at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
           at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
           at java.lang.Thread.run(Thread.java:637)
      

       

      I looked in the portal.war directory and i found out that it's content a dev directory in which the Authenticator.class is present. Please i don't know how i am going to solve this. I would be please to receive some help.

        • 1. Re: JBoss Maven Problem
          Peter Johnson Master

          Where is this class located: de.cimt.portal.session.Authenticator? It would appear that you have two copies.

           

          Also, please provide a listing of the contents of the portal.war file or directory. (If a directory, use "dir portal.war /b /s". If a file, use "jar -tf portal.war")

          • 2. Re: JBoss Maven Problem
            Gilles Dupont Tagne Tagne Newbie

            Thanks Peter for the answer. the portal.war look like this

             

            META-INF/
            META-INF/MANIFEST.MF
            error.xhtml
            home.xhtml
            img/
            img/btnmanageroles.png
            img/btnmanageusers.png
            img/btnnewpermission.png
            img/btnnewrole.png
            img/btnnewuser.png
            img/dtpick.gif
            img/error.gif
            img/false.png
            img/manytoone.gif
            img/msgerror.png
            img/msginfo.png
            img/msgwarn.png
            img/onetomany.gif
            img/seamlogo.png
            img/true.png
            index.html
            layout/
            layout/display.xhtml
            layout/edit.xhtml
            layout/menu.xhtml
            layout/sort.xhtml
            layout/template.xhtml
            login.page.xml
            login.xhtml
            stylesheet/
            stylesheet/theme.css
            stylesheet/theme.xcss
            stylesheet/useradmin.css
            WEB-INF/
            WEB-INF/classes/
            WEB-INF/classes/components.properties
            WEB-INF/classes/de/
            WEB-INF/classes/de/cimt/
            WEB-INF/classes/de/cimt/portal/
            WEB-INF/classes/de/cimt/portal/session/
            WEB-INF/classes/de/cimt/portal/session/Authenticator.class
            WEB-INF/classes/hot/
            WEB-INF/classes/hot/seam.properties
            WEB-INF/classes/import.sql
            WEB-INF/classes/main/
            WEB-INF/classes/main/components.properties
            WEB-INF/classes/main/import.sql
            WEB-INF/classes/main/messages_en.properties
            WEB-INF/classes/main/META-INF/
            WEB-INF/classes/main/META-INF/persistence.xml
            WEB-INF/classes/main/seam.properties
            WEB-INF/classes/main/security.drl
            WEB-INF/classes/messages_en.properties
            WEB-INF/classes/META-INF/
            WEB-INF/classes/META-INF/persistence.xml
            WEB-INF/classes/seam.properties
            WEB-INF/classes/security.drl
            WEB-INF/components.xml
            WEB-INF/dev/
            WEB-INF/dev/de/
            WEB-INF/dev/de/cimt/
            WEB-INF/dev/de/cimt/portal/
            WEB-INF/dev/de/cimt/portal/session/
            WEB-INF/dev/de/cimt/portal/session/Authenticator.class
            WEB-INF/dev/de/cimt/portal/session/Authenticator.java

            WEB-INF/dev/seam.properties
            WEB-INF/faces-config.xml
            WEB-INF/jboss-web.xml
            WEB-INF/lib/
            WEB-INF/lib/antlr-runtime-3.1.1.jar
            WEB-INF/lib/commons-beanutils-1.7.0.jar
            WEB-INF/lib/commons-digester-1.8.jar
            WEB-INF/lib/drools-api-5.0.1.jar
            WEB-INF/lib/drools-compiler-5.0.1.jar
            WEB-INF/lib/drools-core-5.0.1.jar
            WEB-INF/lib/itext-2.1.2.jar
            WEB-INF/lib/itext-rtf-2.1.2.jar
            WEB-INF/lib/jboss-el-1.0_02.CR4.jar
            WEB-INF/lib/jboss-seam-2.2.0.GA.jar
            WEB-INF/lib/jboss-seam-debug-2.2.0.GA.jar
            WEB-INF/lib/jboss-seam-ioc-2.2.0.GA.jar
            WEB-INF/lib/jboss-seam-jul-2.2.0.GA.jar
            WEB-INF/lib/jboss-seam-mail-2.2.0.GA.jar
            WEB-INF/lib/jboss-seam-pdf-2.2.0.GA.jar
            WEB-INF/lib/jboss-seam-remoting-2.2.0.GA.jar
            WEB-INF/lib/jboss-seam-ui-2.2.0.GA.jar
            WEB-INF/lib/jbpm-jpdl-3.2.2.jar
            WEB-INF/lib/jsf-facelets-1.1.15.B1.jar
            WEB-INF/lib/mvel2-2.0.10.jar
            WEB-INF/lib/richfaces-api-3.3.1.GA.jar
            WEB-INF/lib/richfaces-impl-3.3.1.GA.jar
            WEB-INF/lib/richfaces-ui-3.3.1.GA.jar
            WEB-INF/pages.xml
            WEB-INF/web.xml

             

            When i manually delete the dev directory, it's work but i can't do it all the time when developing.

            • 3. Re: JBoss Maven Problem
              Peter Johnson Master

              Why do you have a web-inf/dev directory? I suspect that either your project's source file layout is not correct, or your pom has some plugin or configuration set that is creating the web-inf/dev directory.

               

              Could you post the pom.xml? Also, run "mvn clean" and then post the contents of the project.
              • 4. Re: JBoss Maven Problem
                Gilles Dupont Tagne Tagne Newbie

                Thanks Peter, like i said in the first post, I created the project with jboss Tools( Jboss Maven)

                the pom.xml

                <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
                     <parent>
                          <artifactId>portal-parent</artifactId>
                          <groupId>de.cimt</groupId>
                          <version>1.0</version>
                     </parent>
                     <modelVersion>4.0.0</modelVersion>
                     <groupId>de.cimt</groupId>
                     <artifactId>portal</artifactId>
                     <version>1.0</version>
                     <packaging>war</packaging>
                     <name>portal</name>
                     <description />
                     <build>
                          <finalName>${artifactId}</finalName>
                          <sourceDirectory>${basedir}/src</sourceDirectory>
                          <outputDirectory>${basedir}/build/classes</outputDirectory>
                          <resources>
                               <resource>
                                    <directory>${basedir}/src</directory>
                                    <excludes>
                                         <exclude>**/*.java</exclude>
                                    </excludes>
                               </resource>
                          </resources>
                          <plugins>
                               <plugin>
                                    <groupId>org.codehaus.mojo</groupId>
                                    <artifactId>jboss-maven-plugin</artifactId>
                                    <version>1.4</version>
                                    <configuration>
                                         <jbossHome>/Applications/jboss-5.1.0.GA</jbossHome>
                                         <serverName>default</serverName>
                                    </configuration>
                               </plugin>
                               <plugin>
                                    <artifactId>maven-war-plugin</artifactId>
                                    <configuration>
                                         <webappDirectory>${basedir}/WebContent</webappDirectory>
                                         <warSourceDirectory>${basedir}/WebContent</warSourceDirectory>
                                    </configuration>
                               </plugin>
                          </plugins>
                     </build>
                     <dependencies>
                          <dependency>
                               <groupId>org.hibernate</groupId>
                               <artifactId>hibernate-validator</artifactId>
                          </dependency>
                          <dependency>
                               <groupId>org.hibernate</groupId>
                               <artifactId>hibernate-annotations</artifactId>
                          </dependency>
                          <dependency>
                               <groupId>org.hibernate</groupId>
                               <artifactId>hibernate-entitymanager</artifactId>
                          </dependency>
                          <dependency>
                               <groupId>org.jboss.seam</groupId>
                               <artifactId>jboss-seam</artifactId>
                          </dependency>
                          <dependency>
                               <groupId>org.jboss.seam</groupId>
                               <artifactId>jboss-seam-ui</artifactId>
                               <exclusions>
                                    <exclusion>
                                         <artifactId>jboss-seam</artifactId>
                                         <groupId>org.jboss.seam</groupId>
                                    </exclusion>
                               </exclusions>
                          </dependency>
                          <dependency>
                               <groupId>org.jboss.seam</groupId>
                               <artifactId>jboss-seam-ioc</artifactId>
                               <exclusions>
                                    <exclusion>
                                         <artifactId>jboss-seam</artifactId>
                                         <groupId>org.jboss.seam</groupId>
                                    </exclusion>
                               </exclusions>
                          </dependency>
                          <dependency>
                               <groupId>org.jboss.seam</groupId>
                               <artifactId>jboss-seam-debug</artifactId>
                               <version>${seam.version}</version>
                          </dependency>
                          <dependency>
                               <groupId>org.jboss.seam</groupId>
                               <artifactId>jboss-seam-mail</artifactId>
                          </dependency>
                          <dependency>
                               <groupId>org.jboss.seam</groupId>
                               <artifactId>jboss-seam-pdf</artifactId>
                          </dependency>
                          <dependency>
                               <groupId>org.jboss.seam</groupId>
                               <artifactId>jboss-seam-remoting</artifactId>
                          </dependency>
                          <dependency>
                               <groupId>javax.servlet</groupId>
                               <artifactId>servlet-api</artifactId>
                          </dependency>
                          <dependency>
                               <groupId>org.richfaces.ui</groupId>
                               <artifactId>richfaces-ui</artifactId>
                          </dependency>
                          <dependency>
                               <groupId>org.richfaces.framework</groupId>
                               <artifactId>richfaces-api</artifactId>
                          </dependency>
                          <dependency>
                               <groupId>org.richfaces.framework</groupId>
                               <artifactId>richfaces-impl</artifactId>
                          </dependency>
                          <dependency>
                               <groupId>javax.faces</groupId>
                               <artifactId>jsf-api</artifactId>
                          </dependency>
                          <dependency>
                               <groupId>javax.faces</groupId>
                               <artifactId>jsf-impl</artifactId>
                          </dependency>
                          <dependency>
                               <groupId>javax.el</groupId>
                               <artifactId>el-api</artifactId>
                          </dependency>
                          <dependency>
                               <groupId>org.drools</groupId>
                               <artifactId>drools-compiler</artifactId>
                          </dependency>
                          <dependency>
                               <groupId>org.jbpm</groupId>
                               <artifactId>jbpm-jpdl</artifactId>
                          </dependency>
                          <dependency>
                               <groupId>commons-digester</groupId>
                               <artifactId>commons-digester</artifactId>
                          </dependency>
                     </dependencies>
                </project>
                
                • 5. Re: JBoss Maven Problem
                  Peter Johnson Master

                  You did not list your project directory contents.

                   

                  I'm also wondering if, after removing the "target" directory (which is what 'mvn clean' does) things will work.
                  • 6. Re: JBoss Maven Problem
                    Gilles Dupont Tagne Tagne Newbie

                    Hi Peter, I found out a solution how to delete the dev directory before building the package. I put this plugin in my pom.xml

                     

                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-antrun-plugin</artifactId>
                        <version>1.3</version>
                        <executions>
                            <execution>
                                <id>DeleteDevDirectoryTask</id>
                                <phase>prepare-package</phase>
                                <goals>
                                  <goal>run</goal>
                                </goals>
                                <inherited>false</inherited>
                                <configuration>
                                     <tasks>
                                          <delete dir="${basedir}/WebContent/WEB-INF/dev"/>
                                     </tasks>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    

                     

                    Now i am able to deploy the project without a problem. it's work. Thanks for your advices

                    • 7. Re: JBoss Maven Problem
                      Max Rydahl Andersen Master

                      Peter, the web-inf/dev is the directory Seam uses for being able to do hot deployment of seam components.

                       

                      This should not be used by anyone else so i'm surprised that should cause problems for portal ?

                      • 8. Re: JBoss Maven Problem
                        Max Rydahl Andersen Master

                        Sorry, this seems to simply be a case of https://jira.jboss.org/jira/browse/JBSEAM-3996 - its a regression in seam that i'm trying to get fixed but not going well ;(

                        • 9. Re: JBoss Maven Problem
                          Max Rydahl Andersen Master
                          btw. i'm wondering why your /classes folder contains hot/ and main/ where it actually should be just the content of hot and main in classes ?
                          • 10. Re: JBoss Maven Problem
                            Peter Johnson Master
                            Max, this explains a lot, thank you.