troubleshooting Question

Problem with redirect tag

Avatar of ggridley
ggridley asked on
JSP
3 Comments1 Solution1060 ViewsLast Modified:
I'm revisiting a really old app which is running off Tomcat 5.5.12.  In the server.xml I have a Context tag (with reloadable="true") pointing tomcat to my development area so I don't have to redeploy war files.

Tomcat appears to start up fine.   When I access my the project in Tomcat I get:
------------------------------------------------------------------------------
HTTP Status 500 -

type Exception report

message

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:370)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

java.lang.NullPointerException
      org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.java:428)
      org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.java:311)
      org.apache.struts.taglib.logic.RedirectTag.generateRedirectURL(RedirectTag.java:294)
      org.apache.struts.taglib.logic.RedirectTag.doEndTag(RedirectTag.java:268)
      org.apache.jsp.index_jsp._jspx_meth_logic_redirect_0(org.apache.jsp.index_jsp:87)
      org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:59)
      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
-------------------------------------------------------------------------

The struts-config.xml looks fine.  

I confirmed that I have the following jars in my web\WEB-INF\lib folder:

commons-beanutils.jar
commons-collections.jar
commons-digester.jar
commons-fileupload.jar
commons-logging.jar
commons-validator.jar
jakarta-oro.jar
jstl.jar
jta.jar
log4j.jar
standard.jar
struts.jar

What else should I check?
ASKER CERTIFIED SOLUTION
Computer101

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros