Precompile JSPs on Wildfly 31

265 views
Skip to first unread message

Bryan Mulkey

unread,
Mar 25, 2024, 4:32:47 PM3/25/24
to WildFly
Hello!

Is there a preferred maven plugin or other method to precompile JSPs for Wildfly 31? I have been using the io.leonard.maven.plugins:jspc-maven-plugin to precompile JSps for previous wildfly versions, but the generated Java code for the JSP has a call to this method:

org.apache.jasper.runtime.JspRuntimeLibrary.releaseTag(jakarta.servlet.jsp.tagext.Tag, org.apache.tomcat.InstanceManager, boolean)'

When I access the page, I get the following exception:

||Content=jakarta.servlet.ServletException: java.lang.NoSuchMethodError: 'void org.apache.jasper.runtime.JspRuntimeLibrary.releaseTag(jakarta.servlet.jsp.tagext.Tag, org.apache.tomcat.InstanceManager, boolean)'
jakarta.servlet.ServletException: java.lang.NoSuchMethodError: 'void org.apache.jasper.runtime.JspRuntimeLibrary.releaseTag(jakarta.servlet.jsp.tagext.Tag, org.apache.tomcat.InstanceManager, boolean)'
at io.unde...@2.2.7.Final//org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:891)
at io.unde...@2.2.7.Final//org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:820)

The Jastow 2.2.7 jar's class file for JspRuntimeLibrary does not have any method called "releaseTag." 

Has anyone else faced this issue or know a better way to pre-compile JSPs? Any advice would be appreciated.

 

Eduardo Martins

unread,
Mar 25, 2024, 5:44:49 PM3/25/24
to Bryan Mulkey, WildFly
Not an expert on this but perhaps a mix of incompatible versions on dependencies and/or libs at server side, or maybe an incompatible plugin version? Please share your Maven project dependencies and plugins

By the way, when you say you have been using … for previous Wildfly versions, which versions you referring to? Please note that 27 and later are Jakarta EE 10.

—E

--
You received this message because you are subscribed to the Google Groups "WildFly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/7222d4fe-1c52-436d-8868-8e62e30facc2n%40googlegroups.com.

Richard Opalka

unread,
Apr 2, 2024, 12:37:08 PM4/2/24
to Eduardo Martins, Bryan Mulkey, WildFly
Hello Bryan,

   The preferred library is https://github.com/rmartinc/jspc for precompilation of JSPs in WildFly.

Rio

Reply all
Reply to author
Forward
0 new messages