RE: Class not found
"Tim Anderson" <[email protected]> Fri, 5 May 2006 09:19:29 +1000
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <[email protected]> |
Your Rol class needs to be in the same or parent class loader to that of the
openjms
jars.
Try including the openjms jars in your webapp, along with
the jar containing the Rol class.
There is an RFE to get around this limitation:
http://sourceforge.net/tracker/index.php?func=detail&aid=982260&group_id=545
59&atid=474139
If anyone wants the exercise, feel free.
-Tim
> From: RAUL MARTIN CABALLERO
>
> 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&kid0709&bid&3057&dat1642