4 Replies Latest reply on Oct 15, 2010 11:49 PM by Alex Acevedo

    Tomcat + Embedded Jboss + Seam doesn't work

    kenjiru kun Newbie

      I'm new to Java, so please bear with me.


      I want to set up a lightweight environment to assist me in learning Seam. I've played a little bit with JBoss AS, but it's to big and slow for me. So I've turned to Apache Tomcat.


      I've followed the instructions for setting Tomcat with Embedded Jboss from the wiki and from the documentation.



      But Tomcat doesn't start and I get a lot of errors in $CATALINA_HOME/logs/catalina.out.


      Here is the log file


      Configuration details:



      • Tomcat 6.0.20

      • Embedded Jboss Beta 3

      • Seam 2.1.2


        • 1. Re: Tomcat + Embedded Jboss + Seam doesn't work
          Gregory Nikle Apprentice

          If jboss is to slow for you, just move to pure pojo with seam.
          I've got same problem as u. My server is strong enougth but developer machine not.


          I've moved whole app to pojo/jpa(hibernate).
          Example:
          previously my app started on jboss 4.2.1 between 2,5-3min.
          at now on tomcat 6 it starts 28sec:)

          • 2. Re: Tomcat + Embedded Jboss + Seam doesn't work
            Gregory Nikle Apprentice

            I add another. tomcat with embedded jboss is not so fast as pure tomcat without it.

            • 3. Re: Tomcat + Embedded Jboss + Seam doesn't work
              guus vorsterman Newbie


              Here is the log file

              Configuration details:


              • Tomcat 6.0.20

              • Embedded Jboss Beta 3

              • Seam 2.1.2





              Your link doesn't work on my computer. I can't see your logfile.


              I finally got it working yesterday. Almost gave up.
              I have Seam 2.1.2 / Richfaces / Tomcat 6 / JBoss embedded running now with my own test application.


              Just look at one of the example application in Seam examples folder.
              I just took the structure of the contactlist application and applied it to my own application.


              Then in the end I only have to do an ant tomcat.deploy


              Now I am going to get it to work in Eclipse.








              • 4. Re: Tomcat + Embedded Jboss + Seam doesn't work
                Alex Acevedo Newbie
                How did you fix this issue?
                I am unable to install embedded jboss on tomcat

                I followed the instructions that were provided on the site. I also modified the server startup by adding the following line:
                -Dsun.lang.ClassLoader.allowArraySyntax=true
                This didn't work as I continue to get the following error when I try to run tomcat:

                WARN [org.jboss.mx.loading.UnifiedLoaderRepository3] Tried to add non-URLClassLoader. Ignored
                ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Start: name=JMXKernel state=Create
                java.lang.NoSuchMethodError: org.jboss.system.ServiceController.setKernel(Lorg/jboss/kernel/Kernel;)V
                        at org.jboss.embedded.adapters.JMXKernel.start(JMXKernel.java:164)
                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                        at java.lang.reflect.Method.invoke(Method.java:616)
                        at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:56)
                        at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:110)
                        at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
                        at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:214)
                        at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:45)
                        at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:108)
                        at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:69)
                        at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
                        at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:135)
                        at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:46)
                        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:327)
                        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
                        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
                        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
                        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
                        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:574)
                        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:398)
                        at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:309)
                        at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:279)
                        at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:130)
                        at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:96)
                        at org.jboss.embedded.Bootstrap.deployBaseBootstrapUrl(Bootstrap.java:130)
                        at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:142)
                        at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:183)
                        at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:195)
                        at org.jboss.embedded.tomcat.EmbeddedJBossBootstrapListener.innerStart(EmbeddedJBossBootstrapListener.java:74)
                        at org.jboss.embedded.tomcat.EmbeddedJBossBootstrapListener.lifecycleEvent(EmbeddedJBossBootstrapListener.java:54)
                        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
                        at org.apache.catalina.core.StandardServer.start(StandardServer.java:703)
                        at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                        at java.lang.reflect.Method.invoke(Method.java:616)
                        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
                        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
                ERROR [org.jboss.embedded.DeploymentScanner] Failed to deploy
                org.jboss.deployers.spi.DeploymentException: Error populating deployment vfsfile:/opt/servers/apache-tomcat-6.0.29/lib/conf/jboss-service.xml
                        at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
                        at org.jboss.deployers.structure.spi.helpers.AbstractStructureBuilder.populateContext(AbstractStructureBuilder.java:77)
                        at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:89)
                       Anyone have any idea what the fix for this might be?