quarta-feira, 17 de junho de 2015

Liferay - jBoss Web Console url and Management Realm user

It's possible to do all of the configurations you need in jBoss through the XML, and other, configuration files. But you have a cleaner way to do it - jBoss Web Console.

First things first, what is the Web Console Url?

It depends on your standalone.conf file ( it's localized in your jBoss directory in the \standalone\configuration path ). Open the file and check for the same line that is highlighted in the next figure:




Mine is at the port 9990. Open a new tab with the url localhost:port.

Now one of two things may happen:

1. You have already a user to access the management console.
2. You don't have any user configured yet.

If your at point 2, keep reading.




As explained in the Welcome page, open a command line and access the bin folder in your jboss directory. Run the add-user.bat file.

Now choose the first option Management User as you want a user to access the management web console.
 



For the realm you can keep ManagementRealm or set a new one.
Set the user and password.

Now you've a management user!



 When you access the Web Console url again you'll be asked to authenticate. Do it so




In the console you can do many things, like:

- Check datasources
- Change  environment properties
- Manage applications

And that's it!

jBoss/Liferay - Manual undeploy an application

If you're using your Liferay instance with a jBoss instance as the application server, it's possible to make a manual undeploy if needed.

To do so, follow the next steps:

1. Access [jBoss installation folder] \standalone\deployments.
2. Search for the YourApplicationName.war.dodeploy file.
3. Rename the file to YourApplicationName.war.undeploy or delete it so that the application is unninstalled from the server.

And that's it!


Liferay - Change Site Name

If you ever wanted to change your Site Name but the changes are not applied, don't worry! I've got the solution.

And it's a very simple one. Follow these steps:

1. Access the liferay database ( if you don't know the name of it you can edit the standalone.conf file and check in the datasource section ).

2. Find the table Account_.

3. Edit the Name column and set the desired name.

And that's all!