FORM AUTH:  JDBCRealms  WILL NOT WORK     HELP ! ! !

hello,
i have followed the tomcat JDBCRealms setup.....but it never allows me through to secure page it always redirects to loginerror....when using valid user/pass pair !!!!!!!!!!!!!!!!
i am a student and this is part of a reasearch project to compare .NET with J2EE.........
HELP
my project details are below
. loginForm.html <<<<<<<<<<<<<<<<<<<<<<<<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Login Test: Login Form</title>
</head>
<h1>Login Form</h1>
     Welcome to the login page. You will have to authenticate to get access to the secure area:
<form method="POST" action="j_security_check">
Username: <input type="text" name="j_username">
Password: <input type="password" name="j_password">
<input type="submit" value="Login">
<input type="reset" value="Reset">
</form>
</html>
web.xml <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
<security-constraint>
<web-resource-collection>
<web-resource-name>SecurePages</web-resource-name>
<description>Security constraint for resources in the secure directory</description>
<url-pattern>/secure/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>tomcatRole</role-name>
</auth-constraint>
<user-data-constraint>
<description>SSL not required</description>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/LoginForm.html</form-login-page>
<form-error-page>/LoginError.html</form-error-page>
</form-login-config>
</login-config>
<security-role>
<role-name>tomcatRole</role-name>
</security-role>
</web-app>
extract from server.xml (in tomcat 3.2.2/conf dir) <<<<<<<<<<<<<<<<<<<!--
UnComment the following and comment out the
          <RequestInterceptor className="org.apache.tomcat.request.SimpleRealm" debug="0" />
-->
<RequestInterceptor className="org.apache.tomcat.request.JDBCRealm" debug="99" driverName="oracle.jdbc.driver.OracleDriver" connectionURL="jdbc:oracle:thin:@MADDZILLA:1521:Store" connectionName="SYSTEM" connectionPassword="manager" userTable="users" userNameCol="user_name" userCredCol="user_pass" userRoleTable="user_roles" roleNameCol="role_name" />
server.xml <<<<<<<<<<<<<<<<<<<<<<altered part...
<!-- commented out memoryrealm request
<RequestInterceptor className="org.apache.tomcat.request.SimpleRealm" debug="0" />     
-->
added jdbcrealm request
<RequestInterceptor className="org.apache.tomcat.request.JDBCRealm" debug="99" driverName="oracle.jdbc.driver.OracleDriver" connectionURL="jdbc:oracle:thin:@MADDZILLA:1521:Store" connectionName="SYSTEM" connectionPassword="manager" userTable="users" userNameCol="user_name" userCredCol="user_pass" userRoleTable="user_roles" roleNameCol="role_name" />
. tables created for tomcat security example <<<<<<<<<<<<<<<<create table users
user_name varchar(15) not null primary key,
user_pass varchar(15) not null
create table roles
role_name varchar(15) not null primary key
create table user_roles
user_name varchar(15) not null,
role_name varchar(15) not null,
primary key( user_name, role_name )
INSERT INTO users (user_name, user_pass) VALUES (tomcat,tomcat);
INSERT INTO users (user_name, user_pass) VALUES (user1,tomcat);
INSERT INTO users (user_name, user_pass) VALUES (user2,tomcat);
INSERT INTO users (user_name, user_pass) VALUES (user3,tomcat);
INSERT INTO roles (role_name) VALUES (tomcatRole);
INSERT INTO roles (role_name) VALUES (otherRole);
INSERT INTO user_roles (role_name, user_name) VALUES (tomcatRole,user1);
INSERT INTO user_roles (role_name, user_name) VALUES (otherRole,user2);
INSERT INTO user_roles (role_name, user_name) VALUES (otherRole,tomcat);
INSERT INTO user_roles (role_name, user_name) VALUES (tomcatRole,tomcat);

I've tried jdbc realm, and it works fine for me. I'm not using the form_auth, rather it pops-up a network login dialog for me. If you need details, get in touch on [email protected]

