AnsweredAssumed Answered

JSP Pre-compile with Maven

Question asked by rs0048203 on Aug 8, 2017
Latest reply on Sep 25, 2017 by rs0048203

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>

Outcomes