1

我正在使用以下步骤在服务器端缓存 jsp 页面在服务器端的以下 url 缓存中定义

我在 java 构建路径中有 web-glue.jar,并且在以下步骤中定义了 tld,但是在执行所有步骤后我收到以下错误

java.lang.NullPointerException
    at org.apache.jasper.compiler.Jsr199JavaCompiler.compile(Jsr199JavaCompiler.java:172)
    at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:342)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:411)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:344)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:470)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:364)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:877)
    at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:594)
    at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1675)
    at java.lang.Thread.run(Unknown Source)

那么我该如何解决这个问题,或者请告诉任何其他方式在服务器端缓存jsp

实际上,我正在开发一个 vxml 应用程序,在该应用程序中我动态地从 xml 提供文本,因此我 wabt 在服务器端缓存一些内容

缓存.jsp 页面

<?xml version="1.0" encoding="UTF-8"?>
<vxml version="2.0" application = "eFMS_approot.vxml" xmlns="http://www.w3.org/2001/vxml" xml:lang = "hi-IN">
<%@ taglib uri="Sun ONE Application Server Tags" prefix="mycache" %>

<mycache:cache>

<form id="Dealer_id_mobile_input">


<var name = "choice" />
    <block>
        <assign name = "node_name"  expr = "'DEALER_CALLER ID ENTRY NODE'" />
    </block>

    <!-- Entering the reg id -->
    <field name = "reg_id" type="digits?minlength=6;maxlength=6">
        <property name="termchar" value="*" />

        <prompt xml:lang= "lang_mode+'-IN'">
            <audio src = "../eFMS/audio/enterregidno.wav"  fetchhint="prefetch">
              Please enter your name
            </audio>
        </prompt> 
</field>
</form>
</mycache:cache>
</vxml  

谢谢

4

0 回答 0