by Daniel T

Created

January 9, 2007

Today we released the Flex 2 Tag Library for JSP through the Adobe Labs wiki. This library is a collection of tags that allow for embedding Flex applications within a JSP page. Please see the above links for more information or download and install the tag library.

COMMENTS

  • By Alex - 5:39 AM on February 6, 2007  

    Hello ,Is any flex elements for .net?

  • By gokul - 12:50 AM on February 8, 2007  

    Hi to all
    when used to mxml file with using jsp , i am getting this error how to solve this problem
    please send suitable solution .
    java.lang.NoClassDefFoundError: flex/bootstrap/BootstrapBodyTag
    java.lang.ClassLoader.defineClass1(Native Method)
    java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1815)
    org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:869)
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1322)
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1201)
    org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1325)

  • By Jorge - 7:51 AM on February 8, 2007  

    Please make sure you follow the steps in http://labs.adobe.com/wiki/index.php/Flex_2_Tag_Library_for_JSP
    It seems like you have not installed one of the required jar files on the correct location.

  • By Eric Anderson - 7:51 AM on February 8, 2007  

    Hi,
    We do not currently have a .Net version of the tags.
    For the second issue, can you confirm that you have the tags installed correctly? It looks like you may not have them in your classpath correctly.
    Eric

  • By Evan - 11:39 AM on February 13, 2007  

    Having the same problem like the second issue when using jsp tag:
    java.lang.NoClassDefFoundError: flex/bootstrap/BootstrapBodyTag
    Had followed the exact installation procedure instructed in the readme.txt.
    Any update ?

  • By Johan - 2:40 AM on March 18, 2007  

    Same problem here. I followed the instructions to a tee, trying to deploy my flex-app on Jetspeed2. I checked the jars;
    flex-bootstrap-jsp.jar contains flex2/server/…
    no flex/bootstrap/BootstrapBodyTag here,
    flex-webtier-jsp.jar contains flex2/server/…
    no flex/bootstrap/BootstrapBodyTag here either
    I tried deploying to JBoss Portal server as well, with even more disaserous errors…
    Is there a problem free way of deploying flex apps on portal servers?

  • By Jorge Hernandez - 8:15 AM on March 19, 2007  

    Make sure you are installing on top of Flex Data Services 2.0.1.
    This install contains:
    install_dir\jrun4\servers\default\flex\WEB-INF\lib\flex-bootstrap.jar,
    which contains the class your install is not finding:
    flex/bootstrap/BootstrapBodyTag.class.
    Make sure that the following appear on every app that uses the Flex JSP taglib:
    1. The original jars from Flex 2.0.1:
    WEB-INF\lib\flex-bootstrap.jar
    WEB-INF\flex\jars\flex-webtier.jar
    2. The Flex JSP Taglig .zip files:
    WEB-INF\lib\flex-bootstrap-jsp.jar
    WEB-INF\flex\jars\flex-webtier-jsp.jar
    3. The WEB-INF\web.xml contains:
    <taglib>
    <taglib-uri>FlexTagLib</taglib-uri>
    <taglib-location>/WEB-INF/lib/flex-bootstrap-jsp.jar</taglib-location>
    </taglib>

  • By Steven - 1:50 AM on April 23, 2007  

    Hello,
    I have a question regarding the setuop of the TAG for Tomacat 5.5.
    I followed exactly what is writen in the manual but I still get the following error.
    java.lang.NoClassDefFoundError: flex/bootstrap/BootstrapBodyTag
    java.lang.ClassLoader.defineClass1(Native Method)
    java.lang.ClassLoader.defineClass(Unknown Source)
    java.security.SecureClassLoader.defineClass(Unknown Source)
    org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1847)
    org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:873)
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1326)
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1205)
    org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1326)
    org.apache.jasper.compiler.Parser.parseElements(Parser.java:1578)
    org.apache.jasper.compiler.Parser.parseBody(Parser.java:1807)
    org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1070)
    org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1378)
    org.apache.jasper.compiler.Parser.parseElements(Parser.java:1578)
    org.apache.jasper.compiler.Parser.parse(Parser.java:127)
    org.apache.jasper.compiler.ParserController.doParse(ParserController.java:212)
    org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
    org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:156)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:296)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:299)
    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)
    org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
    org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
    org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1001)
    org.apache.struts.tiles.TilesRequestProcessor.internalModuleRelativeForward(TilesRequestProcessor.java:345)
    org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:560)
    org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:209)
    org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
    org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    Is there anyone who successly deploy and used the TAG under the TOMCAT 5.5. Please help me.
    Thank you very much.

  • By Jorge Hernandez - 2:16 PM on April 23, 2007  

    Make sure you apply the steps on top of FDS 2.0.1, which you can download from the link in http://labs.adobe.com/wiki/index.php/Flex_2_Tag_Library_for_JSP.
    The missing class you report appears in WEB-INF\lib\flex-bootstrap.jar when installed from that version.
    This problem has been found by others, and it seems that people are applying the Flex JSP taglib on top of FDS 2.0, not 2.0.1, as it was intended for.
    Please let me know if this fixes your issue.
    Thank you,
    Jorge

  • By Steven - 12:01 AM on April 24, 2007  

    Jorge,
    thank you for your reply.
    Yes, I followed exactly what is writem in http://labs.adobe.com/wiki/index.php/Flex_2_Tag_Library_for_JSP.
    Do you mean that the file “WEB-INF\lib\flex-bootstrap.jar ” came from FDS 2.0. I also found out that. So the problem right now is how can I used that tag library since the one we import in the JSP page is “>/WEB-INF/lib/flex-bootstrap-jsp.jar” from TAG Library, not the one from FDS.
    The problem is still exist as of this moment.
    Thank you and good day.
    Steven

  • By Jorge Hernandez - 6:54 AM on April 24, 2007  

    Hello Steven:
    Let’s assume you are working with the flex.war that comes with the Java installer of the product.
    After you install FDS 2.0.1, and deploy flex.war in your tomcat 5.5 server, the following should appear in the flex\WEB-INF\lib:
    flex-bootstrap.jar, which contains the BoostrapBodyTag class, and other supporting classes (use jar -tvf flex-bootstrap.jar to confirm this).
    You then install the Flex JSP taglib zip on every app that needs it, in this case on the flex app. You should get another jar in that location: flex-bootstrap-jsp.jar, which contains the taglib and uses the already installed flex-bootstrap.jar.
    In the end, for every app using the taglib, you should have:
    <app-dir>\WEB-INF\lib\
    flex-bootstrap.jar
    flex-boorstrap-jsp.jar
    AND
    <app-dir>\WEB-INF\flex\jars:
    flex-webtier.jar
    flex-webtier-jsp.jar
    AND
    The WEB-INF\web.xml contains:
    <taglib>
    <taglib-uri>FlexTagLib</taglib-uri>
    <taglib-location>/WEB-INF/lib/flex-bootstrap-jsp.jar</taglib-location>
    </taglib>
    If all these pieces are in place and you still get the error, please let me know.
    Thanks,
    Jorge

  • By Steven - 5:39 PM on April 24, 2007  

    Jorge,
    Thanks for the reply.
    I followed what you said and I got a new error. (So I think your solution works for the class not found problem).
    Here is the new error messages I got from TOMCAT.
    javax.servlet.ServletException: javax.servlet.jsp.JspException: null
    org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:844)
    org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
    org.apache.jsp.pages.test_jsp._jspService(org.apache.jsp.pages.test_jsp:62)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    java.lang.NullPointerException
    flex.bootstrap.BootstrapTag.(BootstrapTag.java:39)
    flex.bootstrap.BootstrapBodyTag.(BootstrapBodyTag.java:28)
    flex2.server.j2ee.jsp.MxmlTagImpl.(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:116)
    org.apache.jsp.pages.test_jsp._jspx_meth_mm_mxml_0(org.apache.jsp.pages.test_jsp:74)
    org.apache.jsp.pages.test_jsp._jspService(org.apache.jsp.pages.test_jsp:54)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Do you have any idea on this? I am also doing the research for this problem.
    Thanks for the reply.
    Steven

  • By Jorge Hernandez - 9:28 AM on April 26, 2007  

    Hi Steven:
    Could you please send me a small JSP example that is causing the problem? Or is it any JSP using the taglib?
    Thanks.

  • By Steven - 5:22 PM on April 29, 2007  

    Jorge,
    Sorry for the late reply. Here is the sample code I am using for the testing pages. I run this code as a JSP inside the tomcat.
    <%@ taglib uri=”FlexTagLib” prefix=”mm” %>
    <mm:mxml>
    <mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml” xmlns=”*”>
    <mx:Text label=”Hello World”>
    </mx:Application>
    </mm:mxml>
    Thank you for your reply.
    Steven

  • By Jorge Hernandez - 10:37 AM on April 30, 2007  

    Please remember to post code escaping the “&lt” and “&gt” characters.
    I had to fix your example to use “text” instead of “label” for the mx:text tag, then I tried the following:
    <%@ taglib uri="FlexTagLib" prefix="mm" %>
    <mm:mxml>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml&quot; xmlns="*">
    <mx:Text text="Hello World" />
    </mx:Application>
    </mm:mxml>
    It works fine in my JBoss 4.0.5/Tomcat 5.5 installation.
    Regards,
    Jorge

  • By vikram bhatla - 12:51 AM on May 31, 2007  

    hi Jorge,
    i have followed the same,
    but where shud i give
    i am getting the same error steven was getting

  • By vikram bhatla - 12:55 AM on May 31, 2007  

    Hi Jorge,
    where shud i give
    app-dir tag