David, this is exactly what I see. This is caused by the fragments in the web-inf/pages/default-page.psml. It tries to load fragments from jetspeed-layouts and j2-admin portlet apps.
Now jetspeed-layouts is "hot-deployed" by including it in the web-inf/deploy dir. So that is not the actual problem even though it shows up in the stack trace below. The actual problem is with the j2-admin portlet app which gets deployed as a peer of jetspeed portal app. I verified this by commenting out the j2-admin fragments from default-page.psml but leaving the jetspeed-layout fragments as is. Now you get a blank page on the browser and no apparent stacktrace. Cheers Prasad On Jan 12, 2008 3:55 AM, David Jencks <[EMAIL PROTECTED]> wrote: > Hi Prasad, > > You've been busy here :-). Its great to see progress on integrating > jetspeed. > > I couldn't get it to work as well as you did and made a few changes: > > 1. update to released jetspeed 2.1.3 > 2. use the derby datasource in the JetspeedSeriaiizerGBean (this required > adjusting the gbean startup order so it starts after the tomcat web app > context, thus after spring is initialized) > 3. add a simple tomcat assembly including jetspeed so its easy to see what > we get :-). > > For me the server starts up without apparent errors. When I visit > http://localhost:8080/jetspeed/portal/ the browser shows: > > > Failed to retrieve Portlet Definition for > jetspeed-layouts::VelocityTwoColumns > > and I get stuff like this on the console: > > > 00:16:10,306 WARN [PersistenceBrokerPortletEntityAccess] Failed to retrieve > Portlet Definition for j2-admin::LocaleSelector > 00:16:10,318 WARN [PersistenceBrokerPortletEntityAccess] Failed to retrieve > Portlet Definition for j2-admin::LoginPortlet > 00:16:10,323 WARN [PersistenceBrokerPortletEntityAccess] Failed to retrieve > Portlet Definition for j2-admin::ForgottenPasswordPortlet > 00:16:10,326 WARN [PersistenceBrokerPortletEntityAccess] Failed to retrieve > Portlet Definition for j2-admin::UserRegistrationPortlet > 00:16:10,328 WARN [PersistenceBrokerPortletEntityAccess] Failed to retrieve > Portlet Definition for demo::WeatherPortlet > 00:16:10,331 WARN [PersistenceBrokerPortletEntityAccess] Failed to retrieve > Portlet Definition for demo::PickANumberPortlet > 00:16:10,333 WARN [PersistenceBrokerPortletEntityAccess] Failed to retrieve > Portlet Definition for demo::RoleSecurityTest > 00:16:10,336 WARN [PersistenceBrokerPortletEntityAccess] Failed to retrieve > Portlet Definition for demo::IFramePortlet > 00:16:10,339 WARN [PersistenceBrokerPortletEntityAccess] Failed to retrieve > Portlet Definition for demo::IFramePortlet > 00:16:10,341 WARN [PersistenceBrokerPortletEntityAccess] Failed to retrieve > Portlet Definition for demo::UserInfoTest > 00:16:10,343 WARN [PersistenceBrokerPortletEntityAccess] Failed to retrieve > Portlet Definition for demo::BookmarkPortlet > 00:16:10,344 WARN [PersistenceBrokerPortletEntityAccess] Failed to retrieve > Portlet Definition for jetspeed-layouts::VelocityTwoColumns > 00:16:10,347 WARN [PersistenceBrokerPortletEntityAccess] Failed to retrieve > Portlet Definition for j2-admin::LocaleSelector > 00:16:10,349 WARN [PersistenceBrokerPortletEntityAccess] Failed to retrieve > Portlet Definition for j2-admin::LoginPortlet > 00:16:10,351 WARN [PersistenceBrokerPortletEntityAccess] Failed to retrieve > Portlet Definition for j2-admin::ForgottenPasswordPortlet > 00:16:10,355 WARN [PersistenceBrokerPortletEntityAccess] Failed to retrieve > Portlet Definition for j2-admin::UserRegistrationPortlet > 00:16:10,358 WARN [PersistenceBrokerPortletEntityAccess] Failed to retrieve > Portlet Definition for demo::WeatherPortlet > 00:16:10,363 WARN [PersistenceBrokerPortletEntityAccess] Failed to retrieve > Portlet Definition for demo::PickANumberPortlet > 00:16:10,371 WARN [PersistenceBrokerPortletEntityAccess] Failed to retrieve > Portlet Definition for demo::RoleSecurityTest > 00:16:10,376 WARN [PersistenceBrokerPortletEntityAccess] Failed to retrieve > Portlet Definition for demo::IFramePortlet > 00:16:10,381 WARN [PersistenceBrokerPortletEntityAccess] Failed to retrieve > Portlet Definition for demo::IFramePortlet > 00:16:10,383 WARN [PersistenceBrokerPortletEntityAccess] Failed to retrieve > Portlet Definition for demo::UserInfoTest > 00:16:10,386 WARN [PersistenceBrokerPortletEntityAccess] Failed to retrieve > Portlet Definition for demo::BookmarkPortlet > 00:16:10,390 WARN [PersistenceBrokerPortletEntityAccess] Failed to retrieve > Portlet Definition for j2-admin::LocaleSelector > 00:16:10,421 WARN [JetspeedPortletContainerWrapper] Could not render > PortletWindowdp-3 as it has no PortletDefintion defined. > 00:16:10,427 WARN [PersistenceBrokerPortletEntityAccess] Failed to retrieve > Portlet Definition for j2-admin::LoginPortlet > 00:16:10,429 WARN [JetspeedPortletContainerWrapper] Could not render > PortletWindowdp-12 as it has no PortletDefintion defined. > 00:16:10,446 WARN [PersistenceBrokerPortletEntityAccess] Failed to retrieve > Portlet Definition for j2-admin::ForgottenPasswordPortlet > 00:16:10,455 WARN [JetspeedPortletContainerWrapper] Could not render > PortletWindowdp-22 as it has no PortletDefintion defined. > 00:16:10,456 WARN [PersistenceBrokerPortletEntityAccess] Failed to retrieve > Portlet Definition for j2-admin::UserRegistrationPortlet > 00:16:10,458 WARN [JetspeedPortletContainerWrapper] Could not render > PortletWindowdp-23 as it has no PortletDefintion defined. > 00:16:10,461 WARN [PersistenceBrokerPortletEntityAccess] Failed to retrieve > Portlet Definition for demo::WeatherPortlet > 00:16:10,463 WARN [JetspeedPortletContainerWrapper] Could not render > PortletWindowdp-24 as it has no PortletDefintion defined. > 00:16:10,464 WARN [PersistenceBrokerPortletEntityAccess] Failed to retrieve > Portlet Definition for demo::PickANumberPortlet > 00:16:10,465 WARN [JetspeedPortletContainerWrapper] Could not render > PortletWindowdp-7 as it has no PortletDefintion defined. > 00:16:10,467 WARN [PersistenceBrokerPortletEntityAccess] Failed to retrieve > Portlet Definition for demo::RoleSecurityTest > 00:16:10,468 WARN [JetspeedPortletContainerWrapper] Could not render > PortletWindowdp-16 as it has no PortletDefintion defined. > 00:16:10,470 WARN [PersistenceBrokerPortletEntityAccess] Failed to retrieve > Portlet Definition for demo::IFramePortlet > 00:16:10,473 WARN [JetspeedPortletContainerWrapper] Could not render > PortletWindowdp-9 as it has no PortletDefintion defined. > 00:16:10,475 WARN [PersistenceBrokerPortletEntityAccess] Failed to retrieve > Portlet Definition for demo::IFramePortlet > 00:16:10,477 WARN [JetspeedPortletContainerWrapper] Could not render > PortletWindowdp-10 as it has no PortletDefintion defined. > 00:16:10,478 WARN [PersistenceBrokerPortletEntityAccess] Failed to retrieve > Portlet Definition for demo::UserInfoTest > 00:16:10,481 WARN [JetspeedPortletContainerWrapper] Could not render > PortletWindowdp-17 as it has no PortletDefintion defined. > 00:16:10,483 WARN [PersistenceBrokerPortletEntityAccess] Failed to retrieve > Portlet Definition for demo::BookmarkPortlet > 00:16:10,485 WARN [JetspeedPortletContainerWrapper] Could not render > PortletWindowdp-18 as it has no PortletDefintion defined. > 00:16:10,487 WARN [PersistenceBrokerPortletEntityAccess] Failed to retrieve > Portlet Definition for jetspeed-layouts::VelocityTwoColumns > 00:16:10,490 WARN [JetspeedPortletContainerWrapper] Could not render > PortletWindowdp-1 as it has no PortletDefintion defined. > > Is this similar to what you see or have I come up with a whole different set > of errors? > > thanks > david jencks > > > > On Jan 11, 2008, at 1:58 PM, Prasad Kashyap wrote: > > The work on integrating Jetspeed with Geronimo is currently in the sandbox. > http://svn.apache.org/viewvc/geronimo/sandbox/jetspeed-integration/ > > This is what the following modules do. > > jetspeed-base: > --------------------- > This module installs 5 common jetspeed jars into the G repository. > jetspeed-api-2.0.jar, jetspeed-commons-2.0.jar, pluto-1.0.1.jar, > portals-bridges-common-1.0.jar, portlet-api-1.0.jar, > derby-10.1.1.0.jar > > jetspeed-database: > ---------------------------- > This module carries SQL scripts for different DBs. These SQL scripts > are used to create DB tables and initialize them. > > jetspeed-derby-database: > ------------------------------------- > This is the CAR configuration for jetspeed's derby datasource. It > includes the connector module tranql-connector-embed-local.rar. It > invokes the o.a.g.connector.DatabaseInitializationGBean which executes > the derby SQL scripts that were carried in the above etspeed-database > module. > > jetspeed-geronimo: > ---------------------------- > This module carries and installs the jars for jetspeed's portal > runtime. It has the JetspeedSerializerGBean which will be used to > seed/populate the databases before the portal starts. > > jetspeed-tomcat: > ------------------------ > This is a configuration for Jetspeed portal application on Tomcat web > container. > It carries - > a) db-page-manager.xml, interceptor.xml and request-context.xml that > will be needed to seed some tables. > b) geronimo-datasource.xml which will be used by Spring to seed the tables. > c) j2-seed.xml which provide data for seeding the tables. > It invokes the JetspeedSerializerGBean from the above module which > uses a bunch of other xmls in the web-inf/assembly directory of the > jetspeed application to seed the tables. > > During the process-resources phase of building this configuration, the > j2-layouts.jar is dropped in the jetspeed app's web-inf/deploy dir. > Once the portal app starts running, it deploys the layouts > appropriately. > > jetspeed-builder: > ----------------------- > It has the JetspeedModuleBuilderExtension. > > jetspeed-deployer: > --------------------------- > Configuration for the above jetspeed-builder. > > Status: > ----------- > The jetspeed portal application starts up fine. > The j2-layouts portlet application seems to deploy fine when placed > under web-inf/deploy. > The j2-admin portlet app seems to deploy fine using the jetspped-deployer. > > However, accessing the portal app at http://localhost:8080/portal > returns a 500 error because the portal loads > web-inf/pages/default-pages.psml. This contains fragments from > j2-layouts and j2-admin portlet apps. The portal app cannot recognize > portlet apps under it. > > The portlet app deployed in this portal should have the portal > configuration as it's parent. But the portal app now cannot see the > child portlet app when it tries to load fragments from it. I *think* > this is what is happening. > > Also see the wiki page at > http://cwiki.apache.org/confluence/display/GMOxDEV/Integrating+Jetspeed+with+Geronimo > > Cheers > Prasad >
