2 Replies Latest reply on May 3, 2007 10:49 AM by sjlib

    Flex on JBoss Portal

    MyFy
      I am trying to deploy a Flex app on JBoss portal using the Flex tag library
      JBoss Portal 2.6.0 Developer Release 1
      JBoss AS 4.0.5 GA
      Flex 2.0.1

      jsp:
      <%@ taglib uri="FlexTagLib" prefix="mm" %>
      <mm:mxml source="/login.mxml"/>

      Portlet code:
      package com.jboss.portlet.login;

      import javax.portlet.GenericPortlet;
      import javax.portlet.PortletException;
      import javax.portlet.PortletRequestDispatcher;
      import javax.portlet.RenderRequest;
      import javax.portlet.RenderResponse;
      import javax.portlet.UnavailableException;
      import java.io.IOException;

      public class LoginPortlet extends GenericPortlet {
      public void doView (RenderRequest request, RenderResponse response)
      throws PortletException, IOException, UnavailableException {
      response.setContentType("text/html");
      PortletRequestDispatcher rd = getPortletContext().getRequestDispatcher("/login/login.jsp");
      rd.include(request,response);
      }
      }

      I get the following error:
      java.lang.NullPointerException
      at flex.server.j2ee.cache.CacheKeyUtils.generateSwfCacheKey(CacheKeyUtils.java:54)
      at flex.server.j2ee.RequestContext.setupMxmlRequest(RequestContext.java:102)
      at flex.server.j2ee.RequestContext.<init>(RequestContext.java:62)
      at flex2.server.j2ee.CompileAgent.setupMxmlContextKeys(CompileAgent.java:16)
      at flex2.server.j2ee.CompileAgentServlet.setupMxmlContextKeys(CompileAgentServlet.java:30)
      at flex2.server.j2ee.MxmlServlet.doGet(MxmlServlet.java:107)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
      ....

      I have tried the simplest code possible, but as soon as I add the <mm:mxml/> tag, the error occurs:
      <%@ taglib uri="FlexTagLib" prefix="mm" %>
      <mm:mxml/>

        • 1. Re: Flex on JBoss Portal
          MyFy Level 1
          Is there no one who can assist on using the Flex Taglibs in JBoss Portal? I desperately need to present Flex apps as portlets on JBoss, is there any other way to do this (not using the Flex taglibs)?
          • 2. Re: Flex on JBoss Portal
            sjlib
            Not much help here ; but we are running into the exact same scenario. And ... if this is useful, it seems as though its not just JBoss Portal but Websphere also.

            If I come up with a solution I will be sure to post here .

            Thanks.