Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
After add SSL, ui:tabs does not work. and shows port number
Hi
i use liferay 6.2 CE with MySQL
i add SSL yesterday, it's good, but i was wrong, ui:tabs does not work.
i add SSL with 2 steps.
1. modify service.xml
<Connector URIEncoding="UTF-8"
port="8443"
protocol="org.apache.coyote.http11.Http11Protocol"
maxThreads="150"
SSLEnabled="true" scheme="https"
secure="true"
keystoreFile="/home/ec2-user/GoDaddy/tomcat.keystore"
keystorePass="XXXXXXX"
keystoreType="PKCS12"
clientAuth="false" sslProtocol="TLS" /> 2.
2. modify portal-ext.porperties
company.security.auth.requires.https=false
session.enable.phishing.protection=false
web.server.protocol=https
there is no any exception, but the portlet always only shows first tab.
my tab view.jsp
<%@ taglib uri="http://java.sun.com/portlet_2_0"
prefix="portlet"%><br> <%@ page
import="com.liferay.portal.kernel.language.LanguageUtil"%><br>
<%@ page
import="com.raritan.ci.adm.mds.constant.Constant"%><br>
<%@ page import="javax.portlet.PortletURL"%><br>
<%@ taglib uri="http://liferay.com/tld/ui"
prefix="liferay-ui"%><br> <%@ taglib
uri="http://liferay.com/tld/aui"
prefix="aui"%><br> <%@ taglib
uri="http://liferay.com/tld/theme"
prefix="liferay-theme"%><br>
<liferay-theme:defineObjects /><br> <portlet:defineObjects
/><br> <liferay-ui:success
key="<%=Constant.MSG_KEY_SUCCESS%>"<br>
message="raritan.masterdatasync.message.success" />
<%<br> String tabNameInternal =
LanguageUtil.get(pageContext,
"raritan.masterdatasync.tab.internal",
"Internal");<br> String tabNameExternal =
LanguageUtil.get(pageContext,
"raritan.masterdatasync.tab.external",
"External");<br> PortletURL portletURL =
renderResponse.createRenderURL();<br> String tabNames =
tabNameInternal + "," + tabNameExternal;<br> String
msgTestConnection = "";<br> try {<br>
msgTestConnection =
renderRequest.getAttribute(Constant.MSG_KEY_TEST_CONNECTION).toString();<br>
} catch (Exception ex) {<br> }<br> %><br> <%=msgTestConnection%>
<liferay-ui:success key="success"<br>
message=" YEAH. Case uploaded successfully!" /><br>
<liferay-ui:error key="error"<br>
message="Sorry, an error prevented the upload. Please try
again." />
<liferay-ui:tabs names="<%=tabNames%>"
url="<%=portletURL.toString()%>"><br>
<liferay-ui:section><br> <%@include
file="/jsptab/internal.jsp"%><br>
</liferay-ui:section><br>
<liferay-ui:section><br> <%@include
file="/jsptab/external.jsp"%><br>
</liferay-ui:section><br> </liferay-ui:tabs>
please help or give me any suggest.
thank you
update
i found, it happen before, and after I add URIEncoding="UTF-8" in Connector info of server.xml, problem fixed.
but not in this time.
i believe, it's due to language, because when i switch to english version, tabs works.
updtate
FYI
i change protocol from "org.apache.coyote.http11.Http11Protocol" to "HTTP/1.1"
problem fixed.
Powered by Liferay™