[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 283
  • Last Modified:

My Struts application in Tomact 5.0.28 not working if internet connection is not present

When Ever i tried to access the index.jsp without internet connection it's showing following error

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause

java.lang.NullPointerException
      org.apache.struts.util.RequestUtils.pageURL(RequestUtils.java:1596)
      org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:541)
      org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:436)
      org.apache.struts.taglib.html.LinkTag.calculateURL(LinkTag.java:495)
      org.apache.struts.taglib.html.LinkTag.doStartTag(LinkTag.java:353)
      org.apache.strutsel.taglib.html.ELLinkTag.doStartTag(ELLinkTag.java:675)
      org.apache.jsp.index_jsp._jspx_meth_html_link_0(index_jsp.java:118)
      org.apache.jsp.index_jsp._jspService(index_jsp.java:76)
      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.

And the same application with internet connection working properly

Can any body suggest the problem

WithRegards
Vallabhaneni
0
vallabhaneni99
Asked:
vallabhaneni99
  • 3
  • 2
1 Solution
 
fargoCommented:
it could be that you are refering the taglib-directive to an http url and not to the local taglib.

example refering to local file
<%@ taglib uri="/WEB-INF/some.tld" prefix="some" %>

ex. refering to http url
<%@ taglib uri="http://someurl.somepage/sometld" prefix="some" %>

is this the case in your pages?


0
 
geekprogCommented:
i think, the TLD files you will be using in your application. If you open the TLD files, at the top of the file , there will be path specified for DTD file. which needs internet connection.

You can download DTD file from Internet to your local directory and give the local path
0
 
geekprogCommented:
it can also be another reason like in your web.xml file, if you look at the top of the file

http://java.sun.com/dtd/web-app_2_3.dtd   -- path of DTD file

which needs internet connection.

You can download this DTD file from internet and give local path to the directory
0
 
fargoCommented:
good that it solves your problem. But why grade "B" ?? If you need more help, let us know.

Please clarify.
0
 
fargoCommented:
if you are not satisfied with the solution, please reopen the question and let others help you. I am not willing to accept a grade B and would be better off with no points.

[any EE Administrator seeing this!]
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now