Ok I finally found the mistake I made. It has neither something to do with
Cayenne nor with Tomcat nor whatever. When building my project I use Ant and
I had a build file with a copy statement and a filter token expression which
was also applied to the binary class files...
http://ant.apache.org/m
op servlet =>
it works independent of what is desclared in _Basket. I suppose this is
because the class is never loaded.
The stack trace:
java.lang.ClassFormatError: Invalid this class index 2414 in constant pool
in class file test/cayenne/_Basket
java.lang.ClassLoa
et) and a subclass (Basket) with no
> problem and use them in a standard servlet. I even can create instances
> and
> commit changes to the database. It all works fine.
>
> But in certain circumstandes I get a java.lang.ClassFormatError (at most
> "Invalid SourceFile attribute
java.lang.ClassFormatError (at most
"Invalid SourceFile attribute at constant pool index 63") in one of the
three classes depending on where I first of all access a java.util.List via
get(...).
For example in _Basket this would crash:
getObjectId().getIdSnapshot().get("foo")
or