5 Replies Latest reply on May 30, 2006 3:30 PM by Arun Batchu

    cannot access default context

    Dan Trevino Newbie

      on MySQL 5.0.19, AS 4.0.4 CR2, and Portal 2.2.1 I get:

      20:58:01,185 INFO [PersistentPortalObjectContainer] Created portal object root context
      20:58:01,337 WARN [ObjectDeployment] Cannot create portal object Portal[default] because the parent '' that the deployment descriptor references does not exist20:58:01,350 WARN [ObjectDeployment] Cannot create portal object Page[CMS Manager] because the parent 'default' that the deployment descriptor references does not exist
      20:58:01,360 WARN [ObjectDeployment] Cannot create portal object Page[management] because the parent 'default' that the deployment descriptor references does not exist
      20:58:01,366 WARN [ObjectDeployment] Cannot create portal object Page[Secure Policy Config] because the parent 'default.default' that the deployment descriptor references does not exist
      20:58:01,372 WARN [ObjectDeployment] Cannot create portal object Window[CatalogPortletWindow] because the parent 'default.CMS Manager' that the deployment descriptor references does not exist
      20:58:02,172 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
      20:58:02,301 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
      
      --- MBeans waiting for other MBeans ---
      ObjectName: portal:policy=PortalPolicyConfigStore,type=Component
       State: FAILED
       Reason: java.lang.IllegalArgumentException: No transaction manager provided
       I Depend On:
       portal:policy=JaccPortalPolicyConfigurator
       portal:service=TreeCacheProvider,type=transient
       portal:policy=PortalPolicyConfigService
       Depends On Me:
       portal:deploymentFactory=PortletApp
      
      ObjectName: portal:deploymentFactory=PortletApp
       State: CONFIGURED
       I Depend On:
       portal:deployer=PortalWebApp
       portal:service=WebAppRegistry
       portal:service=ServerConfig
       portal:policy=PortalPolicyConfigStore,type=Component
       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:service=Module,type=User
       portal:service=Module,type=Role
       portal:service=Module,type=Mail
       portal:deployer=PortalWebApp
       jboss.web:service=WebServer
      
      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: portal:policy=PortalPolicyConfigStore,type=Component
       State: FAILED
       Reason: java.lang.IllegalArgumentException: No transaction manager provided
       I Depend On:
       portal:policy=JaccPortalPolicyConfigurator
       portal:service=TreeCacheProvider,type=transient
       portal:policy=PortalPolicyConfigService
       Depends On Me:
       portal:deploymentFactory=PortletApp
      


      and when accessing http://localhost:8080/portal, I get:

      20:58:41,620 ERROR [CoreController] Object not found
      org.jboss.portal.core.ObjectNotFoundException: Not allowed to access resourceDefault context does not exist
       at org.jboss.portal.core.model.portal.DefaultPortalCommandMapper.doMapping(DefaultPortalCommandMapper.java:89)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
      ...
      


      Can someone point me in a direction?


        • 1. Re: cannot access default context
          Jay Farhat Newbie

          I am getting the same errors using mysql 5.0.20a and portal 2.2.1RC3. Mysql database name, userid and password are as specified within the installation document and I used portal-mysql-ds.xml without modification.

          Help is greatly appreciated.

          Jay

          • 2. Re: cannot access default context
            Krzysztof Samplawski Newbie

            Maybe the cause is the error below, which I have noticed at the beginning of my log file, far before the "No transaction manager provided" error.

            2006-05-26 23:33:58,421 DEBUG [org.jboss.system.ServiceCreator] About to create xmbean object: portal:service=SecurityProvider with code: org.jboss.portal.security.impl.jacc.JBossSecurityProviderImpl with embedded descriptor
            2006-05-26 23:33:58,452 DEBUG [org.jboss.mx.server.AbstractMBeanInvoker] Setter not found: setObjectName(class javax.management.ObjectName)
            java.lang.NoSuchMethodException: org.jboss.portal.security.impl.jacc.JBossSecurityProviderImpl.setObjectName(javax.management.ObjectName)
            at java.lang.Class.getMethod(Class.java:1581)
            at org.jboss.mx.server.AbstractMBeanInvoker.inject(AbstractMBeanInvoker.java:948)
            at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInvoker.java:662)
            at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:697)
            at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:211)
            at sun.reflect.GeneratedMethodAccessor3.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:155)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
            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:659)
            at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1422)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1417)
            at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1350)
            at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:345)
            at org.jboss.system.ServiceCreator.install(ServiceCreator.java:181)
            at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449)
            at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
            at org.jboss.system.ServiceController.install(ServiceController.java:226)
            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:155)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
            at $Proxy4.install(Unknown Source)
            at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
            at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
            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:155)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
            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:659)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
            at $Proxy6.deploy(Unknown Source)
            at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
            at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
            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:155)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
            at $Proxy0.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:417)
            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:155)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
            at $Proxy4.start(Unknown Source)
            at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
            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:155)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
            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:659)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
            at $Proxy5.deploy(Unknown Source)
            at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
            at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
            at org.jboss.Main.boot(Main.java:200)
            at org.jboss.Main$1.run(Main.java:464)
            at java.lang.Thread.run(Thread.java:595)

            • 3. Re: cannot access default context
              Krzysztof Samplawski Newbie

              Some digging and this is the cure: you need to modify jboss-portal.sar/META-INF/jboss-service.xml and add
              jboss:service=TransactionManager
              to


              for me it has helped.
              Thou next error has emerged, so i had to copy
              jboss-portal.sar/conf/theme/portal-layout.tld
              to
              jboss-portal.sar/portal-serwer.war/WEB-INF/theme/portal-layout.tld
              but it helped only a little - it showed me login page, but without any colors/styles, and i couldnt log in with standard user and admin accounts. Trying further .....

              • 4. Re: cannot access default context
                Krzysztof Samplawski Newbie

                Some digging and this is the cure: you need to modify jboss-portal.sar/META-INF/jboss-service.xml and add

                <depends>jboss:service=TransactionManager</depends>
                to
                <mbean
                code="org.jboss.cache.TreeCache"
                name="portal:service=TreeCache,type=persistent">

                for me it has helped.
                Thou next error has emerged, so i had to copy
                jboss-portal.sar/conf/theme/portal-layout.tld
                to
                jboss-portal.sar/portal-serwer.war/WEB-INF/theme/portal-layout.tld
                but it helped only a little - it showed me login page, but without any colors/styles, and i couldnt log in with standard user and admin accounts. Trying further .....



                • 5. Re: cannot access default context
                  Arun Batchu Newbie

                  Hello Folks,
                  I was getting the same problems and here are the steps that fixed them:
                  a) in the deploy directory, keep hsqldb-ds.xml. This defines a data source that some JCA adapters wanna use.
                  b) use mysql 4.1.2 - not 5.x
                  c) Change C:\jbossPortal\server\default\deploy\jboss-portal.sar\META-INF\jboss-service.xml to
                  (add the DefaultDS depends...its not there in the supplied config file)
                  <!-- Persistent cache for portal objeccts and instances security stores -->

                  jboss.jca:service=DataSourceBinding,name=PortalDS
                  jboss.jca:service=DataSourceBinding,name=DefaultDS