Tag Archives: JBoss

Encountering the “Only one JAX-RS Application Class allowed.” in JBoss AS7 server.

If like me you have tried deploying RESTful Web services to JBoss AS7 using Jersey framework you could have encountered the  “Only one JAX-RS Application Class allowed.” error Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011232: Only one JAX-RS Application Class allowed. org.glassfish.jersey.server.ResourceConfig org.glassfish.jersey.server.ResourceConfig$WrappingResourceConfig org.glassfish.jersey.server.ResourceConfig$RuntimeConfig com.restaurant.jersey.JerseyApplication at org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.scan(JaxrsScanningProcessor.java:209) at org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.deploy(JaxrsScanningProcessor.java:105) at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final] … 5 more you will need […]


Liferay jBoss turn off the version info from http response Header

According to Security best practices, it good to turn off the portal and application server version information from the HTTP response header. By default, Liferay portal deployed on jBoss server shows the following information in the HTTP response header Liferay-Portal:Liferay Portal Enterprise Edition X.X CE (Augustine / Build XXXX / Month DD, YYYY) Server: Apache-Coyote/1.1 […]


JBoss Drools Guvnor Example

via JBoss Drools Guvnor Example | Examples Java Code Geeks.

In this article, we will see an example of Drools Guvnor. We use Guvnor as ‘Business Rules Manager’. Guvnor is the name of the web and network related components for managing rules with drools.

If you want to more know about Drools Introduction or its setup, read here.

This example uses the following frameworks:

  1. Maven 3.2.3
  2. Guvnor 5.1.1

Hibernate JBoss Tools Installation in Eclipse + Mapping Generation Example

via Hibernate JBoss Tools Installation in Eclipse + Mapping Generation Example | Examples Java Code Geeks.

Generating .hbm.cfg files or creating annotated files to map your classes is always a bit boring and it involves writing a lot of boilerplate code. In Eclipse you can use JBoss Hibernatate Tools, with which you can automatically generate all the files you need to work with Hibernate. In this tutorial we are going to see how to install Hibernate Tools in Eclipse and explore how you can generate mapping files automatically.

So these are the tools we are going to use on a Windows 7 platform:

  • JDK 1.7
  • Maven 3.0.5
  • Hibernate 4.2.3.Final
  • MySQL JDBC driver 5.1.9
  • Eclipse 4.3 Kepler

And this is the project I am going to use as the basis for the example : HibernateMySQLExample.zip. Download it and open it with Eclipse IDE.

JBoss Hornetq – Connecting from external App

In this article I tried to use JBoss Messaging service by an external Spring solution. The idea is to connect a console app (but it may also work as Web Application) that run in external JVM than JBoss one.


JBoss Enterprise Application Development

Hi, I am going to talk about how to develop enterprise application in a very few simple steps. Prerequisites : 1. JDK 1.7 (http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html) 2. Eclipse IDE ( greater than Helios ) 3. Apache Maven 3 ( https://maven.apache.org/download.cgi ) 4. MySQL 5 ( https://dev.mysql.com/downloads/windows/installer/5.5.html ) 5. JBoss EAP 6.1 (http://jbossas.jboss.org/downloads/) 6. Windows 7 Before starting, […]


Workshop in a Can: Setup a JBoss BRMS Full Day Workshop

via Workshop in a Can: Setup a JBoss BRMS Full Day Workshop | Java Code Geeks.

Looking for an easy way to promote, present or demonstrate how easy it is to get started with JBoss Business Rules Management System (BRMS) product?

Look no further as we have pulled together this workshop so that you can construct an evening, half day or full day session of learning around JBoss BRMS.

You can setup this workshop and run it at any event  as it can be constructed to take from a half to full day to complete. Think of the following possibilities for this workshop:

  • local Java User Group (JUG)
  • local JBoss User Group (JBug)
  • local tech meetup
  • work interest group
  • after hours meetup at work
  • submit it to a conference (yes you can use this!)