I am trying to use the jsp tag library into a very simple jsp:

<%@ taglib uri="FlexTagLib" prefix="mm" %>
<html><body>
<h3>Introduction</h3>
<p>This is an example of writing MXML in a JSP.</p>
<h3>My App</h3>
<mm:mxml  >
   <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";>
      <mx:Accordion width="500" height="300">
         <mx:VBox label="panel1" width="500" height="200" />
      </mx:Accordion>
   </mx:Application>
</mm:mxml>
</body></html>

I have a Java project that uses STRUTS to redirect. Well the problem
is that, although I have included the flex-bootstrap.jar,
flex-bootstrap-jsp.jar,  flex-webtier.jar and flex-webtier-jsp.jar I
always receive the same exception in the explorer or mozilla navigator:

java.lang.NullPointerException
        flex.bootstrap.BootstrapTag.<init>(BootstrapTag.java:24)
        flex.bootstrap.BootstrapBodyTag.<init>(BootstrapBodyTag.java:14)
        flex.webtier.server.j2ee.jsp.MxmlTagImpl.<init>(MxmlTagImpl.java:2)


I am using Tomcat 6 server and I receive always the following trace:

EVERE: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to read TLD
"META-INF/taglib.tld" from JAR file
"file:/C:/google2/MapasOpodo/build/web/WEB-INF/lib/flex-bootstrap.jar": 
java.lang.NullPointerException
        at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51)
        at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
        at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:181)
        at
org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:182)
        at
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:420)
...
...
...

SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
        at flex.bootstrap.BootstrapTag.<init>(BootstrapTag.java:24)
        at
flex.bootstrap.BootstrapBodyTag.<init>(BootstrapBodyTag.java:14)

Well If you need something more (the source code) don't doubt to ask
me. I am so sorry for having to find help, but I have lost all the day
of work today, and if you could help me...

Many Thanks
David Virgil.

Reply via email to