Portlet's context-root cannot contain slashes
---------------------------------------------
Key: GTNPORTAL-1834
URL:
https://issues.jboss.org/browse/GTNPORTAL-1834
Project: GateIn Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Reporter: Thomas Heute
Assignee: Khoi Nguyen
Labels: portal-s50
Original Estimate: 1 day
Remaining Estimate: 1 day
I've tried to use a context-root with a slash "/" in a JSR-286 Hello World
Portlet and it throws the following exception when trying to add it to a new page:
11:59:46,926 ERROR [STDERR] org.gatein.pc.api.NoSuchPortletException: No such portlet
/oag.ade
11:59:46,926 ERROR [STDERR] at
org.gatein.pc.portlet.container.ContainerPortletInvoker.getPortlet(ContainerPortletInvoker.java:99)
Changing context-root to not contain slashes has fixed the problem.
Problem happens when using slashes "/" in:
application.xml of an .ear file
<module>
<web>
<web-uri>seamBookingPortlet.war</web-uri>
<context-root>/oag/ade</context-root>
</web>
</module>
Changing it to <context-root>/oag-ade</context-root> fixes the problem
jboss-web.xml of a .war file
<?xml version="1.0" encoding="UTF-8"?>
<jboss-web>
<context-root>/LG_1648_1_WEB/SamplePortlet</context-root>
</jboss-web>
Changing it to <context-root>/LG_1648_1_WEB.SamplePortlet</context-root>
fixes the problem.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: