写的类在win2000下没错,在linux下出错。。我在win2000下用的tomcat5.0和jdk1.5,而linux下是tomcat4.1和jdk1.4
_____________________________________________configuration error for request URI /
2006-11-22 08:51:48 StandardHost[localhost]: MAPPING configuration error for request URI /
2006-11-22 08:52:35 StandardHost[localhost]: MAPPING configuration error for request URI /
2006-11-22 08:52:45 Stream closed
2006-11-22 08:53:42 StandardHost[localhost]: MAPPING configuration error for request URI /
2006-11-22 08:54:28 StandardHost[localhost]: MAPPING configuration error for request URI /
2006-11-22 08:54:52 StandardHost[localhost]: MAPPING configuration error for request URI /
2006-11-22 08:55:13 Stream closed
2006-11-22 08:55:23 Unable to compile class for JSP
An error occurred at line: 3 in the jsp file: /SCHB/DlTable/dlfxb.jsp
Generated servlet error:
    [javac] Compiling 1 source file
    [javac] /usr/jakarta-tomcat-4.1.31/work/Standalone/localhost/dtsc/SCHB/DlTable/dlfxb_jsp.java:56: cannot access schb.dlfx
    [javac] bad class file: /usr/dtsc/WEB-INF/classes/schb/dlfx.class
    [javac] class file has wrong version 49.0, should be 48.0
    [javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
    [javac]       schb.dlfx ComList = null;
    [javac]           ^
    [javac] 1 error
2006-11-22 08:55:33 Unable to compile class for JSP
An error occurred at line: 3 in the jsp file: /SCHB/DlTable/dlfxb.jsp
Generated servlet error:
    [javac] Compiling 1 source file
    [javac] /usr/jakarta-tomcat-4.1.31/work/Standalone/localhost/dtsc/SCHB/DlTable/dlfxb_jsp.java:56: cannot access schb.dlfx
    [javac] bad class file: /usr/dtsc/WEB-INF/classes/schb/dlfx.class
    [javac] class file has wrong version 49.0, should be 48.0
    [javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
    [javac]       schb.dlfx ComList = null;
    [javac]           ^
    [javac] 1 error
2006-11-22 08:56:00 StandardHost[localhost]: MAPPING configuration error for request URI /

解决方案 »

  1.   

    你的class文件是在jdk1.5 下编译的,而你运行的时候jre环境却是1.4的。重新找个jdk1.4编译一下吧。
      

  2.   

    把你所有的类文件都用JDK1.4重新编译一下,很多的方法用1.4编译以后在1.5能打开,反过来就不可以。以前还遇见过,有个差件在1.4下正常,在1.5下中文就是乱码。你重新把所有类用1.4编译一下就可以了
      

  3.   

    [javac] bad class file: /usr/dtsc/WEB-INF/classes/schb/dlfx.class