10 Replies Latest reply on Jan 11, 2006 5:44 PM by Viet

    portal 2.2 deployement warning/error

    cpage cpage Novice

      hi,
      I try to deploy the new version of jboss portal (2.2), with Jboss AS 4.03 RC2.

      I have no error in the log, just warning which tells :

      [PortalDeployment] Cannot create portal object because the parent that the deployment descriptor references does not exist
      


      previous version worked fine.

      the file ../portal-sar/conf/data/default-objects.xml is like that :

      <?xml version="1.0" encoding="UTF-8"?>
      
      <deployments>
      
       <deployment>
      
       <parent-ref/>
      
       <if-exists>keep</if-exists>
      
       <portal>
      
       <portal-name>default</portal-name>
      
       <properties>
      ...


      I just can access to the portal/auth page but i can't log or access to the portal page.

      thanjs for help !

      regards.
      Lionel


        • 1. Re: portal 2.2 deployement warning/error
          Roy Russo Master

          1. Start with a clean DB.
          2. Wipe out your /tmp, /work, and /data/portal

          That descriptor hasn't changed, to my knowledge.. only where it resides.

          When you login, do you get an error?

          • 2. Re: portal 2.2 deployement warning/error
            cpage cpage Novice

            hi,

            1) with jmx-console, i've destroyed and recreate the DB
            2) wipe out the 3 dir.

            I still have this problem:

            09:51:42,226 WARN [PortalDeployment] Cannot create portal object because the parent that the deployment descriptor references does not exist
            09:51:42,231 WARN [PortalDeployment] Cannot create portal object because the parent default that the deployment descriptor references does not exist
            09:51:42,236 WARN [PortalDeployment] Cannot create portal object because the parent default that the deployment descriptor references does not exist
            09:51:42,241 WARN [PortalDeployment] Cannot create portal object because the parent default.default that the deployment descriptor references does not exist
            09:51:42,250 WARN [PortalDeployment] Cannot create portal object because the parent default.CMS Manager that the deployment descriptor references does not exist
            09:51:44,903 WARN [PortalDeployment] Cannot create portal object because the parent default that the deployment descriptor references does not exist


            seems like it doesn't like the default-objects.xml :p

            i can go to the login page (/portal/auth) and log in, but no error are raised. and I get a blank page.


            in the log, I've these errors before, with tomcat:
            and some warnings.

            09:51:10,734 ERROR [JBossCacheService] jboss.cache:service=TomcatClusteringCache service to Tomcat clustering not found
            09:51:10,734 ERROR [JBossCacheManager] JBossCacheService to Tomcat clustering not found
            09:51:10,735 ERROR [TomcatDeployer] Failed to setup clustering, clustering disabled


            09:51:35,256 WARN [Configurator] No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/usr/jboss/server/default/tmp/deploy/tmp62193ehcache.jar!/ehcache-failsafe.xml
            09:51:35,460 WARN [EhCacheProvider] Could not find configuration [org.jboss.portal.core.security.store.SecurityPolicy]; using defaults.
            09:51:35,899 WARN [EhCacheProvider] Could not find configuration [org.jboss.portal.core.security.store.HbmSecurityConstraint]; using defaults.
            09:51:36,133 WARN [EhCacheProvider] Could not find configuration [org.hibernate.cache.UpdateTimestampsCache]; using defaults.


            09:51:40,093 WARN [EhCacheProvider] Could not find configuration [org.jboss.portal.core.impl.role.RoleImpl]; using defaults.
            09:51:40,361 WARN [EhCacheProvider] Could not find configuration [org.jboss.portal.core.impl.user.PreferenceImpl]; using defaults.
            09:51:40,502 WARN [EhCacheProvider] Could not find configuration [org.jboss.portal.core.impl.user.UserImpl]; using defaults.
            09:51:40,674 WARN [EhCacheProvider] Could not find configuration [org.jboss.portal.core.impl.user.PreferencesImpl]; using defaults.
            09:51:40,725 WARN [EhCacheProvider] Could not find configuration [org.jboss.portal.core.impl.user.PreferencesGroupImpl]; using defaults.
            09:51:40,763 WARN [EhCacheProvider] Could not find configuration [org.jboss.portal.core.impl.user.UserImpl.dynamic]; using defaults.
            09:51:40,772 WARN [EhCacheProvider] Could not find configuration [org.jboss.portal.core.impl.role.RoleImpl.users]; using defaults.
            09:51:40,774 WARN [EhCacheProvider] Could not find configuration [org.jboss.portal.core.impl.user.PreferencesImpl.content]; using defaults.
            09:51:40,777 WARN [EhCacheProvider] Could not find configuration [org.jboss.portal.core.impl.user.PreferenceImpl.strings]; using defaults.
            09:51:40,780 WARN [EhCacheProvider] Could not find configuration [org.jboss.portal.core.impl.user.PreferencesGroupImpl.prefMap]; using defaults.
            09:51:40,782 WARN [EhCacheProvider] Could not find configuration [org.jboss.portal.core.impl.user.UserImpl.roles]; using defaults.



            thanks for help,
            best regards.



            • 3. Re: portal 2.2 deployement warning/error
              Viet Master

              it looks like the context entry does not exist in the database which is strange as it is create during the startup if it does not exist.

              the warn for tomcat and ehcache are not important.

              • 4. Re: portal 2.2 deployement warning/error
                neeraj_tiwari Newbie

                I am getting the same warning:
                WARN [org.jboss.portal.core.deployment.jboss.ObjectDeployment] Cannot create portal object null because the parent HelloPortal that the deployment descriptor references does not exist

                When I booted up for the first time I did see multiple SQL exceptions. The database tables were created though.
                2005-12-22 15:16:30,016 DEBUG [org.hibernate.util.JDBCExceptionReporter] could not execute query [select hbmsecurit0_.PK as PK21_, hbmsecurit0_.ROLE as ROLE21_, hbmsecurit0_.ACTIONS as ACTIONS21_ from JBP_SECURITY_CONSTRAINT hbmsecurit0_]
                java.sql.SQLException: ORA-00942: table or view does not exist


                I have tried with Oracle9i and Oracle10g, with the same result. I can get to the login page but get a 404 error after logging in. No exceptions are thrown in server logs.
                I can run fine with hypersonic database, think its a compatibility issue with Oracle9i\10g.

                • 5. Re: portal 2.2 deployement warning/error
                  cpage cpage Novice

                  i think it's a problem with hibernate, oracle and the CLOBs

                  is anybody succeed with a combination Oracle 9i / JBP2.2 ?

                  thanks.

                  • 6. Re: portal 2.2 deployement warning/error
                    Daniel Miklancic Newbie

                    I am suffering the same issue.

                    I have tried the 2.2 bundled version ... HSQL works ... switching to Oracle 9i fails.

                    I have tried the ejb3.0 setup using installer followed by portal 2.2 ... with HSQL it works ... with Oracle 9i it fails.

                    I have tried 2.2 bundled version with ejb3.0 installed ... HSQL works ... Oracle 9i fails.

                    I all cases, I completely reset the environment, tables, tmp, work directories, etc.

                    Has anyone succeeded with Oracle 9i and portal 2.2?

                    • 7. Re: portal 2.2 deployement warning/error
                      Gloria Martinez Newbie

                      Hi every one! i have the same problem.. i try all the way without success..
                      i see in http://jira.jboss.com one issue.. and one of them i see "portal-api.jar" that have to be on JBOSS_HOME/server/default/lib.. but i don't have in any directories!!
                      will be that is the problem???
                      i search to download but i can not find yet..
                      if anyone find please let me now to i can download too..
                      regards
                      glodo

                      • 8. Re: portal 2.2 deployement warning/error
                        pmn92 Novice

                        use the "if-exists" deployment xml tag with caution. You should always use "overwrite" at least until you got something working, otherwise any error becomes persistent.

                        Hope this helps!

                        Philippe

                        • 9. Re: portal 2.2 deployement warning/error
                          Viet Master

                          This has been fixed in the 2.2 branch of the portal. It seems that there are still some issues with the CMS hibernate using oracle.

                          http://jira.jboss.com/jira/browse/JBPORTAL-559

                          I'll close the task when I will have ported the fix to 2.4.

                          • 10. Re: portal 2.2 deployement warning/error
                            Viet Master

                            So the CMS has still issues with oracle (bug logged here http://jira.jboss.com/jira/browse/JBPORTAL-560) and by default I put the CMS to use the filesystem.