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”

Share itTweet about this on TwitterEmail this to someoneShare on FacebookShare on Google+

Hibernate Search and Glassfish

Problem:
Using Hibernate Search in combination with Glassfish throws following Exception:

Solution:
Add an additional

to your persitence.xml in order to use Hibernate JPA for Persistence Management.

Continue reading “Hibernate Search and Glassfish”

Share itTweet about this on TwitterEmail this to someoneShare on FacebookShare on Google+

Change default URL for PostfixAdmin

Problem:
PostfixAdmin per default is reachable via yourhost.address/postfixadmin. This is certainly not optimal in terms of security.

Solution:
Edit /etc/postfixadmin/apache.conf
from

to something like
After that, reload apache configuration.
Share itTweet about this on TwitterEmail this to someoneShare on FacebookShare on Google+

Message-Driven Beans, Message not send / received

Problem:
When sending a message via JMS (transactions enabled) this message is not received by other MessageListener.

Solution:
Add an additional session.commit(); before closing the session.

Continue reading “Message-Driven Beans, Message not send / received”

Share itTweet about this on TwitterEmail this to someoneShare on FacebookShare on Google+

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!
Share itTweet about this on TwitterEmail this to someoneShare on FacebookShare on Google+

Git: Push to sourceforge.net failed

Problem:
Pushing to sourceforge.net project is not possible. It fails with follwing error message:

error: insufficient permission for adding an object to repository database ./objects
fatal: failed to write object
error: unpack failed: unpack-objects abnormal exit

Solution:
Change your ssh username to [username],[linux-projectname], e.g.

ssh://hans,hans-project@hans-project.git.sourceforge.net/gitroot/hans-project/hans-project

Further information:
Sourceforge Wiki

Edit:
Another possible error may also be:

! [remote rejected] master -> master (n/a (unpacker error))

Share itTweet about this on TwitterEmail this to someoneShare on FacebookShare on Google+