org.apache.jasper.JasperException
当我第一次打开我的应用程序时,它显示错误,例如
org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:460)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:183)
org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:125)
org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:107)
org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:78)
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:383)
但我再次刷新,然后它将正常打开而不会出现错误。
有什么问题以及如何解决这个问题?
请谁能帮帮我...
When i open first time my application its show error like
org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:460)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:183)
org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:125)
org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:107)
org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:78)
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:383)
But i refreshed again then it will open fine without error.
What is the problem and how to fix this?
Please can any one help me...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
看起来您的应用程序需要一些代码初始化,这需要时间。现在,当您打开页面时,它正在后台初始化事物,并且您会看到由于未初始化或部分初始化值而导致的错误。
您可以添加一些自动初始化程序或等待一段时间以使其完全加载。
it looks like your application requires some initialization of code which takes time. now while you open the page it is initializing things in background and you see error due to uninitialized or partial initialized values.
you can add some auto initializers or wait for some time to get it loaded completely.
以下是
JspServletWrapper#handleJspException()
源代码的相关摘录。显然,第一次访问时 JSP 是空的。您使用什么框架?我之前还没有见过在启动时自动生成 JSP 文件或类似的框架。它可能需要一些配置微调。
Here's an extract of relevance of the
JspServletWrapper#handleJspException()
source.Apparently the JSP was empty on first access. What frameworks are you using? I haven't seen a framework before which autogenerates JSP files on startup or something like that. It might need some configuration finetuning.
由于 web.xml 配置错误,我遇到了这个问题。
我尝试添加 *.jar 以由 JspServlet 提供服务。
您肯定在 web.xml 中的 Servlet 映射中犯了错误。
I met this problem because of web.xml misconfiguration.
I tried to add *.jar to be served by JspServlet.
You certainly did an error in Servlet mapping in your web.xml.