File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "j_security_check question" Watch "j_security_check question" New topic
Author

j_security_check question

Eric Bic
Greenhorn

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
Eric
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15950
    
  19

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Eric Bic
Greenhorn

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
http://localhost:8080/jwstutorial13/examples/security/login
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'?>
<tomcat-users>
<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"/>
</tomcat-users>
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
Greenhorn

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
Eric
 
Don't get me started about those stupid light bulbs.
 
subject: j_security_check question
 
Similar Threads
How does the "j_security_check" work?
action="j_security_check"
Problems with JAAS
Can't find examples mentioned in JavaWSTutorial? :confused:
Tomcat 7 & j_security_check