log4j:ERROR A org.apache.log4j (FileAppender) object is not assignable to a org.apache.log4j (Appender) variable

Problem:
When deploying an ear file including log4j.jar into Glassfish3.x, following Exception is thrown:

Solution:
Add log4j.jar to Glassfish lib, e.g. /domains/mydomain/lib/ext or /glassfish/lib and remove it from ear.

Continue reading “log4j:ERROR A org.apache.log4j (FileAppender) object is not assignable to a org.apache.log4j (Appender) variable”

javax.jms.JMSException: no valid constructor

Problem:
Deserialization causes Exception.

Solution:

  1. Make sure all your classes, that are send trhough the wire, implement java.io.Serializable
  2. If your class extends other class(es), first class in inheritance tree, that does not implement java.io.Serializable, must provide a zero-argument standard-constructor!