3 Replies Latest reply on Jan 2, 2004 11:08 AM by vijayshrivastava

    Jetspeed with JBoss/Tomcat Bundle

    doubtc1 Newbie

      Typically, people find that there is no problem getting Jetspeed up and running on a standalone Tomcat installation. Deploying it in the JBoss/Tomcat bundle in the expected manner (i.e. copy jetspeed.war to your deploy directory) results in an exception regarding finding the "PoolService" (assuming that you get past the undefined root context problem).

      Check out Werner Ramaeker's explanation and solution from his blog:

      http://www.shiftat.com/blog/page/werner/20021028

      It worked for me with jboss-3.2.1_tomcat-4.1.24 and jetspeed-1.4-b4. Thanks be to Werner.

        • 1. Re: Jetspeed with JBoss/Tomcat Bundle
          wilkerd1 Newbie

          Exactly how do you get past the "undefined root context" problem?

          • 2. Re: Jetspeed with JBoss/Tomcat Bundle
            wilkerd1 Newbie

            Followed the instructions on Werner Ramaeker's site and am still unable to run Jetspeed. The error I am getting now is:

            2003-06-04 15:04:01,040 ERROR [org.jboss.web.localhost.Engine] StandardContext[/jetspeed]: Servlet /jetspeed threw load() exception
            javax.servlet.ServletException: Error instantiating servlet class org.apache.turbine.Turbine
            at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:911)
            at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821)
            at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420)
            at org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
            at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
            at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
            at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
            at org.jboss.web.catalina.EmbeddedCatalinaService41.createWebContext(EmbeddedCatalinaService41.java:432)
            at org.jboss.web.catalina.EmbeddedCatalinaService41.performDeploy(EmbeddedCatalinaService41.java:306)
            at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:300)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:806)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
            at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
            at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
            at $Proxy3.deploy(Unknown Source)
            at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:435)
            at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:656)
            at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:261)
            at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)
            at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:1003)
            at $Proxy0.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:413)
            at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
            at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
            at $Proxy2.start(Unknown Source)
            at org.jboss.deployment.SARDeployer.start(SARDeployer.java:230)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:575)
            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:324)
            at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
            at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:325)
            at org.jboss.system.server.ServerImpl.start(ServerImpl.java:222)
            at org.jboss.Main.boot(Main.java:148)
            at org.jboss.Main$1.run(Main.java:381)
            at java.lang.Thread.run(Thread.java:536)
            2003-06-04 15:04:01,050 ERROR [org.jboss.web.localhost.Engine] ----- Root Cause -----
            java.lang.NoClassDefFoundError: org/apache/commons/configuration/Configuration
            at org.apache.turbine.Turbine.(Turbine.java:170)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
            at java.lang.Class.newInstance0(Class.java:296)
            at java.lang.Class.newInstance(Class.java:249)
            at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:902)
            at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821)
            at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420)
            at org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
            at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
            at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
            at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
            at org.jboss.web.catalina.EmbeddedCatalinaService41.createWebContext(EmbeddedCatalinaService41.java:432)
            at org.jboss.web.catalina.EmbeddedCatalinaService41.performDeploy(EmbeddedCatalinaService41.java:306)
            at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:300)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:806)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
            at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
            at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
            at $Proxy3.deploy(Unknown Source)
            at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:435)
            at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:656)
            at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:261)
            at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)
            at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:1003)
            at $Proxy0.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:413)
            at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
            at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
            at $Proxy2.start(Unknown Source)
            at org.jboss.deployment.SARDeployer.start(SARDeployer.java:230)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:575)
            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:324)
            at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
            at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:325)
            at org.jboss.system.server.ServerImpl.start(ServerImpl.java:222)
            at org.jboss.Main.boot(Main.java:148)
            at org.jboss.Main$1.run(Main.java:381)
            at java.lang.Thread.run(Thread.java:536)

            • 3. Re: Jetspeed with JBoss/Tomcat Bundle
              vijayshrivastava Newbie

              It seems like some of you have configured JetSpeed with JBoss. I am a new user facing some configuration problem. I am installing Jetspeed1.4 final release with Jboss3.2.3 on WindowsXP professional edition. I followed the instruction from http://www.shiftat.com/blog/comments/werner?anchor=running_jetspeed_on_jboss

              except I didn't found castor.jar in JBoss/deploy/lib so couldn't remove it.

              Afterwards Jboss doesn't finish startup completely. It hangs at starting Jetspeed. Following is the log.

              10:19:31,988 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss
              -3.2.3/server/default/deploy/jetspeed.ear/
              10:19:31,988 INFO [EARDeployer] Init J2EE application: file:/C:/jboss-3.2.3/ser
              ver/default/deploy/jetspeed.ear/
              10:19:32,175 INFO [EmbeddedTomcatService] deploy, ctxPath=/jetspeed, warUrl=fil
              e:/C:/jboss-3.2.3/server/default/deploy/jetspeed.ear/jetspeed.war/
              10:19:36,097 INFO [Engine] SingleSignOnContextConfig[/jetspeed]: Added certific
              ates -> request attribute Valve
              10:19:36,128 WARN [EmbeddedTomcatService] Unable to invoke setDelegate on class
              loader:org.jboss.web.tomcat.tc4.WebCtxLoader$ENCLoader@d9cbcb
              10:19:36,128 INFO [Engine] StandardManager[/jetspeed]: Seeding random number ge
              nerator class java.security.SecureRandom
              10:19:36,128 INFO [Engine] StandardManager[/jetspeed]: Seeding of random number
              generator has been completed
              10:19:36,128 INFO [Engine] StandardWrapper[/jetspeed:default]: Loading containe
              r servlet default
              10:19:36,441 INFO [STDOUT] Starting Apache Jetspeed Portal/1.4

              Any suggestions?

              Thanks,
              Vijay