You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Alex Andrushchak <us...@dekasoft.com.ua> on 2006/11/23 13:06:57 UTC

struts2-portlet-2.0.1

Hello!

I've tried to launch struts2 portlet application under jetspeed2 but 
unfortunatelly no luck.
There are one tutorial on struts2 wiki but it is not fresh enough.
I've looked inside war and found some starnges there:
1. there are no struts.xml but xwork.xml instead.
2. in xwork.xml there are reference to struts-portlet-default.xml but i 
can't find this file anywhere.

Are there any good docs, tutorials about portlet development with struts?
How to fix this sample portlet to run it under jetspeed2?

Best regards,
Alex Andrushchak


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: struts2-portlet-2.0.1

Posted by Alex Andrushchak <us...@dekasoft.com.ua>.
Hi Nils!

Yes, i've renamed xwork.xml to struts.xml.
I've reviewed all sturts jars as well and did not find 
struts-portlet-default.xml in any of them.
Exception trace is:
javax.portlet.PortletException: Could not find action index
    at 
org.apache.struts2.portlet.dispatcher.Jsr168Dispatcher.serviceAction(Jsr168Dispatcher.java:452)
    at 
org.apache.struts2.portlet.dispatcher.Jsr168Dispatcher.render(Jsr168Dispatcher.java:320)
    at 
org.apache.jetspeed.factory.JetspeedPortletInstance.render(JetspeedPortletInstance.java:102)
    at 
org.apache.jetspeed.container.JetspeedContainerServlet.doGet(JetspeedContainerServlet.java:235)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
    at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
    at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
    at 
org.apache.jetspeed.container.invoker.ServletPortletInvoker.invoke(ServletPortletInvoker.java:215)
    at 
org.apache.jetspeed.container.invoker.ServletPortletInvoker.render(ServletPortletInvoker.java:126)
    at 
org.apache.pluto.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:119)
    at 
org.apache.jetspeed.container.JetspeedPortletContainerWrapper.renderPortlet(JetspeedPortletContainerWrapper.java:120)
    at 
org.apache.jetspeed.aggregator.impl.RenderingJobImpl.execute(RenderingJobImpl.java:121)
    at 
org.apache.jetspeed.aggregator.impl.PortletRendererImpl.renderNow(PortletRendererImpl.java:120)
    at 
org.apache.jetspeed.aggregator.impl.PageAggregatorImpl.aggregateAndRender(PageAggregatorImpl.java:199)
    at 
org.apache.jetspeed.aggregator.impl.PageAggregatorImpl.aggregateAndRender(PageAggregatorImpl.java:182)
    at 
org.apache.jetspeed.aggregator.impl.PageAggregatorImpl.build(PageAggregatorImpl.java:106)
    at 
org.apache.jetspeed.aggregator.AggregatorValve.invoke(AggregatorValve.java:48)
    at 
org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
    at 
org.apache.jetspeed.aggregator.HeaderAggregatorValve.invoke(HeaderAggregatorValve.java:55)
    at 
org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
    at 
org.apache.jetspeed.decoration.DecorationValve.invoke(DecorationValve.java:97)
    at 
org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
    at 
org.apache.jetspeed.pipeline.valve.impl.ActionValveImpl.invoke(ActionValveImpl.java:151)
    at 
org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
    at 
org.apache.jetspeed.container.ContainerValve.invoke(ContainerValve.java:76)
    at 
org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
    at 
org.apache.jetspeed.profiler.impl.ProfilerValveImpl.invoke(ProfilerValveImpl.java:255)
    at 
org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
    at 
org.apache.jetspeed.security.impl.LoginValidationValveImpl.invoke(LoginValidationValveImpl.java:159)
    at 
org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
    at 
org.apache.jetspeed.security.impl.PasswordCredentialValveImpl.invoke(PasswordCredentialValveImpl.java:149)
    at 
org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
    at 
org.apache.jetspeed.localization.impl.LocalizationValveImpl.invoke(LocalizationValveImpl.java:169)
    at 
org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
    at 
org.apache.jetspeed.security.impl.AbstractSecurityValve$1.run(AbstractSecurityValve.java:117)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:454)
    at 
org.apache.jetspeed.security.impl.AbstractSecurityValve.invoke(AbstractSecurityValve.java:111)
    at 
org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
    at 
org.apache.jetspeed.container.url.impl.PortalURLValveImpl.invoke(PortalURLValveImpl.java:67)
    at 
org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
    at 
org.apache.jetspeed.capabilities.impl.CapabilityValveImpl.invoke(CapabilityValveImpl.java:128)
    at 
org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:166)
    at 
org.apache.jetspeed.pipeline.JetspeedPipeline.invoke(JetspeedPipeline.java:145)
    at 
org.apache.jetspeed.engine.JetspeedEngine.service(JetspeedEngine.java:214)
    at 
