tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Priest <>
Subject RE: Jasper Error wrong version of Object.class (48.0 , should be 47.0)
Date Mon, 07 Apr 2003 20:09:38 GMT

Thanks to all those that helped. 

Seems as though I had two problems with my jsp file.

1. I had older\mismatch versions of tools.jar in my installation which
prevented my jsp from compiling.

(This second part has more to do with the commons-fileupload project. Read
on if you are interested.

2. My jsp page, which uploads a file using the commons-fileupload project
(, uses commons-beanutils.jar.
That jar was placed in the webapps lib dir (webapps\uploadfile\WEB-INF\lib).
But there was some sort of conflict with my log4j-1.2.3.jar in my common\lib
directory. For some reason, I would get a generic ServletException (without
any info) when trying to upload the file.

To get around this, I had to move the common-beanutils.jar to the
\common\lib dir.
It seems as though something in log4j-1.2.3.jar was stepping on something in
the commons-beanutils.jar

I have not, as of yet, found out exactly what that is. But from a little
investigation, I have found that the error "occurs", when the folllowing
lines of code are executed in the org.apache.commons.fileupload.FileUpload
file  (in method: protected Method getNewInstanceMethod()):

Method newInstanceMethod = MethodUtils.getAccessibleMethod(
                fileItemClass, "newInstance", parameterTypes);

If anyone attempting to use the fileupload project has seen anything
similar, I would be interested if you have found out anything more that I
currently have.

-----Original Message-----
From: Robert Priest 
Sent: Tuesday, April 01, 2003 5:06 PM
To: 'Tomcat Users List'
Subject: RE: Jasper Error wrong version of Object.class (48.0 , should
be 47.0)

Thanks for the reply.
I just downloaded 1.4.1_

-----Original Message-----
From: Shapira, Yoav []
Sent: Tuesday, April 01, 2003 3:27 PM
To: Tomcat Users List
Subject: RE: Jasper Error wrong version of Object.class (48.0 , should
be 47.0)

Make sure you're using:

- The JDK (not JRE)
- The right version of the JDK (preferably the latest stable version)
- An OS that has the patches required for the JDK, if any

This was a known bug in JDK 1.4.0b92 or something like that: search the
BugParade on

Yoav Shapira
Millennium ChemInformatics

>-----Original Message-----
>From: Robert Priest []
>Sent: Tuesday, April 01, 2003 3:22 PM
>Subject: Jasper Error wrong version of Object.class (48.0 , should be
>I am receiving the following error when my jsp file attempts to
>Could there be another version of Object.class in the way?
>org.apache.jasper.JasperException: Unable to compile class for JSP An
>occurred at line: -1 in the jsp file: null Generated servlet error:
>Compiling 1 source file D:\pw\tip\output\delivery\Program
>cannot access java.lang.Object bad class file:
>C:\j2sdk1.4.1_01\jre\lib\rt.jar(java/lang/Object.class) class file has
>wrong version 48.0, should be 47.0 Please remove or make sure it
appears in
>the correct subdirectory of the classpath. public String
getServletInfo() {
>To unsubscribe, e-mail:
>For additional commands, e-mail:

This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message