Login.jsp Issue

<p>Hello,</p><p> </p><p>I'm looking to modify the login.jsp file, specifically the codethat directs the user to the view manager page.  The purposefor this is due to a requirement from our client to provide theusers with a warning screen that informs them they will beaccessing a government computer system and are subject to federalprosecution for missues.  When the user clicks "Iagree" it will direct them to view manager and when they click"I don't agree" it redirects them to another website. </p><p> </p><p>I have been having difficulty finding the "onClick"functionality for the standard Hyperion "Login" button. I believe that I have located the line of code that definesthe URL (see below) but when I modified it to point to thedirection of the smartcut of the Warning page, nothing happens. </p><p> </p><p>Could someone please let me know if I'm modifying the wrong lineof code or if I'm going about this totally wrong?  Time is ofthe essence so any advice would be appreciated.  </p><p> </p><p>Excerpt from Login.JSP that I believe is the URL that the Loginbutton directs users to upon successful entry:<br></p><p><span style=" color: #0000ff;"><%<br>// temporary<br>String loginURL = request.getScheme() + "://" request.getServerName() ":" + request.getServerPort() +loginView.getRedirectURL();<br>%></span></p><p> </p><p>Thanks</p><p> </p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

<p>Hello,</p><p> </p><p>I'm looking to modify the login.jsp file, specifically the codethat directs the user to the view manager page.  The purposefor this is due to a requirement from our client to provide theusers with a warning screen that informs them they will beaccessing a government computer system and are subject to federalprosecution for missues.  When the user clicks "Iagree" it will direct them to view manager and when they click"I don't agree" it redirects them to another website. </p><p> </p><p>I have been having difficulty finding the "onClick"functionality for the standard Hyperion "Login" button. I believe that I have located the line of code that definesthe URL (see below) but when I modified it to point to thedirection of the smartcut of the Warning page, nothing happens. </p><p> </p><p>Could someone please let me know if I'm modifying the wrong lineof code or if I'm going about this totally wrong?  Time is ofthe essence so any advice would be appreciated.  </p><p> </p><p>Excerpt from Login.JSP that I believe is the URL that the Loginbutton directs users to upon successful entry:<br></p><p><span style=" color: #0000ff;"><%<br>// temporary<br>String loginURL = request.getScheme() + "://" request.getServerName() ":" + request.getServerPort() +loginView.getRedirectURL();<br>%></span></p><p> </p><p>Thanks</p><p> </p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Issue in applying SSL selectively to Login JSP Page--Session getting lost.

    Hi,
    I am facing some issues with SSL configuration on my web site running on tomcat 5.5. I am using jdk 1.5 and form based authentication with JAAS framework.
    The SSL configuration is working perfectly when applied to complete web site, but starts giving problem when applied selectively to some JSP pages. At present I am trying to apply SSL just on the login page.
    When the login screen loads up, the URL in the browser has a protocol "*https*", as expected, but it doesn't gets changed to "*http*" once the user has successfully logged in. Why is the automatic change from https to http not ocurring?
    Also I want to know which is the default page, tomcat will direct the logged in user to, once successfully authenticated using form based login; Is there any way to change this default page to some other page. It looks like that tomcat automatically directs to index.html , once the user has been successfully authenticated, but I am not so sure. My index.html page is having 4 frames; the source of these frames are different JSP pages, which are not under SSL.
    My aim is to apply SSL just on login.jsp so that password doesn't travel in clear text. Once the user is authenticated he should see index.html and the address bar's URL should change it's protocol from https to http.
    Please, find below the code in my web.xml
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>CWA Application</web-resource-name>
    <url-pattern>/about.jsp</url-pattern>
    <url-pattern>/admin_listds.jsp</url-pattern>
    <http-method>DELETE</http-method>
    <http-method>GET</http-method>
    <http-method>POST</http-method>
    <http-method>PUT</http-method>
    </web-resource-collection>
    <auth-constraint>
    <role-name>*</role-name>
    </auth-constraint>
    <user-data-constraint>
    <transport-guarantee>NONE</transport-guarantee>
    </user-data-constraint>
    </security-constraint>
    <security-constraint>
    <web-resource-collection>
    <url-pattern>/*login.jsp*</url-pattern>
    <http-method>GET</http-method>
    <http-method>POST</http-method>
    </web-resource-collection>
    <auth-constraint>
    <role-name>*</role-name>
    </auth-constraint>
    <user-data-constraint>
    <transport-guarantee>CONFIDENTIAL</transport-guarantee>
    </user-data-constraint>
    </security-constraint>
    <login-config>
    <auth-method>FORM</auth-method>
    <realm-name>CWA Application</realm-name>
    <form-login-config>
    <form-login-page>/login.jsp</form-login-page>
    <form-error-page>/login.jsp?error=true</form-error-page>
    </form-login-config>
    </login-config>
    <welcome-file-list>
    <welcome-file>login.jsp</welcome-file>
    </welcome-file-list>
    My login. jsp has below code:
    <form name="login" method="POST" action='<%= response.encodeURL(*"j_security_check*") %>' >
    <tr>
    <td width="100%">
    <table width="260" border="0" cellspacing="0" cellpadding="1">
    <tr>
    <td align="left" valign="top" rowspan="4"><img src="images/space.gif" width="15" height="5"></td>
    <td align="right" class="login-user" nowrap ><p>User name: </p></td>
    <td align="left" valign="top"><input maxLength="64" name="j_username" size="20"></td>
    </tr>
    <tr>
    <td align="right" nowrap class="login-user"><p>Password: </p>
    </td>
    <td align="left" valign="top">
    <input maxLength=\"64\" tabindex="2" type="password" name="j_password" size="20">
    </td>
    </tr>
    </form>
    The entries in my server.xml are following:
    <Connector port="8080" maxHttpHeaderSize="8192"
    maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
    enableLookups="false" redirectPort="8443" acceptCount="100"
    connectionTimeout="20000" disableUploadTimeout="true" />
    <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
    maxThreads="150" scheme="https" secure="true"
    keystoreFile="${java.home}\lib\security\cacerts" keystorePass="changeit"
    clientAuth="false" sslProtocol="TLS" />
    I have gone through the http://forums.sun.com/thread.jspa?threadID=197150 and tried implementing it; The filter as explained in the thread does gets called but the session values are still lost.
    Please note I am using javascript to go from secure "https" to "http" once the user has successfully logged in The javascript code is as below:
    top.location.href="http://localhost:8080/qtv/index.html." ;
    If I use response.sendRedirect("http://localhost:8080/qtv/index.html") for going to non-secure mode, the index.html page does not gets loaded properly. (Please note that my index.html is made of *4 frames*, as explained earlier. This is a legacy code and frames can't be removed).
    The reason for index.html not getting loaded properly is that the Address bar URL does NOT change its URL and protocol from https (https://localhost:8443/qtv/index.html ) to "*http*" (http://localhost:8080/qtv/index.html) when esponse.sendRedirect() is used ;this is the default behaviour of response.sendRedirect(). And because the protocol in address bar is https, index.html is not able to load the other JSP's in it's frames because of cross-frame-scripting security issues (The other JSP's to be loaded in frames are are NOT secure as discussed earlier).
    Please let know if any way out.
    Thanks,
    Masaai

    Hi
    try to set the maximum interval between requests
    eg:
    session.setMaxInactiveInterval(6000);
    vis

  • How can i find the requested portal page in custom login.jsp

    We are using a customized login, logout and change password page built in JSP.
    The wwsso_ls_configuration_info$ has been updated to point to the customized
    JSP pages. Everything works fine so far but we would like to show different
    content inside the customized login page depending on which portal page that
    was requested.
    eg suppose the user requested a page that belong to page group X we want to
    show login page with html content relevant to page group X. If page group Y is
    requested, then it show relevant information for Y.
    The ssousername, password field and other parameter needed for login page will
    be left to the standard names defined by oracle login requirements.
    For this purpose, we need to find which portal page was requested by user in
    the customized login.jsp( as users tend to bookmark the portal page eg.
    http://domain/portal/page?_pageid=33,30983,33_30985&_dad=portal&_schema=PORTAL)
    Once i know the requested portal page, i can parse the _pageid to get the page group.

    Were you ever able to get this issue resolved? I would be interested in the solution if one was ever found. Thanks.

  • Please help me urgently, Ajax Jsp issue (Escape Character issue)

    Hi all,
    in my application
    i am making an ajax call with a paramter
    like
    http://www.abc.com/Login.jsp?query=%25
    and iam encoding that parameter with encodecomponent() function of javascript
    but
    in my servlet iam getting the parameter as
    query=%
    how to solve this
    if i am not clear
    i will try to explain clearly again
    so it is failing to decode it again
    how to solve this issue
    iam using firebug debugger
    in that it is showing th url as specified above
    but in params tab it sho

    Can you use URLDecoder.decode(String) on the parameter
    [http://java.sun.com/j2se/1.4.2/docs/api/java/net/URLDecoder.html]

  • Strange behavior with login.jsp

    I have the following security setup in web.xml for a portal web app.
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>Everything</web-resource-name>
    <description>The portal is accessible to all valid AD users.</description>
    <url-pattern>/</url-pattern>
    <http-method>GET</http-method>
    <http-method>POST</http-method>
    </web-resource-collection>
    <auth-constraint>
    <description>x<description>
    <role-name>xUsers</role-name>
    </auth-constraint>
    <user-data-constraint>
    <description>This is how the user data must be transmitted.</description>
    <transport-guarantee>NONE</transport-guarantee>
    <!-- <transport-guarantee>CONFIDENTIAL</transport-guarantee> -->
    </user-data-constraint>
    </security-constraint>
    <login-config>
    <auth-method>FORM</auth-method>
    <form-login-config>
    <form-login-page>/login.jsp</form-login-page>
    <form-error-page>/error.jsp</form-error-page>
    </form-login-config>
    </login-config>
    I have an apache proxy pointing at the web application, and the proxy is set up
    to perform BASIC authentication on users attempting to access the web resource.
    My problem is that when I attempt to access a resource of the web app through
    the apache proxy, I get the following error upon the expected redirect to login.jsp
    before login.jsp actually loads at all (I have println statements as the first
    lines of the jsp):
    An error has occurred:
    Cannot get new user profile because com.bea.p13n.usermgmt.profile.ProfileNotFoundException:
    user1
    caused by: : com.bea.p13n.usermgmt.profile.ProfileNotFoundException: user1
    In this scenario user1 is the username from apache's basic authentication. Why
    would weblogic attempt to interpret the basic auth http headers in the first place,
    let alone attempt to load the user profile for the defined user?

    We have had a case opened with BEA for weeks now, they so far have only been able
    to tell us that it is a Weblogic server issue. We escalated it to a production
    issue, hopefully some more info to come soon.
    Mark Bowne <[email protected]> wrote:
    I am having the similar problem and have you been able to resolve your
    issue?
    Mark

  • Problem with login jsp

    I made a login.jsp with the help of a bean. the bean holds a string[] as a property where it stores user and pass, then those values are checked in my database, and a boolean bean property is set to true. The problem is I want to do an if statement in my JSP using that boolean, but I can't seem to get the jsp working, can anyone help me?
    I'm doing
    <%if (<jsp:getProperty name="auth" property="truth"/>) do something else something else%>
    I've also tried
    <%! boolean it = <jsp:getProperty name="auth" property="truth"/> %>
    <%if (it) do something else something else%>
    both give me compile errors.

    <jsp:getProperty name="auth" property="truth"/> is roughly equivalent to
    <% out.print(your_bean.getTruth()); %> or <%=your_bean.getTruth()%>
    Once you understand this, you'll see why your code cannot possibly work...
    Below is a simple solution to your problem.
    <jsp:useBean   class="YourBean"  id="auth"  etc.. >
    <% if auth.getTruth() {
          something; // don-t forget the semi-colon
       else {
          some other thing; // ditto
    %>If you don't want any java code inside your jsp, consult the JSTL tag lib to construct an xml-like if-else statement.

  • Help with customised login JSP on SSO server

    Our customised version of the SSO login page JSP is required to access a database table in order to retrieve a dynamic message to display. This means we will need to create utility java classes in order to connect to the database and retrieve the information. We will also ideally need a data source on the SSO APP Server that we can reference in order to avoid hard-coding environment specific connection data.
    Can anyone help out on where we will need to install the utility classes and where the data source can be created in order for the login JSP to see them. Is there any other configuration we need to consider e.g. classpaths etc?
    The coding we are fine with, it is the actual "what goes where and don't forget to include this" that we are unsure of.

    Hello St***,
    Did you accomplished the cusomized SSO logon page with database access. If yes can you please provide met with some examples and instructions how to accomplish this.
    Regards,
    Dennis

  • Login "Loop" issue after upgrading to Leopard from Tiger-iBook G4

    Hi Guys,
    I've the same login "loop" issue as described in *Apple KB article #306965* only on an iBook G4, unfortunately the solution offered in the KB article does not help.
    There is one slight variant being that the user desktop appears for a second or two after the blue screen following login before it returns (loops) to the login window. It happens on all (2) user accounts.
    The interesting thing is it doesn't occur on either account when booting in 'safe mode'.
    Apart from deleting these accounts and saving/transferring the data are there any other ideas, suggestions or solutions?
    Regards,
    BB

    Did a clean install, cloned the HD with SuperDuper and then used Mig. Asst. to restore data back to the original HD. All now OK.
    A & I was done in the initial upgrade from Tiger.
    Cheers,
    BB

  • Login JSP losing Session

    I have a Login JSP which talks to a Servlet which then passes the login request to a Bean. In the Bean I save the login information in the Session, if the login fails I am trying to 'forward' to the Login JSP page again. On the Login JSP there is an 'errorText' field that gets the errorText Property from my Bean. However, when the 'getErrorText' method is called by the JSP I seem to have a new Session and have lost all of my login information.
    What have I done wrong ? I have tried setting the 'scope' of the Login JSP to session and the application but with no result.
    How can I ensure that when I re-display the Login JSP with an error message on it that I am using the Session (and copy of my bean) that I had when I set the properties ?
    Sarah.

    have the code for setting the session values in the servlet that comes after the JSP login page.
    in the jsp login page try to retreive the session values for the user name and the password.
    store these values in the name and password variables.
    for the first time it'll be null and an exception will be thrown. so in the catch block, set the value of the name variable and the password to null string ie "" and set these values as the values of the textfields (for user name and password). also in the catch block, set the error message string also . this one u can use to display when u r redirected to the JSP login page by the servlet. if first time, then set it to null string "".
    but assuming that the JSP page has been called from the servlet when an error occured i.e when the server cannot recognize the user name and password combination, the session variables for the user name and the password won't be null and u can use these values to be displayed in the respective textfields.
    so when the user name and password cannot be recognized by the server, just call the same JSP login page.
    hope that clears a bit of ur doubt!!
    rgds
    JP

  • Adding a custom button to Login.jsp

    In AM 7.1 I have a need to add a "Forgot your password?" button to the AM login page. I would like this button to be located just to the right of the existing 'Log In" button and have the same look and feel as the "Log In" button.
    When a user clicks on the button it is going to take them over to our Identity Manager questionLogin.jsp page. Linking the button to the IdM page is easy. What I don't know how to do is modify the Login.jsp page to add another button that has the same look and feel of and is positioned right next to the current "Log In" button. The AM Developer's Guide was of no help. Can anyone help and/or provide a code example that would do what I am looking for?

    Thanks for the reply, Michael. I understand that the Login.jsp needs to be modified and redeployed, but the question is how to create a new button with the same look and feel as the Login button. Currently we have modified the Login.jsp with a "Forgot Password" html link, but it would be prefered to create a button to match what already exists. I understand that this might be outside the scope of this forum, but I was hoping that someone that has done this (specifically the original poster if he found a solution) could share the relevent code.

  • Writing Login.jsp and authenticating a user who have stored in MySql DB

    Hi Friends,
    My project requirement is: Need to write a login page must send the request to servlet is the user and password avail in mysql db, if yes servlet should forward the home page else error message. Tools i need to use is IDE=eclipse, Server = tomcat, database = MySql
    Here is source:
    pls tell me where i m wrong.
    Login.jsp
    <%@ page language="java" %>
    <html>
    <head>
    <title>Login Page</title>
    <script language = "Javascript">
    function Validate(){
    var user=document.frm.user
    var pass=document.frm.pass
    if ((user.value==null)||(user.value=="")){
    alert("Please Enter user name")
    user.focus()
    return false
    if ((pass.value==null)||(pass.value=="")){
    alert("Please Enter password")
    pass.focus()
    return false
    return true
    </script>
    </head>
    <body>
    <h1>Login
    <br>
    </h1>
    <form name="frm" action="/LoginAuthentication" method="Post" onSubmit="return Validate()" >
    Name:
    <input type="text" name="user" value=""/><br>
    Password:<input type="password" name="pass" value=""/><br>
    <br>
    <input type="submit" value="Login" />
    <input type="reset" value="forgot Password" />
    </form>
    </body>
    </html>
    Servlet Code:
    LoginAuthentication.java
    import java.io.*;
    import java.util.*;
    import java.sql.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.IOException;
    import javax.servlet.ServletException;
    import javax.servlet.ServletContext;
    import javax.servlet.RequestDispatcher;
    import javax.servlet.http.HttpSession;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import java.util.List;
    import java.util.ArrayList;
    public class LoginAuthentication extends HttpServlet{
    private ServletConfig config;
    public void init(ServletConfig config)
    throws ServletException{
    this.config=config;
    //public void init() {
    // Normally you would load the prices from a database.
    //ServletContext ctx = getServletContext();
    // RequestDispatcher dispatcher = ctx.getRequestDispatcher("/HomePage.jsp");
    //dispatcher.forward(req, res);
    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException,IOException{
    PrintWriter out = response.getWriter();
    String connectionURL = "jdbc:mysql://127.0.0.1/SRAT";
    //String connectionURL = "jdbc:mysql://192.168.10.59/SRAT";
    //127.0.0.1
    //http://localhost:3306/mysql
    Connection connection=null;
    ResultSet rs;
    String userName=new String("");
    String passwrd=new String("");
    response.setContentType("text/html");
    try {
    // Load the database driver
    Class.forName("com.mysql.jdbc.Driver");
    // Get a Connection to the database
    connection = DriverManager.getConnection(connectionURL, "admin", "admin");
    //Add the data into the database
    String sql = "select user,password from login";
    Statement s = connection.createStatement();
    s.executeQuery (sql);
    rs = s.getResultSet();
    while (rs.next ()){
    userName=rs.getString("user");
    passwrd=rs.getString("password");
    rs.close ();
    s.close ();
    }catch(Exception e){
    System.out.println("Exception is ;"+e);
    if(userName.equals(request.getParameter("user"))
    && passwrd.equals(request.getParameter("pass"))){
    out.println("WELCOME "+userName);
    else{
    out.println("Please enter correct username and password");
    out.println("<a href='Login.jsp'><br>Login again</a>");
    Deployment Descriptor for TOMCAT
    web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <display-name>
    SRAT</display-name>
    <welcome-file-list>
    <welcome-file>login.jsp</welcome-file>
    </welcome-file-list>
    <servlet>
    <servlet-name>LoginAuthentication</servlet-name>
    <servlet-class>LoginAuthentication</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>LoginAuthentication</servlet-name>
    <url-pattern>/LoginAuthentication</url-pattern>
    </servlet-mapping>
    </web-app>
    PLS HELP ME.
    S. Udaya Chandrika

    I too have used the same code but its giving the following error:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Wrapper cannot find servlet class Validation or a class it depends on
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
         org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
         org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
         java.lang.Thread.run(Unknown Source)
    root cause
    java.lang.ClassNotFoundException: Validation
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
         org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
         org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
         java.lang.Thread.run(Unknown Source)
    note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.
    Apache Tomcat/6.0.18
    Please some one help??

  • How to bring Login.jsp under a html frame ?

    hi all.
    I have customized the Login.jsp and actually have lot of static content to be displayed in our proposed entry page.
    I decided to use Html frames - something like the one below.
    When i point on the frame to the Login.jsp ( i referred it as 'amserver/UI/Login') --> it loads all frames then redirects the page to the /amserevr/UI/Login -> the Login.jsp now occupies the entire screen and i c none of the html frames..
    any idea how to bring in the portal Login.jsp under a html frame ?
    Thanks
    Vee
    <html>
    <frameset noresize="noresize" frameborder=0 rows="25%,70%,5%">
    <frame frameborder=0 noresize="noresize" src="/amserver/UI/Login" name="banner_frame" scrolling=no>
    <frameset frameborder=0 noresize="noresize" cols="30%,70%">
    <frame frameborder=0 src="./images/menus.gif" name="menu_frame" scrolling=no>
    <frame frameborder=0 src="./images/content.gif" name="content_frame" scrolling=no>
    </frameset>
    <frame frameborder=0 src="./images/copyright.gif" name="copyright" scrolling=no>
    </frameset>
    </html>

    is it possible to write jsp code or javascript code inside this Login.jsp ?
    I got a bunch of content - menu driven to displayed additional to the identity server login module.
    veera

  • How to authorize my Login.jsp file to create LoginContext, deployed in war

    I am currently doing a login process and I need to know how to give my Login.jsp file the permission to create a LoginContext. I packaged everything in a war file and deployed it to the server.
    Specifically this is the error that I am getting:
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: access denied (javax.security.auth.AuthPermission createLoginContext.studentportal)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:585)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    root cause
    java.security.AccessControlException: access denied (javax.security.auth.AuthPermission createLoginContext.studentportal)
         java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
         java.security.AccessController.checkPermission(AccessController.java:427)
         java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
         javax.security.auth.login.LoginContext.init(LoginContext.java:224)
         javax.security.auth.login.LoginContext.(LoginContext.java:403)
         org.apache.jsp.Login_jsp._jspService(Login_jsp.java:55)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:585)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    note The full stack trace of the root cause is available in the Sun-Java-System/Application-Server logs.
    In my code in Login.jsp this is what I have at the top of the page:
    <%@ page language="Java" import="portal.*,javax.security.auth.login.*" %>
    <%
    String s = request.getParameter("loginButton");
    if (s != null) {
    out.println("The user attempted to login");
    String user = request.getParameter("username");
    String psw = request.getParameter("psw");
    AscCallbackHandler cbh = new AscCallbackHandler(user,psw);
    LoginContext ctx;
    try {
    ctx = new LoginContext("studentportal",cbh);
    } catch (LoginException  le) {
    out.println("Sorry, could NOT create context");
    }The admin page tells me that portal is deployed at location:
    ${com.sun.aas.instanceRoot}/applications/j2ee-modules/portal
    My entry in the server.policy file looks like so:
    grant codeBase "file:/home/jay/sun/Creator2_1/SunAppServer8/domains/creator/applications/j2ee-modules/portal/WEB-INF/-" {
    permission javax.security.auth.AuthPermission "createLoginContext.studentportal";
    permission javax.security.auth.AuthPermission "modifyPrincipals";
    permission javax.security.auth.AuthPermission "getLoginConfiguration";
    Which gives the error shown above
    Please help
    Message was edited by:
    jay_dawg
    Placing code tags

    java.lang.NoClassDefFoundError: org/jdom/JDOMException
         java.lang.Class.getDeclaredConstructors0(Native Method)
         java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
         java.lang.Class.getConstructor0(Class.java:2671)
         java.lang.Class.getConstructor(Class.java:1629)
         org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1164)
         org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
         org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
         org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         org.apache.jasper.compiler.Generator.generate(Generator.java:3305)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:198)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)and following by this

  • Functionality of  LoginSubmit function in Login.jsp file

    Hi,
    I have tried to change the javascript customization in the "Login.jsp" file on my test box but I am sort of stuck in terms of getting the logic behind the function "LoginSubmit(value)" .
    What I have tried to do is to create a conditional expression based on the button ("submit" or "cancel" in the password reset form) that is clicked. Based on my testing I find that the function "LoginSubmit(value) " is called for each button click and it seems to treat each call in a different way.
    The function "LoginSubmit(value)" is a function which is available in the default implementation of access manager itself. I basically needed to know how this function works when the "Login.jsp" file is called or how this function responds to each button click .
    Can anyone direct me to specific documentation which is of help.
    Appreciate your thoughts on the working of this function.
    Thanks,

    Have a look here. This might be useful to you:
    Re: How to call a PL/SQL procedure from a Java class?

  • SOLVED!!!!!!!!!Placing an Image in original login.jsp

    Hi all,
    I solved the problem of placing an image in original login.jsp
    Hope this will be usefull for all who will be trying to edit the original longi.jsp:
    ====>Place your image in the following folder:
    C:\installations\Oracle_Infra(Your oracle_home)\portal\images
    you place your image some-where else it will not be displayed .....
    Hope this will be usefull!!!!
    Thanks & Regards,
    Mallikarjun

    Well, you are quite right to put images in this place.
    However, two points can be noted here:
    1. This works with the assumption that your portal repository is in the infra-database. in cases of customer databases, you may have other folders which would be able to run the images from a similar folder in their respective homes.
    2. Additionally, you can place your images anywhere on your servers and still have them working if you use an alias for the image folder location!
    hope that helps.
    syed

Maybe you are looking for

  • Battery Drain

    I have the Blackberry 8900 v 4.6.1.199 (platform 4.2.0.102) I've just come back from a holiday where I had switched off my data connection to prevent charges whilst roaming.  Since returning and switching the data connection back on my battery only s

  • Configuring Oracle Access Manager to work with Oracle Web Tier (11.1.1.3)

    I am trying to follow http://docs.oracle.com/cd/E14571_01/core.1111/e12035/oam_11g.htm to setup a load balanced OAM configuration. Following the documentation from the article (section 11.5) I'm not able to quite get this working. I believe there is

  • Rebate Agreement Accruals

    I have this peculiar requirement. We are using Rebate Agreements for Sales Volumes with Rebate Condition Scales. We should NOT be paying the customer through the AR credit memo, because of Legal Issue. So we have developed a nice solution, which incl

  • Attachments stored from WAS -Webdynpro portal to standard transaction-IW52

    Hi, I  am trying to store the attachments from webdynpro portal to sap R3 ,std transaction IW52, i culd see the attachments, in the transactions, but when i open am getting an error. its not allowing to open the documents in R3.please give me ur sugg

  • JRE Version for 2.2

    One of my customers is having the below problem - resolution would be greatly appreciated. Their problem lies in the fact that static versioning was broken ("by design") for Java 5 update 6. They absolutely need to load specific JRE's in the object t