Author Archives: Peter

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

Gradle, Hibernate and “No Persistence provider for EntityManager named”

During the actual migration of an JEE project, consisting of several moduls (WAR, EJB ..) from Ant to Gradle I faced the following problem: In the test phase, e.g. when calling gradle test, one integration test (or should it better be called functional test? I’m not sure about this) stated out that: No Persistence provider […]

 

0
Kudos
Don't
move!

Read more

Gradle – Adding dependecy to task eclipse fails

Today I toyed a little bit around with gradle and tried to add an additional path to sourceSets.main.java for separate generated files from my own code. This works very well via srcDirs += ‘src/main/generated’. But after I cleaned up my project folder (removing IDE specific files and the generated classes) and using the eclipse task […]

 

4
Kudos
Don't
move!

Read more

Entwicklung gestartet: Clean Coder – Android-App

Heute habe ich (endlich) angefangen eine meiner Ideen in die Tat umzusetzen: Eine Clean Coder  AndroidApp. Neben der reinen Neugier “Wie funktioniert dass denn mit der Android-Entwicklung?” hat das ganze auch einen etwas ernsteren Grund: Da ich den Punkt “täglich Reflektieren”, während der Rückfahrt mit der Deutschen Bahn durcharbeite, fehlt mir ab und an noch […]

 

0
Kudos
Don't
move!

Read more

Configure JMS-AddressList property in Glassfish dynamically [Update]

When you would like to use a scenario like “Consuming JMS-Messages from a remote server” (see here), you may explore very quickly the problem, which comes with this example: The hard-coded “AddressList” property. This is a problem, because it reduces the resuability to null. Testing or deploying on other system configurations would lead to code […]

 

1
Kudos
Don't
move!

Read more