Results 1 to 1 of 1
- 03-04-2011, 09:35 PM #1
Member
- Join Date
- Apr 2009
- Posts
- 3
- Rep Power
- 0
j_security_check was not found on this server
Hi all,
I have simple web application which use Form base authentication, it is running well on the local server however when I upload it to my space on remote server there is a mistake appears when I try to access to protected area.
message of error:
my web.xml:Java Code:Not Found The requested URL /ahmed/j_security_check was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.Not Found The requested URL /ahmed/j_security_check was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
context.xml:Java Code:<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> <session-config> <session-timeout> 30 </session-timeout> </session-config> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> <security-constraint> <display-name>Constraint1</display-name> <web-resource-collection> <web-resource-name>secure</web-resource-name> <description/> <url-pattern>/pro/target.jsp</url-pattern> </web-resource-collection> <auth-constraint> <description/> <role-name>TEST</role-name> </auth-constraint> </security-constraint> <login-config> <auth-method>FORM</auth-method> <form-login-config> <form-login-page>/login.jsp</form-login-page> <form-error-page>/error.jsp</form-error-page> </form-login-config> </login-config> <security-role> <description/> <role-name>TEST</role-name> </security-role></web-app><web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> <session-config> <session-timeout> 30 </session-timeout> </session-config> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> <security-constraint> <display-name>Constraint1</display-name> <web-resource-collection> <web-resource-name>secure</web-resource-name> <description/> <url-pattern>/pro/target.jsp</url-pattern> </web-resource-collection> <auth-constraint> <description/> <role-name>TEST</role-name> </auth-constraint> </security-constraint> <login-config> <auth-method>FORM</auth-method> <form-login-config> <form-login-page>/login.jsp</form-login-page> <form-error-page>/error.jsp</form-error-page> </form-login-config> </login-config> <security-role> <description/> <role-name>TEST</role-name> </security-role> </web-app>
any suggestions?Java Code:<Context antiJARLocking="true" path="/ahmed"> <Realm className="org.apache.catalina.realm.JDBCRealm" driverName="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://localhost/my_db_name" connectionName="user_name" connectionPassword="password" userTable="users" userNameCol="user_name" userCredCol="user_pass" userRoleTable="user_roles" roleNameCol="role_name" /></Context><Context antiJARLocking="true" path="/ahmed"> <Realm className="org.apache.catalina.realm.JDBCRealm" driverName="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://localhost/my_db_name" connectionName="user_name" connectionPassword="password" userTable="users" userNameCol="user_name" userCredCol="user_pass" userRoleTable="user_roles" roleNameCol="role_name" /> </Context>
Similar Threads
-
j_security_check
By needtoknoweverything in forum JavaServer Faces (JSF)Replies: 3Last Post: 11-09-2010, 12:26 PM -
wrong redirection from j_security_check when user in different role
By dyyyy in forum Web FrameworksReplies: 0Last Post: 12-01-2009, 02:42 PM -
problem in j_security_check authentication
By Mrs. Deswal in forum NetworkingReplies: 2Last Post: 05-28-2009, 09:26 AM -
JAR library is found on local computer, but not from server
By AZMichael in forum NetBeansReplies: 0Last Post: 11-29-2008, 08:54 PM -
404 Not Found
By mary in forum Java ServletReplies: 5Last Post: 11-07-2007, 10:15 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks