portals-jetspeed-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sundarajan, Sriram \(Cognizant\)" <Sriram.Sundara...@cognizant.com>
Subject Can two struts portlet work in a single page/screen
Date Thu, 19 Jan 2006 03:56:56 GMT

 Hi all,

I have encounterd a problem when i try to have two Struts portlet
applications included in the same pane/screen. Individually these two
portlets works fine but when they are put together in the same pane it
shows the following error. When the second struts portlet's jsp contains
static contents it doesnt show any error but when Struts ( eg:
<html:form>) tags included in it is unable to parse the tag and throws
the error.


 Error
Error null
Error Type java.lang.ClassCastException Stacktrace
org.apache.struts.util.ModuleUtils.getModuleConfig(ModuleUtils.java:76)
org.apache.struts.util.ModuleUtils.getModuleConfig(ModuleUtils.java:127)
org.apache.struts.util.ModuleUtils.getModuleConfig(ModuleUtils.java:112)
org.apache.struts.taglib.TagUtils.getModuleConfig(TagUtils.java:821)
org.apache.struts.taglib.TagUtils.getModuleConfig(TagUtils.java:809)
org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:738)
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:443)
org.apache.strutsel.taglib.html.ELFormTag.doStartTag(ELFormTag.java:297)
org.apache.jsp.start1_jsp._jspx_meth_html$1el_form_0(org.apache.jsp.star
t1_jsp:81)
org.apache.jsp.start1_jsp._jspService(org.apache.jsp.start1_jsp:55)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:672)
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDisp
atcher.java:574)
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispat
cher.java:499)
org.apache.portals.bridges.struts.StrutsPortlet.processRequest(StrutsPor
tlet.java:375)
org.apache.portals.bridges.struts.StrutsPortlet.doView(StrutsPortlet.jav
a:274)
javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:247)
javax.portlet.GenericPortlet.render(GenericPortlet.java:175)
org.apache.jetspeed.factory.JetspeedPortletInstance.render(JetspeedPortl
etInstance.java:102)
org.apache.jetspeed.container.JetspeedContainerServlet.doGet(JetspeedCon
tainerServlet.java:230)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:672)
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDisp
atcher.java:574)
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispat
cher.java:499)
org.apache.jetspeed.container.invoker.ServletPortletInvoker.invoke(Servl
etPortletInvoker.java:213)
org.apache.jetspeed.container.invoker.ServletPortletInvoker.render(Servl
etPortletInvoker.java:125)
org.apache.pluto.PortletContainerImpl.renderPortlet(PortletContainerImpl
.java:119)
org.apache.jetspeed.container.JetspeedPortletContainerWrapper.renderPort
let(JetspeedPortletContainerWrapper.java:120)
org.apache.jetspeed.aggregator.impl.RenderingJobImpl.execute(RenderingJo
bImpl.java:120)
org.apache.jetspeed.aggregator.impl.PortletRendererImpl.renderNow(Portle
tRendererImpl.java:110)
org.apache.jetspeed.aggregator.impl.PageAggregatorImpl.aggregateAndRende
r(PageAggregatorImpl.java:199)
org.apache.jetspeed.aggregator.impl.PageAggregatorImpl.aggregateAndRende
r(PageAggregatorImpl.java:182)
org.apache.jetspeed.aggregator.impl.PageAggregatorImpl.build(PageAggrega
torImpl.java:106)
org.apache.jetspeed.aggregator.AggregatorValve.invoke(AggregatorValve.ja
va:48)
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipelin
e.java:203)
org.apache.jetspeed.pipeline.valve.impl.ActionValveImpl.invoke(ActionVal
veImpl.java:132)
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipelin
e.java:203)
org.apache.jetspeed.container.ContainerValve.invoke(ContainerValve.java:
76)
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipelin
e.java:203)
org.apache.jetspeed.decoration.DecorationValve.invoke(DecorationValve.ja
va:100)
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipelin
e.java:203)
org.apache.jetspeed.profiler.impl.ProfilerValveImpl.invoke(ProfilerValve
Impl.java:179)
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipelin
e.java:203)
org.apache.jetspeed.security.impl.LoginValidationValveImpl.invoke(LoginV
alidationValveImpl.java:143)
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipelin
e.java:203)
org.apache.jetspeed.security.impl.PasswordCredentialValveImpl.invoke(Pas
swordCredentialValveImpl.java:148)
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipelin
e.java:203)
org.apache.jetspeed.localization.impl.LocalizationValveImpl.invoke(Local
izationValveImpl.java:168)
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipelin
e.java:203)
org.apache.jetspeed.security.impl.AbstractSecurityValve$1.run(AbstractSe
curityValve.java:117)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:437)
org.apache.jetspeed.security.impl.AbstractSecurityValve.invoke(AbstractS
ecurityValve.java:111)
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipelin
e.java:203)
org.apache.jetspeed.container.url.impl.PortalURLValveImpl.invoke(PortalU
RLValveImpl.java:55)
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipelin
e.java:203)
org.apache.jetspeed.capabilities.impl.CapabilityValveImpl.invoke(Capabil
ityValveImpl.java:128)
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipelin
e.java:203)
org.apache.jetspeed.pipeline.JetspeedPipeline.invoke(JetspeedPipeline.ja
va:185)
org.apache.jetspeed.engine.JetspeedEngine.service(JetspeedEngine.java:23
1)
org.apache.jetspeed.engine.JetspeedServlet.doGet(JetspeedServlet.java:22
6)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:213)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:178)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:432)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:107)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:86
8)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc
essConnection(Http11BaseProtocol.java:663)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
erWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:684)
java.lang.Thread.run(Thread.java:534)


I have included all the xml files here a

First portlet Struts Config
  <action-mappings>
   <action path="/sample1" input="/start.jsp" scope="request"
validate="false"
   name="formBean" type="sample.SampleAction">
   <forward name="success" path="/result.jsp"></forward>
   </action>


Second portlet Struts Config
<action-mappings>
   <action path="/sample2" input="/start1.jsp" scope="request"
validate="false"
   name="formBean1" type="sample.SampleAction1">
   <forward name="success1" path="/result1.jsp"></forward>
   </action>
  </action-mappings>

  <controller pagePattern="$M$P" inputForward="false"
processorClass="org.apache.portals.bridges.struts.PortletRequestProcesso
r"/>


Can someone help me out..
thnx in advance

Regards
Sriram


This e-mail and any files transmitted with it are for the sole use of the intended recipient(s)
and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and destroy
all copies of the original message.
Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of
this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

  Visit us at http://www.cognizant.com

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


Mime
View raw message