Java error: Missing required Permissions manifest attribute in main jar

Java has further enhanced security to make the user system less vulnerable to external exploits. Starting with Java 7 Update 51, Java does not allow users to run applications that are not signed (unsigned), self-signed (not signed by trusted authority) or that are missing permission attributes. This means that you can get problems running an … Read moreJava error: Missing required Permissions manifest attribute in main jar

Tomcat: Deploy a war with context parameter inside the war

Situation:I changed my manual release/deploy on a private project to using Continuous Delivery with jenkins. I wanted to change the format of my naming convention on my files from webapp.war to webapp-0.9.1.war so I could easily see what was deployed. Default Tomcat deploys an application with it’s whole name as resource locator and that of … Read moreTomcat: Deploy a war with context parameter inside the war

More on Singletons – Bill Pugh Solution

On the subject of Singleton patterns I felt the need to mention Bill pugh solution or the Lazy Initialization Holder Class idiom, which is a lazy-loaded singleton. I recommend to use this when the instantiation is expensive and it is not safe to do it on time of class loading. public class Singleton { private Singleton() {} private … Read moreMore on Singletons – Bill Pugh Solution

maven-antrun-plugin and Windows

Had a “funny” problem today, created a multi-pom project in Netbeans (on Linux) and it worked fine until my colleague tried to build the project on his Windows machine (same Maven 2 version). Maven produced the following code in the head pom file: <plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-antrun-plugin</artifactId>….</plugin> which worked fine in Linux, but not in Windows. It took … Read moremaven-antrun-plugin and Windows