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
vallabhaneni99Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.