You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Alan Chiang <al...@gmail.com> on 2006/02/14 20:56:50 UTC
Failed to retrieve Portlet Definition for jetspeed-layouts::VelocityTwoColumns
Hi list,
I've searched the old archives for a solution to this problem, and I've
tried the solutions listed here:
http://www.archivum.info/jetspeed-dev@jakarta.apache.org/2004-11/msg00043.html
They include using the quickStart goal, and checking if the portlet was
defined in my database.
I still come up with this error. Running on Tomcat 5.0.28, JDK 1.4.2_10,
Windows XP, Maven j2:portal.genapp sometime after Jan 1 2006
Here's a sample trace from the jetspeed.log:
2006-02-14 14:43:46,873 [http-8888-Processor25] INFO
org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl - No
portlet entity defined for fragment ID dp-3 attempting to auto-generate...
2006-02-14 14:43:46,883 [http-8888-Processor25] WARN
org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess-
Failed to retrieve Portlet Definition for j2-admin::LocaleSelector
2006-02-14 14:43:46,903 [http-8888-Processor25] WARN
org.apache.jetspeed.decoration.DecorationValve - Unable to initalize actions
for fragment dp-3
2006-02-14 14:43:46,923 [http-8888-Processor25] INFO
org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl - No
portlet entity defined for fragment ID dp-12 attempting to auto-generate...
2006-02-14 14:43:46,933 [http-8888-Processor25] WARN
org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess-
Failed to retrieve Portlet Definition for j2-admin::LoginPortlet
2006-02-14 14:43:46,953 [http-8888-Processor25] WARN
org.apache.jetspeed.decoration.DecorationValve - Unable to initalize actions
for fragment dp-12
2006-02-14 14:43:46,973 [http-8888-Processor25] INFO
org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl - No
portlet entity defined for fragment ID dp-22 attempting to auto-generate...
2006-02-14 14:43:46,983 [http-8888-Processor25] WARN
org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess-
Failed to retrieve Portlet Definition for
j2-admin::ForgottenPasswordPortlet
2006-02-14 14:43:47,003 [http-8888-Processor25] WARN
org.apache.jetspeed.decoration.DecorationValve - Unable to initalize actions
for fragment dp-22
2006-02-14 14:43:47,013 [http-8888-Processor25] INFO
org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl - No
portlet entity defined for fragment ID dp-23 attempting to auto-generate...
2006-02-14 14:43:47,053 [http-8888-Processor25] WARN
org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess-
Failed to retrieve Portlet Definition for
j2-admin::UserRegistrationPortlet
2006-02-14 14:43:47,073 [http-8888-Processor25] WARN
org.apache.jetspeed.decoration.DecorationValve - Unable to initalize actions
for fragment dp-23
2006-02-14 14:43:47,083 [http-8888-Processor25] INFO
org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl - No
portlet entity defined for fragment ID dp-7 attempting to auto-generate...
2006-02-14 14:43:47,093 [http-8888-Processor25] WARN
org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess-
Failed to retrieve Portlet Definition for demo::PickANumberPortlet
2006-02-14 14:43:47,133 [http-8888-Processor25] WARN
org.apache.jetspeed.decoration.DecorationValve - Unable to initalize actions
for fragment dp-7
2006-02-14 14:43:47,153 [http-8888-Processor25] INFO
org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl - No
portlet entity defined for fragment ID dp-16 attempting to auto-generate...
2006-02-14 14:43:47,163 [http-8888-Processor25] WARN
org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess-
Failed to retrieve Portlet Definition for demo::RoleSecurityTest
2006-02-14 14:43:47,183 [http-8888-Processor25] WARN
org.apache.jetspeed.decoration.DecorationValve - Unable to initalize actions
for fragment dp-16
2006-02-14 14:43:47,203 [http-8888-Processor25] INFO
org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl - No
portlet entity defined for fragment ID dp-9 attempting to auto-generate...
2006-02-14 14:43:47,224 [http-8888-Processor25] WARN
org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess-
Failed to retrieve Portlet Definition for demo::IFramePortlet
2006-02-14 14:43:47,244 [http-8888-Processor25] WARN
org.apache.jetspeed.decoration.DecorationValve - Unable to initalize actions
for fragment dp-9
2006-02-14 14:43:47,264 [http-8888-Processor25] INFO
org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl - No
portlet entity defined for fragment ID dp-17 attempting to auto-generate...
2006-02-14 14:43:47,274 [http-8888-Processor25] WARN
org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess-
Failed to retrieve Portlet Definition for demo::UserInfoTest
2006-02-14 14:43:47,294 [http-8888-Processor25] WARN
org.apache.jetspeed.decoration.DecorationValve - Unable to initalize actions
for fragment dp-17
2006-02-14 14:43:47,304 [http-8888-Processor25] INFO
org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl - No
portlet entity defined for fragment ID dp-18 attempting to auto-generate...
2006-02-14 14:43:47,324 [http-8888-Processor25] WARN
org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess-
Failed to retrieve Portlet Definition for demo::BookmarkPortlet
2006-02-14 14:43:47,354 [http-8888-Processor25] WARN
org.apache.jetspeed.decoration.DecorationValve - Unable to initalize actions
for fragment dp-18
2006-02-14 14:43:47,364 [http-8888-Processor25] INFO
org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl - No
portlet entity defined for fragment ID dp-1 attempting to auto-generate...
2006-02-14 14:43:47,384 [http-8888-Processor25] WARN
org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess-
Failed to retrieve Portlet Definition for
jetspeed-layouts::VelocityTwoColumns
2006-02-14 14:43:47,404 [http-8888-Processor25] WARN
org.apache.jetspeed.decoration.DecorationValve - Unable to initalize actions
for fragment dp-1
2006-02-14 14:43:47,414 [http-8888-Processor25] DEBUG
org.apache.jetspeed.aggregator.impl.PageAggregatorImpl - Rendering portlet
fragment: [[name, j2-admin::LocaleSelector], [id, dp-3]]
2006-02-14 14:43:47,434 [http-8888-Processor25] INFO
org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl - No
portlet entity defined for fragment ID dp-3 attempting to auto-generate...
2006-02-14 14:43:47,444 [http-8888-Processor25] WARN
org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess-
Failed to retrieve Portlet Definition for j2-admin::LocaleSelector
2006-02-14 14:43:47,474 [http-8888-Processor25] ERROR
org.apache.jetspeed.aggregator.impl.PortletRendererImpl -
java.lang.IllegalArgumentException: Cannot pass a null PortletDefinition to
a PortletEntity.
java.lang.IllegalArgumentException: Cannot pass a null PortletDefinition to
a PortletEntity.
at
org.apache.jetspeed.components.portletentity.PortletEntityImpl.setPortletDefinition
(PortletEntityImpl.java:380)
at
org.apache.jetspeed.components.portletentity.PortletEntityImpl.getPortletDefinition
(PortletEntityImpl.java:215)
at
org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl.createPortletWindow
(PortletWindowAccessorImpl.java:180)
<snip>
Will keep looking for a solution, but if anyone can provide some insight
that would be wonderful.
AC
Re: Failed to retrieve Portlet Definition for jetspeed-layouts::VelocityTwoColumns
Posted by Alan Chiang <al...@gmail.com>.
Seems like I erred when I said 2.1-dev did not work. I simply forgot to
war:install, so it kept deploying my old 2.0-based custom portal.
I can see the default login page now.
Thanks for all the suggestions!
AC
On 2/14/06, Alan Chiang <al...@gmail.com> wrote:
>
> Thanks Jacek,
>
> Seems like I just had to wait a bit, the VelocityTwoColumns error does
> not appear anymore. What does appear now is: Failed to find the Window
> Access on portlet initialization, with nothing more.
>
> I should note that I have not deployed any kind of custom portlets
> whatsoever. I'm simply attempting to deploy the vanilla jetspeed portal
> from a j2:portal.genapp, with 0 changes to the files (or some minimal ones
> to kick start it to work).
>
> Looking through the jetspeed.log, a lot of problems seem to come from
> j2-admin::<some_fragment>. It could possibly be that these fragments are
> not being registered properly in the database for whatever reason. I
> strongly believe this is reason, only because the VelocityTwoColumns error
> no longer appeared once the entry appeared in the PORTLET_ENTITY table. I
> am new to J2, so I'm not sure of the mechanism to load portlets and/or their
> fragments into the DB. I may also note that my connection to MySQL 4.x is
> present and working.
>
> I have also retried using 2.1-dev, no luck.
>
> Thanks!
>
> AC
>
> PS:
>
> DEBUG org.apache.jetspeed.portalsite.impl.PortalSiteSessionContextImpl -
> Selected folder historical page: path=/default-page.psml
> INFO org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl- No portlet entity defined for fragment ID dp-3 attempting to
> auto-generate...
> WARN
> org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess- Failed to retrieve Portlet Definition for j2-admin::LocaleSelector
> WARN org.apache.jetspeed.decoration.DecorationValve - Unable to initalize
> actions for fragment dp-3
> INFO org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl- No portlet entity defined for fragment ID dp-12 attempting to
> auto-generate...
> WARN
> org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess- Failed to retrieve Portlet Definition for j2-admin::LoginPortlet
> WARN org.apache.jetspeed.decoration.DecorationValve - Unable to initalize
> actions for fragment dp-12
> INFO org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl- No portlet entity defined for fragment ID dp-22 attempting to
> auto-generate...
> WARN
> org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess- Failed to retrieve Portlet Definition for
> j2-admin::ForgottenPasswordPortlet
> WARN org.apache.jetspeed.decoration.DecorationValve - Unable to initalize
> actions for fragment dp-22
> INFO org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl- No portlet entity defined for fragment ID dp-23 attempting to
> auto-generate...
> WARN
> org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess- Failed to retrieve Portlet Definition for
> j2-admin::UserRegistrationPortlet
> WARN org.apache.jetspeed.decoration.DecorationValve - Unable to initalize
> actions for fragment dp-23
> INFO org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl- No portlet entity defined for fragment ID dp-7 attempting to
> auto-generate...
> WARN
> org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess- Failed to retrieve Portlet Definition for demo::PickANumberPortlet
> WARN org.apache.jetspeed.decoration.DecorationValve - Unable to initalize
> actions for fragment dp-7
> INFO org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl- No portlet entity defined for fragment ID dp-16 attempting to
> auto-generate...
> WARN
> org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess- Failed to retrieve Portlet Definition for demo::RoleSecurityTest
> WARN org.apache.jetspeed.decoration.DecorationValve - Unable to initalize
> actions for fragment dp-16
> INFO org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl- No portlet entity defined for fragment ID dp-9 attempting to
> auto-generate...
> WARN
> org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess- Failed to retrieve Portlet Definition for demo::IFramePortlet
> WARN org.apache.jetspeed.decoration.DecorationValve - Unable to initalize
> actions for fragment dp-9
> INFO org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl- No portlet entity defined for fragment ID dp-17 attempting to
> auto-generate...
> WARN
> org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess- Failed to retrieve Portlet Definition for demo::UserInfoTest
> WARN org.apache.jetspeed.decoration.DecorationValve - Unable to initalize
> actions for fragment dp-17
> INFO org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl- No portlet entity defined for fragment ID dp-18 attempting to
> auto-generate...
> WARN
> org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess- Failed to retrieve Portlet Definition for demo::BookmarkPortlet
> WARN org.apache.jetspeed.decoration.DecorationValve - Unable to initalize
> actions for fragment dp-18
> INFO org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl- No portlet entity defined for fragment ID dp-1 attempting to
> auto-generate...
> DEBUG org.apache.jetspeed.aggregator.impl.PageAggregatorImpl - Rendering
> portlet fragment: [[name, j2-admin::LocaleSelector], [id, dp-3]]
> INFO org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl- No portlet entity defined for fragment ID dp-3 attempting to
> auto-generate...
> WARN
> org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess- Failed to retrieve Portlet Definition for j2-admin::LocaleSelector
> ERROR org.apache.jetspeed.aggregator.impl.PortletRendererImpl -
> java.lang.IllegalArgumentException: Cannot pass a null PortletDefinition
> to a PortletEntity.
>
> On 2/14/06, Jacek Wiślicki <ja...@gmail.com> wrote:
> >
> > Wiadomosc od Alan Chiang z 2006-02-14 20:56 brzmiala:
> >
> > > Will keep looking for a solution, but if anyone can provide some
> > insight
> > > that would be wonderful.
> > If a deployment process was correct and the portlet is registered in
> > database, there might be also an error in portlet name in the PSML
> > document (page) and the deployment descriptor (portlet.xml). In
> > portlet.xml portlel "id" attribute and "portlet-name" element should be
> > the same (as far as I remember). Furthermore, the webapp referred to in
> > the .psml (webapp::portlet_id) file should be spelled exactly the same
> > as it is in portlet.xml (case-sensitive).
> >
> > --
> > pozdrawiam,
> > Jacek Wislicki
> >
> > jacek.wislicki@gmail.com
> > tel.: +48 502 408 444
> > gg: 2540358
> > skype: jacek_wislicki
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> > For additional commands, e-mail: jetspeed-user-help@portals.apache.org
> >
> >
>
Re: Failed to retrieve Portlet Definition for jetspeed-layouts::VelocityTwoColumns
Posted by Alan Chiang <al...@gmail.com>.
Thanks Jacek,
Seems like I just had to wait a bit, the VelocityTwoColumns error does not
appear anymore. What does appear now is: Failed to find the Window Access
on portlet initialization, with nothing more.
I should note that I have not deployed any kind of custom portlets
whatsoever. I'm simply attempting to deploy the vanilla jetspeed portal
from a j2:portal.genapp, with 0 changes to the files (or some minimal ones
to kick start it to work).
Looking through the jetspeed.log, a lot of problems seem to come from
j2-admin::<some_fragment>. It could possibly be that these fragments are
not being registered properly in the database for whatever reason. I
strongly believe this is reason, only because the VelocityTwoColumns error
no longer appeared once the entry appeared in the PORTLET_ENTITY table. I
am new to J2, so I'm not sure of the mechanism to load portlets and/or their
fragments into the DB. I may also note that my connection to MySQL 4.x is
present and working.
I have also retried using 2.1-dev, no luck.
Thanks!
AC
PS:
DEBUG org.apache.jetspeed.portalsite.impl.PortalSiteSessionContextImpl -
Selected folder historical page: path=/default-page.psml
INFO org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl -
No portlet entity defined for fragment ID dp-3 attempting to
auto-generate...
WARN
org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess-
Failed to retrieve Portlet Definition for j2-admin::LocaleSelector
WARN org.apache.jetspeed.decoration.DecorationValve - Unable to initalize
actions for fragment dp-3
INFO org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl -
No portlet entity defined for fragment ID dp-12 attempting to
auto-generate...
WARN
org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess-
Failed to retrieve Portlet Definition for j2-admin::LoginPortlet
WARN org.apache.jetspeed.decoration.DecorationValve - Unable to initalize
actions for fragment dp-12
INFO org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl -
No portlet entity defined for fragment ID dp-22 attempting to
auto-generate...
WARN
org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess-
Failed to retrieve Portlet Definition for
j2-admin::ForgottenPasswordPortlet
WARN org.apache.jetspeed.decoration.DecorationValve - Unable to initalize
actions for fragment dp-22
INFO org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl -
No portlet entity defined for fragment ID dp-23 attempting to
auto-generate...
WARN
org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess-
Failed to retrieve Portlet Definition for
j2-admin::UserRegistrationPortlet
WARN org.apache.jetspeed.decoration.DecorationValve - Unable to initalize
actions for fragment dp-23
INFO org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl -
No portlet entity defined for fragment ID dp-7 attempting to
auto-generate...
WARN
org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess-
Failed to retrieve Portlet Definition for demo::PickANumberPortlet
WARN org.apache.jetspeed.decoration.DecorationValve - Unable to initalize
actions for fragment dp-7
INFO org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl -
No portlet entity defined for fragment ID dp-16 attempting to
auto-generate...
WARN
org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess-
Failed to retrieve Portlet Definition for demo::RoleSecurityTest
WARN org.apache.jetspeed.decoration.DecorationValve - Unable to initalize
actions for fragment dp-16
INFO org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl -
No portlet entity defined for fragment ID dp-9 attempting to
auto-generate...
WARN
org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess-
Failed to retrieve Portlet Definition for demo::IFramePortlet
WARN org.apache.jetspeed.decoration.DecorationValve - Unable to initalize
actions for fragment dp-9
INFO org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl -
No portlet entity defined for fragment ID dp-17 attempting to
auto-generate...
WARN
org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess-
Failed to retrieve Portlet Definition for demo::UserInfoTest
WARN org.apache.jetspeed.decoration.DecorationValve - Unable to initalize
actions for fragment dp-17
INFO org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl -
No portlet entity defined for fragment ID dp-18 attempting to
auto-generate...
WARN
org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess-
Failed to retrieve Portlet Definition for demo::BookmarkPortlet
WARN org.apache.jetspeed.decoration.DecorationValve - Unable to initalize
actions for fragment dp-18
INFO org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl -
No portlet entity defined for fragment ID dp-1 attempting to
auto-generate...
DEBUG org.apache.jetspeed.aggregator.impl.PageAggregatorImpl - Rendering
portlet fragment: [[name, j2-admin::LocaleSelector], [id, dp-3]]
INFO org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl -
No portlet entity defined for fragment ID dp-3 attempting to
auto-generate...
WARN
org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess-
Failed to retrieve Portlet Definition for j2-admin::LocaleSelector
ERROR org.apache.jetspeed.aggregator.impl.PortletRendererImpl -
java.lang.IllegalArgumentException: Cannot pass a null PortletDefinition to
a PortletEntity.
On 2/14/06, Jacek Wiślicki <ja...@gmail.com> wrote:
>
> Wiadomosc od Alan Chiang z 2006-02-14 20:56 brzmiala:
>
> > Will keep looking for a solution, but if anyone can provide some insight
> > that would be wonderful.
> If a deployment process was correct and the portlet is registered in
> database, there might be also an error in portlet name in the PSML
> document (page) and the deployment descriptor (portlet.xml). In
> portlet.xml portlel "id" attribute and "portlet-name" element should be
> the same (as far as I remember). Furthermore, the webapp referred to in
> the .psml (webapp::portlet_id) file should be spelled exactly the same
> as it is in portlet.xml (case-sensitive).
>
> --
> pozdrawiam,
> Jacek Wislicki
>
> jacek.wislicki@gmail.com
> tel.: +48 502 408 444
> gg: 2540358
> skype: jacek_wislicki
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
Re: Failed to retrieve Portlet Definition for jetspeed-layouts::VelocityTwoColumns
Posted by Jacek Wiślicki <ja...@gmail.com>.
Wiadomosc od Alan Chiang z 2006-02-14 20:56 brzmiala:
> Will keep looking for a solution, but if anyone can provide some insight
> that would be wonderful.
If a deployment process was correct and the portlet is registered in
database, there might be also an error in portlet name in the PSML
document (page) and the deployment descriptor (portlet.xml). In
portlet.xml portlel "id" attribute and "portlet-name" element should be
the same (as far as I remember). Furthermore, the webapp referred to in
the .psml (webapp::portlet_id) file should be spelled exactly the same
as it is in portlet.xml (case-sensitive).
--
pozdrawiam,
Jacek Wislicki
jacek.wislicki@gmail.com
tel.: +48 502 408 444
gg: 2540358
skype: jacek_wislicki
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org