General
java.lang.VerifyError. How can I fix this?source and target
configuration parameters to 1.5 as you showed, but now I get Errors
found during compilation exception when I do a build.Remove the from the execution section in the plugin section of your pom. See usage for more details.
| [top] |
First, check to see that you have the
in your web.xml.
The jspc plugin needs to know where to inject the jsp/servlet mapping.
Second, the jspc plugin needs to work with the maven war plugin to get the
jsp names injected as a servlet. Be sure you added the maven-war-plugin to
your pom and have set the webXml configuration parameter to point to the one
created by the jspc plugin. See usage for more
details.
| [top] |
java.lang.VerifyError. How can I fix this?This is almost always caused by a mismatch in the compiled code not matching up and running in a different compiler version. The plugin defaults to 1.4 version of compiled code. Be sure to declare the source and target version parameters in the plugin and that they match what you may have them set to for your standard compiles. Example:
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</execution>
</executions>
</plugin>
.
.
.
]]>
| [top] |
source and target
configuration parameters to 1.5 as you showed, but now I get Errors
found during compilation exception when I do a build.
Be sure you are running a 1.5 compiler. Using a 1.4.X compiler when declaring
the source and target configuration parameters to
1.5 will always result in this error.
| [top] |