seems to be a problem with object store complaining he doesn't know anything about the class you are trying to persist.
nothing to do with Jboss at all, try the OBjectStore support forums
I tried the same code with another App. Server (Jonas).
The database was again Object Store. It works for Jonas. The object store does not complain.
I was wondering why its giving exception when using JBoss. DO I need to tell JBoss in some way, which classes I have persisted?
Or any other reason for this problem ?
The obvious question is, how does objectstore know about classes you want to use with it? Very possibly by default it expects classes to be in a specific location when it starts and jboss's hot deploy features are confusing it, since the classes to persist are nowhere to be found when objectstore starts. Can you make sure the classes are registered before trying to persist objects, and if not register them in code?
I think that JBoss find a non postprocessed version of your class. Check the classpath and the files stored on ...\ext\ directory.