헤르메스 LIFE

Servlet.service() for servlet jsp threw exception java.lang.NullPointerException 본문

Exception

Servlet.service() for servlet jsp threw exception java.lang.NullPointerException

헤르메스의날개 2014. 3. 10. 23:53
728x90

22 line NullPointerException 문제임.

_jspInit() 의 22 line 문제는 jsp-api.jarservlet-api.jarel-api.jar

의 3개 파일에 대한 문제일 가능성이 많습니다.


저의 경우 el-api-6.0.35.jar, jsp-api-6.0.35.jar, servlet-api-6.0.35.jar 파일을 WEB-INF/lib 폴더에 가지고 있고, Tomcat 의 lib 폴더에 jsp-api.jar, servlet-api.jar, el-api.jar 파일이 충돌한 결과로 판단되어 집니다.


에효~~~ 덕분에 3시간을 삽질하고 있었네요.. ㅡㅡㅋ


  public void _jspInit() {

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

23    _jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());

  }



728x90