0

Today I found JSP throw NullPointException error in the following line

_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory()

I found delete

jsp-api-2.1.jar

can fix the issue, but don't know why. Anyone knows the reason for this error.

I am using Tomcat 6.0.33

1

1 Answer 1

1

Web apps must not provide their own Java EE libraries; they will conflict with the server's versions. It can create a variety of errors like this.

Sign up to request clarification or add additional context in comments.

2 Comments

still don't understand why. it is very hard to associate this kind of error to the cause.
@user705414 Yes, it can be--and the error thrown can vary. It's just one of those things you learn to check when you get an unexplainable error that looks related to the servlet or JSP APIs :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.