[
https://issues.jboss.org/browse/GTNPORTAL-1834?page=com.atlassian.jira.pl...
]
Khoi Nguyen commented on GTNPORTAL-1834:
----------------------------------------
Currently, there is different between portletID at the portal and PC side in this case:
- Portal side : PortletId = [local or remote]/[webapp name].[portlet name] and every slash
character in webapp name are replaced by dot [.]. For instance, portletId =
local_/LG_1648_1_WEB.SamplePortlet.Yourportlet
- PC side: PortletId = /[webapp name].[portlet name] but webapp name value is kept. For
instance, portletId = /LG_1648_1_WEB/SamplePortlet.Yourportlet
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:
http://www.atlassian.com/software/jira