Validation on login page.

Hi,
I want to add some validation on the login page. if validation is wrong, show message, and the page do not redirect to the page 1 (home). However, the validation is not working.
my example on:
apex.oracle.com
workspace : kiddoo_81
username : tester
password : tester
the application (opp - 25575). i add the validation on page 101. the table related is opp_users.
~vincent

Actually, i created a "validation" named "checkUser"
when the user click on the login button, the validation will check before it login to the page 1 (home). in the validation, i want to valify whether the login user is authorize to use the system. So i creted a databased named opp_users, and the username much fit in order to login. however, when you type in invalid user name like
vincent/vincent
where the database do not have this record, it must come out my validation message instead of "Invalid Login Credentials".

Similar Messages

  • Not able to pass portal login page with valid credentials using WebDispatch

    Hi,
    We are implementing SAP BillerDirect Portal. To make BillerDirect Portal available over the internet, we Configured SAP WebDispatcher with SSL termination.  We followed the steps mentioned in SAP Help Documentaion for SAP WebDispatcher with SSL termination.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/76/6d4fa247d0d647b5bd40745400d873/frameset.htm
    We created certificate  and send it to CA (TrustCenter CA). We received the CA response and we imported the certificate.
    AS mentioned in the help document, we configured the SAP Web Dispatcher profile to support SSL termination
    We tried to access our BillerDirect Portal over the internet using below link
    https://company.com/bd
    We are getting login page, once we enter correct user ID and Password, portal is not loading (not going to next page) portal remains on same login page.
    If we enter invalid credentials portal login page is giving u201CUser Authentication Failedu201D error.
    If we try to access any portal login pages which brings a pop-up for login, login gets succeeded and we are able to see next pages
    Examples
    1)     https://company.com/bd/admin/xcm/init.do
    2)     https://company.com/monitoring/SystemInfo
    All pages which bring up portal login page without pop-up, not able to pass through portal login screen.
    We Tried the ProxyMapping option on Dispatcher using Visual admin. This option also didnu2019t work for us.
    Here is the WebDispatcher Profile
    SAPSYSTEMNAME = xxx
    SAPGLOBALHOST = xxxxx
    SAPSYSTEM = 00
    INSTANCE_NAME = W00
    DIR_CT_RUN = $(DIR_EXE_ROOT)\$(OS_UNICODE)\NTI386
    DIR_EXECUTABLE = $(DIR_CT_RUN)
    Accesssability of Message Server
    rdisp/mshost = hostnameofportalserver with FQDN
    ms/http_port = 8101
    Configuration for medium scenario
    icm/max_conn = 500
    icm/max_sockets = 1024
    icm/req_queue_len = 500
    icm/min_threads = 10
    icm/max_threads = 50
    mpi/total_size_MB = 80
    SAP Web Dispatcher Ports
    icm/server_port_0 = PROT=HTTPS,PORT=443
    icm/server_port_1 = PROT=HTTP,PORT=80
    icm/HTTPS/verify_client = 0
    SAP Web Dispatcher Web Administration
    icm/HTTP/admin_0 = PREFIX=/sap/wdisp/admin,DOCROOT=D:\usr\sap\xxx\W00\data\icmanroot\admin,AUTHFILE= D:\usr\sap\xxx\SYS\global\security\data\icmauth.txt
    Parameters for the SAP Cryptographic Library
    ssl/ssl_lib = D:\usr\sap\xxxW00\sapcrypto.dll
    ssl/server_pse = D:\usr\sap\xxx\W00\sec\SAPSSLS.pse
    ssf/name = D:\usr\sap\xxx\W00\sec\SAPSSLS.pse
    ssf/ssfapi_lib =  D:\usr\sap\xxx\W00\sapcrypto.dll
    sec/libsapsecu =  D:\usr\sap\xxx\W00\sapcrypto.dll
    wdisp/ssl_cred = D:\usr\sap\xxx\W00\sec\SAPSSLC.pse
    Parameters for Using SSL to the backend server
    wdisp/ssl_encrypt = 1
    wdisp/ssl_auth = 1
    wdisp/ssl_cred = D:\usr\sap\xxxW00\sec\SAPSSLC.pse
    wdisp/ssl_certhost = hostnameofportalserver with FQDN
    wdisp/ssl_ignore_host_mismatch = true
    #ICM Parameters
    icm/HTTP/j2ee_0 = PREFIX=/, HOST =hostnameofportalserver with FQDN PORT=50000,SPORT=50001, SSLENC=1,TYPE=1, CRED =D:\usr\sap\xxx\W00\sec\SAPSSLC.pse
    We also tried below options in WebDispatcher profile but we are getting same problem.
    wdisp/add_client_protocol_header = true
    wdisp/add_clientprotocol_header = 1
    wdisp/ssl_ignore_host_mismatch = true
    #ICM Parameters
    icm/HTTPS/forward_ccert_as_header = true
    icm/HTTPS/trust_client_with_issuer = *
    icm/HTTPS/trust_client_with_subject = *
    we also tried
    wdisp/ssl_encrypt = 0
    wdisp/ssl_auth = 0
    we also tried
    wdisp/ssl_encrypt = 2
    wdisp/ssl_auth = 2
    We are not able to resolve issue. Please help us on resolving this issue.
    Thanks
    Praveen

    ' in Host Names is not allowed. Our hosname has '_'.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/67/be9442572e1231e10000000a1550b0/frameset.htm

  • Login Page not getting Displayed after 10.1.3 Home Upgrade in R12

    Hi,
    We are performing an Upgrade of 12.0.6 to 12.1.1.
    We have just finished the upgrade of 10.1.3 Home to 10.1.3.4. After the successful completetion of Patchset Installation, as a part of Instance
    Validation , we found that we were not able to get the R12 Login Page displayed.
    On Checking the Apache Logs, The Error Message looked as below:
    [Tue Jun 30 03:08:36 2009] [error] [client 159.182.123.2] [ecid: 1246345716:168.146.11.159:585784:0:2,0] File does not exist:
    /u18/app/HUTLcomn/apps/HUTL_oldtut353/portal/OA_HTML/AppsLocalLogin.jsp
    But AppsLocalLogin.jsp in our environment is located in the correct location
    $OA_HTML
    oldtut353:orapps(app):HUTL:[home/orapps] echo $OA_HTML
    /u18/app/HUTLcomn/webapps/oacore/html
    oldtut353:orapps(app):HUTL:[home/orapps] cd
    $OA_HTML
    oldtut353:orapps(app):HUTL:[u18/app/HUTLcomn/webapps/oacore/html] ls -ltr AppsLocalLogin
    -rw------- 1 orapps dba 4094 Jun 16 02:03 AppsLocalLogin.jsp
    It is reading the AppsLocalLogin.jsp from a non existent Location < INST_TOP>/portal/OA_HTML/AppsLocalLogin.jsp
    I have run the autoconfig successfuly in all the Application Tiers and generated Product JAR Files. But still the Error Exists.
    Please help to resolve this issue.

    Thank You Helios.
    The thread which you had mentioned in your previous reply had the similar issue which i was facing.
    I moved forward with the remaining Pre-Upgrade Tasks, Applied Maintainence Pack and then completed the Post Upgrade Tasks.
    I am very delighted to let you know that my Upgrade from 12.0.6 to 12.1.1 was successful. I got the feeling of GLADIATOR :) when I saw the Login Page appearing for the first
    time after the Upgrade.
    Thank you all for your help and Support.
    Thanks,Varun

  • Session Timeout directly taking to login page

    Hi,
    In our application when session time out happens, it is directly taking to login page, instead of showing the time out error message . We have a CustomExceptionHandler defined in our application. When I debugged, I identified that the following error message
    <StateManagerImpl><restoreView> Could not find saved view state for token -ppfn0o4n8 (*ADF_FACES-30107)*
    comes when user clicks login the second time.
    We want to know how to get the error message first before it goes to the login page? Any configuration we are missing?
    Here is our applications web.xml
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <web-app 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" version="2.5" xmlns="http://java.sun.com/xml/ns/javaee">
    <description>Empty web.xml file for Web Application</description>
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    </context-param>
    <context-param>
    <param-name>jndiContext</param-name>
    <param-value>inv</param-value>
    </context-param>
    <context-param>
    <param-name>UserEnvironmentName</param-name>
    <param-value>UserEnvironment</param-value>
    </context-param>
    <context-param>
    <param-name>CacheConfigureFile</param-name>
    <param-value>inv-cache.xml</param-value>
    </context-param>
    <context-param>
    <param-name>SecurityRepositoryClass</param-name>
    <param-value>oracle.communications.inventory.api.framework.security.impl.SecurityRepositoryImpl</param-value>
    </context-param>
    <context-param>
    <description>Whether the 'Generated by...' comment at the bottom of ADF Faces HTML pages should contain version number information.</description>
    <param-name>oracle.adf.view.rich.versionString.HIDDEN</param-name>
    <param-value>false</param-value>
    </context-param>
    <context-param>
    <param-name>oracle.adfinternal.view.rich.libraryPartitioning.ENABLED</param-name>
    <param-value>true</param-value>
    </context-param>
    <context-param>
    <param-name>ilog.views.faces.CONTROLLER_PATH</param-name>
    <param-value>/_contr</param-value>
    </context-param>
    <context-param>
    <param-name>ilog.views.faces.CONTENT_LENGTH_ENABLED</param-name>
    <param-value>true</param-value>
    </context-param>
    <context-param>
    <description>If this parameter is true, there will be an automatic check of the modification date of your JSPs, and saved state will be discarded when JSP's change. It will also automatically check if your skinning css files have changed without you having to restart the server. This makes development easier, but adds overhead. For this reason this parameter should be set to false when your application is deployed.</description>
    <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name>
    <param-value>false</param-value>
    </context-param>
    <context-param>
    <param-name>APPLICATION_NAME</param-name>
    <param-value>Unified Inventory Management</param-value>
    </context-param>
    <context-param>
    <param-name>COPYRIGHT_FROM_YEAR</param-name>
    <param-value>2007</param-value>
    </context-param>
    <context-param>
    <param-name>COPYRIGHT_TO_YEAR</param-name>
    <param-value>2011</param-value>
    </context-param>
    <context-param>
    <!-- Maximum memory per request (in bytes) -->
    <param-name>org.apache.myfaces.trinidad.UPLOAD_MAX_MEMORY</param-name>
    <!-- Use 500K -->
    <param-value>512000</param-value>
    </context-param>
    <context-param>
    <!-- Maximum disk space per request (in bytes) -->
    <param-name>org.apache.myfaces.trinidad.UPLOAD_MAX_DISK_SPACE</param-name>
    <!-- Use 100M -->
    <param-value>104857600</param-value>
    </context-param>
    <filter>
    <filter-name>trinidad</filter-name>
    <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>trinidad</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    </filter-mapping>
    <listener>
    <listener-class>oracle.communications.inventory.api.framework.listener.ContextListener</listener-class>
    </listener>
    <listener>
    <listener-class>oracle.communications.inventory.ui.framework.IlogContextListener</listener-class>
    </listener>
    <!-- Cartridge Installer servlet for post re-deploy -->
    <listener>
    <listener-class>
    oracle.communications.inventory.cartridge.deploy.CartridgeInstallerServletContextListener
    </listener-class>
    </listener>
    <persistence-context-ref>
    <persistence-context-ref-name>persistence/EntityManager</persistence-context-ref-name>
    <persistence-unit-name>default</persistence-unit-name>
    </persistence-context-ref>
    <listener>
    <listener-class>oracle.adf.mbean.share.connection.ADFConnectionLifeCycleCallBack</listener-class>
    </listener>
    <listener>
    <listener-class>oracle.adf.mbean.share.config.ADFConfigLifeCycleCallBack</listener-class>
    </listener>
    <servlet>
    <servlet-name>BIGRAPHSERVLET</servlet-name>
    <servlet-class>oracle.adfinternal.view.faces.bi.renderkit.graph.GraphServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>BIGAUGESERVLET</servlet-name>
    <servlet-class>oracle.adfinternal.view.faces.bi.renderkit.gauge.GaugeServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>MapProxyServlet</servlet-name>
    <servlet-class>oracle.adfinternal.view.faces.bi.renderkit.geoMap.servlet.MapProxyServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>GatewayServlet</servlet-name>
    <servlet-class>oracle.adfinternal.view.faces.bi.renderkit.graph.FlashBridgeServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>media</servlet-name>
    <servlet-class>oracle.communications.inventory.ui.media.servlet.MediaServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>BIGRAPHSERVLET</servlet-name>
    <url-pattern>/servlet/GraphServlet/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>BIGAUGESERVLET</servlet-name>
    <url-pattern>/servlet/GaugeServlet/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>MapProxyServlet</servlet-name>
    <url-pattern>/mapproxy/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/bi/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>GatewayServlet</servlet-name>
    <url-pattern>/flashbridge/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>media</servlet-name>
    <url-pattern>/media_image</url-pattern>
    </servlet-mapping>
    <resource-ref>
    <res-ref-name>wm/ruleWorkManager</res-ref-name>
    <res-type>commonj.work.WorkManager</res-type>
    <res-auth>Container</res-auth>
    <res-sharing-scope>Unshareable</res-sharing-scope>
    </resource-ref>
    <filter>
    <filter-name>JpsFilter</filter-name>
    <filter-class>oracle.security.jps.ee.http.JpsFilter</filter-class>
    <init-param>
    <param-name>enable.anonymous</param-name>
    <param-value>true</param-value>
    </init-param>
    <init-param>
    <param-name>remove.anonymous.role</param-name>
    <param-value>false</param-value>
    </init-param>
    <init-param>
    <param-name>addAllRoles</param-name>
    <param-value>true</param-value>
    </init-param>
    <init-param>
    <param-name>jaas.mode</param-name>
    <param-value>doasprivileged</param-value>
    </init-param>
    </filter>
    <filter>
    <filter-name>ADFLibraryFilter</filter-name>
    <filter-class>oracle.adf.library.webapp.LibraryFilter</filter-class>
    </filter>
    <filter>
    <filter-name>adfBindings</filter-name>
    <filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>JpsFilter</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>INCLUDE</dispatcher>
    </filter-mapping>
    <filter-mapping>
    <filter-name>ADFLibraryFilter</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfBindings</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    </filter-mapping>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>resources</servlet-name>
    <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>adflibResources</servlet-name>
    <servlet-class>oracle.adf.library.webapp.ResourceServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>adfAuthentication</servlet-name>
    <servlet-class>oracle.adf.share.security.authentication.AuthenticationServlet</servlet-class>
    <init-param>
    <param-name>success_url</param-name>
    <param-value>/faces/InventoryUIShell</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>Controller</servlet-name>
    <servlet-class>ilog.views.faces.IlvFacesController</servlet-class>
    <load-on-startup>3</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/adf/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/afr/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>adflibResources</servlet-name>
    <url-pattern>/adflib/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>adfAuthentication</servlet-name>
    <url-pattern>/adfAuthentication</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>Controller</servlet-name>
    <url-pattern>/_contr/*</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>35</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <jsp-config>
    <jsp-property-group>
    <url-pattern>*.jsff</url-pattern>
    <is-xml>true</is-xml>
    </jsp-property-group>
    </jsp-config>
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>allPages</web-resource-name>
    <url-pattern>/</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>valid-users</role-name>
    </auth-constraint>
    </security-constraint>
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>Unsecured resources</web-resource-name>
    <url-pattern>/images/</url-pattern>
    <url-pattern>*.png</url-pattern>
    <url-pattern>*.gif</url-pattern>
    <url-pattern>*.jpg</url-pattern>
    <url-pattern>*.jpeg</url-pattern>
    <url-pattern>*.bmp</url-pattern>
    <url-pattern>*.css</url-pattern>
    <url-pattern>*.js</url-pattern>
    <url-pattern>/css/*</url-pattern>
    <url-pattern>/afr/blank.html</url-pattern>
    </web-resource-collection>
    </security-constraint>
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>adfAuthentication</web-resource-name>
    <url-pattern>/adfAuthentication</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>valid-users</role-name>
    </auth-constraint>
    </security-constraint>
    <login-config>
    <auth-method>FORM</auth-method>
    <form-login-config>
    <form-login-page>/faces/login.jspx</form-login-page>
    <form-error-page>/faces/error.jspx</form-error-page>
    </form-login-config>
    </login-config>
    <security-role>
    <role-name>valid-users</role-name>
    </security-role>
    <welcome-file-list>
    <welcome-file>/faces/InventoryUIShell</welcome-file>
    </welcome-file-list>
    </web-app>

    hi
    this can be done using a simple "Servlet Filters" which will check whether the user session is valid or not. so for every connect to the server the filter runs and redirects to the login page if the session has expired. here you can configure your filter to be activated for every URL or a patterns of urls.
    u need servlet2.3 supported server for this.
    hope this helps
    shrini
    I have an business j2ee application run on oc4j. When the session timeout declared on the web.xml expire, i want to redirect automaticaly the user to my login.jsp to force him to reconnect. I try j_security_chek, but i want to restart the business application at the top and not to the page which are request. Somebody know who i can do this mechanism. I try too special tag in jsp, this run very good but i have to repeate this call on every page. I look for an other simply mechanism to that
    Thanks

  • I m using ms access as database and i want to create a login page in java

    hye frnz... plz help me m new to java
    m using ms access as database and try to create a login page where user type username and pw
    i had enter valid user entries in database i checked connectivity is working i want as user login the main window must open after checking username and pw field to database but
    now there is an error class not found exception sun:jdbc...... error
    plz help me i had stuck frm 4 days */
    import java.sql.DriverManager;
    import java.sql.Connection;
    import java.sql.Statement;
    import java.sql.ResultSet;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class Login extends JFrame
    //Component Declarations
    JLabel jlb1,jlb2;
         JTextField jtf1;
         JPasswordField jpf1;
         JButton jb1,jb2;
         //Constructor
         Login()
         //frame settings
              setTitle("Login Dialog");
              setLayout(new GridBagLayout());
              GridBagConstraints gbc = new GridBagConstraints();
              setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
              Dimension d= Toolkit.getDefaultToolkit().getScreenSize();
              setBounds(d.width/2-175,d.height/2-100,350,200);
              gbc.insets=new Insets(7,7,7,7);
         //adding components
              jlb1=new JLabel("User ID");
              gbc.gridx=0;
              gbc.gridy=0;
              add(jlb1,gbc);
              jlb2=new JLabel("Password");
              gbc.gridx=0;
              gbc.gridy=1;
              add(jlb2,gbc);
              jtf1=new JTextField(10);
              gbc.gridx=1;
              gbc.gridy=0;
              add(jtf1,gbc);
              jpf1=new JPasswordField(10);
              gbc.gridx=1;
              gbc.gridy=1;
              add(jpf1,gbc);
              jb1=new JButton("Login");
              gbc.gridx=0;
              gbc.gridy=2;
              add(jb1,gbc);
              jb1.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent ae)
                   Connection conn=null;
                        Statement stmt=null;
                        boolean found=false;
                   try
                             Class.forName("sun.jdbc.driver.JdbcOdbcDriver");
                             String dataSourceName = "Inventory";
                             String dbURL = "jdbc:odbc:" + dataSourceName;
                             conn=DriverManager.getConnection(dbURL, "","");
                             stmt=conn.createStatement();
                             ResultSet rst=stmt.executeQuery("Select * from User");
                             System.out.println(jtf1.getText()+"/t"+jpf1.getPassword());
                             while(rst.next())
                                  System.out.println( rst.getString(1) +"/t"+ rst.getString(2));
              if(jtf1.getText().equals(rst.getString(1).trim()) && new String(jpf1.getPassword()).equals(rst.getString(2).trim()))
                                       found=true;
                                       rst.close();
                                       dispose();
                                       MainWindow mw= new MainWindow();     /*created min window object created to be opend after login but not working*/     
                                       break;
                             rst.close();
                             stmt.close();
                             conn.close();                    
                        catch(ClassNotFoundException e){System.out.print(e);}
                        catch(Exception e){System.out.print(e);}
                        if(found==false) /*this portion is executing and dialog box appears invalid name and pw with class not found exception sun:jdbc.......on console */
                             JOptionPane.showMessageDialog(null,"Invalid username or password",
                                  "Error Message",JOptionPane.ERROR_MESSAGE);
              jb2=new JButton("Clear");
              gbc.gridx=1;
              gbc.gridy=2;
              add(jb2,gbc);
              jb2.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent ae)
                        jtf1.setText("");
                        jpf1.setText("");
                        jtf1.requestFocus();
              setSize(350,200);
              setVisible(true);
              jtf1.requestFocus();
         public static void main(String args[])
    Login l=new Login();
    }

    http://forums.oracle.com/forums/ann.jspa?annID=599
    Oh, and by the way, your keyboard seems to be broken as your words are not getting spelled correctly.

  • Plz help using ms access as database,i want to create a login page in java

    hye frnz... plz help me m new to java
    m using ms access as database and try to create a login page where user type username and pw
    i had enter valid user entries in database i checked connectivity is working i want as user login the main window must open after checking username and pw field to database but
    now there is an error class not found exception sun:jdbc...... error
    plz help me i had stuck frm 4 days */
    import java.sql.DriverManager;
    import java.sql.Connection;
    import java.sql.Statement;
    import java.sql.ResultSet;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class Login extends JFrame
    //Component Declarations
    JLabel jlb1,jlb2;
         JTextField jtf1;
         JPasswordField jpf1;
         JButton jb1,jb2;
         //Constructor
         Login()
         //frame settings
              setTitle("Login Dialog");
              setLayout(new GridBagLayout());
              GridBagConstraints gbc = new GridBagConstraints();
              setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
              Dimension d= Toolkit.getDefaultToolkit().getScreenSize();
              setBounds(d.width/2-175,d.height/2-100,350,200);
              gbc.insets=new Insets(7,7,7,7);
         //adding components
              jlb1=new JLabel("User ID");
              gbc.gridx=0;
              gbc.gridy=0;
              add(jlb1,gbc);
              jlb2=new JLabel("Password");
              gbc.gridx=0;
              gbc.gridy=1;
              add(jlb2,gbc);
              jtf1=new JTextField(10);
              gbc.gridx=1;
              gbc.gridy=0;
              add(jtf1,gbc);
              jpf1=new JPasswordField(10);
              gbc.gridx=1;
              gbc.gridy=1;
              add(jpf1,gbc);
              jb1=new JButton("Login");
              gbc.gridx=0;
              gbc.gridy=2;
              add(jb1,gbc);
              jb1.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent ae)
                   Connection conn=null;
                        Statement stmt=null;
                        boolean found=false;
                   try
                             Class.forName("sun.jdbc.driver.JdbcOdbcDriver");
                             String dataSourceName = "Inventory";
                             String dbURL = "jdbc:odbc:" + dataSourceName;
                             conn=DriverManager.getConnection(dbURL, "","");
                             stmt=conn.createStatement();
                             ResultSet rst=stmt.executeQuery("Select * from User");
                             System.out.println(jtf1.getText()+"/t"+jpf1.getPassword());
                             while(rst.next())
                                  System.out.println( rst.getString(1) +"/t"+ rst.getString(2));
              if(jtf1.getText().equals(rst.getString(1).trim()) && new String(jpf1.getPassword()).equals(rst.getString(2).trim()))
                                       found=true;
                                       rst.close();
                                       dispose();
                                       MainWindow mw= new MainWindow();     /*created min window object created to be opend after login but not working*/     
                                       break;
                             rst.close();
                             stmt.close();
                             conn.close();                    
                        catch(ClassNotFoundException e){System.out.print(e);}
                        catch(Exception e){System.out.print(e);}
                        if(found==false) /*this portion is executing and dialog box appears invalid name and pw with class not found exception sun:jdbc.......on console */
                             JOptionPane.showMessageDialog(null,"Invalid username or password",
                                  "Error Message",JOptionPane.ERROR_MESSAGE);
              jb2=new JButton("Clear");
              gbc.gridx=1;
              gbc.gridy=2;
              add(jb2,gbc);
              jb2.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent ae)
                        jtf1.setText("");
                        jpf1.setText("");
                        jtf1.requestFocus();
              setSize(350,200);
              setVisible(true);
              jtf1.requestFocus();
         public static void main(String args[])
    Login l=new Login();
    Edited by: 795772 on Sep 19, 2010 4:44 AM

    795772 wrote:
    hye frnz... plz help me m new to java
    m using ms access as database and try to create a login page where user type username and pw
    i had enter valid user entries in database i checked connectivity is working i want as user login the main window must open after checking username and pw field to database but
    now there is an error class not found exception sun:jdbc...... error
    plz help me i had stuck frm 4 days */
    <snip>The subject of this forum is Oracle databases. How does your problem relate to that subject?
    Two bits of advice:
    1) Make sure you ask questions in a forum related to your problem.
    2) If you want to be taken seriously as a professional, drop the MS IM Speak and use the language of the forum. In this forum it is English, which is successfully used by many people for whom English is far from their native language.

  • Could not load my login page

    Hi ewerybody
    In my application i have configured security with "grant to new objects" and given a role under Application Role called Underwriter with a User by name Sarvanan.
    and i have authenticated a Home.jspx in my application and loginPage.jspx is given with anonymous and testall.
    Now when i debugg/run my Home.jspx,the page is not at all loading .I know that as it is authenticated it would direct me to the loginPage.jspx but u know i cant c whats happening.
    I have been waiting for about 10 minutes for it and still it was not loading .
    Can somebody help me please.
    I will provide you the jazn-data.xml,web.xml,jps-config.xml
    <?xml version = '1.0' encoding = 'UTF-8' standalone = 'yes'?>
    <jazn-data xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/jazn-data.xsd">
    <jazn-realm default="jazn.com">
    <realm>
    <name>jazn.com</name>
    <users>
    <user>
    <name>Sarvanan</name>
    <display-name>Sarvanan</display-name>
    <credentials>{903}MFOhR0q8BDLh7Jw6o+g9j9JFdZFrT1A8YHlPRux+mWw=</credentials>
    </user>
    </users>
    </realm>
    </jazn-realm>
    <policy-store>
    <applications>
    <application>
    <name>CommonUI</name>
    <app-roles>
    <app-role>
    <name>test-all</name>
    <class>oracle.security.jps.service.policystore.ApplicationRole</class>
    <display-name>test-all</display-name>
    <members>
    <member>
    <name>anonymous-role</name>
    <class>oracle.security.jps.internal.core.principals.JpsAnonymousRoleImpl</class>
    </member>
    </members>
    </app-role>
    <app-role>
    <name>anonymous-role</name>
    <class>oracle.security.jps.internal.core.principals.JpsAnonymousRoleImpl</class>
    <display-name>anonymous-role</display-name>
    </app-role>
    <app-role>
    <name>underwriter</name>
    <class>oracle.security.jps.service.policystore.ApplicationRole</class>
    <display-name>Underwriter</display-name>
    <description>
    </description>
    <members>
    <member>
    <name>Sarvanan</name>
    <class>oracle.security.jps.internal.core.principals.JpsXmlUserImpl</class>
    </member>
    </members>
    </app-role>
    </app-roles>
    <resource-types>
    <resource-type>
    <name>RegionResourceType</name>
    <display-name>Web Page</display-name>
    <description>Example of registered resource type</description>
    <matcher-class>oracle.adf.share.security.authorization.RegionPermission</matcher-class>
    <actions-delimiter>,</actions-delimiter>
    <actions>view</actions>
    </resource-type>
    </resource-types>
    <resources>
    <resource>
    <name>Pages.loginPagePageDef</name>
    <display-name>loginPage (Pages)</display-name>
    <description>Pages.loginPagePageDef</description>
    <type-name-ref>RegionResourceType</type-name-ref>
    </resource>
    </resources>
    <permission-sets>
    </permission-sets>
    <jazn-policy>
    <grant>
    <grantee>
    <principals>
    <principal>
    <name>test-all</name>
    <class>oracle.security.jps.service.policystore.ApplicationRole</class>
    </principal>
    </principals>
    </grantee>
    <permissions>
    <permission>
    <class>oracle.adf.controller.security.TaskFlowPermission</class>
    <name>/WEB-INF/out-pro-treayt-setup.xml#out-pro-treayt-setup</name>
    <actions>view</actions>
    </permission>
    <permission>
    <class>oracle.adf.share.security.authorization.RegionPermission</class>
    <name>Pages.loginPagePageDef</name>
    <actions>view</actions>
    </permission>
    <permission>
    <class>oracle.adf.share.security.authorization.RegionPermission</class>
    <name>Pages.errorPagePageDef</name>
    <actions>view</actions>
    </permission>
    </permissions>
    </grant>
    <grant>
    <grantee>
    <principals>
    <principal>
    <name>anonymous-role</name>
    <class>oracle.security.jps.internal.core.principals.JpsAnonymousRoleImpl</class>
    </principal>
    </principals>
    </grantee>
    <permissions>
    <permission>
    <class>oracle.adf.share.security.authorization.RegionPermission</class>
    <name>Pages.loginPagePageDef</name>
    <actions>view</actions>
    </permission>
    <permission>
    <class>oracle.adf.share.security.authorization.RegionPermission</class>
    <name>Pages.errorPagePageDef</name>
    <actions>view</actions>
    </permission>
    </permissions>
    </grant>
    <grant>
    <grantee>
    <principals>
    <principal>
    <name>authenticated-role</name>
    <class>oracle.security.jps.internal.core.principals.JpsAuthenticatedRoleImpl</class>
    </principal>
    </principals>
    </grantee>
    <permissions>
    <permission>
    <class>oracle.adf.share.security.authorization.RegionPermission</class>
    <name>Pages.HomePageDef</name>
    <actions>view</actions>
    </permission>
    </permissions>
    </grant>
    </jazn-policy>
    </application>
    </applications>
    </policy-store>
    </jazn-data>
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <web-app 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"
    version="2.5">
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    </context-param>
    <context-param>
    <param-name>javax.faces.PARTIAL_STATE_SAVING</param-name>
    <param-value>false</param-value>
    </context-param>
    <context-param>
    <description>If this parameter is true, there will be an automatic check of the modification date of your JSPs, and saved state will be discarded when JSP's change. It will also automatically check if your skinning css files have changed without you having to restart the server. This makes development easier, but adds overhead. For this reason this parameter should be set to false when your application is deployed.</description>
    <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name>
    <param-value>false</param-value>
    </context-param>
    <context-param>
    <description>Whether the 'Generated by...' comment at the bottom of ADF Faces HTML pages should contain version number information.</description>
    <param-name>oracle.adf.view.rich.versionString.HIDDEN</param-name>
    <param-value>false</param-value>
    </context-param>
    <context-param>
    <description>Security precaution to prevent clickjacking: bust frames if the ancestor window domain(protocol, host, and port) and the frame domain are different. Another options for this parameter are always and never.</description>
    <param-name>oracle.adf.view.rich.security.FRAME_BUSTING</param-name>
    <param-value>differentDomain</param-value>
    </context-param>
    <filter>
    <filter-name>JpsFilter</filter-name>
    <filter-class>oracle.security.jps.ee.http.JpsFilter</filter-class>
    <init-param>
    <param-name>enable.anonymous</param-name>
    <param-value>true</param-value>
    </init-param>
    <init-param>
    <param-name>remove.anonymous.role</param-name>
    <param-value>false</param-value>
    </init-param>
    </filter>
    <filter>
    <filter-name>trinidad</filter-name>
    <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
    </filter>
    <!--<filter>
    <filter-name>adfBindings</filter-name>
    <filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
    </filter>-->
    <!-- <filter>
    <filter-name>ADFLibraryFilter</filter-name>
    <filter-class>oracle.adf.library.webapp.LibraryFilter</filter-class>
    </filter>-->
    <filter>
    <filter-name>adfBindings</filter-name>
    <filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>JpsFilter</filter-name>
    <url-pattern>/*</url-pattern>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>INCLUDE</dispatcher>
    </filter-mapping>
    <filter-mapping>
    <filter-name>trinidad</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>ERROR</dispatcher>
    </filter-mapping>
    <!--<filter-mapping>
    <filter-name>adfBindings</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    </filter-mapping>-->
    <!-- <filter-mapping>
    <filter-name>ADFLibraryFilter</filter-name>
    <url-pattern>/*</url-pattern>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    </filter-mapping>-->
    <filter-mapping>
    <filter-name>adfBindings</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfBindings</filter-name>
    <servlet-name>adfAuthentication</servlet-name>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    </filter-mapping>
    <listener>
    <listener-class>oracle.adf.mbean.share.connection.ADFConnectionLifeCycleCallBack</listener-class>
    </listener>
    <listener>
    <listener-class>oracle.adf.mbean.share.config.ADFConfigLifeCycleCallBack</listener-class>
    </listener>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>resources</servlet-name>
    <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>BIGRAPHSERVLET</servlet-name>
    <servlet-class>oracle.adf.view.faces.bi.webapp.GraphServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>BIGAUGESERVLET</servlet-name>
    <servlet-class>oracle.adf.view.faces.bi.webapp.GaugeServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>MapProxyServlet</servlet-name>
    <servlet-class>oracle.adf.view.faces.bi.webapp.MapProxyServlet</servlet-class>
    </servlet>
    <!--<servlet>
    <servlet-name>adflibResources</servlet-name>
    <servlet-class>oracle.adf.library.webapp.ResourceServlet</servlet-class>
    </servlet>-->
    <servlet>
    <servlet-name>adfAuthentication</servlet-name>
    <servlet-class>oracle.adf.share.security.authentication.AuthenticationServlet</servlet-class>
    <init-param>
    <param-name>success_url</param-name>
    <param-value>/faces/Pages/Home.jspx</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/adf/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/afr/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>BIGRAPHSERVLET</servlet-name>
    <url-pattern>/servlet/GraphServlet/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>BIGAUGESERVLET</servlet-name>
    <url-pattern>/servlet/GaugeServlet/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>MapProxyServlet</servlet-name>
    <url-pattern>/mapproxy/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/bi/*</url-pattern>
    </servlet-mapping>
    <!--<servlet-mapping>
    <servlet-name>adflibResources</servlet-name>
    <url-pattern>/adflib/*</url-pattern>
    </servlet-mapping>-->
    <servlet-mapping>
    <servlet-name>adfAuthentication</servlet-name>
    <url-pattern>/adfAuthentication</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>2</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>swf</extension>
    <mime-type>application/x-shockwave-flash</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>amf</extension>
    <mime-type>application/x-amf</mime-type>
    </mime-mapping>
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>adfAuthentication</web-resource-name>
    <url-pattern>/adfAuthentication</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>valid-users</role-name>
    </auth-constraint>
    </security-constraint>
    <login-config>
    <auth-method>FORM</auth-method>
    <form-login-config>
    <form-login-page>/faces/Pages/loginPage.jspx</form-login-page>
    <form-error-page>/faces/Pages/errorPage.jspx</form-error-page>
    </form-login-config>
    </login-config>
    <security-role>
    <role-name>valid-users</role-name>
    </security-role>
    </web-app>
    <?xml version = '1.0' encoding = 'Cp1252'?>
    <jpsConfig xmlns="http://xmlns.oracle.com/oracleas/schema/11/jps-config-11_1.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/oracleas/schema/11/jps-config-11_1.xsd">
    <property value="doasprivileged" name="oracle.security.jps.jaas.mode"/>
    <serviceProviders>
    <serviceProvider class="oracle.security.jps.internal.credstore.ssp.SspCredentialStoreProvider" name="credstore.provider" type="CREDENTIAL_STORE">
    <description>Credential Store Service Provider</description>
    </serviceProvider>
    <serviceProvider class="oracle.security.jps.internal.login.jaas.JaasLoginServiceProvider" name="jaas.login.provider" type="LOGIN">
    <description>Login Module Service Provider</description>
    </serviceProvider>
    <serviceProvider class="oracle.security.jps.internal.idstore.xml.XmlIdentityStoreProvider" name="idstore.xml.provider" type="IDENTITY_STORE">
    <description>XML-based IdStore Provider</description>
    </serviceProvider>
    <serviceProvider class="oracle.security.jps.internal.policystore.xml.XmlPolicyStoreProvider" name="policystore.xml.provider" type="POLICY_STORE">
    <description>XML-based PolicyStore Provider</description>
    </serviceProvider>
    <serviceProvider class="oracle.security.jps.internal.anonymous.idm.IdmAnonymousServiceProvider" name="anonymous.provider" type="ANONYMOUS">
    <description>Anonymous Service Provider</description>
    </serviceProvider>
    </serviceProviders>
    <serviceInstances>
    <serviceInstance provider="credstore.provider" name="credstore">
    <property value="./" name="location"/>
    </serviceInstance>
    <serviceInstance provider="jaas.login.provider" name="saml.loginmodule">
    <property value="oracle.security.jps.internal.jaas.module.saml.JpsSAMLLoginModule" name="loginModuleClassName"/>
    <property value="REQUIRED" name="jaas.login.controlFlag"/>
    <property value="true" name="debug"/>
    <property value="true" name="addAllRoles"/>
    <property value="www.oracle.com" name="name"/>
    </serviceInstance>
    <serviceInstance provider="jaas.login.provider" name="krb5.loginmodule">
    <property value="com.sun.security.auth.module.Krb5LoginModule" name="loginModuleClassName"/>
    <property value="REQUIRED" name="jaas.login.controlFlag"/>
    <property value="true" name="debug"/>
    <property value="true" name="addAllRoles"/>
    <property value="true" name="storeKey"/>
    <property value="true" name="useKeyTab"/>
    <property value="true" name="doNotPrompt"/>
    <property value="./krb5.keytab" name="keyTab"/>
    <property value="HOST/[email protected]" name="principal"/>
    </serviceInstance>
    <serviceInstance provider="jaas.login.provider" name="oam.loginmodule">
    <property value="oracle.security.jps.internal.jaas.module.oam.OAMLoginModule" name="loginModuleClassName"/>
    <property value="REQUIRED" name="jaas.login.controlFlag"/>
    <property value="true" name="debug"/>
    <property value="true" name="addAllRoles"/>
    <property value="$ACCESS_SDK_HOME" name="access.sdk.install.path"/>
    </serviceInstance>
    <serviceInstance provider="jaas.login.provider" name="admin.tool.loginmodule">
    <property value="oracle.security.jazn.login.module.RealmLoginModule" name="loginModuleClassName"/>
    <property value="REQUIRED" name="jaas.login.controlFlag"/>
    <property value="true" name="debug"/>
    <property value="true" name="addAllRoles"/>
    </serviceInstance>
    <serviceInstance provider="jaas.login.provider" name="digest.authenticator.loginmodule">
    <property value="oracle.security.jps.internal.jaas.module.digest.DigestLoginModule" name="loginModuleClassName"/>
    <property value="REQUIRED" name="jaas.login.controlFlag"/>
    <property value="true" name="debug"/>
    <property value="true" name="addAllRoles"/>
    </serviceInstance>
    <serviceInstance provider="jaas.login.provider" name="certificate.authenticator.loginmodule">
    <property value="oracle.security.jps.internal.jaas.module.x509.X509LoginModule" name="loginModuleClassName"/>
    <property value="REQUIRED" name="jaas.login.controlFlag"/>
    <property value="true" name="debug"/>
    <property value="true" name="addAllRoles"/>
    </serviceInstance>
    <serviceInstance provider="jaas.login.provider" name="jaas.auth.manager.loginmodule">
    <property value="oracle.security.jazn.login.module.WSSLoginModule" name="loginModuleClassName"/>
    <property value="REQUIRED" name="jaas.login.controlFlag"/>
    <property value="true" name="debug"/>
    <property value="true" name="addAllRoles"/>
    </serviceInstance>
    <serviceInstance provider="jaas.login.provider" name="saml.auth.manager.loginmodule">
    <property value="oracle.security.jazn.login.module.saml.SAMLLoginModule" name="loginModuleClassName"/>
    <property value="REQUIRED" name="jaas.login.controlFlag"/>
    <property value="true" name="debug"/>
    <property value="true" name="addAllRoles"/>
    <property value="www.oracle.com" name="issuer.name.1"/>
    <property value="orasign" name="issuer.trustpointalias.1"/>
    <property value="oracle" name="issuer.keystorepassword.1"/>
    <property value="config/oraks.jks" name="issuer.keystorepath.1"/>
    </serviceInstance>
    <serviceInstance provider="jaas.login.provider" name="wss.digest.loginmodule">
    <property value="oracle.security.jps.internal.jaas.module.digest.WSSDigestLoginModule" name="loginModuleClassName"/>
    <property value="REQUIRED" name="jaas.login.controlFlag"/>
    <property value="true" name="debug"/>
    <property value="true" name="addAllRoles"/>
    </serviceInstance>
    <serviceInstance provider="jaas.login.provider" name="idstore.loginmodule">
    <property value="oracle.security.jps.internal.jaas.module.idstore.IdStoreLoginModule" name="loginModuleClassName"/>
    <property value="REQUIRED" name="jaas.login.controlFlag"/>
    <property value="true" name="debug"/>
    <property value="true" name="addAllRoles"/>
    <property value="false" name="remove.anonymous.role"/>
    </serviceInstance>
    <serviceInstance provider="idstore.xml.provider" name="idstore.xml">
    <property value="./jazn-data.xml" name="location"/>
    <property value="OBFUSCATE" name="jps.xml.idstore.pwd.encoding"/>
    <property value="jazn.com" name="subscriber.name"/>
    </serviceInstance>
    <serviceInstance provider="policystore.xml.provider" name="policystore.xml">
    <property value="./jazn-data.xml" name="location"/>
    <property value="false" name="oracle.security.jps.policy.principal.cache.key"/>
    </serviceInstance>
    <serviceInstance provider="anonymous.provider" name="anonymous"/>
    <serviceInstance provider="jaas.login.provider" name="anonymous.loginmodule">
    <property value="oracle.security.jps.internal.jaas.module.anonymous.AnonymousLoginModule" name="loginModuleClassName"/>
    <property value="REQUIRED" name="jaas.login.controlFlag"/>
    <property value="true" name="debug"/>
    <property value="true" name="addAllRoles"/>
    </serviceInstance>
    </serviceInstances>
    <jpsContexts default="CommonUI">
    <jpsContext name="CommonUI">
    <serviceInstanceRef ref="idstore.xml"/>
    <serviceInstanceRef ref="credstore"/>
    <serviceInstanceRef ref="anonymous"/>
    <serviceInstanceRef ref="policystore.xml"/>
    <serviceInstanceRef ref="idstore.loginmodule"/>
    </jpsContext>
    <jpsContext name="anonymous">
    <serviceInstanceRef ref="credstore"/>
    <serviceInstanceRef ref="anonymous"/>
    <serviceInstanceRef ref="anonymous.loginmodule"/>
    </jpsContext>
    </jpsContexts>
    </jpsConfig>
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <weblogic-web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.1/weblogic-web-app.xsd"
    xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app">
    <security-role-assignment>
    <role-name>valid-users</role-name>
    <principal-name>users</principal-name>
    </security-role-assignment>
    </weblogic-web-app>
    Edited by: 937558 on Aug 5, 2012 10:34 PM

    Thanks Arun for ur early reply,
    I am Using the Jdev Studio Edition Version 11.1.2.1.0 .
    And i have given the permissions to Home.jspx as authenticated and for all the others i have given the permissions as anonymous,testall.
    Please kindly reply.
    I can provide u the Debugging Integrated Weblogic log:
    *** Using HTTP port 7101 ***
    *** Using SSL port 7102 ***
    C:\Users\rajesh.reddy\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\bin\startWebLogic.cmd
    [waiting for the server to complete its initialization...]
    JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=512m
    WLS Start Mode=Development
    CLASSPATH=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jdbc_11.1.1\ojdbc6dms.jar;C:\Oracle\MIDDLE~1\patch_wls1035\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_jdev1112\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\JDK160~1\lib\tools.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.5.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;C:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrf.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\common\derby\lib\derbyclient.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\xqrl.jar
    PATH=C:\Oracle\MIDDLE~1\patch_wls1035\profiles\default\native;C:\Oracle\MIDDLE~1\patch_jdev1112\profiles\default\native;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1\bin;C:\Oracle\MIDDLE~1\JDK160~1\jre\bin;C:\Oracle\MIDDLE~1\JDK160~1\bin;C:\Oracle\11g;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files\Hewlett-Packard\HP ProtectTools Security Manager\Bin\;c:\Program Files\Intel\DMIX;C:\Program Files\Intel\Services\IPT\;C:\Program Files\Enterprise Vault\EVClient\;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32\oci920_8
    * To start WebLogic Server, use a username and *
    * password assigned to an admin-level user. For *
    * server administration, use the WebLogic Server *
    * console at http:\\hostname:port\console *
    starting weblogic with Java version:
    java version "1.6.0_24"
    Java(TM) SE Runtime Environment (build 1.6.0_24-b50)
    Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode)
    Starting WLS with line:
    C:\Oracle\MIDDLE~1\JDK160~1\bin\java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=512m -Dweblogic.Name=DefaultServer -Djava.security.policy=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy -agentlib:jdwp=transport=dt_socket,server=y,address=57042 -Dcom.sun.xml.bind.v2.bytecode.ClassTailor.noOptimize=true -Djavax.net.ssl.trustStore=C:\Users\RAJESH~1.RED\AppData\Local\Temp\trustStore1425708266528215067.jks -Doracle.jdeveloper.adrs=true -Dweblogic.nodemanager.ServiceEnabled=true -Xverify:none -da -Dplatform.home=C:\Oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Djps.app.credential.overwrite.allowed=true -Dcommon.components.home=C:\Oracle\MIDDLE~1\ORACLE~1 -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Ddomain.home=C:\Users\RAJESH~1.RED\AppData\Roaming\JDEVEL~1\SYSTEM~1.81\DEFAUL~1 -Djrockit.optfile=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrocket_optfile.txt -Doracle.server.config.dir=C:\Users\RAJESH~1.RED\AppData\Roaming\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\config\FMWCON~1\servers\DefaultServer -Doracle.domain.config.dir=C:\Users\RAJESH~1.RED\AppData\Roaming\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\config\FMWCON~1 -Digf.arisidbeans.carmlloc=C:\Users\RAJESH~1.RED\AppData\Roaming\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\config\FMWCON~1\carml -Digf.arisidstack.home=C:\Users\RAJESH~1.RED\AppData\Roaming\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\config\FMWCON~1\arisidprovider -Doracle.security.jps.config=C:\Users\RAJESH~1.RED\AppData\Roaming\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\config\fmwconfig\jps-config.xml -Doracle.deployed.app.dir=C:\Users\RAJESH~1.RED\AppData\Roaming\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\servers\DefaultServer\tmp\_WL_user -Doracle.deployed.app.ext=\- -Dweblogic.alternateTypesDirectory=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.ossoiap_11.1.1,C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.oamprovider_11.1.1 -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Dweblogic.jdbc.remoteEnabled=false -Dwsm.repository.path=C:\Users\RAJESH~1.RED\AppData\Roaming\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\oracle\store\gmds -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\Oracle\MIDDLE~1\patch_wls1035\profiles\default\sysext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_jdev1112\profiles\default\sysext_manifest_classpath weblogic.Server
    Listening for transport dt_socket at address: 57042
    Debugger connected to local process.
    <Aug 6, 2012 11:02:14 AM AST> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true>
    <Aug 6, 2012 11:02:14 AM AST> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true>
    <Aug 6, 2012 11:02:14 AM AST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 19.1-b02 from Sun Microsystems Inc.>
    <Aug 6, 2012 11:02:15 AM AST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.5.0 Fri Apr 1 20:20:06 PDT 2011 1398638 >
    <Aug 6, 2012 11:02:16 AM AST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <Aug 6, 2012 11:02:16 AM AST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
    <Aug 6, 2012 11:02:16 AM AST> <Notice> <LoggingService> <BEA-320400> <The log file C:\Users\rajesh.reddy\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
    <Aug 6, 2012 11:02:16 AM AST> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Users\rajesh.reddy\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log00076. Log messages will continue to be logged in C:\Users\rajesh.reddy\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log.>
    <Aug 6, 2012 11:02:16 AM AST> <Notice> <Log Management> <BEA-170019> <The server log file C:\Users\rajesh.reddy\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log is opened. All server side log events will be written to this file.>
    Aug 6, 2012 11:02:17 AM com.sun.xml.bind.v2.runtime.reflect.opt.AccessorInjector <clinit>
    INFO: The optimized code generation is disabled
    <Aug 6, 2012 11:02:19 AM AST> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
    <Aug 6, 2012 11:02:20 AM AST> <Notice> <LoggingService> <BEA-320400> <The log file C:\Users\rajesh.reddy\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\access.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
    <Aug 6, 2012 11:02:20 AM AST> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Users\rajesh.reddy\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\access.log00282. Log messages will continue to be logged in C:\Users\rajesh.reddy\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\access.log.>
    <Aug 6, 2012 11:02:22 AM AST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
    <Aug 6, 2012 11:02:22 AM AST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <MessageLocalizationHelper> <getLocalizedMessage> The resource for bundle "oracle.jrf.i18n.MBeanMessageBundle" with key "oracle.jrf.JRFServiceMBean.checkIfJRFAppliedOnMutipleTargets" cannot be found.
    <Aug 6, 2012 11:02:51 AM AST> <Notice> <LoggingService> <BEA-320400> <The log file C:\Users\rajesh.reddy\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
    <Aug 6, 2012 11:02:51 AM AST> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Users\rajesh.reddy\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log00046. Log messages will continue to be logged in C:\Users\rajesh.reddy\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log.>
    <Aug 6, 2012 11:02:51 AM AST> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
    <Aug 6, 2012 11:02:51 AM AST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
    <Aug 6, 2012 11:02:51 AM AST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
    <Aug 6, 2012 11:02:52 AM AST> <Notice> <Security> <BEA-090171> <Loading the identity certificate and private key stored under the alias DemoIdentity from the jks keystore file C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\DemoIdentity.jks.>
    <Aug 6, 2012 11:02:52 AM AST> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the jks keystore file C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\DemoTrust.jks.>
    <Aug 6, 2012 11:02:52 AM AST> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the jks keystore file C:\Oracle\MIDDLE~1\JDK160~1\jre\lib\security\cacerts.>
    <Aug 6, 2012 11:02:52 AM AST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=Entrust Root Certification Authority - G2,OU=(c) 2009 Entrust\, Inc. - for authorized use only,OU=See www.entrust.net/legal-terms,O=Entrust\, Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Aug 6, 2012 11:02:52 AM AST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=thawte Primary Root CA - G3,OU=(c) 2008 thawte\, Inc. - For authorized use only,OU=Certification Services Division,O=thawte\, Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Aug 6, 2012 11:02:52 AM AST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=T-TeleSec GlobalRoot Class 3,OU=T-Systems Trust Center,O=T-Systems Enterprise Services GmbH,C=DE". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Aug 6, 2012 11:02:52 AM AST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=T-TeleSec GlobalRoot Class 2,OU=T-Systems Trust Center,O=T-Systems Enterprise Services GmbH,C=DE". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Aug 6, 2012 11:02:52 AM AST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=GlobalSign,O=GlobalSign,OU=GlobalSign Root CA - R3". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Aug 6, 2012 11:02:52 AM AST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "OU=Security Communication RootCA2,O=SECOM Trust Systems CO.\,LTD.,C=JP". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Aug 6, 2012 11:02:52 AM AST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=VeriSign Universal Root Certification Authority,OU=(c) 2008 VeriSign\, Inc. - For authorized use only,OU=VeriSign Trust Network,O=VeriSign\, Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Aug 6, 2012 11:02:52 AM AST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=KEYNECTIS ROOT CA,OU=ROOT,O=KEYNECTIS,C=FR". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Aug 6, 2012 11:02:52 AM AST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=GeoTrust Primary Certification Authority - G3,OU=(c) 2008 GeoTrust Inc. - For authorized use only,O=GeoTrust Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Aug 6, 2012 11:02:52 AM AST> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure" is now listening on 172.20.101.98:7102 for protocols iiops, t3s, ldaps, https.>
    <Aug 6, 2012 11:02:52 AM AST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 172.20.101.98:7101 for protocols iiop, t3, ldap, snmp, http.>
    <Aug 6, 2012 11:02:52 AM AST> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "DefaultServer" for domain "DefaultDomain" running in Development Mode>
    <Aug 6, 2012 11:02:52 AM AST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
    <Aug 6, 2012 11:02:52 AM AST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    IntegratedWebLogicServer startup time: 39846 ms.
    IntegratedWebLogicServer started.
    [Running application CommonUI on Server Instance IntegratedWebLogicServer...]
    [11:02:53 AM] Web Module CommonUIWebApp.war recognized in project CommonUI.jpr
    [11:02:53 AM] ---- Deployment started. ----
    [11:02:53 AM] Target platform is (Weblogic 10.3).
    [11:02:53 AM] Retrieving existing application information
    [11:02:53 AM] Running dependency analysis...
    [11:02:53 AM] Deploying 2 profiles...
    [11:02:54 AM] Wrote Web Application Module to C:\Users\rajesh.reddy\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\o.j2ee\drs\CommonUI\CommonUIWebApp.war
    [11:02:54 AM] Wrote Enterprise Application Module to C:\Users\rajesh.reddy\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\o.j2ee\drs\CommonUI
    [11:02:54 AM] Deploying Application...
    <CodebasePolicyHandler> <migrateDeploymentPolicies> Migration of codebase policy failed. Reason: oracle.security.jps.JpsException: java.lang.reflect.InvocationTargetException.
    <AppPolicyHandler> <migrateAppPolicies> Migration of application policy failed. Reason: oracle.security.jps.JpsException: java.lang.reflect.InvocationTargetException.
    [11:03:03 AM] Application Deployed Successfully.
    [11:03:03 AM] The following URL context root(s) were defined and can be used as a starting point to test your application:
    [11:03:03 AM] http://172.20.101.98:7101/CommonUI-CommonUI-context-root
    [11:03:03 AM] Uploading jazn-data users.
    [11:03:03 AM] Updating user "Sarvanan".
    [11:03:03 AM] Elapsed time for deployment: 10 seconds
    [11:03:03 AM] ---- Deployment finished. ----
    Run startup time: 10129 ms.
    [Application CommonUI deployed to Server Instance IntegratedWebLogicServer]
    Target URL -- http://172.20.101.98:7101/CommonUI-CommonUI-context-root/faces/Pages/loginPage.jspx
    <Aug 6, 2012 11:03:30 AM AST> <Notice> <LoggingService> <BEA-320400> <The log file C:\Users\rajesh.reddy\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\access.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
    <Aug 6, 2012 11:03:30 AM AST> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Users\rajesh.reddy\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\access.log00283. Log messages will continue to be logged in C:\Users\rajesh.reddy\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\access.log.>
    <Aug 6, 2012 11:03:54 AM AST> <Notice> <LoggingService> <BEA-320400> <The log file C:\Users\rajesh.reddy\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\access.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
    <Aug 6, 2012 11:03:54 AM AST> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Users\rajesh.reddy\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\access.log00284. Log messages will continue to be logged in C:\Users\rajesh.reddy\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\access.log.>
    <Aug 6, 2012 11:04:17 AM AST> <Notice> <LoggingService> <BEA-320400> <The log file C:\Users\rajesh.reddy\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\access.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
    <Aug 6, 2012 11:04:17 AM AST> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Users\rajesh.reddy\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\access.log00285. Log messages will continue to be logged in C:\Users\rajesh.reddy\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\access.log.>
    <Aug 6, 2012 11:04:40 AM AST> <Notice> <LoggingService> <BEA-320400> <The log file C:\Users\rajesh.reddy\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\access.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
    <Aug 6, 2012 11:04:40 AM AST> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Users\rajesh.reddy\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\access.log00286. Log messages will continue to be logged in C:\Users\rajesh.reddy\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\access.log.>
    Edited by: 937558 on Aug 6, 2012 1:06 AM

  • Customization of Login page in OBIEE 11g

    Hi All,
    I am working on OBIEE 11.1.1.6.0.
    In login page of Analytic, we have User ID and Password.
    Can we add another label and textfield in login page.
    like.. User ID :-
    Password:-
    Company Name:-
    Please give me your suggestion.
    Thanks
    Prashant

    Hi Prashant,
    Looks like you need to validate the company name during the BI authentication process.
    We all know that NQUser is for UserID and NQPassword is for Password, with your customization you need to add Text field tag in the existing form with name as Company. Till here we can go for that without any issues.
    But my question is where you want to implement the validating the company name with userid and password. As of now saw.dll is going to validate the userid and password, to validate company name you need to customize the saw.dll (I dont think this can do) or else you need to validate first with your own script for given userid,pwd and company and then pass userid and pwd to saw.dll for BI authentication.
    Hope this helps, let me know for any questions

  • Intermittent Indirect REference to login page error

    Hello,
    I am building a small web app in a mixed (java/microsoft) environment. We have no budget for a purchased single sign on solution, so I built one with the following architecture:
    ASP page with integrated windows security, this simply returns to the url passed in as'URL' the clients current logon name.
    This ASP page is called by the IntranetSSOServlet, which then builds and submit the vanilla logon page. This servlet is my logon page, it simply posts it's URL to the ASP page, and if a return is posted from ASP, the logon page is bult and submitted. The IntranetSSOServlet also sets a session variable called user to the current user's windows login.
    I have two secure files, these are .jsp passthrough pages (since accessing the servlet directly did not appear to trip the security requirement and call the logon request from the server, so no users were ever in any roles). These are simple pages with a javascript redirect to the two servlets, and the jsp is only used because the servlets do not seem to trip the security requirement in the App server.
    On my machine this works with no issues, single sign on is a success and all is well, on the machine next to mine it works fine also. However, on several client machines, I keep getting an invalie direct reference to login page.
    My question is this:
    Does anyone see any major issues with the architecture which are causing this?
    It appears that the browser on some clients is attempting to go 'Back'. Is this a standard function of any software packages (spyware, internet tracking software, etc.?)
    I am building with Netbeans 5.0, running Embedded Tomcat 5.5.9 and the pages are all accessed via windows XP/IE 6
    Again, whats weird is that this works fine on several workstations, but throws the invalid direct reference to login on others...
    I am quite confused.
    Code to follow:
    IntranetSSOServlet
    if(request.getParameter("user") != null)
    HttpSession session = request.getSession(true);
    session.setAttribute("user",request.getParameter("user"));
    //If SSO submission has returned a validated user name
    //out.println(request.getParameter("user"));
    //post this name and the default password to the logon
    //This servlet will become the logon page, which will handle the redirects easier
    out.println("<form METHOD=\"POST\" name = \"form\" action=\"../Intranet-WebModule/j_security_check\">");
    //Generate a div to hide all of the input fields
    out.println("<div style=\"display:;\">");
    out.println("<input type=\"text\" name=\"j_username\" value=\""+request.getParameter("user")+"\"/>");
    out.println("<input type=\"password\" name=\"j_password\" value=\"sas\"/></div>");
    out.println("<input type=\"submit\" value=\"Submit\"/></div>");
    request.getSession().setAttribute("user",request.getParameter("user"));
    //out.println("<input type=\"submit\"></form>");
    out.println("</form><script language=\"javascript\">//form.submit();</script>");
    else
    //call the SSO submission page
    out.write("<script language=\"javascript\">location.replace(\"http://HOSTNAME/SSO/SSO.asp?URL="+lookupIntranetGlobalsBean().getJSPSiteRoot()+"IntranetSSOServlet\");</script>");
    out.close();
    This Servlet simply returns from the ASP a string (the user's logon) and then creates the post page, which posts a single dummy password to the app server
    JSP passthrough page (secured resource)
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%--
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    --%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    </head>
    <body>
    <script language="javascript">
    location.replace('http://HOSTNAME:8080/Intranet-WebModule/HRTools/newEmployeeAccountServlet');
    </script>
    </body>
    </html>

    Another try besides
         <login-config>
            <auth-method>FORM</auth-method>
            <realm-name>userDatabase</realm-name>
            <form-login-config>
                <form-login-page>/pages_public/login.jsp</form-login-page>
                <form-error-page>/pages_public/loginError.jsp</form-error-page>
            </form-login-config>
        </login-config>is that I try to handle the error code in the web.xml with
    <error-page>
         <error-code>400</error-code>
         <location>/error.jsp</location>
      </error-page>It works when I say location = index.jsp, but it doesn't work when I try to redirect to error.jsp.
    But when I redirect to index.jsp I just reload the login page, but then the user gets no information what has happened, therefore I need the error,jsp.
    I have no idea why. If anybody has a hint or know why it is this way, please let me know!!
    Thanks.

  • New to jsp, login page errors

    Hi
    I'm totally new to using jsp and as part of a project I need to create a login page which compares the
    entered email and password with those contained in a database.
    I've created the java code and jsp pages, there's no obvious errors (to me anyway) but everytime I try to run it I get the same error.
    The code for the login page is:
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <body>
    <form action="validate.jsp" method="POST">
    email address - <input type="text" name="emailAddress">
    <br>
    password - <input type="password" name="passWord">
    <input type="submit" value="Submit">
    <input type="reset" value="Reset">
    </form>
    <br>
    new customer? To sign up <a href="new%20customer.jsp">Click here</a>
    </body>
    </html>The validation page code is:
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@page import="java.util.*" %>
    <jsp:useBean id="idHandler" class="org.login" scope="request">
        <jsp:setProperty name="idHandler" property="*"/>
    </jsp:useBean>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
        <head>
            <body>
                <%
                String username=(String) session.getAttribute("username");
                String password = (String) session.getAttribute("password");
                String emailAddress = request.getParameter("emailAddress");
                String passWord = request.getParameter("passWord");
                if (idHandler.authenticate(emailAddress, passWord)) {
                    response.sendRedirect("index.jsp");
                } else {
                    response.sendRedirect("login.jsp");
                %>
        </body>
        </head>
    </html>and the java code is:
    package org;
    import java.io.IOException;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.sql.DataSource;
    public class login {
        private DataSource getJdbcConnectionPool() throws NamingException {
            Context c = new InitialContext();
            return (DataSource) c.lookup("java:comp/env/jdbc/connectionPool");
    //method that is called from validateuser.jsp and this checks for the authentic user and
        public boolean authenticate(String emailAdd, String pass)
                throws SQLException, IOException, IOException, NamingException {
            String emailAddress = null, Password = null;
            // connection instance
            Connection connection = null;
            try {
                DataSource dataSource = getJdbcConnectionPool();
                connection = dataSource.getConnection();
                String sql = "SELECT emailAdd, pword FROM customer WHERE emailAdd='" + emailAdd + "'" + "AND pword='" + pass + "'";
                PreparedStatement ps = connection.prepareStatement(sql);
                ResultSet rs = ps.executeQuery();
                if (rs.next()) {
                    emailAddress = rs.getString("emailAdd");
                    Password = rs.getString("pword");
                if (emailAddress != null && Password != null && emailAddress.equals(emailAddress) && pass.equals(Password)) {
                    return true;
                } else {
                    return false;
            }finally  {
                // close the connection so it can be returned to
                // the connection pool then return the list           
                connection.close();
    }finally the error message I get is:
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:460)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    java.lang.NullPointerException
         org.login.authenticate(login.java:56)
         org.apache.jsp.validate_jsp._jspService(validate_jsp.java:76)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.26 logs.
    help?

    login.java:56 is:
    connection.close();right? So, it looks like the call to getJdbcConnectionPool within authenticate throws an exception and control is passed to the finally block where connection is still null, resulting in the NPE. You should probably catch any exceptions thrown by the lookup for your datasource so you can see what the "real' error is.

  • Certificate problem (webauth and WLC/WCS login pages)

    Hello,
    When I try to web in to the WCS or the WLC controls I get a message saying that the certificate could not be verified. I can add it into the trusted CA on IE6 but the message will still pop up anyway. It also says "The name on the security certificate is invalid or does not match the name of the site".
    This problem is also happening for the WebAuth login page. This is more critical for me, as we have two WLANs which require WebAuth. When the clients use IE6 or Firefox it's not an issue, but when using IE7 it seems to randomly drop their connection due to the certificate being viewed as 'invalid' by the browser, forcing them to reauthenticate. I need to get this figured out and resolved so that the wireless webauth network is more reliable - I can't expect people to not upgrade to IE7.
    Has anyone managed to get through this problem without purchasing a valid certificate from a CA like Verisign? Let me know please!
    Thanks,
    Jeff
    P.S. My WCS is version 4.0.97.0 and I just upgraded my WLCs to 4.0.217.0 with plans to upgrade to the new 4.1.171.0 in the next week.

    Recieved this from TAC which may play into your issue.
    The description of the Microsoft post-login bug is as follows but we have the code with this fix in the attached:
    There is known bug filed with Microsoft in reference to the tag. There
    is also one with Netscape. The work-around is below:
    The Pragma statement fails in IE because of the way IE caches files.
    There is a 64K buffer that must be filled before a page is cached in
    IE. The problem is that the vast majority of the pages using the Pragma
    statement put it between the HEAD tags.
    The HEAD loads and the Pragma comes into play. The browser gets the go
    ahead to not cache the page, however there is not yet a page to not
    cache. Since the page hasn't filled the 64K buffer, there's no page so
    the Pragma is ignored. Thus...the page is cached.
    The solution is to play to the buffer. If you're really serious about
    the Pragma working, place another set of HEAD tags at the bottom of the
    document, before the end HTML tag and re-enter the Pragma. This is a
    suggestion straight from Microsoft Support. The page would look like
    this:
    Text in the Browser Window

  • Oracle ADF Security Login page

    hi.
    I am using oracle ADF 11.1.2.2.0 (oracle Jdevelopr 11g release 2) in my job environment. There are 3000 users working as client level in our company. They have separated user Id and roles. They can change their passwords. There are expiration period for passwords which is handle by in database level. when the employees are going to terminate or retirement , we can control their login status. that mean we change their Active status as a Inactive status. some times we recruit number of emplooyes for cover our business targets. Their User Id also in database table level.
    My main problem is how we can handle number of employees using Oracle ADF security configuration.
    second one is how user can change their passwords.
    Third is how number of employees going to terminate ,handle their Active/Inactive State.
    Fourth one is If we use this Oracle Security system ,project managers or project cordinator or Adminstrator level authenticator must need to deploy time to time war file, because of adding removing users in jazn-data.xml.
    hoping help from you.Thanking for all.

    So, you can define SQLAuthenticator/SQLReadOnlyAuthenticator on Weblogic which will retrieve users from your db table(instead of jazn-data file) to application server.
    Then, in your application you can enable ADF Security and this will generate login page.
    And, this is it :)
    If you need some custom processing before users login to your app, then you can create custom login page and do whatever you want in Java code:
    http://docs.oracle.com/cd/E16162_01/web.1112/e16182/adding_security.htm#BABDEICH
    >
    But 11g has Database connection in Application Resource. Using that connection I need to log to the system using user's User iD and Password
    >
    This connection is valid only in design time. When you deploy your application to application server, then you can include this connection in .ear file, or you can define Data Source on Weblogic(which is better approach).
    To programmatically retreive db connection, you can create utility method in your Application Module.
    Dario

  • Customizing Login Page in oracle E Business suite

    Hi,
    I am new to OA framework world.
    i have a requirement where i need to customize Oracle login page to put some validations on the password that user enters.
    If password has not been changed in so many days then prompt user to change it .
    Has anyone did anything like this.
    Please let me know how we can proceed with this requirement.
    Thanks,

    >
    If password has not been changed in so many days then prompt user to change it .
    >
    This functionality already exists in EBS - in the "Define Users" form, see the password expiry options.
    HTH
    Srini

  • Remote user Authentication in customize login page

    Hi all,
    I would like to make sincere request to all you that I am not able authenticate my users based on tables. I start to learn HTML DB before 20 days and created simple application.
    Requirement:
    1: Created new login page P16 other than inbuilt login page 101.
    2: created table “trx_employee_login” which will keep track of user information
    3: after giving URL to user if user enters usr/passwd then it should take username and password (remote ) and validate in “trx_employee_login” table and if it exist then open some (page 34) page
    in the current application.
    Approach:
    1: written authentication function as
    CREATE OR REPLACE FUNCTION custom_auth (
    p_username IN VARCHAR2,
    p_password IN VARCHAR2
    RETURN BOOLEAN
    IS
    l_password VARCHAR2 (4000);
    l_stored_password VARCHAR2 (4000);
    l_count NUMBER;
    BEGIN
    SELECT COUNT (*)
    INTO l_count
    FROM trx_employee_login
    WHERE user_name LIKE p_username;
    IF l_count > 0
    THEN
    SELECT PASSWORD
    INTO l_stored_password
    FROM trx_employee_login
    WHERE user_name LIKE p_username;
    IF l_password = l_stored_password
    THEN
    RETURN TRUE;
    ELSE
    RETURN FALSE;
    END IF;
    ELSE
    RETURN FALSE;
    END IF;
    END;
    2: created authentication scheme and entered
    return custom_auth;
    in authentication function.
    3: same like I created Set Username cookie :
    begin
    owa_util.mime_header('text/html', FALSE);
    owa_cookie.send(
    name=>'LOGIN_USERNAME_COOKIE',
    value=>lower(:P16_USERNAME));
    exception when others then null;
    end;
    and other process to like 101 page
    but I m not able to get the result showing always message “Invalid Login Credentials”
    Please it will be great help if any one will help me. I m trying from the last 5 days but not able to do. I love to do myself first and if not possible then like to ask others. So please need help. Any other approach will be appreciated.
    Thanks && Regards
    Ravi

    Thanks Scott very Much,
    I changed but still I am not getting showing invalid credetial.
    Any how I got some hope by you. Can you have look on this please again.I am very new in HTML so after six days trying I am bit tensed.Here is what I am doing
    1: Created new login page Page 16.
    2: In page rendering process I created a “Before Header process named Get cookie Name ” just like inbuilt login Page :
    declare
    v varchar2(255) := null;
    c owa_cookie.cookie;
    begin
    c := owa_cookie.get('LOGIN_USERNAME_COOKIE');
    :P16_USERNAME := c.vals(1);
    exception when others then null;
    end;
    Incase of :P101_USERNAMR I change it as :P101_USERNAMR .
    3: In page rendering I created “Clear Cache for all Items on Pages (PageID,PageID,PageID)”
    process for page 16.
    4: In Page processing I created a process named “Set Username Cookie” type After computation and Validation.
    5: In page processing I ceated process Login just like page 101 and changed as
    wwv_flow_custom_auth_std.login(
    P_UNAME => v('P16_USERNAME'),
    P_PASSWORD => :P16_PASSWORD,
    P_SESSION_ID => v('APP_SESSION'),
    P_FLOW_PAGE => :APP_ID||':1'
    6: created one branch “On submit after processing to go to page 1 my welcome page”
    7: Created Authorisation scheme function returning Boolean:
    DECLARE
    l_count NUMBER;
    BEGIN
    SELECT COUNT (*)
    INTO l_count
    FROM trx_employee_login
    WHERE user_name = :p16_username AND PASSWORD = :p16_password;
    IF l_count > 0
    THEN
    RETURN TRUE;
    ELSE
    :p16_username := NULL;
    :p16_password := NULL;
    RETURN FALSE;
    END IF;
    END;
    8: I modified the function and make it UPPER case comparison as :
    CREATE OR REPLACE FUNCTION custom_auth (
    p_username IN VARCHAR2,
    p_password IN VARCHAR2
    RETURN BOOLEAN
    IS
    l_password VARCHAR2 (4000);
    l_stored_password VARCHAR2 (4000);
    l_count NUMBER;
    BEGIN
    -- First, check to see if the user is in the user table
    SELECT COUNT (*)
    INTO l_count
    FROM trx_employee_login
    WHERE UPPER (user_name) = UPPER (p_username);
    IF l_count > 0
    THEN
    -- First, we fetch the stored hashed password & expire date
    SELECT PASSWORD
    INTO l_stored_password
    FROM trx_employee_login
    WHERE UPPER (user_name) = UPPER (p_username);
    -- Finally, we compare them to see if they are the same and return
    -- either TRUE or FALSE
    IF l_password = l_stored_password
    THEN
    RETURN TRUE;
    ELSE
    RETURN FALSE;
    END IF;
    ELSE
    RETURN FALSE;
    END IF;
    END;
    In case of point 5 I mentioned how should I call my custom_auth function.
    I m not getting if I am changing it as
    custom_auth_ (
    P_UNAME => v('P16_USERNAME'),
    P_PASSWORD => :P16_PASSWORD,
    P_SESSION_ID => v('APP_SESSION'),
    P_FLOW_PAGE => :APP_ID||':1'
    then showing error and if
    custom_auth_ (
    P_UNAME => v('P16_USERNAME'),
    P_PASSWORD => :P16_PASSWORD
    then wroung number of argument showing .
    That’s what I am doing. I know I am doing some blunder but not getting where.
    Can u please take a look and tell me what changes I should made to work this code.
    Thanks && Regards.

  • Yahoo login page incorrect for sub accounts but not admin account.

    Using: Windows Vista OS and Mozilla Firefox 4.0.1.
    BT Yahoo has a login page that allows the user to create a seal on the login page to help identify a valid website.
    I am th main account/admin and I have no issues; everything looks good and correct.
    My husband has a sub account, but there is no seal showing nor is there a clickable facility to create a seal.
    This occured immediately after upgrading to Firefox 4 and unstalling and reinstalling did nothing. Had no issues prior to upgrade.
    Appreciate any helpful suggestions.

    Any ideas regarding the weirdness of why my computer with a main account and a sub account with only one version of Firefox 4.0.1 manages to view the login page of Yahoo completely differently?

Maybe you are looking for