Ubuntu LXC-Container not booting after setting a static IP

Today I had a weird problem with one of my lxc-containers on a Ubuntu 14.04 Host.. for no reason, the container changed its IP address.. This lead to the other containers not finding the container in question under its IP anymore. I then tried to manually set the IP of the container in /etc/network/interfaces like […]

Validating Email Addresses with JSF2, Ajax + Bean Validation

Recently, I was looking for a way, to validate Email-Addresses with JSF. I came accross this blog post on java.net: Validating an Email Address in JSF It shows, how this would have been done in the old JSF 1.1/1.2 ways… But we’re in 2010 and do it now the following way: 1 2 3 4 […]

JavaMail + MailConfiguration cannot be cast to javax.mail.Session

If you’re trying out JavaMail with JavaEE (6) on Glassfish and get a ClassCastException like these SEVERE: java.lang.ClassCastException: com.sun.enterprise.deployment.MailConfiguration cannot be cast to javax.mail.Session javax.faces.el.EvaluationException: java.lang.ClassCastException: com.sun.enterprise.deployment.MailConfiguration cannot be cast to javax.mail.Session at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102) at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102) at javax.faces.component.UICommand.broadcast(UICommand.java:315) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:774) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1266) at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:310) at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1522) … when trying […]