1 Reply Latest reply on May 28, 2007 7:29 AM by yplenet

    JSP taglib won't work ...

    yplenet
      Hello,

      (sorry for my poor english)
      I am currently trying to have JSP taglib work, however even while following the installation guide, I can't get it to work.

      I read a few threads on this forum and saw many people experience problems while trying to install jsp taglib.

      my current test project is :
      ---------------------- Web.xml ---------------------
      ...

      <taglib>
      <taglib-uri>/tags/flex</taglib-uri>
      <taglib-location>
      /WEB-INF/lib/flex-bootstrap-jsp.jar
      </taglib-location>
      </taglib>
      ...

      --------------------- index.jsp ----------------------------
      <%@ taglib uri="/tags/flex" prefix="mm"%>
      <mm:mxml>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" xmlns="*">
      <mx:Text text="Hello World" />
      </mx:Application>
      </mm:mxml>

      --------------------- Execution ---------------------------
      org.apache.jasper.JasperException: javax.servlet.jsp.JspException: null
      org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:476 )
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:371)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

      cause mère

      javax.servlet.ServletException: javax.servlet.jsp.JspException: null
      org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:842)
      org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
      org.apache.jsp.index_jsp._jspService(index_jsp.java:68)
      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

      cause mère

      java.lang.NullPointerException
      flex.bootstrap.BootstrapTag.<init>(BootstrapTag.java:39)
      flex.bootstrap.BootstrapBodyTag.<init>(BootstrapBodyTag.java:28)
      flex2.server.j2ee.jsp.MxmlTagImpl.<init>(MxmlTagImpl.java:2)
      sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
      sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
      java.lang.reflect.Constructor.newInstance(Unknown Source)
      java.lang.Class.newInstance0(Unknown Source)
      java.lang.Class.newInstance(Unknown Source)
      org.apache.jasper.runtime.TagHandlerPool.get(TagHandlerPool.java:117)
      org.apache.jsp.index_jsp._jspx_meth_mm_005fmxml_005f0(index_jsp.java:80)
      org.apache.jsp.index_jsp._jspService(index_jsp.java:59)
      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


      the /WEB-INF/lib folder include flex-bootstrap.jar and flex-boostrad-jsp.jar
      the /WEB-INF/flex/jars include flex-webtier.jar and flex-webtier-jsp.jar
      Both include many other jars distributed with flex data services

      I'm currently a little lost trying to correct this error ...