liferay,server,portal , Does'nt Liferay work at different ports?

Does'nt Liferay work at different ports?


Tag: liferay,server,portal

I have developed a portal page using Liferay and the port number is 8080. I wanted to test SSO, I decided not to try with the existing one as there might be some problems and I might end up crashing the whole thing. As a result I downloaded a new liferay portal. Iadded it to the eclipse and ran the second server whose port number was changed to 8085. But the webpage displayed when the second server ran was still 8080 and the same page as the first portal. Later I downloaded the enterprise edition and did the same, still 8080: 1st portal. I changed the plugins, no progress. Later, I changed the port number of first one to 8090. The page was not being displayed at all. Why is it like this? I don't get it. Does liferay work with a single port or can't there be two Liferay portal at a time?


You can always navigate to exactly the port that you configure - given that the appserver actually serves connections to the port. Common mistakes that I see (assuming you're running tomcat):

(Here's the default for browser.launcher.url)

 # Enter a URL to automatically launch a browser to that URL when the portal
 # has fully initialized. Enter a blank URL to disable this feature.


Desktop Database with Server without installation

i have Java-Application that growth a lot over the past month. All configurations from the programm and all the logs are stored in .txt or .log files. The programm should change now. The user could install the programm on his own pc but the programm itself should get all the...

How to connect from your iOS app to a backend server? how to read,modify and fetch data to backend server?

I am new in developing iOS application. I like to learn communication between my app and an specific back-end server(which is written in ruby). I would like to learn how to read, fetch and modify data on back-end server? I do not have any idea that from where I should...

Redis Cache .Net Client

Does anyone know if Amazon supports C# client libraries for making calls to Redis Server? I know service stack and stack exchange are the only two libraries right now, but Amazon makes no mention of them at all.

send email according time and date [closed]

I am facing a problem with sending email about status. Basically I want to create script which send email every morning with some data from database. My goal is to write PHP file which will send email. I can create this file but I dont know how to call this...

Cons of a liferay cms while website development using Community Edition

I am new to LIFERAY CMS. i need cons of a liferay cms i.e., difficulties faced while developing and using liferay cms. can you please list cons of liferay cms.

Python Networking

So I have create a socket and am using the function socket.bind() and keep on getting the following error: Only one usage of each socket address (protocol/network address/port) is normally permitted Here is my code: import socket s = socket.socket() host = socket.gethostname() port = 12345 s.bind((host, port)) s.listen(5) while...

Reading packets from a client stops after 1 or 2 received

I'm writing a server program in C that will read commands from the client. Commands are in the form of 5 byte packets, and the client will be sending a bunch of them in succession. The code I have to read each command is: while(1) { char buffer[1024]; int alreadyread...

Form submit portlet with Spring MVC

I'm trying to achieve a Liferay portlet of submit form using spring MVC. The model: package com.model; public class Person { String firstName; String middleName; public String getFirstName() { return this.firstName; } public String getMiddleName() { return this.middleName; } public void setFirstName(String firstName) { this.firstName=firstName; } public void setMiddleName(String middleName)...

JAVA: RMI Callback -> object already exported

this is my first question, so sorry if i'll make it incorrect and for my english. I have to do a distributed-hangman project in java, there are guests, players and masters (more matches). When a user(already registered) log himself or when a master open a match, the server must notifies...

Call function on Server from iOS app - Objective C

If you are familiar with's Javascript SDK, this is what I am trying to do for my own server for my iOS app (Objective-c). I want to be able to send some a string to the function that is on my server, have the server run its function and...

how to set permission in Git?

I am new to Git and after I lots of searching I found that I must have set Linux permissions in my Git server. But I want to know, is it possible to set permissions in Git? I am working on a team about six people and I don't like...

Configuring client throughput in simple TCP server

I was given a sample project which goes like this: Client A connects to server B. A sends packet to B, B returns the same packet to A. Client A sending throughput is configurable Measure turnaround time per packet. Now step 3 is what is confusing me. Using python, the...

How to deploy three config server instances for sharding in mongodb?

I am a newbie in MongoDB. Also I have not much knowledge in networking and servers. I am trying to deploy sharded cluster in mongodb using this article. It says I need to deploy three configuration server instances and create data directories for each. I can create a data directory...

How to get server information from VMware

I have access to the VMWare GUI and I can easily export all the columns such as UPtime, IPAddress, Notes, DNS, GuestOs, State, Name and so on. I want to right a script that can automatically get this information daily. So gar I was only able to get the server...

403 Error when trying to remove products from Cart

I am using a cPanel host and running PHP 5.5. Opencart version 1.5.1. When I try to remove a product from the cart I am getting a 403 forbidden error. This only seems to happen with products that have a lot of options and include text input options. I have...

Rails server gives error when I load localhost:3000 [duplicate]

This question already has an answer here: Rails 'parse_query' error on server in brand new app 2 answers So, I have started learning ruby on rails, I used following command to create a ROR project: rails new blog next I write following command to run the rails server: rails...

Sending image from client on java to server on python

I have been trying to create a program that runs a client in Java and the server in Python. My overall goal is to upload a picture from the client on Java to the server on Python and store it on a mysql server. I haven't tried yet to convert...

How can I change the zIndex attribute of aui-datepicker in Liferay Portlet 6.2

I have discoveder one problem with date field in portlet in LF 6.2. The problem is that after clicking on the input field, the datepicker is displaying, but with zIndex=0, that means it is under the portlet. If I change on firebug that parameter to 1, everything is OK. I...

Get host computer information from within R code

I'm developing an R script on a local machine and intend to use in in the future on a server. There are slight differences in initial setup of section of the script depending on the machine used, and what I'd like to achieve is to use some control sequence in...

How to pass data from page to Portlet class through AJAX call?

I'm trying to pass a value in an AJAX 'GET' request to my Portlet class, but I can't quite figure out a way to access such variable's value in the class. My AJAX code is: function loadXMLDoc() { var nocache = new Date().getTime(); var xmlhttp=new XMLHttpRequest(); var url = "${mURL}";...

Include ftl file in ext plugin

I have ext-plugin and I would like to override this file: portal-impl\src\com\liferay\portlet\dynamicdatamapping\dependencies\ddm\documentlibrary.ftl. After maven build, this file isn't include in my porta-impl-ext.jar. In my portal-impl-ext's pom.xml I have this code: <build> <plugins> <plugin> <groupId>com.liferay.maven.plugins</groupId> <artifactId>liferay-maven-plugin</artifactId> <version>${liferay.maven.plugin.version}</version> <configuration>...

How to store php form data to a web server in a plain text file?

I have an assignment that calls for data entries from a php form to be stored in a plain text file on the same web server. I created the php form page and the plain text file but I am unsure how to connect the two. I've searched the internet...

Haxe server-client exchange on all platforms

I'm developing client-server application on haxe. I want client side to be compiled to javascript from haxe, but there is a big chance, that other languages will be also needed. I cannot find universal way of doing it. Though, I can make it with websockets, when it comes to jabascript,...

Get list of users in liferay

I want to display users list on liferay. and I am having problem with it. Here is my action class. public void userList(ActionRequest actionRequest, ActionResponse actionResponse) throws SystemException { // Todo Logic for user code try { int countUser = UserLocalServiceUtil.getUsersCount();"User Present In DB" + countUser); List < User...

How to pass HTTP request to Web-Service

From my portlet JSP, I am trying to make a Ajax call to web-service. My aim is to pass HTTP request object as a parameter to web-service method. Please suggest.

Preventing brute-force login attempts [closed]

I want to prevent hackers to break into my users' accounts. It is often said that: The best approach it to lockout an account temporarily after x failed login attempts. I understand this and it seems like a good idea. Using IP for example is a very bad idea -...

how to create unkown amount of threads c++

I wrote a server c++ that connect to clients and i want to use thread in order to do some actions and with some clients and not to do only one client finish and go to another client. but i cant create unknown amount of theards only specific. can sombody...

How to run multiple application on Grunt

I have two applications say applicationA and applicationB and if I run following command on terminal grunt serve my one applicationA will up and work fine. when i need to run applicationB, first i need to stop applicationA and then i can run applicationB. If i try to run both...

In liferay market place, I am unable to submit the project

In Liferay market place i am stuck at the place "Upload Liferay Plugin Packages " When ever i am trying to upload a war file Please help me to short it out :)...

How do I run C# within a Node.js server application?

I have a node.js application and a C# algorithm. The algorithm puts out 15 numbers that represent symbols on a digital slot machine. The node server is posting and getting data from Firebase and the digital slot machine is doing the same on the same table. My question is how...

Apache - finding configuration file path

I have to migrate another apache instance from 2.2 to 2.4 but I have one problem. In Apache monitor I see multiple services running but I don't really know where apache .conf files are stored. In previous migrations from 2.2 to 2.4 I had them somewhere within conf folder. Apache...

Opening Foxx API to local network

I have setup serverend points they work for the web interface fine but the api endpoint for my for app do not even give a error and does not time out. I have tried turn the app to production mode in the web interfaces no joy. I look at the...

How can I run a libGDX application on a non-GUI server environment?

I built a libGDX application that runs well on my PC desktop but when I try to run it on my Ubuntu server, it raises the following error: "LwjglApplication: Couldn't initialize audio, disabling audio java.lang.UnsatisfiedLinkError: /tmp/libgdxroot/31ce78a2/ /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/../lib/amd64/ symbol awt_Unlock, version SUNWprivate_1.1 not defined in file with link time reference"....

“Foundation” framework can be used in AppleScript on Yosemite but not Mavericks

I've written an AppleScript library that makes use of the "Foundation" framework. On one computer (with Mac OS X Yosemite), everything runs fine. On my other computer (which runs Mac OS X Mavericks), I'm getting an error. When digging deeper to check what the issue is, it seems that the...

PHP - Interpret

This question already has an answer here: How to enable PHP short tags? 15 answers On ours servers are some old scripts which still uses <? instead of <?php and when I download it to my machine at localhost it's not being interpreted, instead it just echoes the code....

Disconnect Session via Powershell [closed]

Is there a command to disconnect a user from a session on a server via PowerShell? To logoff i use: Logoff /server:<Server> <SessionID> ...

How manage styles in Vaadin portlet in Liferay

I have a Portlet, where is used Valo theme. Most graphical components are displayed properly, but TextField not. It should have rounded border radius and height should be about 35px. It has normally about 15px and the field is angular. When I narrow width of browser window to about 200px...

Use Sockets in multiple *.cpp files

As you can see in the Title box, I´d like to find a way how to use my sockets in multiple cpp files. #pragma comment(lib,"ws2_32.lib") void main() { WSADATA wsaData; WSAStartup(MAKEWORD(2,0), &wsaData); SOCKET slisten,client; slisten = socket(AF_INET,SOCK_STREAM, 0); //and so on... } This is the way I use the ws2_32.lib...

Python Multiplayer noughts and crosses [closed]

So I made a single player noughts and crosses in Python a little while ago in school. score=[[' ',' ',' '],[' ',' ',' '],[' ',' ',' ']] global attempts attempts = 0 from random import randint from time import sleep def grid(): #draws playing grid hideturtle() speed(0) pensize(0) penup() setpos(-200,...

Incorrect liferay-plugins dependency

In following dependency is defined: dependencies { classpath group: "com.liferay.portal", name: "portal-service", version: "7.0.0-SNAPSHOT" } How can a 6.2.x version have a dependency on 7.0.0 version? Is it a bug? When I peek to the history of the file, the dependency has always been there. I am not able...

Lifefay freemarker ADT: methods unavailable?

I'm trying to work on some ADT for asset publisher (Documents and Media type), but I often have a message telling me that : Expression assetRenderer.getDataRepositoryId is undefined or Expression assetRenderer.getFileEntryId is undefined I found some threads where people said that we must add velocity.engine.restricted.classes= velocity.engine.restricted.variables= freemarker.engine.restricted.classes= freemarker.engine.restricted.variables= in

plesk when upgrading php, will this break everything?

I'm running a VPS with centOS, plesk 12 and PHP5.3. I'm looking to upgrade to a more recent version of php but without taking down all my sites running on that server. I've tried through the plesk GUI and got to this point which is ambiguous to what it will...

PayPal API QueryParameters not found

I copied and pasted a section from here (You will have to scroll to the top - click C# on the right and scroll down/refresh) and have installed the PayPal API into the project Install-Package PayPal but QueryParameters is not found - is there a second part or something...

Exception in opening a socket at my IP address

I am new in socket programming C#. I am trying to make a chat server between two computers but I am unable to do that because I cant start my Socket..... I gave the Server Program my IP address but gives me an exception... "The requested address is not valid...

Needs advice for buying Web Server [on hold]

Are there any guides for buying web servers and setting them up? I am going to just be making basic websites.

Only allow certain countries traffic access specific page

I am using --with-http_geoip_module for identify traffic. There are some pages that I only want certain country to access. Here is configuration: For http http{ geoip_country /usr/share/GeoIP/GeoIP.dat; # the country IP database map $geoip_country_code $allowed_country { default 0; US 1; UK 1; HK 1; } } The location directive: location...

How to create service builder for liferay plugin project with maven

I have Already create Liferay Plugin project. and maven install also over. it gives ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] --------------------------------------------------------------------- [INFO] Total time: 1:29.773s [INFO] Finished at: Wed Jun 17 15:46:10 IST 2015 [INFO] Final Memory: 34M/151M [INFO] -----------------------------. But unable to add service builder. When i try to add...

What's the ideal cloud storage for String Objects?

In my app I would need a way for users to log in. Once they log in point balances are kept and synced with the cloud. The only things that would need to be stored in the cloud are String userID, String Points, and String Password. I have no clue...

How to test java server without deployment?

Is there a way that I can test my java server on my computer without deploying it to a real server? I know php had wamp and lamp but what about java?

jqgrid paging on server side

I'm trying to add server side paging to my grid. In adittion, I have a filter by 'license', 'number' and 'group'. When I press the next page button the controller is called and I obtain the data but my grid is reload on page 1 and I cant view the...