9 Replies Latest reply on Dec 8, 2011 9:31 AM by Ales Justin

    Problem with using jstl

    Matej Spiller Newbie

      I have a struts application that i wanted to run on jboss 7.0.2. However i get:

       

      10:05:02,337 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/sample].[action]] (http-localhost-127.0.0.1-8080-1) Servlet.service() for servlet action threw exception: java.util.MissingResourceException: Can't find bundle for base name org.apache.taglibs.standard.lang.jstl.Resources, locale sl_SI

          at java.util.ResourceBundle.throwMissingResourceException(Unknown Source) [:1.6.0_29]

          at java.util.ResourceBundle.getBundleImpl(Unknown Source) [:1.6.0_29]

          at java.util.ResourceBundle.getBundle(Unknown Source) [:1.6.0_29]

          at org.apache.taglibs.standard.lang.jstl.Constants.<clinit>(Constants.java:80) [jboss-jstl-api_1.2_spec-1.0.1.Final.jar:1.0.1.Final]

          at org.apache.taglibs.standard.lang.jstl.ArraySuffix.evaluate(ArraySuffix.java:324) [jboss-jstl-api_1.2_spec-1.0.1.Final.jar:1.0.1.Final]

          at org.apache.taglibs.standard.lang.jstl.ComplexValue.evaluate(ComplexValue.java:149) [jboss-jstl-api_1.2_spec-1.0.1.Final.jar:1.0.1.Final]

          at org.apache.taglibs.standard.lang.jstl.BinaryOperatorExpression.evaluate(BinaryOperatorExpression.java:156) [jboss-jstl-api_1.2_spec-1.0.1.Final.jar:1.0.1.Final]

          at org.apache.taglibs.standard.lang.jstl.ELEvaluator.evaluate(ELEvaluator.java:246) [jboss-jstl-api_1.2_spec-1.0.1.Final.jar:1.0.1.Final]

          at org.apache.taglibs.standard.lang.jstl.ELEvaluator.evaluate(ELEvaluator.java:205) [jboss-jstl-api_1.2_spec-1.0.1.Final.jar:1.0.1.Final]

          at org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:143) [jboss-jstl-api_1.2_spec-1.0.1.Final.jar:1.0.1.Final]

          at org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:171) [jboss-jstl-api_1.2_spec-1.0.1.Final.jar:1.0.1.Final]

          at org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager.evaluate(ExpressionEvaluatorManager.java:117) [jboss-jstl-api_1.2_spec-1.0.1.Final.jar:1.0.1.Final]

          at org.apache.taglibs.standard.tag.el.core.IfTag.condition(IfTag.java:100) [jboss-jstl-api_1.2_spec-1.0.1.Final.jar:1.0.1.Final]

          at javax.servlet.jsp.jstl.core.ConditionalTagSupport.doStartTag(ConditionalTagSupport.java:126) [jboss-jstl-api_1.2_spec-1.0.1.Final.jar:1.0.1.Final]

          at org.apache.jsp.pages.error_jsp._jspService(error_jsp.java:125)

          at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

          at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:734) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:541) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:479) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:407) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:706) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:677) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:818) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.jsp.pages.common.layouts.glava_jsp._jspService(glava_jsp.java:568)

          at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

          at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

       

       

      I tried to exclude jstl inside jboss-deployment-structure and use http://jstl.java.net/, but it does not work:

      <sub-deployment name="sample.war">

      <exclusions>

      <module name="javax.servlet.jstl.api" />

      </exclusions>   

      </sub-deployment>

       

      It always uses jboss-jstl-api. It seems to me that Resources file is missing.

       

      Any tips?