I am pre-compiling my JSP pages on deploy but keep getting these error:
Caused by: org.glassfish.deployment.common.DeploymentException: JSP
Compilation Error: org.apache.jasper.JasperException: PWC6033: Error
in Javac compilation for JSP
PWC6199: Generated servlet error: diamond operator is not supported in
-source 1.5 (use -source 7 or higher to enable diamond operator
Does anyone know how to change the compiler version and or settings to resolve this? I have already instructed glassfish to use JDK7 as java home like this;
asadmin set "server.java-config.java-home=/usr/java/jdk1.7.0_09"
But this does not work either.
You need to set the compilerSourceVM
and compilerTargetVM
properties of jsp-config
correctly for this to work. Look here for more details.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With