LogManager major.minor version
aniketvu Jun 28, 2003 4:35 AMhi,
we are using jboss-3.2.1 with resin-2.1.6 as web server. we are getting this strange error on sunOS 5.8.
JDK version this time is j2sdk1.4.1_03
com.caucho.jsp.JspParseException: error: Invalid class file format in /export/home/aniketvu/jdk/j2sdk1.4.1_03/jre/lib/rt.jar(java/util/logging/LogManager.class). The major.minor version '48.0' is too recent for this tool to understand. /export/home/aniketvu/jboss-3.2.1/server/resin-all/tmp/deploy/server/resin-all/deploy/mywar.war/40.mywar.war-contents/generalconfig.jsp:280: Class java.util.logging.LogManager not found. LogManager logManager = LogManager.getLogManager(); ^ /export/home/aniketvu/jboss-3.2.1/server/resin-all/tmp/deploy/server/resin-all/deploy/mywar.war/40.mywar.war-contents/generalconfig.jsp:280: Class java.util.logging.LogManager not found. LogManager logManager = LogManager.getLogManager(); ^ /export/home/aniketvu/jboss-3.2.1/server/resin-all/tmp/deploy/server/resin-all/deploy/mywar.war/40.mywar.war-contents/generalconfig.jsp:280: Undefined variable or class name: LogManager LogManager logManager = LogManager.getLogManager(); ^ 4 errors
shifted to j2sdk1.4.2 and got this
com.caucho.jsp.JspParseException: error: Invalid class file format in /export/home/aniketvu/j2sdk1.4.2/jre/lib/rt.jar(java/util/logging/LogManager.class). The major.minor version '48.0' is too recent for this tool to understand. /export/home/aniketvu/jboss-3.2.1/server/resin-all/tmp/deploy/server/resin-all/deploy/mywar.war/40.mywar.war-contents/generalconfig.jsp:280: Class java.util.logging.LogManager not found. LogManager logManager = LogManager.getLogManager(); ^ /export/home/aniketvu/jboss-3.2.1/server/resin-all/tmp/deploy/server/resin-all/deploy/mywar.war/40.mywar.war-contents/generalconfig.jsp:280: Class java.util.logging.LogManager not found. LogManager logManager = LogManager.getLogManager(); ^ /export/home/aniketvu/jboss-3.2.1/server/resin-all/tmp/deploy/server/resin-all/deploy/mywar.war/40.mywar.war-contents/generalconfig.jsp:280: Undefined variable or class name: LogManager LogManager logManager = LogManager.getLogManager(); ^ 4 errors
I use jdk logging api in my application and the development platform was windows 2000 with jdk j2sdk1.4.1_01.
The application compiles with all the versions of jdk mentioned above and i always complied the application with different versions using ant. and i exported the JAVA_HOME for ant as well.
cudnt figure out why this problem is arising.
suggestions? comments? answers? directions?
Aniket V U