org.apache.jetspeed.engine.JetspeedServlet.doGet(JetspeedServlet.java:241)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
    at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:595)
Caused by: Error building results for action index in namespace /view - 
action - 
file:/D:/local/apache-tomcat-5.5.20/webapps/struts2-portlet-1.0-SNAPSHOT/WEB-INF/classes/struts.xml:11:59
    at 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:173)
    at 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:248)
    at 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:723)
    at 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:121)
    at 
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:97)
    at 
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:46)
    at 
org.apache.struts2.portlet.dispatcher.Jsr168Dispatcher.serviceAction(Jsr168Dispatcher.java:424)
    ... 66 more
Caused by: No result type specified for result named 'success', perhaps 
the parent package does not specify the result type? - result - 
file:/D:/local/apache-tomcat-5.5.20/webapps/struts2-portlet-1.0-SNAPSHOT/WEB-INF/classes/struts.xml:12:21
    at 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.buildResults(XmlConfigurationProvider.java:442)
    at 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:171)
    ... 72 more

Best regards,
Alex Andrushchak

nilsga wrote:
> Hi!
>
> Have you tried renaming the xwork.xml to struts.xml? The
> struts-portlet-default.xml is inside the struts jar files. What error
> messages do you get in the jetspeed2 logs?
>
> Nils-H
>
>
> Alex Andrushchak wrote:
>   
>> Hello!
>>
>> I've tried to launch struts2 portlet application under jetspeed2 but 
>> unfortunatelly no luck.
>> There are one tutorial on struts2 wiki but it is not fresh enough.
>> I've looked inside war and found some starnges there:
>> 1. there are no struts.xml but xwork.xml instead.
>> 2. in xwork.xml there are reference to struts-portlet-default.xml but i 
>> can't find this file anywhere.
>>
>> Are there any good docs, tutorials about portlet development with struts?
>> How to fix this sample portlet to run it under jetspeed2?
>>
>> Best regards,
>> Alex Andrushchak
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>>
>>     
>
>   


Re: struts2-portlet-2.0.1

Posted by nilsga <ni...@gmail.com>.
Hi!

Have you tried renaming the xwork.xml to struts.xml? The
struts-portlet-default.xml is inside the struts jar files. What error
messages do you get in the jetspeed2 logs?

Nils-H


Alex Andrushchak wrote:
> 
> Hello!
> 
> I've tried to launch struts2 portlet application under jetspeed2 but 
> unfortunatelly no luck.
> There are one tutorial on struts2 wiki but it is not fresh enough.
> I've looked inside war and found some starnges there:
> 1. there are no struts.xml but xwork.xml instead.
> 2. in xwork.xml there are reference to struts-portlet-default.xml but i 
> can't find this file anywhere.
> 
> Are there any good docs, tutorials about portlet development with struts?
> How to fix this sample portlet to run it under jetspeed2?
> 
> Best regards,
> Alex Andrushchak
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/struts2-portlet-2.0.1-tf2692194.html#a7556622
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: struts2-portlet-2.0.1

Posted by Alex Andrushchak <us...@dekasoft.com.ua>.
Ic. Thanks anyway!

Wendy Smoak wrote:
> On 11/24/06, Alex Andrushchak <us...@dekasoft.com.ua> wrote:
>
>> What is right place where can i ask about portlet development with 
>> struts2?
>
> This is the right mailing list for Struts 2 questions.  However, it's
> a long holiday weekend in the US, and I don't think very many people
> are using portlets, so it may take a while to catch someone's
> attention.
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: struts2-portlet-2.0.1

Posted by Wendy Smoak <ws...@gmail.com>.
On 11/24/06, Alex Andrushchak <us...@dekasoft.com.ua> wrote:

> What is right place where can i ask about portlet development with struts2?

This is the right mailing list for Struts 2 questions.  However, it's
a long holiday weekend in the US, and I don't think very many people
are using portlets, so it may take a while to catch someone's
attention.

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: struts2-portlet-2.0.1

Posted by Alex Andrushchak <us...@dekasoft.com.ua>.
Hi!

What is right place where can i ask about portlet development with struts2?

Thanks,
Alex Andrushchak

Alex Andrushchak wrote:
> Hello!
>
> I've tried to launch struts2 portlet application under jetspeed2 but 
> unfortunatelly no luck.
> There are one tutorial on struts2 wiki but it is not fresh enough.
> I've looked inside war and found some starnges there:
> 1. there are no struts.xml but xwork.xml instead.
> 2. in xwork.xml there are reference to struts-portlet-default.xml but 
> i can't find this file anywhere.
>
> Are there any good docs, tutorials about portlet development with struts?
> How to fix this sample portlet to run it under jetspeed2?
>
> Best regards,
> Alex Andrushchak
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org