Category Archives: Java

DataFX forked – @ContextResource added

Some weeks ago, Hendrik Ebbers (http://guigarage.com) shared a beta version of DataFX with me. DataFX is a cool framework that has several components. Controller : removes the direct dependency between a fxml file and it’s controller within the fxml file. It also adds contextual objects and for three kinds of contexts (Application, View and FlowView). […]

 

0
Kudos
Don't
move!

Read more

Hint: SLF4J Konfiguration within an EAR

Hi, here is an short introduction of how to use slf4j’s logback.xml configuration file within an EAR. Everybody who uses slf4j (or other Logging Frameworks) knows the following Problem When you deliver the configuration file of the logging framework within an WAR works everything as expected and without any problems. But if you try this […]

 

15
Kudos
Don't
move!

Read more

Tutorial: How to use JAX-RS and CDI together

Hi, because it’s relative hard to figure out, how to do it, I would like to show you how to combine JAX-RS and CDI. Preparation You need a Glassfish v3.x where we will run this application Gradle at least in version 1.0 Let’s start with a minimal application “The Greeter”. If you call “<your_host>/GreetMeWithJaxRSAndCDI/rest/greet/<NAME>” it […]

 

20
Kudos
Don't
move!

Read more

Gradle: Using expand and jQuery

During the last days I started to enable a build-time setup for one of my Spring projects. One thing I set at build time was the spring.profiles.default  context parameter. For replacing wildcards during build time I added the expand()  closure to the war-task of my Gradle build script. The problem This works fine til I wanted to […]

 

1
Kudos
Don't
move!

Read more

Hibernate and java.lang.NoSuchFieldError: TRACE

During the implementation of some integrationstests for a Spring application I faced the problem, that the tests couldn’t be executed due to the following error:

After some investigation I figured out, that Hibernate has a non transitive dependency to Log4J log4j >= 1.2.12 – I use slf4j / logback for logging -. After I added […]

 

19
Kudos
Don't
move!

Read more