I use jboss4.2.2GA and messaging 1.3.0GA with spring 2.0


I send message :

Code:
public void sendMessage(final MyMessage s) {
		
		jmsTemplate.convertAndSend(s);
}
where is MyMessage is simple POJO, also it is an external jar file included in both applications.

and on the other side I have web application for listening :
Code:
public void onMessage(Message m) {
		try {
			if (m instanceof ObjectMessage) {
//           MyMessage myMsg = new MyMessage(); // this works fine
                                ObjectMessage om = (ObjectMessage) m;
				MyMessage mm = (MyMessage) om.getObject();
                   } catch(Exception e) {
			e.printStackTrace();
		   }
}
but it doesn't work properly, i get error :


ERROR [STDERR] java.lang.RuntimeException: No ClassLoaders found for: com.message.MyMessage
....

whats wrong here?!