[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead [phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead [phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead [phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead CareersNG • View topic - Tomcat security setup.Assitance requested
CareersNG
Career Development for Nigerians ... A Knowledge Sharing Forum!
hey guys its me again with my own problems well again.. i have been working on a java project.. been long i left java for a while been doing lots of php. I happen to use the tomcat jdbc realm... and i ran into a snag.... here is part of my deployement descriptor: <security-constraint> <display-name>library staff</display-name> <web-resource-collection> <web-resource-name>librarystaff</web-resource-name> <description>the library staff that access this resouces</description> <url-pattern>/libstaff/*</url-pattern> <http-method>GET</http-method> <http-method>POST</http-method> <http-method>HEAD</http-method> <http-method>PUT</http-method> <http-method>OPTIONS</http-method> <http-method>TRACE</http-method> <http-method>DELETE</http-method> </web-resource-collection> <auth-constraint> <description/> <role-name>staff</role-name> <role-name>admin</role-name> </auth-constraint> </security-constraint> <security-constraint> <display-name>administrator</display-name> <web-resource-collection> <web-resource-name>adminpage</web-resource-name> <description>the administrative page of this application</description> <url-pattern>/admin/*</url-pattern> <http-method>GET</http-method> <http-method>POST</http-method> <http-method>HEAD</http-method> <http-method>PUT</http-method> <http-method>OPTIONS</http-method> <http-method>TRACE</http-method> <http-method>DELETE</http-method> </web-resource-collection> <auth-constraint> <description/> <role-name>admin</role-name> </auth-constraint> </security-constraint> <login-config> <auth-method>FORM</auth-method> <realm-name/> <form-login-config> <form-login-page>/login.jsp</form-login-page> <form-error-page>/errorpage.jsp</form-error-page> </form-login-config> </login-config>
.... now when i try to access the following url http://localhost:8080/opac/libstaff/ManagementPage.jsp i get prompted with my login page which is expected but so far no matter my values i dont seem to get through to the page...it shows me the error page and back again to login.... my data base got a table called usertable with userid,password and usertype as its attribute.. now i sent up my <Realm> config in my context.xml file so i think everything checks out fine.. but still no success.. can u please figure out the problem.. i have read enough tutorials i still dont seem to get it right.. thanks
em i kinda drop the http authentication i hand coded it manually anyways. time constraints.but all same i have done this b4 sha! dont just knu what i was doing wrong. but thats fine will get back to it someday.
Users browsing this forum: No registered users and 0 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum