14 Replies Latest reply on Nov 3, 2005 4:42 PM by Jacek Laskowski

    JBP 2.2 on 4.0.3 SP1

    dunks80 Newbie

      I'm writing this post with the full realization that JBP 2.2 is still in alpha. I've been checking the code out of cvs evey couple nights to see if I can get it to run on JBoss 4.0.3. I did get it going a couple weeks ago but then it's been broken because of the UserTransaction issues etc. I thought maybe with the SP1 it might deploy a little better but I'm still having problems.

      I guess the first question I have is should I even expect the code to work on 4.0.3 SP1? What version of JBoss AS is the JBP 2.2 code being developed on?

      The first problem I'm encountering is this exception at startup with the portal deployed as an exploded sar (created using 'ant explode' on the build script in the core folder)

      15:52:12,063 WARN [ServiceController] Problem starting service portal:policy=PortalPolicy,type=local
      java.lang.IllegalArgumentException: No transaction manager provided
       at org.jboss.portal.common.transaction.Transactions.applyBefore(Transactions.java:59)
       at org.jboss.portal.core.impl.container.TreeCacheAdapter.start(TreeCacheAdapter.java:117)
       at org.jboss.portal.core.impl.container.JBossTreeCacheContainer.startService(JBossTreeCacheContainer.java:53)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
       at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:181)
       at org.jboss.portal.common.system.AbstractJBossService.start(AbstractJBossService.java:73)
       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:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:960)
       at $Proxy0.start(Unknown Source)
      


      I can actually get by that one by going and doing a touch on the jboss-service.xml file in the META-INF directory of the portal. This of course redploys the portal and it seems to deploy fine. No exceptions. Though there are a number of lines in the log like this one
      15:55:19,169 INFO [PortalPolicyConfiguratorImpl] createPolicy for [null][portal:local/default.default.charset test.CharsetPortletWindow][[]][false]
      


      I debugged through the PortalPolicyConfiguratorImpl and 'null' in the logs is the appID. Not sure if that is supposed to be null or not. Which may be a lead into my next problem which is when I try to navigate to the portal I get the following exception
      java.lang.SecurityException: Not allowed to access portal resource: default [portal:global/default.default]
       org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:178)
       org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:24)
       org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:107)
       org.jboss.portal.core.aspects.controller.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:46)
       org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:24)
       org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:107)
       org.jboss.portal.core.aspects.controller.NavigationInterceptor.invoke(NavigationInterceptor.java:42)
       org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:24)
       org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:107)
       org.jboss.portal.server.invocation.Invocation.invoke(Invocation.java:141)
       org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:176)
       org.jboss.portal.core.CoreController.handle(CoreController.java:182)
       sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       java.lang.reflect.Method.invoke(Method.java:585)
       org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
       org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
       org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
       org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
       org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
       org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
       org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
       org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
       org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
       $Proxy198.handle(Unknown Source)
      


      So I'm wondering is there anything I can do to get the code to deploy yet? Thanks for the help.

        • 1. Re: JBP 2.2 on 4.0.3 SP1
          Dmitry Kobyleha Newbie

          I buld portal from cvs too, deploy to jboss-4.0.2 and got the same error...
          Who can explain this?

          • 2. Re: JBP 2.2 on 4.0.3 SP1
            Jacek Laskowski Newbie

            Hi,

            The Ant explode task was helping me at the time when Hibernate dialect for HSQL was not configured during the build. I had to make changes by hand and it made me crazy to unpack the portal sar every time. Funny to say, but as the task was committed, it wasn't actually necessary any longer because of some changes at that time that made it work. It was something with Hibernate that could know what dialect to use or so (ask Julien for more explanation)

            Having said that, you don't need the explode task any longer and just checked that JBP 2.2 built from today's sources worked properly on JBoss AS 4.0.3SP1. The issue with UserTransaction not being found was with a bug introduced in Hibernate used in JBoss AS 4.0.3 and was described in http://www.jboss.org/?module=bb&op=viewtopic&t=71117 and http://www.jboss.org/?module=bb&op=viewtopic&t=70599.

            I don't know why the home page of the portal application - http://localhost:8080/portal doesn't show the page referenced by http://localhost:8080/portal/local/default/default. That's another story, though (possibly a bug).

            Jacek

            • 3. Re: JBP 2.2 on 4.0.3 SP1
              Dmitry Kobyleha Newbie

              What I do:

              1. Install clear jboss-4.0.3SP1
              2. Checkout today version of portal from cvs.
              3. Set JBOSS_HOME
              4. Use command 'set ANT_OPTS=-Xmx500M'
              5. Use command 'ant deploy' in /build dir -> got BUILD SUCCESSFUL
              6. Copy portal-hsqldb-ds.xml from '.../core/output/resources/setup' to '.../server/default/deploy'
              7. Start jboss and have this error in console:

              --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
              ObjectName: portal:policy=PortalPolicy,type=local
               State: FAILED
               Reason: java.lang.IllegalArgumentException: No transaction manager provided
               I Depend On:
               portal:service=ContainerRegistry
               portal:service=TreeCacheProvider,type=local
               portal:service=ServerConfig
               Depends On Me:
               portal:container=PortalObject,type=global
               portal:controller=Request
               portal:deploymentFactory=Portal
              
              
              16:57:00,238 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
              16:57:00,363 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
              16:57:00,379 INFO [JkMain] Jk running ID=0 time=0/47 config=null
              16:57:00,379 INFO [Server] JBoss (MX MicroKernel) [4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 date=200510231751)] Started in 37s:6
              91ms
              


              If I try to go to http://localhost:8080/portal/ I see

              java.lang.IllegalArgumentException: Cannot invoke with a null interceptor stack
              org.jboss.portal.server.invocation.Invocation.invoke(Invocation.java:127)
              org.jboss.portal.server.impl.ServerImpl.invoke(ServerImpl.java:63)
              sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              ...
              


              What I need to do else to get worked copy of portal?

              Thanks for responses.
              Dmitry.

              • 4. Re: JBP 2.2 on 4.0.3 SP1
                Marcel Odendahl Newbie

                Hi,

                I get the same exception like koba.

                java.lang.IllegalArgumentException: Cannot invoke with a null interceptor stack
                org.jboss.portal.server.invocation.Invocation.invoke(Invocation.java:127)
                org.jboss.portal.server.impl.ServerImpl.invoke(ServerImpl.java:63)
                sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                ...
                


                I made a clean checkout from the cvs and build it from the build directory.
                After deploying the sar file to the jboss in version 4.0.3SP1 and 4.0.2 I get the
                same exception in both versions.
                What do I wrong? Is there a trick to build an run jbp 2.2?

                Best regards,

                Marcel.

                • 5. Re: JBP 2.2 on 4.0.3 SP1
                  Woodler Expert

                  the

                  java.lang.SecurityException: Not allowed to access portal resource: default [portal:global/default.default]
                  org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInter
                  ceptor.java:178)
                  


                  after a redeploy is a known issue that I'm working on. Basically the Policy and the PolicyConfiguration are no longer in synch after a redeploy due to some static memeber vars in the PolicyConfigurator.
                  I run the current 2.2 cvs HEAD against 4.0.3 final and see some UserTransaction Not Found on startup, but the portal works fine for me despite those. There is a post by Julien somewhere on this forum that explains where the stach trace comes from (Hibernate version I believe)


                  • 6. Re: JBP 2.2 on 4.0.3 SP1
                    Jacek Laskowski Newbie

                    Hi Martin,

                    The UserTransaction not found issue is gone on JBoss AS 4.0.3SP1.

                    Jacek

                    • 7. Re: JBP 2.2 on 4.0.3 SP1
                      Jacek Laskowski Newbie

                      Hi,

                      "koba" wrote:
                      What I do:

                      1. Install clear jboss-4.0.3SP1
                      2. Checkout today version of portal from cvs.
                      3. Set JBOSS_HOME
                      4. Use command 'set ANT_OPTS=-Xmx500M'
                      5. Use command 'ant deploy' in /build dir -> got BUILD SUCCESSFUL
                      6. Copy portal-hsqldb-ds.xml from '.../core/output/resources/setup' to '.../server/default/deploy'
                      7. Start jboss and have this error in console:


                      Just checked out the sources and run successfully on JBoss AS 4.0.3SP1 without any troubles. Here's what I did:

                      1. Installed JBAS 4.0.3SP1 (binary distro)
                      2. Copied server/default to server/portal to be able to wipe it out easily and not clattering the default directory
                      3. export ANT_OPTS=-Xmx640m (it was the tricky part on Cygwin when I followed your instructions ;))
                      4. ant -Dportal.deploy.dir=portal -f build/build.xml clean deploy
                      5. Deployed portal-hsqldb-ds.xml (copied it to server/portal/deploy dir)

                      <?xml version="1.0" encoding="UTF-8"?>
                      <datasources>
                       <local-tx-datasource>
                       <jndi-name>PortalDS</jndi-name>
                       <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}portal${/}hypersonic${/}database</connection-url>
                       <driver-class>org.hsqldb.jdbcDriver</driver-class>
                       <user-name>sa</user-name>
                       <password>[CDATA[]]</password>
                       </local-tx-datasource>
                      </datasources>
                      


                      6. ~/c/apps/jboss/bin/run.sh -c portal

                      I work with Java 5 on Cygwin (MS Windows XP). With a minor exception about missing /images/bookmark.gif, it worked with no visible issues.

                      Where should I put it as a reference for others - JBP Wiki?

                      Jacek

                      • 8. Re: JBP 2.2 on 4.0.3 SP1
                        dunks80 Newbie

                        I'm on Fedora Core 4, fresh JBoss 4.0.3SP1 binary, jdk 1.5.0_04...

                        Followed these directions exactly...


                        1. Installed JBAS 4.0.3SP1 (binary distro)
                        2. Copied server/default to server/portal to be able to wipe it out easily and not clattering the default directory
                        3. export ANT_OPTS=-Xmx640m (it was the tricky part on Cygwin when I followed your instructions ;))
                        4. ant -Dportal.deploy.dir=portal -f build/build.xml clean deploy
                        5. Deployed portal-hsqldb-ds.xml (copied it to server/portal/deploy dir)


                        It builds and deploys to the "portal" server instance. I start that instance up using run.sh -c portal again i get this exception during startup

                        07:02:50,020 WARN [ServiceController] Problem starting service portal:policy=PortalPolicy,type=local
                        java.lang.IllegalArgumentException: No transaction manager provided
                         at org.jboss.portal.common.transaction.Transactions.applyBefore(Transactions.java:59)
                         at org.jboss.portal.core.impl.container.TreeCacheAdapter.start(TreeCacheAdapter.java:117)
                         at org.jboss.portal.core.impl.container.JBossTreeCacheContainer.startService(JBossTreeCacheContainer.java:53)
                         at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
                         at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:181)
                         at org.jboss.portal.common.system.AbstractJBossService.start(AbstractJBossService.java:73)
                         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:585)
                         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                         at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
                         at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                         at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
                         at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                         at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:960)
                         at $Proxy0.start(Unknown Source)
                         at org.jboss.system.ServiceController.start(ServiceController.java:428)
                         at org.jboss.system.ServiceController.start(ServiceController.java:446)
                         at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
                         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                         at java.lang.reflect.Method.invoke(Method.java:585)
                         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                         at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
                         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
                         at $Proxy4.start(Unknown Source)
                         at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
                         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
                         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
                         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
                         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:585)
                         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                         at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
                         at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                         at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
                         at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
                         at $Proxy6.deploy(Unknown Source)
                         at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
                         at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
                         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
                         at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:265)
                         at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
                         at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
                         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:585)
                         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                         at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
                         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                         at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
                         at $Proxy0.start(Unknown Source)
                         at org.jboss.system.ServiceController.start(ServiceController.java:428)
                         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:585)
                         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                         at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
                         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
                         at $Proxy4.start(Unknown Source)
                         at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
                         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
                         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
                         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
                         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)
                         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:585)
                         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                         at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
                         at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                         at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
                         at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
                         at $Proxy5.deploy(Unknown Source)
                         at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:453)
                         at org.jboss.system.server.ServerImpl.start(ServerImpl.java:330)
                         at org.jboss.Main.boot(Main.java:187)
                         at org.jboss.Main$1.run(Main.java:438)
                         at java.lang.Thread.run(Thread.java:595)
                        
                        


                        and the portal does not deploy complaining about the following...

                        06:55:46,156 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
                        
                        --- MBeans waiting for other MBeans ---
                        ObjectName: portal:policy=PortalPolicy,type=local
                         State: FAILED
                         Reason: java.lang.IllegalArgumentException: No transaction manager provided
                         I Depend On:
                         portal:service=ContainerRegistry
                         portal:service=TreeCacheProvider,type=local
                         portal:service=ServerConfig
                         Depends On Me:
                         portal:container=PortalObject,type=global
                         portal:controller=Request
                         portal:deploymentFactory=Object
                        
                        ObjectName: portal:container=PortalObject,type=global
                         State: CONFIGURED
                         I Depend On:
                         portal:service=ListenerRegistry
                         portal:service=ContainerRegistry
                         portal:service=Hibernate,type=globalportal
                         portal:policy=PortalPolicy,type=local
                         Depends On Me:
                         portal:mapper=DefaultPortal
                         portal:mapper=PortalObject,type=global
                         portal:deployer=PortalWebApp
                         portal:deploymentFactory=Object
                        
                        ObjectName: portal:mapper=DefaultPortal
                         State: CONFIGURED
                         I Depend On:
                         portal:mapper=PrefixDelegating
                         portal:container=PortalObject,type=global
                         Depends On Me:
                         portal:controller=Request
                        
                        ObjectName: portal:mapper=PortalObject,type=global
                         State: CONFIGURED
                         I Depend On:
                         portal:mapper=PrefixDelegating
                         portal:container=PortalObject,type=global
                        
                        ObjectName: portal:controller=Request
                         State: CONFIGURED
                         I Depend On:
                         portal:service=PageService
                         portal:mapper=DefaultPortal
                         portal:policy=PortalPolicy,type=local
                         Depends On Me:
                         portal:service=Server
                        
                        ObjectName: portal:service=Server
                         State: CONFIGURED
                         I Depend On:
                         portal:service=ServerConfig
                         portal:controller=Request
                         portal:service=ContainerRegistry
                         Depends On Me:
                         portal:deployer=PortalWebApp
                        
                        ObjectName: portal:deployer=PortalWebApp
                         State: CONFIGURED
                         I Depend On:
                         jboss.system:service=MainDeployer
                         portal:container=PortalObject,type=global
                         portal:container=Instance,type=global
                         portal:service=Server
                         Depends On Me:
                         portal:deploymentFactory=Object
                         portal:deploymentFactory=PortletApp
                         portal:deploymentFactory=Layout
                         portal:deploymentFactory=LayoutFeatures
                         portal:deploymentFactory=Theme
                         portal:deployer=Adapter
                        
                        ObjectName: portal:deploymentFactory=Object
                         State: CONFIGURED
                         I Depend On:
                         portal:deployer=PortalWebApp
                         portal:container=PortalObject,type=global
                         portal:container=Instance,type=global
                         portal:policy=PortalPolicy,type=local
                         Depends On Me:
                         portal:deployer=Adapter
                        
                        ObjectName: portal:deploymentFactory=PortletApp
                         State: CONFIGURED
                         I Depend On:
                         portal:deployer=PortalWebApp
                         portal:service=ContainerRegistry
                         Depends On Me:
                         portal:deployer=Adapter
                        
                        ObjectName: portal:deploymentFactory=Layout
                         State: CONFIGURED
                         I Depend On:
                         portal:deployer=PortalWebApp
                         portal:service=LayoutService
                         Depends On Me:
                         portal:deployer=Adapter
                        
                        ObjectName: portal:deploymentFactory=LayoutFeatures
                         State: CONFIGURED
                         I Depend On:
                         portal:deployer=PortalWebApp
                         portal:service=LayoutService
                         Depends On Me:
                         portal:deployer=Adapter
                        
                        ObjectName: portal:deploymentFactory=Theme
                         State: CONFIGURED
                         I Depend On:
                         portal:deployer=PortalWebApp
                         portal:service=ThemeService
                         Depends On Me:
                         portal:deployer=Adapter
                        
                        ObjectName: portal:deployer=Adapter
                         State: CONFIGURED
                         I Depend On:
                         portal:deploymentFactory=Object
                         portal:deploymentFactory=PortletApp
                         portal:deploymentFactory=Layout
                         portal:deploymentFactory=LayoutFeatures
                         portal:deploymentFactory=Theme
                         portal:deployer=PortalWebApp
                         jboss.web:service=WebServer
                         portal:service=Module,type=User
                         portal:service=Module,type=Role
                         portal:service=Module,type=Mail
                        
                        --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
                        ObjectName: portal:policy=PortalPolicy,type=local
                         State: FAILED
                         Reason: java.lang.IllegalArgumentException: No transaction manager provided
                         I Depend On:
                         portal:service=ContainerRegistry
                         portal:service=TreeCacheProvider,type=local
                         portal:service=ServerConfig
                         Depends On Me:
                         portal:container=PortalObject,type=global
                         portal:controller=Request
                         portal:deploymentFactory=Object
                        


                        I run the touch command on jboss-portal.sar so that it redeploys and all seems to go well until i try to access the portal through my browser and I get the following error

                        06:57:02,731 ERROR [[PortalServletWithPathMapping]] Servlet.service() for servlet PortalServletWithPathMapping threw exception
                        java.lang.SecurityException: Not allowed to access portal resource: default [portal:global/default.default]
                         at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:170)
                         at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:24)
                         at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:107)
                         at org.jboss.portal.core.aspects.controller.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:46)
                         at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:24)
                         at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:107)
                         at org.jboss.portal.core.aspects.controller.NavigationInterceptor.invoke(NavigationInterceptor.java:42)
                         at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:24)
                         at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:107)
                         at org.jboss.portal.server.invocation.Invocation.invoke(Invocation.java:141)
                         at org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:176)
                         at org.jboss.portal.core.CoreController.handle(CoreController.java:182)
                         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:585)
                         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                         at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
                         at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                         at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
                         at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
                         at $Proxy128.handle(Unknown Source)
                         at org.jboss.portal.server.aspects.server.ControllerInterceptor.invoke(ControllerInterceptor.java:38)
                         at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:24)
                         at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:107)
                         at org.jboss.portal.server.aspects.server.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:52)
                         at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:24)
                         at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:107)
                         at org.jboss.portal.core.aspects.server.LocaleInterceptor.invoke(LocaleInterceptor.java:55)
                         at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:24)
                         at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:107)
                         at org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:159)
                         at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:24)
                         at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:107)
                         at org.jboss.portal.server.aspects.server.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:71)
                         at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:24)
                         at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:107)
                         at org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java:59)
                         at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:24)
                         at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:107)
                         at org.jboss.portal.server.invocation.Invocation.invoke(Invocation.java:141)
                         at org.jboss.portal.server.impl.ServerImpl.invoke(ServerImpl.java:63)
                         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:585)
                         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                         at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
                         at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                         at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
                         at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                         at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:273)
                         at $Proxy151.invoke(Unknown Source)
                         at org.jboss.portal.server.servlet.PortalServlet.invoke(PortalServlet.java:169)
                         at org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:155)
                         at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
                         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
                         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
                         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
                         at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
                         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
                         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:407)
                         at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
                         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
                         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
                         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
                         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
                         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
                         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
                         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
                         at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
                         at java.lang.Thread.run(Thread.java:595)
                        
                        



                        Jacek you're not seeing any of these issues? Sounds like it's working under windows but not Linux?

                        • 9. Re: JBP 2.2 on 4.0.3 SP1
                          Dmitry Kobyleha Newbie

                          Hi.

                          I use Windows XP, JBoss 4.0.3SP1 binary (innstalled as 'default' profile), jdk 1.5.0_04, today cvs checkout.

                          I try to do all like jlaskowski say and have errors like Dunks describe too.


                          • 10. Re: JBP 2.2 on 4.0.3 SP1
                            Jacek Laskowski Newbie

                            Hi,

                            Hmmm, that's really strange. Although I could simply say there's an issue on Linux Fedora Core (dunks' setup), but koba seems to have the issue on Windows, too. I can however see a difference between the configuration of mine and koba's. Is there a reason that you've installed JBAS using the configurator rather than binary distro as a zip package? Also, could you please check out JBAS version - is it really 4.0.3SP1?

                            Jacek

                            • 11. Re: JBP 2.2 on 4.0.3 SP1
                              Dmitry Kobyleha Newbie


                              Thanx for point me. Now all work!

                              Now I see that jboss-portal-2.2 doesn't work on jboss server installed from jboss-4.0.3SP1-installer.jar and all ok on jboss server unpacked from jboss-4.0.3SP1.zip.

                              • 12. Re: JBP 2.2 on 4.0.3 SP1
                                dunks80 Newbie

                                Whoa I am using JBoss As from the installer too. I'll try the binary zip and let you know. Thanks!

                                • 13. Re: JBP 2.2 on 4.0.3 SP1
                                  dunks80 Newbie

                                  Yep works for me now too. So what's wrong with the 4.0.3SP1 installer?

                                  • 14. Re: JBP 2.2 on 4.0.3 SP1
                                    Jacek Laskowski Newbie

                                    Hi dunks,

                                    I don't know, but the general rule of mine is to keep the system polution as low as possible and choose to install a binary over installer version. That way I can completely control the installation process and installation/uninstallation is very simple - unpack/remove a binary distro.

                                    I think you'll need to report it in JBAS mailing lists as (unless I'm mistaken) it doesn't apply to JBP in any way.

                                    Jacek