portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vlachogiannis Evangelos <evl...@aegean.gr>
Subject RE: wicket portlet
Date Mon, 07 Dec 2009 12:21:17 GMT
Thnx for your time!
I have compared with these and everything seems ok. However I still have same problem...
Let me try give some "context". I am actually trying to develop a very simple CMS based on
jcr/jackrabbit and wicket. You can find source code in http://source.aegean.gr/svn/projects/e-university/uportal3/cmsApp/
. It would be great if somebody could take a look or even deploy and give me a hint. When
I am testing as wicket application everything is ok. When I deploy as portlet I get the exception
below..

Thanks in advance,
Vangelis

-----Original Message-----
From: Woonsan Ko [mailto:woon_san@yahoo.com]
Sent: Monday, December 07, 2009 11:12 AM
To: Jetspeed Developers List
Subject: Re: wicket portlet

HiVlachogiannis,

I think you can compare your configurations with j2-admin's wicket portlets.
For example, WicketProfilerAdminApplication is configured in web.xml like this:

  <filter>
    <filter-name>WicketProfilerAdminApplication</filter-name>
    <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>
    <init-param>
      <param-name>applicationClassName</param-name>
      <param-value>org.apache.jetspeed.portlets.profiler.WicketProfilerAdminApplication</param-value>
    </init-param>
  </filter>

  <filter-mapping>
    <filter-name>WicketProfilerAdminApplication</filter-name>
    <url-pattern>/profileradmin/*</url-pattern>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>INCLUDE</dispatcher>
  </filter-mapping>

The dispatcher configurations (REQUEST and INCLUDE) are important.
Also, the portlet is configured in portlet.xml like this:

  <portlet>
    <description>Profiler Administration</description>
    <portlet-name>WicketProfilerAdmin</portlet-name>
    <display-name>Profiler Administration</display-name>
    <portlet-class>
      org.apache.wicket.protocol.http.portlet.WicketPortlet</portlet-class>
    <init-param>
      <name>wicketFilterPath</name>
      <value>/profileradmin</value>
    </init-param>
    <supports>
      <mime-type>*/*</mime-type>
      <portlet-mode>VIEW</portlet-mode>
    </supports>
    <supported-locale>en</supported-locale>
    <portlet-info>
      <title>Profiler Admin</title>
      <short-title>ProfilerAdmin</short-title>
      <keywords>admin,profiler</keywords>
    </portlet-info>
  </portlet>


HTH,

Woonsan




