Author name: Manuel Bogner

JSF Form Auth with h:form

Using form based authentication in JSF always makes me look for a login form that uses h:form instead of plain html. Here is a form that uses JAAS with proper xhtml using the JSF h:form tag: <h:form id=”login” onsubmit=”document.getElementById(‘login’).action=’j_security_check’;” prependId=”false”> <h:outputLabel for=”j_username” value=”Username:” /> <h:inputText id=”j_username” size=”32″ /> <h:outputLabel for=”j_password” value=”Password:” /> <h:inputSecret id=”j_password” size=”255″

JSF Form Auth with h:form Read More »

glassfish 4 Certificate has expired

In my glassfish4 I got the following log messages that a certificate has expired: Severe: SEC5054: Certificate has expired: [ [ Version: V3 Subject: CN=GTE CyberTrust Root 5, OU=”GTE CyberTrust Solutions, Inc.”, O=GTE Corporation, C=US Signature Algorithm: SHA1withRSA, “”OID”” = 1.2.840.113549.1.1.5 Key: Sun RSA public key, 2048 bits … Here is how to remove this

glassfish 4 Certificate has expired Read More »

Method must have signature “String method(), String method(),…

Under Eclipse Luna (4.4) M6 my JSF project gave exceptions like the following when I had EL snipplets like <h:commandButton action=”#{userController.delete(u)}” … And here the error in eclipse: Method must have signature “String method(), String method(), String method(String), String method(String, String), String method(String, String, String), String method(String, String, String, String), String method(String, String, String, String,

Method must have signature “String method(), String method(),… Read More »

Java 8 Support in Eclipse Kepler 4.3.2 (SR2)

Java 8 released and the actual Eclipse version doesn’t support it out of the box. I found an official patch that adds this support to the actual version of Kepler SR2. Here is the update site: http://download.eclipse.org/eclipse/updates/4.3-P-builds Here the official JDT page that led me to this page: https://wiki.eclipse.org/JDT/Eclipse_Java_8_Support_%28BETA%29 Be sure to read the instructions as

Java 8 Support in Eclipse Kepler 4.3.2 (SR2) Read More »

Security manager changes :: Java DB / Derby – Access Denied

Security manager installed using the Basic server security policy. access denied (“java.net.SocketPermission””localhost:1527″”listen,resolve”) Java 7u51 contains changes in the security manager. It was allowed to use ports >1024. Now this port range was moved much higher. To be able to use lower ports there has to be a line in java.policy which is located in $JAVA_HOME/jre/lib/security Here

Security manager changes :: Java DB / Derby – Access Denied Read More »