I have two wars, foo.war and bar.war. foo uses classes from bar. I'm trying to start foo, and add to Java's classpath bar.war, but java throws a ClassNotFoundException.
If I rename bar.war to bar.jar and edit its directory structure to look like a jar, it works.
Java's documentation on the -CP switch does not mention war files:
-classpath <class search path of directories and zip/jar files>
A ; separated list of directories, JAR archives,
and ZIP archives to search for class files.