Error in form login

Hi,
I created a login form, a user and a role.
When I try to access with the new user I receive a message tells me that the username or password is wrong.
The form is:
<form method="POST" action="j_security_check">          
                      <p><label>Username: <input type="text" name="j_username" id="log" value="" size="20"  /></label></p>
                      <p><label>Password: <input type="password" name="j_password" id="login_password" value="" size="20"  /></label></p>
                      <p>
                      <p class="submit">
                           <input type="submit" name="submit" id="submit" value="Login &raquo;" tabindex="4" />
                      </p>
               </form>In the server.xml of tomcat I inserted this realm tag:
<Realm 
            className="org.apache.catalina.realm.JDBCRealm"
            driverName="oracle.jdbc.driver.OracleDriver"
            connectionURL="jdbc:oracle:thin:@test.test.it:1522:K4COL"
            connectionName="test"
            connectionPassword="test"
            userTable="TPS11_USER"
            userNameCol="TPS11_NAME"
            userCredCol="TPS11_PASSWORD"
            userRoleTable="TPS13_USER_ROLE"
            roleNameCol="TPS12_CODE" />I inserted in web.xml these lines of code:
<auth-constraint>
           <role-name>visualizerreport</role-name>
        </auth-constraint>and
<security-role>
          <role-name>visualizerreport</role-name>
    </security-role> The user I inserted is "drm".
I inserted the user in the table TPS11_USER, the role visualizerreport in the table TPS12_ROLE and the mapping user-role in the table TPS13_USER_ROLE.
The user exist, the role exist but when I try to login I receive the previous error.
How can I see what is taken from the db?
Do I forget something?
Thanks, bye bye.

See:
* [[Cannot log in to websites]]
Clear the cache and the cookies from sites that cause problems.
* "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
* "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"

