Java HTTP Request with Basic Auth

This is how you do a simple HTTP request with Java. These code performs the actual HTTP request and saves the response in a String variable. If the HTTP server requires Baisc Auth this code will fail. To make it work for Basic Auth these 3 additional lines are required. The whole method looks likeContinue reading “Java HTTP Request with Basic Auth”

How to get notified about out-dated dependencies in build.sbt?

Scala SBT is the build tool for the programming language Scala. You can specify your project dependencies in the “build.sbt” file, similar to the pom.xml file in Maven. A build.sbt file can look like this. But how do you get notified about new versions of your dependencies? VersionEye now supports Scala SBT. VersionEye can monitorContinue reading “How to get notified about out-dated dependencies in build.sbt?”

What is maven-compat ???

What is the maven-compat project? I was wondering. So I went to the official page of the project and found this:  Maven2 classes maintained as compatibility layer.  That is not very helpful! I would like to have a little bit more information! So clicked on the “Project Summary” link and got this.  All right. SomeContinue reading “What is maven-compat ???”

Geek2Geek – Centralized Logging

Last week it happened again. Geek2Geek! This time we came together at Flyeralarm in Berlin to talk about centralized logging. That is an interesting topic for all companies which have to scale. As soon you have more than 1 server you need to think about how you collect and analyze your log files in aContinue reading “Geek2Geek – Centralized Logging”

Comparison of Application Level Package Managers

I have to work with a lot (9) of different package managers at my daily work at VersionEye. Part of our mission is it to make manual updating of dependencies extinct, because it’s a manual and time consuming task which nobody enjoys. That’s why we are building a notification system for open source software libraries to make ContinuousContinue reading “Comparison of Application Level Package Managers”


I am currently writing a maven plugin and I got this error message by executing the goal. [ERROR] Failed to execute goal group:artifact:1.0.0:goal (default-cli) on project artifact: Execution default-cli of goal group:artifact:1.0.0:goal failed: An API incompatibility was encountered while executing group:artifact:1.0.0:goal: java.lang.NoSuchMethodError: org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.getReadTimeout()I I could resolve this after I updated from maven 3.0.3 to mavenContinue reading “AbstractHttpClientWagon.getReadTimeout()I”

Getting a list of all Licenses in a Project

In a regular project you are using a handfull Software Libraries. Every Library in your project can use a different license. To get a list of all licenses which are used in your project can be difficult. You can double check the license for every single library in your project manually. But that is timeContinue reading “Getting a list of all Licenses in a Project”

Automated Business Logic

If you are working with Hibernate this might be interesting for your. Automated Business Logic (ABL) is a Library which helps you to manage your Business Logic. It handles Cross Cutting Concerns and Multi Table Views. You just need to add a couple Annotations to your code. Take a look tot this demo here: reading “Automated Business Logic”

Uploading Artifacts to the central maven repository

Do you ever tried to upload an artifact to the central maven repository server? No? Well, that is not fun! The maven guys are pretty serious! OK. If you want to upload something you “just” have to read this tutorial here: AND this super long tutorial here: On they tell you thatContinue reading “Uploading Artifacts to the central maven repository”

Absent Code attribute

By executing the Unit Tests with TestNG for this Maven2 Archetype here: I got this Exception: Absent Code attribute in method that is not native or abstract in class file javax/faces/lifecycle/Lifecycle This project is annotation driven. The JSF Managed Beans are annotated with Spring Annotations: @Component @Scope(“request”) in the applicationContext.xml I have this linesContinue reading “Absent Code attribute”

Archetype: RichFaces 4.1.0.Final + Spring 3.1.0.RELEASE + Hibernate 3.3.0

This maven2 archetype contains a little sample web application with this Frameworks: Spring 3.1.0.RELEASE Framework Servlet-API 2.5 JSF 2.0 (mojarra 2.1.2) RichFaces 4.1.0.Final ploinFaces 1.6 ploinMailFactory 1.3.1 Hibernate 3.3.0 TestNG 5.8 Log4J 1.2.15 HSQLDB The configuration is annotation-driven. It is deployed on the PLOIN Repository-Server you can create a project from the archetypeContinue reading “Archetype: RichFaces 4.1.0.Final + Spring 3.1.0.RELEASE + Hibernate 3.3.0”

EL Problems on Tomcat 6.0.35

Yesterday I wanted to start a new JSF archetype and I got this exception: java.lang.LinkageError: loader constraint violation: when resolving interface method “javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory;” the class loader (instance of org/apache/catalina/loader/WebappClassLoader) of the current class, com/sun/faces/config/ConfigureListener, and the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for resolved class, javax/servlet/jsp/JspApplicationContext, have different Class objects for the type javax/el/ExpressionFactory used inContinue reading “EL Problems on Tomcat 6.0.35”

Unable to locate Spring NamespaceHandler for XML schema namespace

I am working on a backend Maven3 project. I am building an uber JAR which contains several other JAR files and resources. That worked pretty good. But than I tried to run the JAR file with java -jar <uber-super-duper-jar-file> I got this Exception: INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader – Loading XML bean definitions from class path resource [applicationContext.xml]Continue reading “Unable to locate Spring NamespaceHandler for XML schema namespace”

Using Java in Rails with JRuby

JRuby is a pretty good Java implementation of Ruby. One of the biggest advantages of JRuby is that you can use Java Classes in your Ruby on Rails App. You can import JARs and take advantages of all the Java Libraries and Frameworks. In that way you don’t have to throw away your old JavaContinue reading “Using Java in Rails with JRuby”

JRuby + Spring + AspectJ + Neo4J

I am playing around with JRuby and Neo4j as Graph Engine. My set up on the backend side contains a Java Application with Spring Annotations, AspectJ and Neo4J. In the frontend I have a Rails App with JRuby. Any time I try to access a class that have an annotation like “@NodeEntity”, I get anContinue reading “JRuby + Spring + AspectJ + Neo4J”