File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes j_security_check question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "j_security_check question" Watch "j_security_check question" New topic

j_security_check question

Eric Bic

Joined: Apr 12, 2004
Posts: 7
Im new to Tomcat and Jsp and im trying to get a simple login jsp page to work, well i was trying to make the Login page example provided by the Java web services tutorial and when i try to login (taking me then either to the error page or Hello page) i get a page with the following information
HTTP Status 404 - /jwstutorial13/examples/security/login/web/j_security_check
type Status report
message /jwstutorial13/examples/security/login/web/j_security_check
description The requested resource (/jwstutorial13/examples/security/login/web/j_security_check) is not available.

im not sure what this means, anyone have any ideas
Thanks in advance
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17417

You're probably giving a URL of "login.jsp" when you try and access the site. That's not how it works. Just access a security-managed page and the login.jsp will automatically be displayed in its proper context.

An IDE is no substitute for an Intelligent Developer.
Eric Bic

Joined: Apr 12, 2004
Posts: 7
i feel like such a dummy i dont even know what you mean by that, ive put all the jsp files in the Root directory under the Webapps folder. And im opening the file through my web browser but just typing in
when i try to login with one of the users i have added to the tomcat-users.xml file. which looks like this right now:
<?xml version='1.0' encoding='utf-8'?>
<role rolename="loginUser"/>
<role rolename="user" description="Cannot add/delete users"/>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="eric" password="eric" fullName="Eric" roles="admin,manager,user,loginUser"/>
if gives me the error above, is there anything i should change in the web.xml file? im not sure how to edit that.
im so lost
[ April 12, 2004: Message edited by: eric bichara ]
Eric Bic

Joined: Apr 12, 2004
Posts: 7
Is there anyone that has done with tutorial or has an idea what the problem may be? or any tips on what i should read up on to better understand the problem, all i want to do is create a simple login procedure for my webpage, is there an easier way to do this?
thanks for your help
I agree. Here's the link:
subject: j_security_check question
It's not a secret anymore!