ClassFormatError when deploying WAR file

Hi

I have got a WAR file I want to deploy. It has been built without any problems, but when I try and startup my servlet container (e.g. tomcat or jboss), which then tries to deploy it, I get this error:

....

java.lang.ClassFormatError: Invalid constant pool index 63 inclass file

....

It does not make any different what my servlet container is, with which JDK I compile the code with, or with which version I set in JAVA_HOME, I consistently get this error. If I remove all the code from the class in question, I get the Invalid constant pool error for a different class instead.

Does anybody have any idea what it means, and how I could fix it?

Thanks

Jonny

[749 byte] By [jcavella] at [2007-11-26 19:13:05]
# 1

Are you building anything oddly? Such as via bcel?

Are you building oddly? Like trying a multithreaded build?

Have you verified the environment? For instance optimize/scan your hard drive for problems?

Are you transferring the file via FTP to the server and forgetting to do it via binary mode?

jschella at 2007-7-9 21:12:17 > top of Java-index,Java Essentials,Java Programming...
# 2

Thanks for the reply.

Not building oddly - simply using ant and the default javac.

Not multithreaded.

I haven't scanned my hard drive for problems - what sort of problems were you thinking of?

Not transferred the files via FTP. In fact, the files that are causing problems are Java class files that have been compiled with javac.

Maybe time to try a different compiler.

jcavella at 2007-7-9 21:12:17 > top of Java-index,Java Essentials,Java Programming...
# 3
> > I haven't scanned my hard drive for problems - what> sort of problems were you thinking of?Perhaps a bad block on the drive that is corrupting the data. Could be memory as well.
jschella at 2007-7-9 21:12:17 > top of Java-index,Java Essentials,Java Programming...