Stephan Michels wrote:
Am Mo, den 29.03.2004 schrieb Gianugo Rabellino um 22:10:
Reinhard P�tz wrote:
I tried out the new examples but I got the error below. I use eclipse to
build Cocoon which compiles the classes into WEB-INF/classes.
Any ideas?
org.apache.bcel.verifier.exc.StructuralCodeConstraintException:
Instruction INVOKESTATIC constraint violated: Class
'org.apache.cocoon.components.flow.java.Continuation' is referenced, but
cannot be loaded and resolved: 'VERIFIED_REJECTED
Number of LocalVariableTable attributes of Code attribute '<CODE>'
(method 'static void <clinit>()') exceeds number of local variable slots
'0' ('There may be no more than one LocalVariableTable attribute per
local variable in the Code attribute.').
'.
For the record, same here: OSX, JDK 1.4.2, command line build & run.
Instruction GETSTATIC constraint violated: Class
'org.apache.cocoon.ojb.jdo.components.JdoPMF' is referenced, but cannot
be loaded and resolved: 'VERIFIED_REJECTED Method 'public abstract
javax.jdo.PersistenceManager getPersistenceManager()' has a return type
that does not pass verification pass 1: 'VERIFIED_REJECTED
Repository.lookup() failed. FILE NOT FOUND? '. '. InstructionHandle: 1:
Ahh I forget to say that the examples depend on jdo.jar :-/ I wanted to
rewrite the example to use the OJB classes only, but didn't make it
until now.
The exception is somehow confusing, see
"'org.apache.cocoon.ojb.jdo.components.JdoPMF' is referenced, but cannot
be loaded"
Stephan.
After including the JDO libs it worked as expected. There was only one
problem: I usually put my class files into WEB-INF/classes (output
directory of eclipse). This seems to cause problems because using JAR
files and putting them into WEB-INF/lib works.
--
Reinhard