Object Message Publishing problem.

I am creating an object message and publishing it.

Inside the listener(in the onMessage Listener) when I try to access the object, like

((ObjectMessage)message).getObject();

it gives me a Deserialize error and the linked exception is ClassNotFoundException.

I am just creating a simple object implements serializable.

I am using the webLogic jms provider and no matter where I set the classpath to simple object it gives me this exception.

[483 byte] By [chethanp] at [2007-9-26 3:35:58]
# 1
I am having the same problem. Did you ever find a solution to this problem? I know the class that it can't find is in the classpath, and I'm at a lost. Someone please help!
mseminar at 2007-6-29 12:06:50 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

Yeah, I had that problem.

It was giving a problem because it could'nt find the class during running, but while compiling it was finding it.

So I created a batch file and set the class path to this object message class and it worked fine.

And one more thing.

You need to set the class path inside the providers execution command file.

For example if it is webLogic that you're using then,

you need to set the classpath to this class inside

startWebLogic.cmd

harrypb at 2007-6-29 12:06:50 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...