tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filip Hanik" <Filip.Ha...@evant.com>
Subject RE: Problem with ClassFormatError
Date Tue, 18 Feb 2003 23:07:19 GMT
Illegal Class name java/lang/Class[]

are you trying to load the name "java/lang/Class[]" as a class dynamically?
because there is no such class.
Filip

-----Original Message-----
From: Bryant, William [mailto:mbryant@c-cor.net]
Sent: Tuesday, February 18, 2003 11:44 AM
To: Tomcat Users List
Subject: Problem with ClassFormatError


Hi all,

After some hair pulling I figured I'd better just email the list with this
one...

I have a class that contains an array of Objects and another array of
Classes.  This class then uses java.lang.reflect to work its magic in
calling various methods on the objects in the array.  The code compiles
perfectly fine, but when I try to load this class at runtime, the class
loader throws a ClassFormatError saying "Illegal Class name
java/lang/Class[]".

The weird thing is that others in the development team run this same code
without any problems.  I did some research into this but came up with no
answers, my guess is that it has something to do with the fact that the
class uses reflection, but I can't be sure.

I'm hoping that I am overlooking the obvious here, ANY help is greatly
appreciated.

For whatever help they might be, I am attaching the exception text, the
results of running 'javap' on the offending class and my server.xml (ccv26
context).

My setup
--------
JDK: 1.3.0_02
Tomcat: 4.0.3
Platform: Windows 2000


Thanks,

Mike



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message