[Installation, Configuration & Deployment] - WAR as JBOSS Context root app but using Struts
by marcelo.leite
Hi,
I have a simple web app as a WAR file. It was developed using Struts and Tiles. My index JSP is composed by some calls to Tiles tags like this:
<tiles:insert attribute="header"/>
The app works well. But when i defined it as the Jboss context root app it stops to work. I've just see my config files like struts-config.xml, web.xml, tiles-defs.xml and jboss-web.xml and this is OK.
Should i do some special configuration on any of this files?
This is the error:
org.apache.jasper.JasperException: Exception in JSP: /index.jsp:14
11:
12:
13:
14: <tiles:insert attribute="header"/>
15:
16:
17:
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
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:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
java.lang.NullPointerException
org.apache.struts.taglib.tiles.InsertTag.processAttribute(InsertTag.java:689)
org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java:489)
org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:451)
org.apache.jsp.index_jsp._jspx_meth_tiles_insert_0(index_jsp.java:186)
org.apache.jsp.index_jsp._jspx_meth_html_html_0(index_jsp.java:109)
org.apache.jsp.index_jsp._jspService(index_jsp.java:69)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
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:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
Can you help me?
Regards
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008409#4008409
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008409
19 years, 2 months
[JBoss Portal] - Re: Portlet navigation with CMS.
by Antoine_h
Yes... that is a common "UI navigation feature" requierement.
you go from a page to another one, and want the menu to show also the new "active" page.
you need two things, for which the JSR-168 does not give much help.
(but read it anyway... to know what it provide and what to add to it in your own portal).
1) IPC : inter portlet communication. To have the portlet that change it's status (ie: in it's processAction method) warn the others that it has changed. The portlets may share (or send each other) a "fooState" instance that tell them all the properties of the current state.
If they share, it is a "message" IPC. if they send an action, it is more a "event" IPC.
2) caching : if you want these portlet to refresh even if an actionURL did not called them, you may suppress the cache for them. but then, you loose the cache advantage. so to keep it, the best is to reset the cache of the target portlet, when necessary.
for 1) : see the IPC feature, in JSR-168 draft version 2 and in jboss portal 2.6.
These feature of IPC have been developped in these version.
With current version, you can also have a look at :
http://www.doc.ic.ac.uk/~mo197/portlets/portlet_messaging/
I have done something like that to have a menu "follow" the change in the portal général UI changes.
for 2) : i am looking at this right now. coming to the forum to see what's about caching mecanism, and how to adapt it to comply with this need.
the need to reset the cache of one portlet with "a command" is not in the JSR-168. I guess this can be done. don't know if it will be easy ... and quite clean programming.
about cache : use the 2.4 SP1 where caching has been debugged intensively.
hope it helps.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008408#4008408
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008408
19 years, 2 months