Similar Messages

  • Error in form based authentication

    Hi all,
    i want 2 implement form based authentication to a dummy resource in iis.
    first i created authentication as
    Challenge Method Form
    Challenge Parameter passthrough: no
    creds: usernamevar passwordvar
    action: /access/oblix/apps/webgate/bin/webgate.dll
    form: /public/login.html
    SSL Required No
    Challenge Redirect
    Enabled Yes
    and configured a policy domain for a dummy resource test.html with form authentication schema. i kept that in a folder 'access' which was placed in iis. i mentioned the action attribute to '/access/test.html' in login.html through which i want to do authentication.
    but when i am accessing http://*...*/test.html
    i am getting http 404 error.
    can anyone help me.
    Thank you

    Hi,
    thanks for ur response. i make some changes to my configuration which was given in previous post. now i configured as follows:
    i kept my test.html and login.html in the iis root folder. and i defined my policy as follows:
    Name : form (policy name)
    Enabled : Yes
    Resource Resource Type :http
    URL Prefix : /test.html
    Description
    Authorization Rules Name ---- Form authorization
    Description ---
    Enabled --- Yes
    Allow takes precedence ----Yes
    Allow Access Role---- Any one
    Default Rules
    Authentication Rule
    name of the authentication: policy form authentication
    Authentication Scheme : Form authentication -----------------which was created in Access system console
    Authorization Expression
    Expression : Form authorization
    Duplicate Actions: No policy defined for this Authorization Expression. The Access System level default policy for dealing with duplicate action headers will be employed.
    Audit Rule
    There is no Audit Rule defined.
    Policy Name : form policy
    Description :
    Resource Type: http
    Resource Operation(s) : POST
    GET
    Resource : all
    Authentication Rule
    policy auth. rule
    Authentication Scheme Form authentication
    Authorization Expression
    There is no Authorization Expression defined.
    Audit Rule
    There is no Audit Rule defined.
    Delegated Access Admins Delegate Rights
    People Administrator
    Grant Rights
    There are no Delegated Access Admins with this right.
    Basic Rights
    There are no Delegated Access Admins with this right.
    and i also created login.html with a method 'post' and pointed out the action to '/access/oblix/apps/webgate/bin/webgate.dll' . i placed it in IIS root folder.
    now my auth. schema is as follows.
    form: /login.html action:/access/oblix/apps/webgate/bin/webgate.dll passthrough: no creds: usernamevar passwordvar (which are names of fields in login.html)
    and the plugin mapping is as follows:
    credential_mapping:obMappingBase="cn=users,dc=orademo,dc=com", obMappingFilter="(&(&(objectclass=User)(sAMAccountName=%usernamevar%) )(|(!(obuseraccountcontrol=*))(obuseraccountcontrol=ACTIVATED)) )"
    validate_password: obCredentialPassword="passwordvar"
    so when i am accessing http://<hostname>/test.html
    it is giving popup window like basic auth. schema. i am not getting my login page. and in that even i am logging as admin . it is saying unauthorized user.
    please help me how to configure it.
    Edited by: new2idm on Feb 17, 2010 9:19 PM
    Edited by: new2idm on Feb 17, 2010 9:19 PM

  • How to use form-login in iPlanet?

    Hi guys:
    I tried to use J2EE form-based login feature to trigger user authentication,
    but I can only specify the login page and the login error page, so how to
    redirector the location after user login successful?
    Thanks

    You need to try to reach a page/servlet/pattern that is protected. Then the j_security_check action in your form-login page will be populated with the relevant parameters. You will be presented with a login page when you try to access the servlet, then you will be redirected to the appropriate protected resource.

  • Beehive Online: How to Resolve Content Encoding Error or Invalid Login?

    Hello,
    These questions relate to the following Beehive Workspace:
    Workspace: Synopsys_Spice_and_FastSpice_Simulation_and_Analysis_Workspace
    Login: [email protected]
    The Login "[email protected]" is a valid workspace member for the workspace: Synopsys_Spice_and_FastSpice_Simulation_and_Analysis_Workspace
    . This login has been used successfully for about 6-months to exchange data between me and the user. On a recent login attempt the user gets the following error from FireFox:
    Content Encoding Error: The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.
    A similar error is issued when using Chrome or Opera. IE comes back with an unable to reach server error.
    What the user has told me is that she recently reset her password. Afterwards, the above error after the login screen.
    A few other points that the user has told me that do not make too much sense to me. The user claims that the system gives an invalid "login" error when she uses the email address: "[email protected]". The user claims that the login that she needs to use is "[email protected]". However, the email that is registered is "[email protected]" on the page: https://beehiveonline.oracle.com/teamcollab/participants/Synopsys_Spice_and_FastSpice_Simulation_and_Analysis_Workspace
    Any help on how I can get her email address "[email protected]" to work properly for the workspace Synopsys_Spice_and_FastSpice_Simulation_and_Analysis_Workspace
    would be greatly appreciated.
    Thanks in advance,
    Pouya

    Hi,
    Her email "[email protected]" is the one she has to use or the content encoding error will be returned. It is an ugly erro but it means the user has a valid sso account but not a valid BeehiveOnline account - If she is using "[email protected]" then this is invalid and will generate the error.
    There are 2 accounts in the wwldap system - one for each and I think the user has confused the account/password combinations - Nothing has chnaged on the system and the "[email protected]" account is still valid and active.
    I checked the logs and she is using the wrong username and getting the 304 error returned:
    access_log.1342612800: [email protected] [18/Jul/2012:13:05:31 -0600] 1 "GET /teamcollab/library/Oracle/Synopsys_Spice_and_FastSpice_Simulation_and_Analysis_Workspace/Documents HTTP/1.1" 500 304 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
    Phil

  • I want to get all the user name form LOGIN table ... how help me ?

    hi all
    I have table in MS Access databse called Login with two coulmn (User, Password),
    I want to get all the User Name in a string[] called USER,
    (LIKE USER = {"AA","BB","CC",........"zz"};)
    can anybody send me the code to get the USERNAMES form Login Table, i tried lots of way but bad luck
    so plz someone send me a code.
    Thanx
    Regards
    Satinder

    I made something like this as He pasted the the code above and u know this works for me atleast thanx
    kind regards
    satinderjit
    String User[] = new String[1000];
    try
    //Load Driver
    Class.forName(driver);
    // Make Connection
    connection=DriverManager.getConnection(url,user,password);
    // Create Statement
    statement = connection.createStatement();
    sql = "SELECT User FROM Login" ;
    // Create Resultset
    rs = statement.executeQuery(sql);
    int j=0;
    while(rs.next())
    User[j]= rs.getString("User");
    j=j+1;
    for(int i=0 ;i<J;i++)
    Form.C_Manager.addItem(User);
    statement.close();
    //rs.close();
    connection.close();
    catch(ClassNotFoundException cnfex) {
    //show message
    JOptionPane.showMessageDialog((Component) null,
    "Failed to load driver..."+
    "\n"+cnfex.getMessage(),
    "Error...",
    JOptionPane.ERROR_MESSAGE);
    catch(SQLException sqlex){
    //show message
    JOptionPane.showMessageDialog((Component) null,
    "Unable to connect to Database..."+
    "\n"+sqlex.getMessage(),
    "Error...",
    JOptionPane.ERROR_MESSAGE);
    catch(ArrayIndexOutOfBoundsException e){
    //show message
    JOptionPane.showMessageDialog((Component) null,
    "Unable to Load User Name..."+
    "\n"+e.getMessage(),
    "Error...",
    JOptionPane.ERROR_MESSAGE);

  • Getting AADSTS50020 error on microsoft login page when using Azure Active Directory Authentication

    We have implemented Azure Ad single sign on using auto generated code from Visual studio 2013 with organization account authentication and its working fine.
    The problem is when user is logged in in azure management portal with his live account and in other tab he try to open our app, then he directly gets below error on Microsoft login page.
    Additional technical information:
    Correlation ID: 78e13474-6f92-40ec-b463-91e36a6dae84
    Timestamp: 2015-04-14 12:27:20Z
    AADSTS50020:
    User account '[email protected]' from external
    identity provider 'live.com' is not supported for application
    'https://xxxxx.onmicrosoft.com/xxxx'. The account needs to
    be added as an external user in the tenant. Please sign out and sign in
    again with an Azure Active Directory user account.
    It works fine if I log out from management portal. Is there any way to resolve this issue without forcing user to log out from live account(management portal)?

    I assume you created a web application using VS2013 which uses the WS-Federation protocol.
    The behavior that you are seeing is expected Single-sign-on because you are logged in using the live account in the management portal.
    For WS-Federation, there is no current way for a caller to specify they want to force a fresh login, so the behavior is always the equivalent of LoginBehavior.Normal.
    The user will need to either sign-out or use an in-private session in the browse.
    If you switch to openID connect(sample at
    https://github.com/AzureADSamples/WebApp-OpenIDConnect-DotNet) and use the “prompt=login” query paramerter in the sign in request, this will force a fresh login.

  • Error on microsoft login page for OpenId authentication using Azure AD

    We have implemented authentication for multi tenant SaaS solution which uses Azure Ad single sign on using OpenIdConnect authentication and its working fine.
    The problem is when user is logged in in azure management portal with his live account and in other tab he try to open our app, then he directly gets below error on Microsoft login page.
    Additional technical information:
    Correlation ID: 78e13474-6f92-40ec-b463-91e36a6dae84
    Timestamp: 2015-04-14 12:27:20Z
    AADSTS50020:
     User account '[email protected]' from external
     identity provider 'live.com' is not supported for application
     'https://xxxxx.onmicrosoft.com/xxxx'. The account needs to
     be added as an external user in the tenant. Please sign out and sign in
     again with an Azure Active Directory user account.
    This works fine if I will pass "prompt=login" query string parameter in sign in request, But in that case single sign on is not working. Is there any way to resolve this issue
    without loosing single sign on experience?

    Hello,
    Have you tried the steps suggested by
    Imtiaz Hussain in the
    previous thread you queried ?
    Is the error the same that you were previously encountering ?
    Regards,
    Neelesh.

  • Error Running Forms: Failure of server APACHE bridge

    Hi Everyone,
    I have this problem on windows 7 64-bit... installation went fine without any errors.
    Forms was working fine, i was able to run test form, and a form that i created, and both were running properly..
    suddenly, while testing a new form module, it didn't work, and its showing :
    Failure of server APACHE bridge:
    No backend server available for connection: timed out after 10 seconds or idempotent set to OFF. I stopped and started the wls_forms and it didn't solve the problem..
    i couldn't get to a solution anywhere, is it a problem with weblogic configuration? but how was it working well at the begining... if weblogic services are not starting, then what's the fix for that?
    Help would be appreciated...
    Thanks..

    No, but as said you installed components (the HTTP Server) you wouldn't need for development. Did you start WLS_FORMS?
    In any case the latest version of forms would be 11.1.2 where the installation process for a development machine is much easier.
    You'd need
    - wls1035_generic.jar and a 64bit java runtime
    - the 64bit version of forms 11.1.2: http://download.oracle.com/otn/nt/middleware/11g/111200/ofm_frmrpts_win_11.1.2.0.0_64_disk1_1of1.zip
    of course you can install the 32bit version of forms too on your 64bit machine.
    then during installation just check "development mode", and you get a development installation like you got with iDS 10.1.2 with one weblogic instance instead of 3 and all the components you won't need (like webcache or the http server) won't be installed.
    cheers

  • "Invalid Cursor" Error in Form

    Hi,
    I wrote a procedure that take a REF CURSOR as an IN OUT argument. This procedure does an "OPEN cursor FOR qry" with a dynamic query:
    OPEN l_cursor FOR
           'SELECT A '||
             'FROM B '||
            'WHERE C = :l_var'
         USING myVar;After calling the procedure, I do a LOOP with FETCH.
    It works well when I use it in SQL*Plus with DBMS_OUTPUT but it returns a "ORA-01001 invalid cursor" error in Forms.
    Any help is welcome!
    Regards,
    Olivier.

    I found a solution on Metalink:
    Note:170881.1
    Note: 1007395.6
    Olivier.

  • Error: You cannot login because an error occurred while retrieving the login URL. (WW

    Situation is this.. was using 8.1.6 EE and Oracle Portal.. was able to get the Oracle Portal page up and after a while the application died.. this happened numerous times. Found in one of these forums that a bug existed (UTL_HTTP) and recommended going to 8.1.7 EE because of a patch. I migrated my 8.1.6 EE to 8.1.7 EE(made sure procedures & packages were valid). I'm able to bring up the Oracle Portal page but when I go to login I get this:
    Error: You cannot login because an error occurred while retrieving the login URL. (WWC-41441)
    Thoughts?

    Hi,
    I ran ssodatan again and got the following error:
    ERROR: Setting Login Server Partner App
    ORA-06508: PL/SQL: could not find program unit being called
    I then found out that the wwsec_sso_enabler_private in the SSO
    schema is invalid and this was causing the above error. I tried
    recompiling the package but got the following error:
    Errors for PACKAGE BODY WWSEC_SSO_ENABLER_PRIVATE:
    LINE/COL ERROR
    151/6 PL/SQL: SQL Statement ignored
    151/13 PLS-00320: the declaration of the type of this
    expression is incomplete or malformed
    151/20 PLS-00336: non-object-table "SECI" illegal in this
    context
    160/4 PL/SQL: SQL Statement ignored
    643/6 PL/SQL: SQL Statement ignored
    643/13 PLS-00320: the declaration of the type of this
    expression is incomplete or malformed
    643/20 PLS-00336: non-object-table "SECI" illegal in this
    context
    LINE/COL ERROR
    651/4 PL/SQL: SQL Statement ignored
    713/4 PL/SQL: SQL Statement ignored
    713/50 PLS-00382: expression is of wrong type
    745/3 PL/SQL: SQL Statement ignored
    746/10 PLS-00389: table, view or alias name "ENBCONFIG" not
    allowed in this context
    The same package in the Portal schema is valid. Will an
    export of this package from a working instance and an import into
    the above instance solve this problem?
    Thanks and Regards,
    Rupesh

  • Internal Server Error while accessing login page.

    Hi,
    We have recently upgraded our database from 9.2.0.8 to 11.2.0.3 on AIX 6.1 platform (EBS version 11.5.10.2). We are not able to get the login page and receiving Internal Server Error on the login page without any error messages.
    On checking we have found following errors in mod_jserv.log:
    [25/10/2013 05:53:42:935] (ERROR) ajp12: Servlet Error: java.lang.NoClassDefFoundError: oracle/apps/fnd/sso/SessionMgr: oracle/apps/fnd/sso/SessionMgr
    [25/10/2013 05:53:42:935] (ERROR) an error returned handling request via protocol "ajpv12"
    [25/10/2013 05:53:42:935] (INFO) balance: continuing to ibmapptest:16070
    [25/10/2013 05:53:42:935] (ERROR) balance: 12386336 internal servlet error in server ibmapptest:16070
    [25/10/2013 05:53:42:935] (ERROR) an error returned handling request via protocol "balance"
    We tried clearing the cache directories and bounced Apache but that dint help.
    Why would we be receving this error and how to resolve it?

    OK, this is an all too common issue - the logs are insufficient so you may well have to try some extra debugging to properly understand the problem.
    If you have Metalink access try this: NOTE.249669.1 How To Collect Apache and Jserv Debugging
    Basically, you should do the following - and maybe upload the logs here if you want to. I assume you are on 11.5.10. If not, then amend as appropriate:
    Enable de-bug for Apache and Jserv:
    1. Shut down the oracle application server.
    2. Backup or change the name of the following files:
    IAS_ORACLE_HOME/Apache/Apache/logs/error_log
    IAS_ORACLE_HOME/Apache/Apache/logs/error_log_pls
    IAS_ORACLE_HOME/Apache/Apache/logs/access_log
    IAS_ORACLE_HOME/Apache/Jserv/logs/mod_jserv.log and jserv.log
    After making a copy of these files or after renaming them, please delete
    them from these directories. This enables new log files to be created
    when the applications server is restarted and will help you to focus on
    the current problem.
    3. Enable debug logging for Apache
    Update IAS_ORACLE_HOME/Apache/Apache/conf/httpd.conf to set the LogLevel parameter:
    LogLevel debug
    4. Enable debug logging for Jserv and mod_jserv
    a) Update iAS_ORACLE_HOME/Apache/Jserv/etc/jserv.conf to set ApJServLogLevel parameter to:
    ApJServLogLevel debug (from warn)
    b) Update iAS_ORACLE_HOME/Apache/Jserv/etc/jserv.properties to set the
    log=true
    log.channel.info=true
    5. Enable debugging in ssp_init.txt
    Update iAS_ORACLE_HOME/Apache/Jserv/etc/ssp_init.txt to add Debug:
    DebugLevel=5
    DebugSwitch=ON
    6. Please re-start the application server
    7. Reproduce the problem
    8. Upload the following files:
    IAS_ORACLE_HOME/Apache/Apache/conf/apps.conf and httpd.conf
    IAS_ORACLE_HOME/Apache/Apache/logs/error_log_pls
    IAS_ORACLE_HOME/Apache/Apache/logs/error_log and access_log
    IAS_ORACLE_HOME/Apache/Jserv/logs/mod_jserv.log and jserv.log
    IAS_ORACLE_HOME/Apache/Jserv/logs/jvm (all files in this directory)
    DA

  • Error while posting GR "Internal error in FORM/FUNCTION CKML_F_BUILD_INDEX

    Dear Experts,
    While posting GR for any non-valuated material, I am getting an error "Internal error in FORM/FUNCTION CKML_F_BUILD_INDEX in position 1 with RC 0
    Message no. C+099"
    Kindly explore the possibilities of solution for the above error. The abve error only showing at the time of posting and not whicle Check.
    Regards,
    Tushar

    Hi Tushar,
    Your problem is happening because of the applicaiton of an SAP Note. I think PM has nothing to do with this Error. Pl. read the following (which I read this from one SAP website) & check the relevant SAP notes and take action or write to SAP  for solution.
    Symptom
    The posting of goods receipts results in a long runtime.
    Other terms
    ACTUPD, MIGO, performance, material ledger
    Reason and Prerequisites
    The actual costing is active.
    The performance problems usually occur when there are several procurement alternatives or procurement processes (tables CKMLMV001 and CKMLMV002) for certain materials.
    This can be caused by implementing the modification according to Note 1017470 or 919869, [...]
    Regards,
    Bala.

  • Fatal error distributing forms with Adobe Acrobat 9 Pro

    Fatal error distributing forms with Adobe Acrobat 9 Pro.
    I click
    "Adobe Acrobat Pro/Formularer/Distribuer formularer/"
    ("Adobe Acrobat Pro/Forms/Distribute forms/")
    and chose a form for distribution and in the picture "Distribute Form" chose
    "Automatically download & organize responsees with Acrobat.com".
    I then click "Next" and write an email-address to send it to (i.g. to my own)
    and then click "Send".
    The program quickly writes
    "Authenticating email-addresses"
    and then gives the following error message
    "Borland Database er ikke installeret. Kan ikke indlæse tjenesteudbyder af Corel-adressekartotetek."
    ("Borland Database is not installed. Can not read load service provider of Corel address directory.")
    When I clik "OK" I get the error message
    "Adobe Acrobat has encountered a problem and needs to close. We are sorry for the inconvenience."
    I have undeleted and reinstalled Adobe Acrobat many times without any effect.
    The same procedure has been tried on another computer without any problem.
    What is my problem and how do I resolve it ?
    Operating System Windows XP
    Has worked may times before
    Same results with other files
    No recent system hardware or software change

    This is the image that I have plus....
    Reader 9.0 AcroRd32.exe caused Microsoft Visual C++ Runtime Library error
    Preinstalled Adobe 9 Standard doesn't work on a new Dell out of the box - why would it?
    Need help in creating a batch file that will add and remove some registy keys.
    %userprofile%

  • Error in form server6i  ifweb60

    Error in form server6i ifweb60
    Hi all
    We are using oracle formsserver6i on win2003 server as application server . Usually each ifweb60 gets 18 – 25 MB memory, but Sometimes one or more of them starting to get more and more memory (I've seen 250MB) and then finally we get an Microsoft visual C++ runtime library error window with following text:
    Assertion Error in ifweb60.exec
    File=e:\994w32\src\if\iff\ifzexe.c
    Line: 1183
    Exception: hifxc == hifxc_old
    Pres Retry to debug application – JIT must be enabled
    Is it a application related error or it’s a bug?
    Does any body have any workaround this problem?
    Thank you in advance.
    Alireza
    Message was edited by:
    areh74

    I am with Mediware Information Systems and we have an opening for a Senior Oracle 6i DBA if you know of anyone who has 5 yrs. of Oracle 6i DBA experience. If so, they can send their resume to [email protected] with the subject line 06-029.
    Thanks!

  • Webutil form  giving error "oracle.forms.webutil.* bean not found.

    i have done all settings as per given in documentation of webutil.
    forms is compiling but at runtime it gives error:
    oracle.forms.webutil.clientinfo.getclientinfo bean not found.
    what could be the reason.plz. help.
    shikha...

    Hi Shika,
    Probably, the issue could be because of any one of the following.
    <br>
    <br>
    1. Check whether you have added $OARCLE_HOME\forms90\java\frmwebutil.jar in the default.env under $ORACLE_HOME\Forms90\server folder.
    <br>
    <br>
    2. Check whether you have added the virtual directory
    <virtual-directory virtual-path="/webutil" real-path="$OARCLE_HOME/forms90/webutil" />
    in the file orion-web.xml under $ORACLE_HOME\j2ee\DevSuite\application-deployments\forms\forms90web folder
    <b<i>Correctly</i></b>
    <br>
    <br>
    HTH.
    <br>
    Regards,
    <br>
    Arun

Maybe you are looking for