プロが教えるわが家の防犯対策術!

jspのクラスのコンパイルエラーが解決出来ず皆様にお力を借りたいと思っています
以前はjdk1.4のtomcat5の動かしていたプログラムを
jdk1.7のtomcat7で動かさないといけなくなりました。

実行環境
tomcat7
jdk1.7

エラー内容
org.apache.jasper.JasperException: JSPのクラスをコンパイルできません:
An error occurred at line: [16] in the generated java file: [E:\Tomcat 7.0\work\Catalina\localhost\test\org\apache\jsp\WEB_002dINF\pages\ac\AC10101_jsp.java]
The type AC10101_jsp must implement the inherited abstract method JspSourceDependent.getDependants()
An error occurred at line: [22] in the generated java file: [E:\Tomcat 7.0\work\Catalina\localhost\test\org\apache\jsp\WEB_002dINF\pages\ac\AC10101_jsp.java]
The type Map is not generic; it cannot be parameterized with arguments <String, Long>
An error occurred at line: [25] in the generated java file: [E:\Tomcat 7.0\work\Catalina\localhost\test\org\apache\jsp\WEB_002dINF\pages\ac\AC10101_jsp.java]
_jspx_dependants cannot be resolved to a variable
An error occurred at line: [25] in the generated java file: [E:\Tomcat 7.0\work\Catalina\localhost\test\org\apache\jsp\WEB_002dINF\pages\ac\AC10101_jsp.java]
The type HashMap is not generic; it cannot be parameterized with arguments <String, Long>
An error occurred at line: [26] in the generated java file: [E:\Tomcat 7.0\work\Catalina\localhost\test\org\apache\jsp\WEB_002dINF\pages\ac\AC10101_jsp.java]
_jspx_dependants cannot be resolved
An error occurred at line: [26] in the generated java file: [E:\Tomcat 7.0\work\Catalina\localhost\test\org\apache\jsp\WEB_002dINF\pages\ac\AC10101_jsp.java]
The method valueOf(String) in the type Long is not applicable for the arguments (long)
An error occurred at line: [27] in the generated java file: [E:\Tomcat 7.0\work\Catalina\localhost\test\org\apache\jsp\WEB_002dINF\pages\ac\AC10101_jsp.java]
_jspx_dependants cannot be resolved
An error occurred at line: [27] in the generated java file: [E:\Tomcat 7.0\work\Catalina\localhost\test\org\apache\jsp\WEB_002dINF\pages\ac\AC10101_jsp.java]
The method valueOf(String) in the type Long is not applicable for the arguments (long)
An error occurred at line: [28] in the generated java file: [E:\Tomcat 7.0\work\Catalina\localhost\test\org\apache\jsp\WEB_002dINF\pages\ac\AC10101_jsp.java]
_jspx_dependants cannot be resolved
An error occurred at line: [28] in the generated java file: [E:\Tomcat 7.0\work\Catalina\localhost\test\org\apache\jsp\WEB_002dINF\pages\ac\AC10101_jsp.java]
The method valueOf(String) in the type Long is not applicable for the arguments (long)
An error occurred at line: [29] in the generated java file: [E:\Tomcat 7.0\work\Catalina\localhost\test\org\apache\jsp\WEB_002dINF\pages\ac\AC10101_jsp.java]
_jspx_dependants cannot be resolved
An error occurred at line: [29] in the generated java file: [E:\Tomcat 7.0\work\Catalina\localhost\test\org\apache\jsp\WEB_002dINF\pages\ac\AC10101_jsp.java]
The method valueOf(String) in the type Long is not applicable for the arguments (long)
An error occurred at line: [30] in the generated java file: [E:\Tomcat 7.0\work\Catalina\localhost\test\org\apache\jsp\WEB_002dINF\pages\ac\AC10101_jsp.java]
_jspx_dependants cannot be resolved
An error occurred at line: [30] in the generated java file: [E:\Tomcat 7.0\work\Catalina\localhost\test\org\apache\jsp\WEB_002dINF\pages\ac\AC10101_jsp.java]
The method valueOf(String) in the type Long is not applicable for the arguments (long)
An error occurred at line: [31] in the generated java file: [E:\Tomcat 7.0\work\Catalina\localhost\test\org\apache\jsp\WEB_002dINF\pages\ac\AC10101_jsp.java]
_jspx_dependants cannot be resolved
An error occurred at line: [31] in the generated java file: [E:\Tomcat 7.0\work\Catalina\localhost\test\org\apache\jsp\WEB_002dINF\pages\ac\AC10101_jsp.java]
The method valueOf(String) in the type Long is not applicable for the arguments (long)
An error occurred at line: [45] in the generated java file: [E:\Tomcat 7.0\work\Catalina\localhost\test\org\apache\jsp\WEB_002dINF\pages\ac\AC10101_jsp.java]
The type Map is not generic; it cannot be parameterized with a

A 回答 (1件)

JAVA_HOMEは、jdk7の方を向いていますか?

    • good
    • 0

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!