tomcat - "The type java.util.Map$Entry cannot be resolved" (tomcat6 + JDK7) -
i've jsp app gives me error:
the type java.util.map$entry cannot resolved. indirectly referenced required .class files
stackoverflow full of post error, all of them solve compiling .java
files using jdk7, plus using tomcat same version (i mean, below jdk8 seems problem, because ide version , tomcat versions doesn't support it).
the problem i've built app (.java
files) using jdk 1.7.0_79
, plus i've tomcat 6
server using same one.
so there's no jdk 8 anywhere... screenshots data:
my jvm directory:
error stacktrace:
tomcat process (running using jdk7):
javac version used compile:
any idea why still error?
thank in advance
run tomcat java 6 or upgrade tomcat 7 , make sure don't have old pre-java 5/pre-generics library on classpath.
why error? somewhere in jsp code (not code, mind), dependency on java.util.map.entry
. in code jasper generates jsp.
it's not direct dependency; rather code (or java code generated jsp) needs else needs java.util.map.entry
but interface has changed in way. usually, that's java 8 because of new static helper methods added: name of class same (which makes error confusing) api has changed , code can't find (or found didn't expect).
a similar problem can happen when try compile against pre-generics class (even though should work).
even worse, import java.util.map
in jsp works. it's existing bytecode somewhere else causes trouble.
[edit]
in
/web-inf/lib/
folder i've:commons-fileupload
,commons-io
,poi
,rt
(may 1 problem?)
yes :-) rt.jar
java runtime. contains java.*
, in case, version of java.util.map
doesn't match 1 java vm.
remote , should work.
Comments
Post a Comment