Author name: Manuel Bogner

Get rid of Wildfly/JBoss headers “Server” and “X-Powered-By”

If you don’t want to send these headers with every response you have to disable them in your configuration file (standalone.xml). I just removed the following lines from my undertow subsystem (urn:jboss:domain:undertow:1.1): <filter-ref name=”server-header”/> <filter-ref name=”x-powered-by-header”/> … <response-header name=”server-header” header-name=”Server” header-value=”WildFly/8″/> <response-header name=”x-powered-by-header” header-name=”X-Powered-By” header-value=”Undertow/1″/> After a server restart the headers were gone.

Get rid of Wildfly/JBoss headers “Server” and “X-Powered-By” Read More »

Eclipse Luna Performance

To speedup eclipse I first edited the eclipse.ini file to look like this (don’t just copy paste my file – compare it with yours): -vm /opt/jdk1.8/jre/lib/amd64/server/libjvm.so -startup plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar –launcher.library plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140521-1744 -product org.eclipse.epp.package.jee.product –launcher.defaultAction openFile -showsplash org.eclipse.platform –launcher.defaultAction openFile –launcher.appendVmargs -vmargs -Dosgi.requiredJavaVersion=1.7 -Xms60m -Xmx1024m -Xss2m -Xverify:none -Duser.name=mbo I removed lines setting MaxPermSize as this is deprecated in

Eclipse Luna Performance Read More »

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 »