JEE

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 »

ActiveMQ with JBoss 7.2.0.Alpha1 / EAP 6.1.0.Alpha1

Update 26.8.2013: Described steps also work with Wildfly Alpha 4. Tested the described configuration with urn:jboss:domain:resource-adapters:1.1 + mdb part in the standalone.xml and the latest rar. —- Working with an external ActiveMQ broker has become quite easy since my last attempts in the beginning of JBoss AS7. Here a short howto how to get it running

ActiveMQ with JBoss 7.2.0.Alpha1 / EAP 6.1.0.Alpha1 Read More »

JBoss Login Configuration

Here a short example for a security-domain that has to be configured in the urn:jboss:domain:security subsystem: <security-domain name=”mysecuritydomain” cache-type=”default”> <authentication> <login-module code=”org.jboss.security.auth.spi.DatabaseServerLoginModule” flag=”required”> <module-option name=”dsJndiName” value=”java:jboss/datasources/ExampleDS” /> <module-option name=”principalsQuery” value=”select u.password from users u where u.name=?” /> <module-option name=”rolesQuery” value=”select r.name as rolename, ‘Roles’ as rolegroup from users u, roles r, users_roles ur where ur.user_id=u.id

JBoss Login Configuration Read More »

m2e Java heap space

I got the following error during eclipse startup: eclipse.buildId=M20130204-1200 java.version=1.7.0_21 java.vendor=Oracle Corporation BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_DE Framework arguments: -product org.eclipse.epp.package.jee.product Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product Error Tue Jun 04 16:59:24 CEST 2013 An internal error occurred during: “Updating indexes”. java.lang.OutOfMemoryError: Java heap space at org.apache.maven.index.updater.IndexDataReader.readUTF(IndexDataReader.java:144) at org.apache.maven.index.updater.IndexDataReader.readField(IndexDataReader.java:134) at

m2e Java heap space Read More »

jboss-web.xml validated with its dtd

I wanted to use the dtd of jboss-web.xml as code completion only works with a schema in eclipse and I don’t like warnings about missing schemas anyway. So here is an example jboss-web.xml that is validated with it’s dtd. <?xml version=”1.0″ encoding=”UTF-8″?> <!DOCTYPE jboss-web PUBLIC “http://www.jboss.org/j2ee/dtd” “http://www.jboss.org/j2ee/dtd/jboss-web_5_0.dtd”> <jboss-web> <context-root>test</context-root> </jboss-web> You can also download the

jboss-web.xml validated with its dtd Read More »