Null pointer exceptions when starting the portal with non root context
Description
Activity

Luyang Tan July 1, 2012 at 10:41 PM
PASSED Manual Testing following the steps in the description.
Reproduced on:
Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: e1348b2a0855c7b6b4628458a3db5a218dbe0631.
When I click the URL, I will see the Null pointer exceptions and I can not access in liferay.
Fixed on:
Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 2e9ab44a1e60d01c10f69416f65b542a53fdd65f.
Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: d0297e3a439fff89052b98229e402b3c208fde61.
When I click the URL, I can access in liferay and no error in the console.

Michael Saechang June 28, 2012 at 12:12 PM
Committed on:
Portal 6.2.x GIT ID: bce03cb7a9fce6cf028ac20a210c792d411ff5f5.

Shinn Lok June 27, 2012 at 4:39 PM
"" is put into the ServletContextPool if we're using the ROOT portal context. If we use something else (liferay), that will be put into the pool.
When pluginServletContextName:
is blank,
returns the ROOT servletContext. However, if pluginServletContextName is blank and the portal context isn't, it throws a NPE here:
Details
Assignee
Luyang TanLuyang Tan(Deactivated)Reporter
Shinn LokShinn Lok(Deactivated)Labels
Git Pull Request
Bug Type
Regression BugComponents
Affects versions
Priority
Medium
Details
Details
Assignee

Reporter

Labels
Git Pull Request
Bug Type
Components
Affects versions
Priority
Zendesk Support
Linked Tickets
Zendesk Support
Linked Tickets
Zendesk Support

Steps to reproduce:
Rename Catalina/localhost/ROOT.xml to Catalina/localhost/liferay.xml
Rename tomcat../webapps/ROOT/ to tomcat../webapps/liferay/
Add portal.ctx=/liferay to portal-ext
Start server and hit http://localhost:8080/liferay/
Observe:
Caused by: java.lang.NullPointerException
at com.liferay.taglib.util.ThemeUtil.doDispatch(ThemeUtil.java:152)
at com.liferay.taglib.util.ThemeUtil.includeVM(ThemeUtil.java:134)
at com.liferay.taglib.util.ThemeUtil.include(ThemeUtil.java:100)
at com.liferay.taglib.theme.IncludeTag.doEndTag(IncludeTag.java:34)
at org.apache.jsp.html.common.themes.portal_jsp._jspx_meth_liferay_002dtheme_005finclude_005f1(portal_jsp.java:482)
at org.apache.jsp.html.common.themes.portal_jsp._jspService(portal_jsp.java:427)
... 169 more