After add SSL, ui:tabs does not work. and shows port number

Bwi Scarletake, modified 4 Years ago. Expert Posts: 327 Join Date: 12/20/10 Recent Posts

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

 

&lt;%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%&gt;<br> &lt;%@ page import="com.liferay.portal.kernel.language.LanguageUtil"%&gt;<br> &lt;%@ page import="com.raritan.ci.adm.mds.constant.Constant"%&gt;<br> &lt;%@ page import="javax.portlet.PortletURL"%&gt;<br> &lt;%@ taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui"%&gt;<br> &lt;%@ taglib uri="http://liferay.com/tld/aui" prefix="aui"%&gt;<br> &lt;%@ taglib uri="http://liferay.com/tld/theme" prefix="liferay-theme"%&gt;<br> &lt;liferay-theme:defineObjects /&gt;<br> &lt;portlet:defineObjects /&gt;<br> &lt;liferay-ui:success key="&lt;%=Constant.MSG_KEY_SUCCESS%&gt;"<br> &nbsp;&nbsp; &nbsp;message="raritan.masterdatasync.message.success" /&gt;

 

&lt;%<br> &nbsp;&nbsp; &nbsp;String tabNameInternal = LanguageUtil.get(pageContext, "raritan.masterdatasync.tab.internal", "Internal");<br> &nbsp;&nbsp; &nbsp;String tabNameExternal = LanguageUtil.get(pageContext, "raritan.masterdatasync.tab.external", "External");<br> &nbsp;&nbsp; &nbsp;PortletURL portletURL = renderResponse.createRenderURL();<br> &nbsp;&nbsp; &nbsp;String tabNames = tabNameInternal + "," + tabNameExternal;<br> &nbsp;&nbsp; &nbsp;String msgTestConnection = "";<br> &nbsp;&nbsp; &nbsp;try {<br> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;msgTestConnection = renderRequest.getAttribute(Constant.MSG_KEY_TEST_CONNECTION).toString();<br> &nbsp;&nbsp; &nbsp;} catch (Exception ex) {<br> &nbsp;&nbsp; &nbsp;}<br> %&gt;<br> &lt;%=msgTestConnection%&gt;

&lt;liferay-ui:success key="success"<br> &nbsp;&nbsp; &nbsp;message=" YEAH. Case uploaded successfully!" /&gt;<br> &lt;liferay-ui:error key="error"<br> &nbsp;&nbsp; &nbsp;message="Sorry, an error prevented the upload. Please try again." /&gt;

&lt;liferay-ui:tabs names="&lt;%=tabNames%&gt;" url="&lt;%=portletURL.toString()%&gt;"&gt;<br> &nbsp;&nbsp; &nbsp;&lt;liferay-ui:section&gt;<br> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;%@include file="/jsptab/internal.jsp"%&gt;<br> &nbsp;&nbsp; &nbsp;&lt;/liferay-ui:section&gt;<br> &nbsp;&nbsp; &nbsp;&lt;liferay-ui:section&gt;<br> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;%@include file="/jsptab/external.jsp"%&gt;<br> &nbsp;&nbsp; &nbsp;&lt;/liferay-ui:section&gt;<br> &lt;/liferay-ui:tabs&gt;

 

 

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.