title: JSF 2.0 loading the bundle
body: <p>I got the following error:</p>
  
  <pre><code>&gt; org.apache.jasper.JasperException: An
  &gt; exception occurred processing JSP page
  &gt; /ajax/busstop_ajax.jsp at line 12
      10: &lt;%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%&gt;
      11: &lt;%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%&gt;
      12: &lt;f:loadBundle basename="/../messages.Messages" var="msg" /&gt;
      13: 
      14: &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
      15:    "http://www.w3.org/TR/html4/loose.dtd"&gt;
  
  
      Stacktrace:
          org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
          org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:419)
          org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
          org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
          javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
          org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
  
      root cause
  
      java.lang.NullPointerException
          com.sun.faces.taglib.jsf_core.LoadBundleTag.doStartTag(LoadBundleTag.java:148)
          org.apache.jsp.ajax.busstop_005fajax_jsp._jspx_meth_f_005floadBundle_005f0(busstop_005fajax_jsp.java:184)
          org.apache.jsp.ajax.busstop_005fajax_jsp._jspService(busstop_005fajax_jsp.java:68)
          org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
          javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
          org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
          org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
          org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
          javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
          org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
  </code></pre>
  
  <p>I'm trying to add a bundle to be able to translate the interface. The whole page is in jsp rather than html.</p>
  
  <pre><code>&lt;%@page import="java.util.List"%&gt;
  &lt;%@page contentType="text/html" pageEncoding="UTF-8"%&gt;
  
  &lt;%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%&gt;
  &lt;%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%&gt;
  &lt;f:loadBundle basename="messages.Messages" var="msg" /&gt;
  
  &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
     "http://www.w3.org/TR/html4/loose.dtd"&gt;
  
  &lt;f:view&gt;
      &lt;html&gt;
          &lt;head&gt;
              &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/&gt;
              &lt;title&gt;JSP Page&lt;/title&gt;
          &lt;/head&gt;
          &lt;body&gt;
             ...
          &lt;/body&gt;
      &lt;/html&gt;
  &lt;/f:view&gt;
  </code></pre>
  
  <p>I tried to add it in faces-config as well but no success. What am I doing wrong here?
  Thanks for help!</p>