I rebuilt a custom building block using Maven to use JSP Pre-compile.
Looking for any advice since getting the following runtime error in tomcat stdout log:
INFO | jvm 1 | | 2017/08/08 10:47:30 | Aug 08, 2017 10:47:30 AM org.apache.catalina.core.StandardWrapperValve invoke |
INFO | jvm 1 | | 2017/08/08 10:47:30 | SEVERE: Allocate exception for servlet ldi-adapter | |
INFO | jvm 1 | | 2017/08/08 10:47:30 | java.lang.NullPointerException | |
INFO | jvm 1 | | 2017/08/08 10:47:30 | | at org.apache.jasper.JspCompilationContext.getTldResourcePath(JspCompilationContext.java:566) |
INFO | jvm 1 | | 2017/08/08 10:47:30 | | at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:433) |
...
Here is POM file snip:
<plugin>
<groupId>org.apache.sling</groupId>
<artifactId>jspc-maven-plugin</artifactId>
<version>2.1.0</version>
<executions>
<execution>
<id>compile-jsp</id>
<goals>
<goal>jspc</goal>
</goals>
</execution>
</executions>
</plugin>
Got this to work with:
<plugin>
<groupId>io.leonard.maven.plugins</groupId>
<artifactId>jspc-maven-plugin</artifactId>
<version>2.2.0</version>
<executions>
<execution>
<id>jspc</id>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>