当前位置: 技术问答>java相关
http://localhost:8080/cocoon/报错
来源: 互联网 发布时间:2015-06-20
本文导语: 环境 中文WIN2K Tomcat4.0.3 jsdk1.4.0 添加COCOON应用后,http://localhost:8080/cocoon/报错 type fatal message Language Exception description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error co...
环境
中文WIN2K
Tomcat4.0.3
jsdk1.4.0
添加COCOON应用后,http://localhost:8080/cocoon/报错
type fatal
message Language Exception
description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 0, column 0: could not parse error message: error: Invalid class file format in D:JDKjrelibrt.jar(java/io/OutputStream.class). The major.minor version '48.0' is too recent for this tool to understand. D:tomcatworklocalhostcocooncocoon-filesorgapachecocoonwwwsitemap_xmap.java:12: Class java.io.OutputStream not found in import. import java.io.OutputStream; ^ Line 0, column 0: could not parse error message: error: Invalid class file format in D:JDKjrelibrt.jar(java/io/IOException.class). The major.minor version '48.0' is too recent for this tool to understand. D:tomcatworklocalhostcocooncocoon-filesorgapachecocoonwwwsitemap_xmap.java:13: Class java.io.IOException not found in import. import java.io.IOException; ^ Line 0, column 0: could not parse error message: error: Invalid class file format in D:JDKjrelibrt.jar(java/util/List.class). The major.minor version '48.0' is too recent for this tool to understand. D:tomcatworklocalhostcocooncocoon-filesorgapachecocoonwwwsitemap_xmap.java:15: Class java.util.List not found in import. import java.util.List; ^ Line 0, column 0: could not parse error message: error: Invalid class file format in D:JDKjrelibrt.jar(java/util/ArrayList.class). The major.minor version '48.0' is too recent for this tool to understand. D:tomcatworklocalhostcocooncocoon-filesorgapachecocoonwwwsitemap_xmap.java:16: Class java.util.ArrayList not found in import. import java.util.ArrayList; ^ Line 0, column 0: could not parse error message: error: Invalid class file format in D:JDKjrelibrt.jar(java/util/Map.class). The major.minor version '48.0' is too recent for this tool to understand. D:tomcatworklocalhostcocooncocoon-filesorgapachecocoonwwwsitemap_xmap.java:17: Class java.util.Map not found in import. import java.util.Map; ^ Line 0, column 0: could not parse error message: error: Invalid class file format in D:JDKjrelibrt.jar(java/util/HashMap.class). The major.minor version '48.0' is too recent for this tool to understand. D:tomcatworklocalhostcocooncocoon-filesorgapachecocoonwwwsitemap_xmap.java:18: Class java.util.HashMap not found in import. import java.util.HashMap; ^ Line 0, column 0: could not parse error message: error: Invalid class file format in D:JDKjrelibrt.jar(java/util/Stack.class). The major.minor version '48.0' is too recent for this tool to understand. D:tomcatworklocalhostcocooncocoon-filesorgapachecocoonwwwsitemap_xmap.java:19: Class java.util.Stack not found in import. import java.util.Stack; ^ Line 0, column 0: could not parse error message: error: Invalid class file format in D:JDKjrelibrt.jar(java/util/StringTokenizer.class). The major.minor version '48.0' is too recent for this tool to understand. D:tomcatworklocalhostcocooncocoon-filesorgapachecocoonwwwsitemap_xmap.java:20: Class java.util.StringTokenizer not found in import. import java.util.StringTokenizer; ^ Line 0, column 0: error: Invalid class file format in D:JDKjrelibrt.jar(java/lang/Object.class). The major.minor version '48.0' is too recent for this tool to understand. error: Class java.lang.Object not found in class org.apache.avalon.framework.logger.AbstractLoggable. 18 errors
谁知道为什么?
有人说已在其MAILLIST中找到解决方法
我不知道这么解决,
一定给分,谢谢.
中文WIN2K
Tomcat4.0.3
jsdk1.4.0
添加COCOON应用后,http://localhost:8080/cocoon/报错
type fatal
message Language Exception
description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 0, column 0: could not parse error message: error: Invalid class file format in D:JDKjrelibrt.jar(java/io/OutputStream.class). The major.minor version '48.0' is too recent for this tool to understand. D:tomcatworklocalhostcocooncocoon-filesorgapachecocoonwwwsitemap_xmap.java:12: Class java.io.OutputStream not found in import. import java.io.OutputStream; ^ Line 0, column 0: could not parse error message: error: Invalid class file format in D:JDKjrelibrt.jar(java/io/IOException.class). The major.minor version '48.0' is too recent for this tool to understand. D:tomcatworklocalhostcocooncocoon-filesorgapachecocoonwwwsitemap_xmap.java:13: Class java.io.IOException not found in import. import java.io.IOException; ^ Line 0, column 0: could not parse error message: error: Invalid class file format in D:JDKjrelibrt.jar(java/util/List.class). The major.minor version '48.0' is too recent for this tool to understand. D:tomcatworklocalhostcocooncocoon-filesorgapachecocoonwwwsitemap_xmap.java:15: Class java.util.List not found in import. import java.util.List; ^ Line 0, column 0: could not parse error message: error: Invalid class file format in D:JDKjrelibrt.jar(java/util/ArrayList.class). The major.minor version '48.0' is too recent for this tool to understand. D:tomcatworklocalhostcocooncocoon-filesorgapachecocoonwwwsitemap_xmap.java:16: Class java.util.ArrayList not found in import. import java.util.ArrayList; ^ Line 0, column 0: could not parse error message: error: Invalid class file format in D:JDKjrelibrt.jar(java/util/Map.class). The major.minor version '48.0' is too recent for this tool to understand. D:tomcatworklocalhostcocooncocoon-filesorgapachecocoonwwwsitemap_xmap.java:17: Class java.util.Map not found in import. import java.util.Map; ^ Line 0, column 0: could not parse error message: error: Invalid class file format in D:JDKjrelibrt.jar(java/util/HashMap.class). The major.minor version '48.0' is too recent for this tool to understand. D:tomcatworklocalhostcocooncocoon-filesorgapachecocoonwwwsitemap_xmap.java:18: Class java.util.HashMap not found in import. import java.util.HashMap; ^ Line 0, column 0: could not parse error message: error: Invalid class file format in D:JDKjrelibrt.jar(java/util/Stack.class). The major.minor version '48.0' is too recent for this tool to understand. D:tomcatworklocalhostcocooncocoon-filesorgapachecocoonwwwsitemap_xmap.java:19: Class java.util.Stack not found in import. import java.util.Stack; ^ Line 0, column 0: could not parse error message: error: Invalid class file format in D:JDKjrelibrt.jar(java/util/StringTokenizer.class). The major.minor version '48.0' is too recent for this tool to understand. D:tomcatworklocalhostcocooncocoon-filesorgapachecocoonwwwsitemap_xmap.java:20: Class java.util.StringTokenizer not found in import. import java.util.StringTokenizer; ^ Line 0, column 0: error: Invalid class file format in D:JDKjrelibrt.jar(java/lang/Object.class). The major.minor version '48.0' is too recent for this tool to understand. error: Class java.lang.Object not found in class org.apache.avalon.framework.logger.AbstractLoggable. 18 errors
谁知道为什么?
有人说已在其MAILLIST中找到解决方法
我不知道这么解决,
一定给分,谢谢.
|
2.0.1好像跟Tomcat403与jdk14有不少问题,见Mailing List中HOWTO: jdk1.4和Correction: [SOLUTION] Cocoon with the Tomcat 4.0.3。
List: xml-cocoon-users
Subject: HOWTO: jdk1.4
From: "Matt Williams"
Date: 2002-03-05 5:14:44
[Download message RAW]
Hi,
Sorry I havent introduce myself, I will do so when im not so tired ;-)
Those wanting to use cocoon2 on windows with jdk1.4 do the following:
- Download Tomcat Binary(LE) and "install"
- Download Cocoon Binary and copy cocoon.war to $CATALINA_HOME/webapps
- Launch Tomcat
- When the WAR has been extracted Shut Tomcat Down
- make a directory 'endorsed' in $JAVA_HOME/jre/lib
- copy xerces,xalan,xml-apis from
$CATALINA_HOME/webapps/cocoon/WEB-INF/libs to the endorsed directory
- copy batik-libs,xerces,xalan,xml-apis from
$CATALINA_HOME/webapps/cocoon/WEB-INF/libs to $CATALINA_HOME/common/libs
- remove javac from $CATALINA_HOME/webapps/cocoon/WEB-INF/libs
- copy $JAVA_HOME/lib/tools.jar to
$CATALINA_HOME/webapps/cocoon/WEB-INF/libs
- clear out everything under $CATALINA_HOME/work/localhost
- start tomcat
- buy me a beer
Those wanting to use cocoon2 on *nix with jdk1.4 do the following:
- Do the same as the windows guys are doing
- edit catalina.sh in the $CATALINA_HOME/bin directory and add a line
CATALINA_OPTS='-Djava.awt.headless=true'
- start tomcat
- buy me 2 beers
Can someone with commit access to the cvs add that headless stuff
Thanks,
Matt
Oh yeah, this works on the latest releases of cocoon and tomcat (2.0.1
and 4.0.3 atm). that java.awt.headless=true thing is really important
for *nix users, so someone please add it to the INSTALL text.
I recommend using the light edition of tomcat, because its less to worry
about. if you use the full version then you will need to screw around
with extra JARs
List: xml-cocoon-users
Subject: HOWTO: jdk1.4
From: "Matt Williams"
Date: 2002-03-05 5:14:44
[Download message RAW]
Hi,
Sorry I havent introduce myself, I will do so when im not so tired ;-)
Those wanting to use cocoon2 on windows with jdk1.4 do the following:
- Download Tomcat Binary(LE) and "install"
- Download Cocoon Binary and copy cocoon.war to $CATALINA_HOME/webapps
- Launch Tomcat
- When the WAR has been extracted Shut Tomcat Down
- make a directory 'endorsed' in $JAVA_HOME/jre/lib
- copy xerces,xalan,xml-apis from
$CATALINA_HOME/webapps/cocoon/WEB-INF/libs to the endorsed directory
- copy batik-libs,xerces,xalan,xml-apis from
$CATALINA_HOME/webapps/cocoon/WEB-INF/libs to $CATALINA_HOME/common/libs
- remove javac from $CATALINA_HOME/webapps/cocoon/WEB-INF/libs
- copy $JAVA_HOME/lib/tools.jar to
$CATALINA_HOME/webapps/cocoon/WEB-INF/libs
- clear out everything under $CATALINA_HOME/work/localhost
- start tomcat
- buy me a beer
Those wanting to use cocoon2 on *nix with jdk1.4 do the following:
- Do the same as the windows guys are doing
- edit catalina.sh in the $CATALINA_HOME/bin directory and add a line
CATALINA_OPTS='-Djava.awt.headless=true'
- start tomcat
- buy me 2 beers
Can someone with commit access to the cvs add that headless stuff
Thanks,
Matt
Oh yeah, this works on the latest releases of cocoon and tomcat (2.0.1
and 4.0.3 atm). that java.awt.headless=true thing is really important
for *nix users, so someone please add it to the INSTALL text.
I recommend using the light edition of tomcat, because its less to worry
about. if you use the full version then you will need to screw around
with extra JARs
|
我使用了最新的2.0.2并没有什么问题呀!
你使用其它版本的JDK试试!
你使用其它版本的JDK试试!
|
jsdk版本太高!