----- Original Message ----
> From: Vlachogiannis Evangelos <evlach@aegean.gr>
> To: Jetspeed Developers List <jetspeed-dev@portals.apache.org>
> Sent: Sun, December 6, 2009 9:44:46 AM
> Subject: RE: wicket portlet
>
> Thnx a lot! That seems to work now as a portlet, but in my particular
> application I get the following exception. In my markup I ref all ids. Out of
> the portal I test that and works fine. Any ideas please?
>
> Unexpected RuntimeException
>
> WicketMessage: The component(s) below failed to render. A common problem is that
> you have added a component in code but forgot to reference it in the markup
> (thus the component will never be rendered).
>
> 1. [MarkupContainer [Component id = tree]]
> 2. [MarkupContainer [Component id = i]]
> 3. [MarkupContainer [Component id = 0]]
> 4. [MarkupContainer [Component id = junctionLink]]
> 5. [MarkupContainer [Component id = nodeComponent]]
> 6. [MarkupContainer [Component id = iconLink]]
> 7. [Component id = icon]
> 8. [MarkupContainer [Component id = contentLink]]
> 9. [Component id = content]
>
> Root cause:
>
> org.apache.wicket.WicketRuntimeException: The component(s) below failed to
> render. A common problem is that you have added a component in code but forgot
> to reference it in the markup (thus the component will never be rendered).
>
> 1. [MarkupContainer [Component id = tree]]
> 2. [MarkupContainer [Component id = i]]
> 3. [MarkupContainer [Component id = 0]]
> 4. [MarkupContainer [Component id = junctionLink]]
> 5. [MarkupContainer [Component id = nodeComponent]]
> 6. [MarkupContainer [Component id = iconLink]]
> 7. [Component id = icon]
> 8. [MarkupContainer [Component id = contentLink]]
> 9. [Component id = content]
>
> at org.apache.wicket.Page.checkRendering(Page.java:1162)
> at org.apache.wicket.Page.renderPage(Page.java:922)
> at
> org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:262)
> at
> org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
> at
> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1258)
> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428)
> at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
> at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:468)
> at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:301)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
> at
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
> at
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
> at
> org.apache.pluto.container.impl.PortletRequestDispatcherImpl.doDispatch(PortletRequestDispatcherImpl.java:174)
> at
> org.apache.pluto.container.impl.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:222)
> at
> org.apache.wicket.protocol.http.portlet.WicketPortlet.processMimeResponseRequest(WicketPortlet.java:655)
> at
> org.apache.wicket.protocol.http.portlet.WicketPortlet.processRequest(WicketPortlet.java:608)
> at
> org.apache.wicket.protocol.http.portlet.WicketPortlet.doView(WicketPortlet.java:469)
> at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:348)
> at javax.portlet.GenericPortlet.render(GenericPortlet.java:253)
> at
> org.apache.jetspeed.portlet.PortletObjectProxy.proxyRender(PortletObjectProxy.java:244)
> at
> org.apache.jetspeed.portlet.PortletObjectProxy.invoke(PortletObjectProxy.java:159)
> at $Proxy19.render(Unknown Source)
> at
> org.apache.jetspeed.factory.JetspeedPortletInstance.render(JetspeedPortletInstance.java:110)
> at
> org.apache.jetspeed.container.services.JetspeedFilterChain.doFilter(JetspeedFilterChain.java:142)
> at
> org.apache.jetspeed.container.services.JetspeedFilterChain.processFilter(JetspeedFilterChain.java:92)
> at
> org.apache.jetspeed.container.services.JetspeedFilterManager.processFilter(JetspeedFilterManager.java:112)
> at
> org.apache.jetspeed.container.JetspeedContainerServlet.doGet(JetspeedContainerServlet.java:272)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
> at
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
> at
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
> at
> org.apache.jetspeed.container.invoker.ServletPortletInvoker.invoke(ServletPortletInvoker.java:165)
> at
> org.apache.jetspeed.container.invoker.JetspeedPortletInvokerService.render(JetspeedPortletInvokerService.java:127)
> at
> org.apache.pluto.container.impl.PortletContainerImpl.doRender(PortletContainerImpl.java:157)
> at
> org.apache.jetspeed.container.JetspeedPortletContainerWrapper.doRender(JetspeedPortletContainerWrapper.java:69)
> at
> org.apache.jetspeed.aggregator.impl.RenderingJobImpl.execute(RenderingJobImpl.java:183)
> at
> org.apache.jetspeed.aggregator.impl.PortletRendererImpl.renderNow(PortletRendererImpl.java:160)
> at
> org.apache.jetspeed.aggregator.impl.PortletRendererImpl.renderNow(PortletRendererImpl.java:138)
> at
> org.apache.jetspeed.aggregator.impl.BaseAggregatorImpl.renderMaximizedWindow(BaseAggregatorImpl.java:101)
> at
> org.apache.jetspeed.aggregator.impl.PageAggregatorImpl.build(PageAggregatorImpl.java:73)
> at
> org.apache.jetspeed.aggregator.AggregatorValve.invoke(AggregatorValve.java:46)
> at
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
> at
> org.apache.jetspeed.aggregator.HeaderAggregatorValve.invoke(HeaderAggregatorValve.java:53)
> at
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
> at
> org.apache.jetspeed.decoration.DecorationValve.invoke(DecorationValve.java:137)
> at
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
> at
> org.apache.jetspeed.resource.ResourceValveImpl.invoke(ResourceValveImpl.java:84)
> at
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
> at
> org.apache.jetspeed.pipeline.valve.impl.ActionValveImpl.invoke(ActionValveImpl.java:139)
> at
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
> at org.apache.jetspeed.container.ContainerValve.invoke(ContainerValve.java:88)
> at
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
> at
> org.apache.jetspeed.container.PageHistoryValve.invoke(PageHistoryValve.java:108)
> at
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
> at
> org.apache.jetspeed.profiler.impl.RefreshUserHomepageValveImpl.invoke(RefreshUserHomepageValveImpl.java:110)
> at
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
> at
> org.apache.jetspeed.profiler.impl.ProfilerValveImpl.invoke(ProfilerValveImpl.java:251)
> at
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
> at
> org.apache.jetspeed.security.impl.LoginValidationValveImpl.invoke(LoginValidationValveImpl.java:158)
> at
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
> at
> org.apache.jetspeed.security.impl.PasswordCredentialValveImpl.invoke(PasswordCredentialValveImpl.java:151)
> at
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
> at
> org.apache.jetspeed.localization.impl.LocalizationValveImpl.invoke(LocalizationValveImpl.java:170)
> at
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
> at
> org.apache.jetspeed.security.impl.AbstractSecurityValve$1.run(AbstractSecurityValve.java:138)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.Subject.doAsPrivileged(Subject.java:454)
> at org.apache.jetspeed.security.JSSubject.doAsPrivileged(JSSubject.java:179)
> at
> org.apache.jetspeed.security.impl.AbstractSecurityValve.invoke(AbstractSecurityValve.java:132)
> at
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
> at
> org.apache.jetspeed.container.url.impl.PortalURLValveImpl.invoke(PortalURLValveImpl.java:67)
> at
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
> at
> org.apache.jetspeed.capabilities.impl.CapabilityValveImpl.invoke(CapabilityValveImpl.java:127)
> at
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
> at
> org.apache.jetspeed.pipeline.JetspeedPipeline.invoke(JetspeedPipeline.java:146)
> at org.apache.jetspeed.engine.JetspeedEngine.service(JetspeedEngine.java:225)
> at org.apache.jetspeed.engine.JetspeedServlet.doGet(JetspeedServlet.java:300)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.jetspeed.engine.servlet.XXSUrlAttackFilter.doFilter(XXSUrlAttackFilter.java:52)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at gr.uportal.filter.CASPortalFilter.doFilter(CASPortalFilter.java:154)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
> at java.lang.Thread.run(Thread.java:595)
>
> -----Original Message-----
> From: Woonsan Ko [mailto:woon_san@yahoo.com]
> Sent: Friday, December 04, 2009 11:27 AM
> To: Jetspeed Developers List
> Subject: Re: wicket portlet
>
> Hi Vlachogiannis,
>
> There's a simple guideline here:
>
> http://cwiki.apache.org/WICKET/portal-howto.html
>
> Regards,
>
> Woonsan
>
>
>
> ----- Original Message ----
> > From: Vlachogiannis Evangelos
> > To: Jetspeed Developers List
> > Sent: Fri, December 4, 2009 9:14:06 AM
> > Subject: wicket portlet
> >
> > Hi list,
> >
> > Is there a howto page for developing a wicket portlet for jetspeed? Some
> hints?
> >
> > Thanks a lot,
> > Vangelis
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-dev-help@portals.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-dev-help@portals.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message