You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by cherry coke <rs...@hotmail.com> on 2008/02/27 09:29:27 UTC

404 j_security_check error

After installing a customized Jetspeed 2 (own login module) I get the following error after login: 404 Error

I introduce login and password and then Jetspeed redirects to j_security_check and I get a 404 Error. I don´t know why my login module redirects to j_security_check. It should redirect to the login page, if I entered a bad login or password, or to the portal page.

Please help.

Sorry for my bad english :)

_________________________________________________________________
Tecnología, moda, motor, viajes,…suscríbete a nuestros boletines para estar siempre a la última
Guapos y guapas, clips musicales y estrenos de cine. 

RE: 404 j_security_check error

Posted by cherry coke <rs...@hotmail.com>.
Thanks,

The Tomcat where I am installing the Jetspeed (2.1.3) application is 5.5.20 (java 1.5) on Linux.

jetspeed/WEB-INF/web.xml:


[....]

    <servlet-mapping>
        <servlet-name>LoginProxyServlet</servlet-name>
        <url-pattern>/servlet/login/proxy</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>LoginServlet</servlet-name>
        <url-pattern>/servlet/login/login</url-pattern>
    </servlet-mapping>
    
    <servlet-mapping>
        <servlet-name>LoginErrorServlet</servlet-name>
        <url-pattern>/servlet/login/error</url-pattern>
    </servlet-mapping>
    
    <servlet-mapping>
        <servlet-name>LoginRedirectorServlet</servlet-name>
        <url-pattern>/servlet/login/redirector</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>LogoutServlet</servlet-name>
        <url-pattern>/servlet/login/logout</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>ManagerServlet</servlet-name>
        <url-pattern>/manager/*</url-pattern>
    </servlet-mapping>

  <!-- The Usual Welcome File List -->
  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>
  
  <!-- JNDI Db resource -->
   <resource-ref>
      <description>DB Connection</description>
      <res-ref-name>jdbc/jetspeed</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <res-auth>Container</res-auth>
  </resource-ref>
  
  <!-- JNDI CommonJ WorkManager resource -->
  <!--
  If you want to use Commonj Work Manager provided by the container in parallel rendering, uncomment the following.
  -->
  <!--
  <resource-ref>
    <description>WorkManager</description>
    <res-ref-name>wm/jetspeed</res-ref-name>
    <res-type>commonj.work.WorkManager</res-type>
    <res-auth>Container</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
  </resource-ref>
  -->

  <!-- Protect LogInRedirectory.jsp.  This will require a login when called -->
  <security-constraint>
    <web-resource-collection>
      <web-resource-name>Login</web-resource-name>
      <url-pattern>/servlet/login/redirector</url-pattern>
    </web-resource-collection>
    <auth-constraint>
      <!-- the required portal user role name defined in: -->
      <!-- /WEB-INF/assembly/security-atn.xml  -->
      <role-name>portal-user</role-name>
    </auth-constraint>
  </security-constraint>

  <!--  securing the ManagerServlet -->
  <security-constraint>
    <web-resource-collection>
      <web-resource-name>Manager</web-resource-name>
      <url-pattern>/manager/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
      <role-name>admin</role-name>
    </auth-constraint>
  </security-constraint>

  <!-- Login configuration uses form-based authentication -->
  <login-config>
    <auth-method>FORM</auth-method>
    <realm-name>Jetspeed</realm-name>
    <form-login-config>
      <form-login-page>/servlet/login/login</form-login-page>
      <form-error-page>/servlet/login/error</form-error-page>
    </form-login-config>
  </login-config>

  <security-role>
    <description>Portal Administrator</description>
    <role-name>admin</role-name>
  </security-role>

  <security-role>
    <description>Portal User</description>
    <role-name>portal-user</role-name>
  </security-role>

</web-app>

[....]



> From: kmoh.raj@gmail.com
> To: jetspeed-user@portals.apache.org
> Subject: RE: 404 j_security_check error
> Date: Wed, 27 Feb 2008 12:34:42 -0500
> 
> Ok,
>  If you are using Tomcat, I would advise you to look at the JIRA:
>    https://issues.apache.org/jira/browse/JS2-828
> Since the symptoms you describe affects Tomcat version >= 5.5.24
> 
> -----Original Message-----
> From: cherry coke [mailto:rsucasasf@hotmail.com] 
> Sent: Wednesday, February 27, 2008 9:58 AM
> To: Jetspeed Users List
> Subject: RE: 404 j_security_check error
> 
> Thanks,
> 
> But I still have the problem. I´ve changed the web.xml and the problem
> persists.
> Before installing the customized Jetspeed 2 I had one version in my
> computer. This version works. But when I install the jetspeed applications
> (jetspeed and j2-admin) in another Tomcat I get this error: 404 Error in
> j_security_check
> I had made this before. Now, the only thing that I see is different is the
> jetspeed version (now 2.1.3). Any idea?
> 
> 
> 
> > From: ghufran.a@vopium.com
> > To: jetspeed-user@portals.apache.org
> > Subject: RE: 404 j_security_check error
> > Date: Wed, 27 Feb 2008 13:42:11 +0500
> > 
> > Hi Cherry
> > 
> >  
> > 
> > You may need to review your web.xml file.
> > 
> > See if you have <login-config> tag in it. If you have set
> > <auth-method>FORM</auth-method> under <login-config>, that could be the
> > reason of the problem you specified
> > 
> >  
> > 
> > These two links can be helpful for you to understand the login-config tag
> in
> > web.xml
> > 
> > http://edocs.bea.com/wls/docs61/webapp/web_xml.html#1019996
> > 
> > http://www.onjava.com/pub/a/onjava/2001/08/06/webform.html?page=2
> > 
> >  
> > 
> >  
> > 
> > Regards
> > 
> > Ghufran
> > 
> >  
> > 
> >  
> > 
> >  
> > 
> >  
> > 
> > -----Original Message-----
> > From: cherry coke [mailto:rsucasasf@hotmail.com] 
> > Sent: Wednesday, February 27, 2008 1:29 PM
> > To: jetspeed-user@portals.apache.org
> > Subject: 404 j_security_check error
> > 
> >  
> > 
> > After installing a customized Jetspeed 2 (own login module) I get the
> > following error after login: 404 Error
> > 
> >  
> > 
> > I introduce login and password and then Jetspeed redirects to
> > j_security_check and I get a 404 Error. I don´t know why my login module
> > redirects to j_security_check. It should redirect to the login page, if I
> > entered a bad login or password, or to the portal page.
> > 
> >  
> > 
> > Please help.
> > 
> >  
> > 
> > Sorry for my bad english :)


_________________________________________________________________
La vida de los famosos al desnudo en MSN Entretenimiento
http://entretenimiento.es.msn.com/

RE: 404 j_security_check error

Posted by Mohan Kannapareddy <km...@gmail.com>.
Ok,
 If you are using Tomcat, I would advise you to look at the JIRA:
   https://issues.apache.org/jira/browse/JS2-828
Since the symptoms you describe affects Tomcat version >= 5.5.24

-----Original Message-----
From: cherry coke [mailto:rsucasasf@hotmail.com] 
Sent: Wednesday, February 27, 2008 9:58 AM
To: Jetspeed Users List
Subject: RE: 404 j_security_check error

Thanks,

But I still have the problem. I´ve changed the web.xml and the problem
persists.
Before installing the customized Jetspeed 2 I had one version in my
computer. This version works. But when I install the jetspeed applications
(jetspeed and j2-admin) in another Tomcat I get this error: 404 Error in
j_security_check
I had made this before. Now, the only thing that I see is different is the
jetspeed version (now 2.1.3). Any idea?



> From: ghufran.a@vopium.com
> To: jetspeed-user@portals.apache.org
> Subject: RE: 404 j_security_check error
> Date: Wed, 27 Feb 2008 13:42:11 +0500
> 
> Hi Cherry
> 
>  
> 
> You may need to review your web.xml file.
> 
> See if you have <login-config> tag in it. If you have set
> <auth-method>FORM</auth-method> under <login-config>, that could be the
> reason of the problem you specified
> 
>  
> 
> These two links can be helpful for you to understand the login-config tag
in
> web.xml
> 
> http://edocs.bea.com/wls/docs61/webapp/web_xml.html#1019996
> 
> http://www.onjava.com/pub/a/onjava/2001/08/06/webform.html?page=2
> 
>  
> 
>  
> 
> Regards
> 
> Ghufran
> 
>  
> 
>  
> 
>  
> 
>  
> 
> -----Original Message-----
> From: cherry coke [mailto:rsucasasf@hotmail.com] 
> Sent: Wednesday, February 27, 2008 1:29 PM
> To: jetspeed-user@portals.apache.org
> Subject: 404 j_security_check error
> 
>  
> 
> After installing a customized Jetspeed 2 (own login module) I get the
> following error after login: 404 Error
> 
>  
> 
> I introduce login and password and then Jetspeed redirects to
> j_security_check and I get a 404 Error. I don´t know why my login module
> redirects to j_security_check. It should redirect to the login page, if I
> entered a bad login or password, or to the portal page.
> 
>  
> 
> Please help.
> 
>  
> 
> Sorry for my bad english :)
> 
>  
> 
> _________________________________________________________________
> 
> Tecnología, moda, motor, viajes,…suscríbete a nuestros boletines para
estar
> siempre a la última
> 
> Guapos y guapas, clips musicales y estrenos de cine. 
> 

_________________________________________________________________
La vida de los famosos al desnudo en MSN Entretenimiento
http://entretenimiento.es.msn.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


RE: 404 j_security_check error

Posted by cherry coke <rs...@hotmail.com>.
Thanks,

But I still have the problem. I´ve changed the web.xml and the problem persists.
Before installing the customized Jetspeed 2 I had one version in my computer. This version works. But when I install the jetspeed applications (jetspeed and j2-admin) in another Tomcat I get this error: 404 Error in j_security_check
I had made this before. Now, the only thing that I see is different is the jetspeed version (now 2.1.3). Any idea?



> From: ghufran.a@vopium.com
> To: jetspeed-user@portals.apache.org
> Subject: RE: 404 j_security_check error
> Date: Wed, 27 Feb 2008 13:42:11 +0500
> 
> Hi Cherry
> 
>  
> 
> You may need to review your web.xml file.
> 
> See if you have <login-config> tag in it. If you have set
> <auth-method>FORM</auth-method> under <login-config>, that could be the
> reason of the problem you specified
> 
>  
> 
> These two links can be helpful for you to understand the login-config tag in
> web.xml
> 
> http://edocs.bea.com/wls/docs61/webapp/web_xml.html#1019996
> 
> http://www.onjava.com/pub/a/onjava/2001/08/06/webform.html?page=2
> 
>  
> 
>  
> 
> Regards
> 
> Ghufran
> 
>  
> 
>  
> 
>  
> 
>  
> 
> -----Original Message-----
> From: cherry coke [mailto:rsucasasf@hotmail.com] 
> Sent: Wednesday, February 27, 2008 1:29 PM
> To: jetspeed-user@portals.apache.org
> Subject: 404 j_security_check error
> 
>  
> 
> After installing a customized Jetspeed 2 (own login module) I get the
> following error after login: 404 Error
> 
>  
> 
> I introduce login and password and then Jetspeed redirects to
> j_security_check and I get a 404 Error. I don´t know why my login module
> redirects to j_security_check. It should redirect to the login page, if I
> entered a bad login or password, or to the portal page.
> 
>  
> 
> Please help.
> 
>  
> 
> Sorry for my bad english :)
> 
>  
> 
> _________________________________________________________________
> 
> Tecnología, moda, motor, viajes,…suscríbete a nuestros boletines para estar
> siempre a la última
> 
> Guapos y guapas, clips musicales y estrenos de cine. 
> 

_________________________________________________________________
La vida de los famosos al desnudo en MSN Entretenimiento
http://entretenimiento.es.msn.com/

RE: 404 j_security_check error

Posted by Ghufran <gh...@vopium.com>.
Hi Cherry

 

You may need to review your web.xml file.

See if you have <login-config> tag in it. If you have set
<auth-method>FORM</auth-method> under <login-config>, that could be the
reason of the problem you specified

 

These two links can be helpful for you to understand the login-config tag in
web.xml

http://edocs.bea.com/wls/docs61/webapp/web_xml.html#1019996

http://www.onjava.com/pub/a/onjava/2001/08/06/webform.html?page=2

 

 

Regards

Ghufran

 

 

 

 

-----Original Message-----
From: cherry coke [mailto:rsucasasf@hotmail.com] 
Sent: Wednesday, February 27, 2008 1:29 PM
To: jetspeed-user@portals.apache.org
Subject: 404 j_security_check error

 

After installing a customized Jetspeed 2 (own login module) I get the
following error after login: 404 Error

 

I introduce login and password and then Jetspeed redirects to
j_security_check and I get a 404 Error. I don´t know why my login module
redirects to j_security_check. It should redirect to the login page, if I
entered a bad login or password, or to the portal page.

 

Please help.

 

Sorry for my bad english :)

 

_________________________________________________________________

Tecnología, moda, motor, viajes,…suscríbete a nuestros boletines para estar
siempre a la última

Guapos y guapas, clips musicales y estrenos de cine.