Category Archives: binding

Apache Testing-Port/socket issue

Ok so I'm using Linux and I have configured Apache,APR,APR-util, and I went to test Apache via ((usr/sbin/apachectl start)) & this comes up:

[

httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

(13)Permission denied: make_sock: could not bind to address [::]:80

(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80

no listening sockets available, shutting down

Unable to open logs

]

From the research Ive done the first warning can be safely ignored and to edit the listening sockets you edit the http.conf file to include : Listen [port#], but no matter what I put the SAME thing comes up about port 80.

Ive tried Listen 90,Listen 9540, Listen with the ip address and port # and nothing changes the message

Any ways to fix this?

Apache Tapestry 5 property binding – ERROR

Helo. I am having problem binding a property from code behind to frontend and can't seem to figure out what is the problem.

The code behind is the following (Layout.java)

private String userEmail;

public String getUserEmail()
{
    userEmail = getUser() == null ? "Not logged in" : getUser().getName();
    return userEmail;
}

public Users getUser()
{
    return login.isLoggedIn() ? login.getLoggedUser() : null;
}

This how i am trying to display it in the .tml file (Layout.tml):

${userEmail}

If for example, in the getUserEmail() function i just return a simple string, it is displayed. When i do it like this, i get the following error:

org.apache.tapestry5.ioc.internal.OperationException
Render queue error in Expansion[PropBinding[expansion Index:layout(userEmail)]]: org.apache.tapestry5.ioc.internal.util.TapestryException

Could anyone please tell what i am doing wrong?

Best regards, Marius.