Class not found
"RAUL MARTIN CABALLERO" <[email protected]> Wed, 3 May 2006 15:10:17 +0200 (CEST)
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <[email protected]> |
Hi all!
I'm programming a java aplication which uses struts and openjms on a
Tomcat Server.
I have a common problem with ObjectMessages, the Classnotfound one. I
know it is not an openjms problem because it works fine with general
Serialized java classes. Searching info about the problem I've seen it
must be a classpath problem. I've created a jar file and I installed it
in the Tomcat shared/lib folder and, as it didn't work, I instaledd it
everywhere.
Can anyone give me a clue what can I do?
I've made a little test and it gives me the same error.
This is the serialized class
package com.pautav.common;
import java.io.Serializable;
public class Rol implements Serializable {
private int id;
private String name;
public Rol (int id, String name) {
this.id=id;
this.name=name;
}
}
and this is these are the test lines
....
ObjectMessage newmsg=msgSes.createObjectMessage();
Rol r= new Rol (1,"admin");
newmsg.setObject(l);
r= (Rol) newmsg.getObject();
....
Please would be anyone be so kind to help me?
(Sorry about my english, I know isn't quite good)
Jordi MartÃn
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642