Similar Messages

  • I cant copy/paste from an article to my web site, get a Mozilla Rich Text Editing demo page will not work.HELP

    Tried to copy/paste from an article to my web site and got a "cannot copy /paste " warning and was directed to a security perferences site that said that Mozilla Rich Text Editing demo page will not work.
    Tried to find my Firefox profile directory using the start menu and was directed to hit enter to go to web. Feel like i am getting run around.

    Let's start with something very basic, and that is, you do not need to use the paste button on most websites. The button just reads what is on your clipboard and sticks it into the form. You can do that yourself using Ctrl+v or right-click>Paste.
    For your security, I suggest using those standard Windows keyboard shortcuts (Ctrl+x cut, Ctrl+c copy, Ctrl+v paste) or the context menu.
    Occasionally you will find a paste button that runs a clean-up script or otherwise does something useful. That is where the (admittedly a bit complicated) instructions come in handy.
    To open your active profile folder, you can use:
    Help > Troubleshooting Information > "Show Folder" button
    Which help article are you using for the modifications?
    Finally, please be cautious in opening up your clipboard to sites. You may have stuff you copied from other pages or other programs that you do not want to share with most sites.

  • Contact form check boxes will not work on a Tablet

    Hi there,
    I created a website (Desktop) and a mobile version (Phone).  I did not create one for a tablet but have relied on the Desktop version if someone views it on a Tablet.
    Here's the thing, I created a contact form with checkboxes.  It works great on a desktop (because people check the boxes with their mouse), however, it doesn't work on a Tablet, when you try and check the boxes with your finger.
    Help!

    Please share the site URL.

  • IPod not properly ejected- now iTunes will not work - Help!

    My friend had his ipod connected to my computer to charge. Conneceted through USB on a Dell/ Windows 2000 / system. He disconnected the ipod without properly ejecting it - Now, when i connect my ipod, iTunes will not recognize it- iTunes does not open- screen just reads do not disconnect. When i manually open itunes with the ipod attached, it freezes. I have re-installed iTunes, rebooted the ipod, nothing works. Recommendations? Have scowered this site for answers, tried just about everything, nothing has worked. Your help is greatly appreciated!
    PC   Windows 2000  

    See if anything in this Knowledge Base article helps: iPod shows up in Windows but not in iTunes

  • OMG, after last AIR update before current ALL my AIR apps will not work, HELP!

    I have 5 or 6 AIR based apps after I did an update last month, none of them will work. I just re-installed and updated AIR again today and re-installed all the apps multiple times and when I go to one it trys to open the last I installed for every app it only opens the last installed. App installions always end with "faled to open app" and in the log I see this "Error: Missing necessary file META-INF/AIR/application.xml" not sure?
    Windows 7 (all lastest updates)
    Latest Air (13.057 I believe?)
    How do I fix this, why did it break?
    Full log:
    http://ge.tt/2IDeU4b1/v/0?c

    Hello,
    I could install and run the AIR application successfully with AIR 4.0, 12.0 and 13.0.
    Looking into the log, it seems that "missing application.xml" and "Application Installer end with exit code 7" issues have been there from 2014-02-09, below is the detailed log seen from http://ge.tt/2IDeU4b1/v/0?c. This issue maybe caused by the application.
    Is there an application.xml under C:\Program Files (x86)\YourApplicationXXX\META-INF\AIR\ ?
    If possible, could a bug against this issue be logged in https://bugbase.adobe.com/, and upload the AIR application which does not work. That would be very helpful to triage and find the root cause for this issue.
    Thanks your support!
    ===================================================
    [2014-01-04:01:26:19] Launching subprocess with commandline c:\Program Files (x86)\Common Files\Adobe AIR\Versions\1.0\Resources\Adobe AIR Updater -updatecheck
    [2014-01-04:01:26:20] Runtime Installer begin with version 3.9.0.1380 on Windows 7 x86
    [2014-01-04:01:26:20] Commandline is: -updatecheck
    [2014-01-04:01:26:20] Installed runtime (3.9.0.1380) located at c:\Program Files (x86)\Common Files\Adobe AIR
    [2014-01-04:01:26:20] Performing pingback request
    [2014-01-04:01:26:21] Pingback request completed with HTTP status 200
    [2014-01-04:01:26:21] Starting runtime background update check
    [2014-01-04:01:26:21] Clearing unused background update directory
    [2014-01-04:01:26:21] Begin Background update download from http://airdownload.adobe.com/air/3/background/windows/x86/patch/3.9.0.1380/update
    [2014-01-04:01:26:21] Unpackaging http://airdownload.adobe.com/air/3/background/windows/x86/patch/3.9.0.1380/update to C:\Users\Owner\AppData\Roaming\Adobe\AIR\Updater\Background
    [2014-01-04:01:26:21] Runtime update not available
    [2014-01-04:01:26:21] Unpackaging cancelled
    [2014-01-04:01:26:21] Runtime Installer end with exit code 0
    [2014-02-09:13:58:50] Application Installer begin with version 3.9.0.1380 on Windows 7 x86
    [2014-02-09:13:58:50] Commandline is: C:\Users\Owner\Downloads\SPPro\SocialPostingPro-4.air
    [2014-02-09:13:58:50] Installed runtime (3.9.0.1380) located at c:\Program Files (x86)\Common Files\Adobe AIR
    [2014-02-09:13:58:53] Unpackaging file:///C:/Users/Owner/Downloads/SPPro/SocialPostingPro-4.air to C:\Users\Owner\AppData\Local\Temp\fla3EA0.tmp
    [2014-02-09:13:58:53] Application signature verified
    [2014-02-09:13:58:53] Unpackaging/validation complete
    [2014-02-09:13:58:53] No app located for appID 'com.igs.socialpostingpro' and pubID ''
    [2014-02-09:13:59:06] Converting unpackaged application to a native installation package in C:\Users\Owner\AppData\Local\Temp\fla729C.tmp
    [2014-02-09:13:59:06] Native installation package creation succeeded
    [2014-02-09:13:59:06] Starting app installation to C:\Program Files (x86). Installing app com.igs.socialpostingpro version 1.0.8 using the source file at file:///C:/Users/Owner/Downloads/SPPro/SocialPostingPro-4.air
    [2014-02-09:13:59:06] Installing msi at C:\Users\Owner\AppData\Local\Temp\fla729C.tmp\setup.msi with guid {050F1169-D97B-B822-C803-D727DB278A96}
    [2014-02-09:13:59:17] Got an unexpected fatal error while accessing app for launch: Error: Missing necessary file META-INF/AIR/application.xml
    [2014-02-09:13:59:41] Application Installer end with exit code 7

  • IPod not being read, iPod Updater will not work HELP!!

    needing help on a problem i've been trying to solve on my own for a day or so. My iPod will not be read by iTunes anymore, and iPod Updater will not Restore it to factory settings.. need some help here, need to know anything else? just ask. thanks for any replies.

    this happened to me yesterday. i spent 30 mins on the phone to a very helpful guy at apple, and we found out that i needed to disable USB 2.0 in Device Manager to run the restore then the updator. I disable the "Standard Enhanced PCI to USB Host Controller", rebooted then did the restore. Try it

  • Can not install windows 7 pro using boot camp as mouse and keyboard will not work Help please

    I have a new iMac and trying to install Windows 7 Pro using boot camp. I have reached the stage of starting to load windows from the DVD then discovered the mouse and the keyboards not working so I could not interact with windows installation.

    Open, if not so already, the Windows formatter. Identify the BC Windows partition. It will be the one listed with the proper size you created and/or will be labeled as a C: drive. Be careful you select the right one or you may be corrupting the entire drive.
    Format the partition as NTFS.

  • Updated to iOS 7 with kensington keyboard, Bluetooth keyboard will not work, help

    I Made the mistake of updating and now my Bluetooth kensington keyboard purchased with ipad won't work. Anybody know a fix?

    Reset Settings
    What this effectively does is to reset some of your Settings to factory default. It’s not a complete removal of settings. It removes all of your preferences for Wi-Fi, Bluetooth, Do No Disturb, Notifications, General, Sounds, Brightness & Wallpaper and Privacy. It doesn’t affect your data. All of your email accounts will remain intact, as well as any SMS text or iMessages.
     Cheers, Tom

  • My WRT54G2 will Not Work HELP NEEDED !! PLease Help

    Hey i Have a WRT54G2 and it has worked Flawlessly for about a Year... One Day i Wake u To No Connection coming From my Linksys ..... on the Wirless Connections Pop up there is a Message saying  " Information Sent over this network might be visable to others" I Have Tried Everything and Anything to Figure Out or Fix the Problem But NOthing i Do Works ... I am Really Out of Options ,,,,, Someone PLeaseeeee HElllllp Meeeee !!!!1 Aaaahhhhhhhhhhhhhh 

    In this case try to change the power socket. Try to do 30/30/30 hard reset. The following procedure will clear out the NVRAM and set Router back to default values:
    ~~ With the unit powered on, press and hold the reset button on back of unit for 30 seconds
    ~~ Without releasing the reset button, unplug the unit and hold reset for another 30 seconds
    ~~ Plug the unit back in STILL holding the reset button a final 30 seconds....
    Then make the physical connectivity. Here are the steps for the physical connectivity for the router:
    The router’s power adapter needs to be plugged to your router and into an available power outlet.
    If using a wired connection, the first Ethernet cable needs to be plugged to the computer’s LAN port into any of the router’s blue numbered Ethernet ports.
    The second Ethernet cable should be plugged to the modem’s Internet port and the other end into the router’s yellow Internet port.
    Ensure that you have no firewall enabled that may prevent the router from being detected.
    Then make the manual settings according to the ISP setup. Here is the link for setting up a Linksys router with Cable Internet service:
    http://www6.nohold.net/Cisco2/ukp.aspx?vw=1&docid=0ff4c94586a345d082828ec2161aaecf_3686.xml&pid=80&r...
    Here is the link for setting up a Linksys router with DSL Internet service: http://www6.nohold.net/Cisco2/ukp.aspx?vw=1&docid=20ee1457387f40178cd5f41d4b585db4_3687.xml&pid=80&r...

  • Nokia 500 auto navigation will not work

    I have a nokia 500 auto navigation and it will not show maps or it start to boot and freezup and will not work Help!

    I had the same problem a couple of months after activating the gps.
    I think my problem came up after I had loaded some songs and video onto the SD card.
    I used the DVD to restore the maps etc. Be careful with that. The software to run the video/music is not included on the restore DVD.
    I had to do the restore multiple times. Finally, I found an update on the Nokia website and did the update. DON'T DO THAT = my bluetooth has now stopped working. Bluetooth says it's on and you can turn it off, however, there's no change. It says on, but no devices can connect to the gps anymore.
    Frustrated with Nokia? YES. I have had it sent back, but since I bought it on ebay, forget about that.

  • After trying to update my iphone 5 to ios 7 via itunes my phone will not work at all, all i have is an itunes logo and cable logo on the screen HELP!!!!

    after trying to update my iphone 5 to ios 7 via itunes my phone will not work at all, all i have is an itunes logo and cable logo on the screen HELP!!!!

    you'll want to restore it using itunes and recovery mode
    http://support.apple.com/kb/ht1808

  • My itunes will not work at all. i have deleted and reinstalled in over ten times, i have ended the process, i have reinstalled quicktime i few times, i have deleted many folders. What else can i do? Please help:(

    My itunes will not work at all. i have deleted and reinstalled in over ten times, i have ended the process, i have reinstalled quicktime i few times, i have deleted many folders such as TEMP, itunes helper et What else can i do? Please help:(

    Now it sometimes keeps coming up and working but once i plug an ipod in it freezes my whole computer up and no i dont get any response from itunes at all

  • I had a repair done on my MacBook Pro and had to have a new hard drive installed. The Apple Auth Repair Shop then updated the OS from 10.6.8 to 10.7.5. Now my iPhoto v 9.2.3 will not open and it sounds like it will not work with this OS. Can you plea

    I had a repair done on my MacBook Pro and had to have a new hard drive installed. The Apple Auth Repair Shop then updated the OS from 10.6.8 to 10.7.5. Now my iPhoto v 9.2.3 will not open and it sounds like it will not work with this OS. Can you please advise?

    You may need many other updates to retain compatibility with Lion. I suggest you reinstall Snow Leopard. Unfortunately, you will need to erase the drive first. Be sure to backup your data if you haven't done so already.
    Clean Install of Snow Leopard
    Be sure to make a backup first because the following procedure will erase
    the drive and everything on it.
         1. Boot the computer using the Snow Leopard Installer Disc or the Disc 1 that came
             with your computer.  Insert the disc into the optical drive and restart the computer.
             After the chime press and hold down the  "C" key.  Release the key when you see
             a small spinning gear appear below the dark gray Apple logo.
         2. After the installer loads select your language and click on the Continue
             button. When the menu bar appears select Disk Utility from the Utilities menu.
             After DU loads select the hard drive entry from the left side list (mfgr.'s ID and drive
             size.)  Click on the Partition tab in the DU main window.  Set the number of
             partitions to one (1) from the Partitions drop down menu, click on Options button
             and select GUID, click on OK, then set the format type to MacOS Extended
             (Journaled, if supported), then click on the Apply button.
         3. When the formatting has completed quit DU and return to the installer.  Proceed
             with the OS X installation and follow the directions included with the installer.
         4. When the installation has completed your computer will Restart into the Setup
             Assistant. After you finish Setup Assistant will complete the installation after which
             you will be running a fresh install of OS X.  You can now begin the update process
             by opening Software Update and installing all recommended updates to bring your
             installation current.
    Download and install Mac OS X 10.6.8 Update Combo v1.1.

  • Please help! Itunes fails to open on my macbook pro. I have remove itunes and reinstalled it and it still will not work!, Please help! Itunes fails to open on my macbook pro. I have remove itunes and reinstalled it and it still will not work!

    Please help! Itunes fails to open on my macbook pro. I have removed itunes and reinstalled it and it still will not work!

    Try removing the Genius database.  In the "Finder" go to the /username/Music/iTunes/ folder and delete the "iTunes Library Genius.itdb" file. This may allow the program to launch again. This file will be recreated upon first use of the "Genius" feature.

  • I cannot get my messages/text messages to work om my Hi.  I am sending this thru my iPad.  Respond and let me know you got it.  Fun fun fun.  .  I did go and try to another Apple ID different from my iPhone but it still will not work.  Can anyone help me?

    I cannot get my messages/text messages to work om my Hi.  I am sending this thru my iPad.  Respond and let me know you got it.  Fun fun fun.  .  I did go and try to another Apple ID different from my iPhone but it still will not work.  Can anyone help me?

    chicx wrote:
    This is the third time of writing this on your Apple Support Communities!
    Not with your current user id.
    Far too much uneccesary information in your post, which only confuses things, a vast amount!
    Let's start with iTunes.
    Have you updated iTunes to 11.1.5, because the previous version did appear to have an issue about seeing iPods?
    With iTunes 11.1.5 installed, look in Edit/Preferences/Devices, (or use the ALT key, followed by the E key and then the F key) and make sure that the box named Prevent iPods, iPhones and iPads from syncing automatically does not have a tick in the box.
    Once you have doen those two things, check to see if the iPod is seen by iTunes.
    chicx wrote:
    By the way, what does IOS mean? (I thought IO stood for operating system, but am flummoxed by the S on the end.
    Really?
    OS stands for Operating System. (In computer speak, IO means Input/Output.)
    iOS originally stood for iPhone Operating System, but it now refers to the iPod Touch and iPhone. The iPod Classic, which you have listed in your profile as your iPod, does not use iOS.
    I assume that you have been listening to the Podcast in your iTunes on the computer as you cannot transfer it to your iPod. It's what I'd do.

Maybe you are looking for

  • Forgot password - Email address changed

    Hi, I lost my password, and when I went to the "forgotten password" section I get a message telling me that a mail will be sent to the email address that was used to create the account.  Now, that email address was a previous work address, so I dont

  • Check if VI is a control (.ctl)

    Given an array of VI references, is there a method to determine which VIs are actually controls (.ctl files)?  (Other than getting the path and checking that the file extension is .ctl.  I was hoping for a more direct way.  ) Thanks, Joel Solved! Go

  • Hyperlink on Blank Cells in WebI

    Hi, I want to enable the hyperlink on the particular column content. There are few cells that remain blank Whenever, I enable a hyperlink on that particular column, it gets enable for the cell and however in blank cell it displays the url of the hype

  • Special unicode character

    I have been trying to get a line over the lower case o so it looks like this, ō, or the macron as it is known. I am using InDesign CS2 and want to have this character in Helvetica condensed. I can't get it to work using the Unicode key combination. T

  • Data Miner 10.2.0.1.0

    Is there a way to have the java code from a model built in Java Miner 10.2.0.1.0? Thank u K