quarta-feira, 20 de maio de 2015

Liferay - Application WAR is blacklisted

Sometimes when you deploy an application WAR file into your jBoss Server, it can get blacklisted. The reasons for this can be many, like:

1. You've copied the file into the deploy folder but it took to long to paste all the archive before de deploy process started. If you repeat this again and again the your application will get blacklisted.

2. Your WAR application archive is corrupted. Make sure you can open it. If you don't then your file is corrupted and jboss will not be able to deploy it.

To solve this just restart the server and try to deploy it again.

sexta-feira, 15 de maio de 2015

Liferay - Can't import LDAP users because of special characters

If you use the default LDAP configuration for Liferay 6.2, then you're in for a problem when it starts to import the users.

It is usual for the users in a LDAP server to have all sort of characters but the default configuration of Liferay doesn't allow all of them.

To get this fixed you'll have to add this property to your liferay configuration:

users.screen.name.validator = com.liferay.portal.security.auth.LiberalScreenNameValidator 


Then restart your server.

quinta-feira, 14 de maio de 2015

Liferay - Not updating dependencies or resources

When you've deployed a new version of your application in a jboss server, its possible that, sometimes, you have a problem with non updated dependencies or javascript/stylesheets resources.

This happens because the jboss server saves the data from the previous installed version of your application. 

To solve this stop the server, access the standalone/temp folder and delete the folders: auth, vfs, work.

Then start the server.

terça-feira, 5 de maio de 2015

Liferay - How to change your application server encoding?


 If you ever have any kind of problems regarding encoding in your application, it can well be a problem in the configuration of your application server.

If you're using jBoss, then follow the next steps:

 1. Open your ide and click two times in the server instance in the Servers tab.


2. Open Launch Configuration

 



3. Choose Common tab and there you'll have an Encoding area. Choose the type of encoding you need. Save it et voilá!


segunda-feira, 4 de maio de 2015

Liferay - Home Page, Landing Page and Logout Page.

When you're developing a project to a client, it can be required that you define the first page as the login page of your application. To do so, edit the portal.ext.properties file and add the next lines: 
#*******DEFAULT LANDING PAGE*******#
default.landing.page.path=path
default.logout.page.path=path

#******HOME PAGE*******#
company.default.home.url=path

The default.landing.page.path is the page where you'll be redirected after you've logged in into liferay.
The default.logout.page.path is the page where you'll be redirected after you've logged out off liferay or your application.
The company.default.home.url is the page where you'll be redirected after you access your base hostname, like localhost:8080.

Restart your application server so your changes take effect.