[jboss-jira] [JBoss JIRA] Created: (JBPORTAL-2437) Remove hard-coded context path references

Martin Putz (JIRA) jira-events at lists.jboss.org
Wed Jul 29 06:07:29 EDT 2009


Remove hard-coded context path references
-----------------------------------------

                 Key: JBPORTAL-2437
                 URL: https://jira.jboss.org/jira/browse/JBPORTAL-2437
             Project: JBoss Portal
          Issue Type: Task
      Security Level: Public (Everyone can see)
    Affects Versions: 2.7.2 Final
            Reporter: Martin Putz
            Assignee: Thomas Heute


All portal contexts should be configurable to share a common context. For this to work, we customized our jboss portal installation changing the context path. We modified following files:

./portal-admin.sar/portal-admin.war/WEB-INF/jboss-web.xml
./portal-ajax.war/WEB-INF/jboss-web.xml
./portal-cms.sar/portal-cms.war/WEB-INF/jboss-web.xml
./portal-core.war/WEB-INF/jboss-web.xml
./portal-identity.sar/portal-identity.war/WEB-INF/jboss-web.xml
./portal-server.war/WEB-INF/jboss-web.xml
./portal-widget-netvibes.war/WEB-INF/jboss-web.xml
./portal-widget.war/WEB-INF/jboss-web.xml
./portal-wsrp.sar/portal-wsrp-admin.war/WEB-INF/jboss-web.xml
./portal-wsrp.sar/portal-wsrp.war/WEB-INF/jboss-web.xml
./samples/portal-jsp-samples.war/WEB-INF/jboss-web.xml
./samples/portal-news-samples.war/WEB-INF/jboss-web.xml
./samples/portal-portlet-samples.war/WEB-INF/jboss-web.xml
./samples/portal-users-samples.sar/portal-users-samples.war/WEB-INF/jboss-web.xml

For example, the file ./portal-admin.sar/portal-admin.war/WEB-INF/jboss-web.xml has been modified in the following way:

<jboss-web>
       <context-root>/portal/portal-admin</context-root>
</jboss-web>

The file ./portal-core.war/WEB-INF/jboss-web.xml became:

<jboss-web>
       <context-root>/portal/portal-core</context-root>
</jboss-web>

As the default context names are hard-coded in some references, a couple of links are corrupted like this:

<img src="/portal-core/images/portletIcon_Default1.gif" alt="icon" align="middle" style="margin:0 4px 0 0" />

The context path should not be hard-coded in the sources.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list