0 Replies Latest reply on Mar 7, 2007 11:25 AM by Johan Wasserman

    Flex Login - 404

    Johan Wasserman Newbie

      JBoss 4.0.5 GA
      Tomcat 5.5
      Portal 2.6.0 DR1
      I successfully built a Flex login page, that works 100% when navigating to the page first (after login, it redirects to the portal and you're logged in), but when I navigate to the portal first, then click on the "Standard Login" on the User Portlet, I get 404 (The requested resource (/ware/login/login.jsp) is not available.)

      Here is my config, am I missing something?

      Flex app sitting in: C:\Zones\WebZone\Servers\Dev\jboss-4.0.5.GA.portal\server\default\deploy\jboss-portal.sar\portal-ware.war

      portal-ware.war\WEB-INF\jboss-web.xml
      <?xml version="1.0"?>
      <jboss-web>
      <display-name>Ware</display-name>
      <app-name>ware</app-name>
      <security-domain>java:/jaas/ware</security-domain>
      <web-uri>portal-ware.war</web-uri>
      <context-root>/ware</context-root>
      </jboss-web>

      portal-server.war\WEB-INF\web.xml
      <!-- Provide secure access to unauthenticated users -->
      <servlet-mapping>
      <servlet-name>PortalServletWithPathMapping</servlet-name>
      <url-pattern>/ware/*</url-pattern>
      </servlet-mapping>
      <!-- Force the mapping of the index.jsp -->
      <servlet-mapping>
      <servlet-name>jsp</servlet-name>
      <!--url-pattern>/login.jsp</url-pattern-->
      <url-pattern>/ware/login/login.jsp</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
      <servlet-name>jsp</servlet-name>
      <url-pattern>/error.jsp</url-pattern>
      </servlet-mapping>
      <login-config>
      <auth-method>FORM</auth-method>
      <realm-name>JBoss Portal</realm-name>
      <form-login-config>
      <!--form-login-page>/login.jsp</form-login-page-->
      <form-login-page>/ware/login/login.jsp</form-login-page>
      <form-error-page>/error.jsp</form-error-page>
      </form-login-config>
      </login-config>

      jboss-portal.sar\conf\login-config.xml
      <application-policy name="ware">

      <login-module code="org.apache.jackrabbit.core.security.SimpleLoginModule" flag="required"/>

      </application-policy>