liferay

Compare Liferay's encrypted passwords and user input

旧街凉风 提交于 2020-01-06 11:50:08
问题 I'm working on an application that shows information stored on a Liferay database. For doing that I made a web service, using Java, that reads data from the database. All queries are going well but I need a login section. The issue is that the password is encrypted and I don't know how to compare the password given by the user and the passwords I have in the database, that are encrypted. EDIT : passwords.encryption.algorithm has the default value: PBKDF2WithHmacSHA1/160/128000 Any suggestion?

Why ServletResponseUtil. sendFile sends a file as page content?

谁说我不能喝 提交于 2020-01-06 05:35:23
问题 I want to generate a file and upload it to disk like a file. I unload as ServletResponseUtil.sendFile(httpServletRequest, httpServletResponse, fileName, baos.toByteArray(), ContentTypes.APPLICATION_OCTET_STREAM); As a result, the file is not uploaded as a file to disk, but to the browser page as �� ࡱ �; �� V ���� ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������

Ajax not working in the portlet configuration jsp page (liferay 6.2)

一个人想着一个人 提交于 2020-01-05 12:56:16
问题 Working on a MVCPortlet (Liferay 6.2) . Is there any reason why this ajax call works on a regular jsp of my portlet, but does not work on the config page of the portlet (the jsp that opens when you click top right corner and then configuration and option). In this case, the portletURL is correctly displayed (alert), the JS returns success but the controller never received the client request. Here's the ajax call: $.ajax({ url: portletURL, type: 'POST', dataType: 'text', cache: false, data: {

2 apps in the same JRE, are getting different result from java.awt.Desktop.isDesktopSupported()

故事扮演 提交于 2020-01-05 08:56:30
问题 I have a Maven Project that uses java.awt.Desktop . I'm using it for Google Authentication, so I need some way to open a browser dialog for Google Login, and user confirmation. I'm exporting that library in a .jar file, that I intend to include it in lots of Liferay Portlets, in WEB-INF/lib If I test the standalone project, running from the Liferay's Tomcat jre, Everything works fine, and Desktop.isDesktopSupported() returns true . When a portlet, deployed on the Same Tomcat , calls the same

liferay migrate data from hsql to mysql

走远了吗. 提交于 2020-01-05 07:39:18
问题 I am having Liferay 6.2. It has some data in hsql. I need to import these data into mysql database. How can I import all data from hsql to mySQL. I am having following files in data/hsql folder lportal.lck (lck file) lportal (seems like data base dump) lportal.properties lportal.script Is there any way to import db using some script or changing some configuration files. 回答1: One way is you can try using the Data migration tool liferay provides, check out the Liferay User-guide and scroll to

Unable to set auto deploy directory on Liferay Portal 6.0

喜夏-厌秋 提交于 2020-01-05 04:33:07
问题 I am working with Liferay 6.0 on JBoss 5.1.1, Windows 8 is the OS. On server startup I always get the following error explaining the auto deploy directory can't be found: ERROR [AutoDeployDir:90] Directory F:\liferay-portal-ee-6.0\deploy could not be created This makes sense because I don't have an F: drive. However, I'm unable to configure it in the portal-ext.properties file as explained here. When I log into the Liferay control panel, and look under Portal Administration -> Portal

Liferay Service Builder throwing three weird errors

纵然是瞬间 提交于 2020-01-05 03:48:11
问题 (Old question bump) I'm doing some tests on Liferay. For this, I'm following the MVC tutorial, and got stuck in the services stuff. I created a simple entity for testing purposes, "Miclase": public class Miclase { int num1; String string1; } Pretty simple, huh. Well, after this, I started the service builder and created a file like this, with the Overview pane: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 6.2.0//EN" "http://www

Passing variable to jsp

北慕城南 提交于 2020-01-04 02:59:33
问题 I have a java class public void doView( RenderRequest renderRequest, RenderResponse renderResponse) throws IOException, PortletException { //I need to pass the string variable over to my jsp ThemeDisplay themeDisplay = (ThemeDisplay) renderRequest.getAttribute(WebKeys.THEME_DISPLAY); String sLang_Id = themeDisplay.getLanguageId(); include("/html/mypackage/view.jsp", renderRequest, renderResponse); } How would I read sLang_Id in my jsp <c:out value="${sLang_Id}" /> ??? 回答1: Add the following

Passing variable to jsp

早过忘川 提交于 2020-01-04 02:59:07
问题 I have a java class public void doView( RenderRequest renderRequest, RenderResponse renderResponse) throws IOException, PortletException { //I need to pass the string variable over to my jsp ThemeDisplay themeDisplay = (ThemeDisplay) renderRequest.getAttribute(WebKeys.THEME_DISPLAY); String sLang_Id = themeDisplay.getLanguageId(); include("/html/mypackage/view.jsp", renderRequest, renderResponse); } How would I read sLang_Id in my jsp <c:out value="${sLang_Id}" /> ??? 回答1: Add the following

The persisted data in hibernate session becomes stale and sometimes duplicate ID gets generated by hibernate

痴心易碎 提交于 2020-01-04 02:43:48
问题 I am using hibernate for my application. Sometimes hibernate generates duplicate ID and the strategy i have used is increment which does max(ID) from table and adds one. I have no clue why it happens and it happens all of sudden and after that all the subsequent requests for that table insert operations fail. the workaround for this is to restart the tomact server. here are the details of application 1. 3 applications deployed on liferay-tomcat.each has its own abstraction-impls.jar.This JAR