SSO SDK Java Sample Application

I have configured the sample application (servlet-based), shown in SSO SDK Developer guide.
I followed all the steps very carefully. When I try to access the partner application, it redirect me to
the login form of the Login Server, and then loop between the sign-on URL and the requested URL.
It seems that the cookie with the user name is lost during redirection. The readme file refers that in a case like this I should check the value of the application cookie domain.
I am running the sample in a single pc environment and my server name is localhost. Which is the right value for the application cookie domain (localhost, .localhost ?????).
In addition, my cookie path value is "/".
Thanks in advance.

This problem is their in the early version of SDK.
The latest version has correct comparison with null

Similar Messages

  • SSO java sample application problem

    Hi all,
    I am trying to run the SSO java sample application, but am experiencing a problem:
    When I request the papp.jsp page I end up in an infinte loop, caught between papp.jsp and ssosignon.jsp.
    An earlier thread in this forum discussed the same problem, guessing that the cookie handling was the problem. This thread recommended a particlar servlet , ShowCookie, for inspecting the cookies for the current session.
    I have installed this cookie on the server, but don't see anything but one cookie, JSESSIONID.
    At present I am running the jsp sample app on a Tomcat server, while Oracle 9iAS with sso and portal is running on another machine on the LAN.
    The configuration of the SSO sample application is as follows:
    Cut from SSOEnablerJspBean.java:
    // Listener token for this partner application name
    private static String m_listenerToken = "wmli007251:8080";
    // Partner application session cookie name
    private static String m_cookieName = "SSO_PAPP_JSP_ID";
    // Partner application session domain
    private static String m_cookieDomain = "wmli007251:8080/";
    // Partner application session path scope
    private static String m_cookiePath = "/";
    // Host name of the database
    private static String m_dbHostName = "wmsi001370";
    // Port for database
    private static String m_dbPort = "1521";
    // Sehema name
    private static String m_dbSchemaName = "testpartnerapp";
    // Schema password
    private static String m_dbSchemaPasswd = "testpartnerapp";
    // Database SID name
    private static String m_dbSID = "IASDB.WMDATA.DK";
    // Requested URL (User requested page)
    private static String m_requestUrl = "http://wmli007251:8080/testsso/papp.jsp";
    // Cancel URL(Home page for this application which don't require authentication)
    private static String m_cancelUrl = "http://wmli007251:8080/testsso/fejl.html";
    Values specified in the Oracle Portal partner app administration page:
         ID: 1326
         Token: O87JOE971326
         Encryption key: 67854625C8B9BE96
         Logon-URL: http://wmsi001370:7777/pls/orasso/orasso.wwsso_app_admin.ls_login
         single signoff-URL: http://wmsi001370:7777/pls/orasso/orasso.wwsso_app_admin.ls_logout
         Name: testsso
         Start-URL: http://wmli007251:8080/testsso/
         Succes-URL: http://wmli007251:8080/testsso/ssosignon.jsp
         Log off-URL: http://wmli007251:8080/testsso/papplogoff.jsp
    Finally I have specified the cookie version to be v1.0 when running the regapp.sql script. Other parameters for this script are copied from the values specified above.
    Unfortunately the discussion in the earlier thread did not go any further but to recognize the cookieproblem, so I am now looking for help to move further on from here.
    Any ideas will be greatly appreciated!
    /Mads

    Pierre - When you work on the sample application, you should test the pages in a separate browser instance. Don't use the Run Page links from the Builder. The sample app has a different authentication scheme from that used in the development environment so it'll work better for you to use a separate development browser from the application testing browser. In the testing browser, to request the page you just modified, login to the application, then change the page ID in the URL. Then put some navigation controls into the application so you can run your page more easily by clicking links from other pages.
    Scott

  • SSO PL/SQL Sample Application Error

    Hi,
    I've tried the PL/SQL SSO demo application located in the PDK
    October release.
    Symptom:
    The sample application shows the success page, even the user is
    not authenticated by the Login Server.
    Cause:
    There's a code line in the SAMPLE_SSO_PAPP package to decide if
    the l_user_info value is null. The original code line is:
    IF l_user_info = NULL THEN
    It's nonsense, of course.
    We all know that in NULL arithmetics it always evaluates false.
    Workaround:
    You should correct the comparison to:
    IF l_user_info IS NULL
    It will be much better...

    This problem is their in the early version of SDK.
    The latest version has correct comparison with null

  • SSO to non SAP Application using SAP Logon Ticket

    Hi Experts,
    I Have EP 7 SP 15 using SPNego Wizard to SSO with Active Directory and SSO between EP and ECC using SAP Certificates.
    Now I have a demand to SSO some JAVA based applications (non SAP) to my portal using the SAP Logon Ticket.
    I Have followed some blogs that directed me to use SAPSSOEXT (some libs) to read the MYSAPSSO2 cookie. The problem is that I didn't found this cookie, I even executed the command javascript:document to look for this cookie but the browser just show me the JSESSIONID info.
    Does anybody knows where I can find this cookie or if there's a better way to set up this SSO? It´s necessary to say that I cannot SSO these application to the kerberos protocol because some security reasons on my company.
    Thanks
    Armando

    Hi,
    I dont have much info related but i can giv u hint
    refer OSS Notes 442401 and 723896.
    When using SAP logon tickets for non-SAP applications, two different implementation options are available. The difference lies in where the ticket verification takes place.
    In the first case,  the SAP logon ticket is submitted to the web server filter located on the web server. The web server filter verifies the portal serveru2019s public key
    certificate using its local Personal Security Environment (PSE) and then populates the HTTP header field with the user ID for SSO to the non-sap web application.
    In the second case,  the SAP logon ticket is sent to the non-SAP application, which then verifies it using the ticket verification DLL and submits the user ID to the application for SSO.
    You can refer following link :-
    http://help.sap.com/saphelp_nw70/helpdata/EN/89/6eb8deaf2f11d5993700508b6b8b11/frameset.htm
    user authentication and SSO
    http://help.sap.com/saphelp_nw70/helpdata/EN/8f/ae29411ab3db2be10000000a1550b0/frameset.htm
    Authentication Using a Directory with SSO Integration Using Logon Tickets
    http://help.sap.com/saphelp_nw70/helpdata/EN/f8/3b514ca29011d5bdeb006094191908/frameset.htm
    SSO
    SAP Logon Ticket-based Single Sign-On
    http://help.sap.com/saphelp_nwce10/helpdata/en/45/b6af743753003ae10000000a11466f/frameset.htm

  • Problem in configuring SSO using SAML for applications hosted on diff m/c

    Hi Techies,
    I am stuck in a weird problem for past month or so without any resolution. Not much help by googling. So I hope i get the answer from the mouth of the horses -
    I am trying to use SSO using the sample application appA and appB as stated in the tutorial of SSO by BEA.
    I am summarizing the problem below -
    Steps followed for Configuring SSO using SAML
    1. Created 2 domains on 2 seperate machines namely domainA and domainB
    2. Source appliction is deployed on domainA and the target application is deployed on domaninB
    The steps mentioned in the following tutorial has been followed-
    http://dev2dev.bea.com/pub/a/2006/12/sso-with-saml.html
    3. As mentioned in the tutorial the certificate is generated using keytool utility. The same certificate is copied
    to WEBLOGIC_HOME/server/lib of destination machine.
    4. The certificate was successfully registered on desitnation or host 2 but while activating the configuration
    changes(SSL client Ientity Alias and SSL Client Identity Pass Phrase) for Federation services the following error
    is thrown -
    " SAMLBeanUpdateListener: SAMLKeyManager.prepareUpdate() failed with exception:
    weblogic.descriptor.BeanUpdateRejectedException: SAML key Manage failed to validate key (SSL Client) configuration
    in the FederationServicesMBean, key alias: testalias "
    The interesting bit of the problem is that the same configuration works on 2 domains created on same machine. The
    problem only occurs when domains are created on seperate machines.
    Alterative to the problem: when the certificate is generated seperately for domainB and copied to
    WEBLOGIC_HOME/server/lib, it works. However, the certificate generated in domainA should have been copied.
    Note: I am using Weblogic portal 9.2.1
    Any quick replies will be much appreciated. Thanks.
    Edited by saurabh.agrawal at 02/06/2008 2:01 PM

    Hi François,
    You are right about the use of the NameID format. But the issue here is/was that OIF at SP is integrated with OAM, and the authenticated user at OIF-SP and OAM will be the Anonymous user rather than the user who was identified at the IdP even though the remaining attributes sent are for the IdP user. I think these attributes can be used by with OAM for authorization using custom authorization plug-ins but haven't tried that one out.
    As for the attribute sharing profile, it's this one - http://www.oasis-open.org/committees/download.php/18058/sstc-saml-x509-authn-attrib-profile-cd-02.pdf, although for the life of me, I cannot remember why I suggested this in the first place!
    -Vinod

  • PL/SQL SSO SDK Sample Application doesn't work!

    In the latest document on the SSO SDK (http://download-east.oracle.com/docs/cd/A97329_01/manage.902/a96114.pdf), there is a major programming error in the sample application on page 4-5. There is an invalid EXCEPTION block followed by an invalid ELSE block.
    There is absolutely no help from Oracle Support or Metalink on this issue. I am calling upon all Portal Developers frustrated with this very obvious syntax error to pressure Oracle to rewrite this document ASAP. From what I have read, this seems to be a problem since mid-2000. Let's flood Oracle Support with e-mail demanding this issue to be resolved at the highest priority!
    I can't believe Oracle would allow this document to be released without being thoroughly proofread!

    Bill, thanks for bringing this to our attention. We certainly do our best to avoid documentation inaccuracies. Given the scope of the documentation, unfortuately occationally things slip through and we certainly appreciate it when people take the time to let us know if they find a "doc Bug".
    Hopefully this won't happen too often but just in case (refering to the documentation)
    If you find any errors or have any other suggestions for improvement, please indicate the title and
    part number of the documentation and the chapter, section, and page number (if available). You can
    send comments to us in the following ways:
    Electronic mail: [email protected]
    FAX: 650-506-7375 Attn: Oracle9i Application Server Documentation Manager
    Post:
    Oracle Corporation
    Oracle9i Application Server Documentation
    500 Oracle Parkway, M/S 1op6
    Redwood Shores, CA 94065
    USA
    Thanks again

  • SSO between a Java EE application (Running on CE) and r/3 backend

    Hi All,
    Over the past few days I have been trying to implement a SSO mechanism between NW CE Java Apps and R/3 backend without any success. I have been trying to use SAP logon tickets for implementing SSO.
    Below is what I need:
    I have a Java EE application which draws data from R/3 backend and does some processing before showing data to the users. As of now the only way the Java App on CE authenticates to r/3 backend is by passing the userid and pwds explicitly. See sample authentication code below:
    BindingProvider bp = (BindingProvider) myService;
    Map<String,Object> context = bp.getRequestContext();
    context.put(BindingProvider.USERNAME_PROPERTY, userID);
    context.put(BindingProvider.PASSWORD_PROPERTY, userPwd);
    Now this is not the way we want to implement it. What we need is when the user authenticates to CE ( using CE's UME) CE issues a SAP logon ticket to the user. This ticket should be used to subsequently login to other system without having to pass the credentials. We have configured the CE and Backend to use SAP logon tickets as per SAP help.
    What I am not able to figure out is: How to authenticate to SAP r/3 service from the java APP using SAP logon tickets. I couldnt find any sample Java  code on SAP help to do this. (For example the above sample code authenticates the user by explicitly passing userid and pwd, I need something similar to pass a token to the backend)
    Any help/pointers on this would be great.
    Thanks,
    Dhananjay

    Hi,
    Have you imported the java certificate into R/3 backend system ? if so.
    Then just go to backend system and check on sm50 for each applicaion instance of any error eg.
    SM50-> Display files (ICON) as DB symbol with spect.(cntrlshiftF8)
    You will get logon ticket details.
    with thanks,
        Rajat

  • Java client application + SAP Logon Tickets (SSO)

    Java client application + SAP Logon Tickets (SSO)
    Hello
    I have the following question, it is about connection between SAP Enterprise Portal and Java Application.
    After registration in Enterprise Portal (with Internet Explorer Browser) request is passed on to SAP backend system - cFolders (SSO methode)
    With internet browser functioned everything.
    How can one get, however, this Logon tickets with Java application and then be of use later for SOAP connection
    (everything with client java application)
    Thanks for quick help
    Edo

    Hi Edo,
    look at this https://media.sdn.sap.com/javadocs/NW04/SPS15/um/com/sap/security/api/ticket/TicketVerifier.html
    Best Regards
    Oliver

  • Sample application for connecting to model in WD java

    Hi ,
    Can any one help me out how to connect to model to access sql as i am very new to webdynpro java.

    Hi Vijayalakshmi,
                               Check these
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/webdynpro/wd%20java/wdjava%20tutorials%207.0/using%20ejbs%20in%20web%20dynpro%20applications.pdf
    Check this for sample applications & tutorials
    https://www.sdn.sap.com/irj/sdn/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#20
    regards
    Sumit

  • Sample application of Flex using java

    Can anybody tell or send any URL regarding sample applcation i.e.
    developed using Flex and java
    I am confused abt web.xml
    means how to integrate that flex application.

    Thx Dear,
    At least I got some reply from someone.
    Actually I m trying to search it but not getting any help.
    My prob is.
    I want to develop sample application using Flex and Spring framework.
    Let say there is form called
    Employee.mxml & there are 2 text boxes for username & password .I want to read values entered by user in these text boxes from flex form using Spring framework.
    so can u send me any URL sothat i can get help for this.
    Please help me ASAP.

  • Java WebDynpro Sample Applications to learn.

    Hi There,
    I am new to Java WebDynpro ,I am looking for sample applications so that i can practice how to develope the webdynpro components and actually i want to learn how to do the external context mapping.
    Thanks,
    Rashmi.

    Hi,
    You can find lots of help in SDN like, where you can find may documents related to many topics just go through the following links and browse as per your requirement.
    Blogs
    [https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_weblog&query=webdynproJavatutorials&adv=false&sortby=cm_rnd_rankvalue]
    Libraries
    [https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_library&query=webdynproJavatutorials&adv=false&sortby=cm_rnd_rankvalue]
    e-Learning
    [https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_media&query=webdynproJavatutorials&adv=false&sortby=cm_rnd_rankvalue]
    wiki's
    [https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_wiki&query=webdynproJavatutorials&adv=false&sortby=cm_rnd_rankvalue]
    and also you can search in forums.
    Regards
    Raghu

  • Data Source - Alias Not Found in SDK Sample Application VIDS

    Hi,
    I am trying to run SDK sample application VIDS.
    In the function, BindDataToForm, I am getting error at line:
    oColumn = oColumns.Item("CardCode")
    oColumn.DataBind.SetBound(True, "@VIDS", "U_CARDCODE")
    The error is: Data Source - Alias Not Found
    I have checked that the user tables and the fields in the user tables are correct.
    What can be the issue?
    Thanks.

    Hi Rajesh,
    Works just fine for me.
    Double check that you've created the userfields. You must press the button create user fields before attempting to use the sample.
    Best regards,
    Pedro Magueija

  • Null pointer exception in com.crystaldecisions.sdk.occa.report.application.ControllerBase.checkViewReportRight

    I am testing BOE 4.0 with a simple jsp based on the samples.  The code is what I used to test BOE xi 3.1.  But I ran into some report display inconsistencies with 3.1 so I am trying 4.0.  The code below works in 3.1  But in 4.0, I get the report viewer screen coming up but get a null pointer exception coming to the screen.
    2014-06-18 13:48:01
    java.lang.NullPointerException
    at com.crystaldecisions.sdk.occa.report.application.ControllerBase.checkViewReportRight(ControllerBase.java:114)
    at com.crystaldecisions.sdk.occa.report.application.ReportSource.getPage(ReportSource.java:945)
    at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.getPage(AdvancedReportSource.java:343)
    at com.businessobjects.report.web.event.PageListener.renderContentLocally(PageListener.java:394)
    at com.businessobjects.report.web.event.PageListener.getPage(PageListener.java:181)
    at com.businessobjects.report.web.event.PageListener.updatePage(PageListener.java:123)
    at com.businessobjects.report.web.event.UpdatePageEvent.processListener(UpdatePageEvent.java:47)
    at com.businessobjects.report.web.event.ViewerBroadcaster.broadcast(ViewerBroadcaster.java:109)
    at com.businessobjects.report.web.event.EventQueue.processEvents(EventQueue.java:53)
    at com.businessobjects.report.web.component.ViewerContainer.processEvents(ViewerContainer.java:1403)
    at com.businessobjects.report.web.WorkflowController.doEventProcessing(WorkflowController.java:353)
    at com.businessobjects.report.web.WorkflowController.doLifecycle(WorkflowController.java:255)
    at com.businessobjects.report.web.WorkflowController.doAsyncLifecycle(WorkflowController.java:106)
    at com.crystaldecisions.report.web.viewer.CrystalReportViewerUpdater._processHttpRequest(CrystalReportViewerUpdater.java:61)
    at com.crystaldecisions.report.web.ServerControl.processHttpRequest(ServerControl.java:345)
    at com.crystaldecisions.report.web.viewer.CrystalReportViewerServlet.doUpdate(CrystalReportViewerServlet.java:156)
    at com.crystaldecisions.report.web.viewer.CrystalReportViewerServlet.doPost(CrystalReportViewerServlet.java:144)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
    at java.lang.Thread.run(Thread.java:662)
    Here is the AlwaysRequiredSteps_UnmanagedRas.jsp
    <%
    String path = "rassdk://C:\\reports\\asn.rpt";
    ReportAppSession ra = new ReportAppSession();
    ra.createService("com.crystaldecisions.sdk.occa.report.application.ReportClientDocument");
    ra.setReportAppServer("10.189.15.175:1566");
    ra.initialize();
    ReportClientDocument clientDoc = new ReportClientDocument();
    clientDoc.setReportAppServer(ra.getReportAppServer());
    clientDoc.open(path, OpenReportOptions._openAsReadOnly);
    %>
    Here is the OpenReport.jsp
    <%@ page contentType="text/html; charset=utf-8" %>
    <%@
       page import="com.crystaldecisions.sdk.occa.report.application.*,
      com.crystaldecisions.sdk.occa.report.data.*,
      com.crystaldecisions.sdk.occa.report.lib.*,
      com.crystaldecisions.report.web.viewer.*,
      com.crystaldecisions.sdk.occa.report.definition.*"
    %>
    <html>
    <head>
    <title>Preview Report</title>
    </head>
    <body>
    <%@ include file="AlwaysRequiredSteps_UnmanagedRAS.jsp"%>
    <%
      Tables oTablesCollection = clientDoc.getDatabaseController().getDatabase().getTables();
      for(int i = 0; i < oTablesCollection.size(); i++) {
          // We'll get two copies of the original table, change one, and use set table.
          ITable originalTable = oTablesCollection.getTable(i);
          ITable changedTable = oTablesCollection.getTable(i);
          IConnectionInfo newConnectionInfo = new ConnectionInfo();
          PropertyBag attributes = new PropertyBag();
          attributes.putBooleanValue(PropertyBagHelper.CONNINFO_SSO_ENABLED, false);
          attributes.putStringValue(PropertyBagHelper.CONNINFO_CRQE_DATABASETYPE, "JDBC (JNDI)");
          attributes.putStringValue(PropertyBagHelper.CONNINFO_DATABASE_DLL, "crdb_jdbc.dll");
          attributes.putStringValue(PropertyBagHelper.CONNINFO_CRQE_DATABASENAME, "");
          attributes.putBooleanValue(PropertyBagHelper.CONNINFO_CRQE_SQLDB, true);
          PropertyBag logonProperties = new PropertyBag();
          logonProperties.putStringValue("JDBC Connection String", "!oracle.jdbc.driver.OracleDriver!jdbc:oracle:thin:{userid}/{password}@10.189.12.248:1521:gbg");
          logonProperties.putBooleanValue("Trusted_Connection", false);
          logonProperties.putBooleanValue("Use JDBC", true);
          logonProperties.putStringValue("Database Class Name", "oracle.jdbc.driver.OracleDriver");
          logonProperties.putStringValue("Connection URL", "jdbc:oracle:thin:@10.189.12.248:1521:gbg");
          logonProperties.putStringValue("Server", "10.189.12.248");
          attributes.put(PropertyBagHelper.CONNINFO_CRQE_LOGONPROPERTIES, logonProperties);
          attributes.putStringValue("QE_ServerDescription", "10.189.12.248");
          newConnectionInfo.setKind(ConnectionInfoKind.CRQE);
          newConnectionInfo.setUserName("dsdone");
          newConnectionInfo.setPassword("dbuser");
          newConnectionInfo.setAttributes(attributes);
          changedTable.setQualifiedName("DSDONE" + "." + changedTable.getName());
          changedTable.setConnectionInfo(newConnectionInfo);
          // Commit the changes by calling the setTableLocation method from
          // the Database controller with the new table
          clientDoc.getDatabaseController().setTableLocation(originalTable, changedTable);
      // Create a Viewer object
      CrystalReportViewer viewer = new CrystalReportViewer();
      // Set the name for the viewer
      viewer.setName("Crystal_Report_Viewer");
      // Set the report source for the  viewer to the ReportClientDocument's report source
      viewer.setReportSource(clientDoc.getReportSource());
      // Process the http request to view the report
      viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), out);
      // Dispose of the viewer object
      viewer.dispose();
      // Release the memory used by the report
      clientDoc.close();
    %>
    </body>
    </html>

    Hi Jason,
    Call any one of the methods
    viewer.dispose(); or clientDoc.close();
    Do not use both in BI 4.x version.
    Test the same and let me know if it works.
    Thanks,
    Prithvi

  • Help me - how & where can i get SSO SDK ?

    I need SSO SDK (Single Sign On API) for integrate my jsp application with existing SSO server (not as Java Portlet) which was used with my portal application.
    The problem is i cann't found SSO SDK. Anybody can help me ? Is there any better solution ?

    I was quite sure it was included in the PDK zip file.
    Under the directory plsql\sso
    matt.

  • Beginner Question - Help Needed for EJB QL Sample Application

    I'm working with a group of student interns, like myself, and we've been given an assignment to work with Oracle. All of us have no training or experience with this, so we're just learning as we go.
    I've been trying to run the EJB QL Sample Application (http://www.oracle.com/technology/sample_code/tech/java/ejb_corba/ejbql/Install.html), but I keep running into problems at step 3.
    Now, we will deploy the sample application onto OC4J. Open another command prompt and go to the folder <OC4J_HOME>/j2ee/home and run the following commands one-by-one
    > java -jar admin.jar ormi://<machine_name>:<admin_port> admin <admin_pwd> -deploy -file <SAMPLE_HOME>/build/ejbql.ear -deploymentName Ejbql
    > java -jar admin.jar ormi://<machine_name>:<admin_port> admin <admin_pwd> -bindWebApp Ejbql ejbql-war http-web-site /ejbql
    where,
    <machine_name>      Name of the machine where OC4J Server is running
    <admin_port>      Admin Port on which the OC4J server listens. This value by default is 23791 unless explicitly changed by the user
    <admin_pwd>      Adminstrator password to access OC4J. The default value is welcome
    When I do this step I get this error:
    Error: Unable to find java:comp/ServerAdministrator: Lookup error: javax.naming.
    AuthenticationException: Invalid username/password for default (sds); nested exc
    eption is:
    javax.naming.AuthenticationException: Invalid username/password for defa
    ult (sds)
    com.evermind.client.orion.AdminCommandException: Unable to find java:comp/Server
    Administrator: Lookup error: javax.naming.AuthenticationException: Invalid usern
    ame/password for default (sds); nested exception is:
    javax.naming.AuthenticationException: Invalid username/password for defa
    ult (sds)
    at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4jAdminCo
    nsole.java:105)
    at com.evermind.client.orion.Oc4jAdminConsole.main(Oc4jAdminConsole.java
    :27)
    javax.naming.NamingException: Lookup error: javax.naming.AuthenticationException
    : Invalid username/password for default (sds); nested exception is:
    javax.naming.AuthenticationException: Invalid username/password for defa
    ult (sds) [Root exception is javax.naming.AuthenticationException: Invalid usern
    ame/password for default (sds)]
    at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:153)
    at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4jAdminCo
    nsole.java:102)
    at com.evermind.client.orion.Oc4jAdminConsole.main(Oc4jAdminConsole.java
    :27)
    Caused by: javax.naming.AuthenticationException: Invalid username/password for d
    efault (sds)
    at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2410
    at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2226
    at com.evermind.server.rmi.RMIConnection.lookup(RMIConnection.java:1692)
    at com.evermind.server.rmi.RMIServer.lookup(RMIServer.java:727)
    at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:134)
    ... 2 more
    ---- Embedded exception
    javax.naming.AuthenticationException: Invalid username/password for default (sds
    at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2410
    at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2226
    at com.evermind.server.rmi.RMIConnection.lookup(RMIConnection.java:1692)
    at com.evermind.server.rmi.RMIServer.lookup(RMIServer.java:727)
    at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:134)
    at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4jAdminCo
    nsole.java:102)
    at com.evermind.client.orion.Oc4jAdminConsole.main(Oc4jAdminConsole.java
    :27)
    Any suggestions to fix this error?
    Thanks in advance for any help.

    George,
    The Readme.html file is available with the ejbqlsample.jar downloadable (Extract and find the doc in Ejbql\docs\Readme.html) which is printable.
    Or,
    If you are trying to print the file directly from OTN site, you need to set the Page-Setup Orientation to 'Landscape'.
    Hope this helps.
    Regards
    Pushkala

Maybe you are looking for

  • Keychain Not working with any Apps

    I installed 10.5. I am so mad I can see straight. None of my passwords go to the Keychain, (and Yes, I upgraded to the the Keychain.pkg) I have tried everything in the help file. Nothing helps. I have a bunch of sites in my ftp program Fetch, (now up

  • When using private browsing, I cannot bring up my list of favourites

    I've recently had installed Firefox, previously Internet Explorer. When i'm using Private Browsing, i'm unable to bring up my list of favourites. or as an alternative, can I view web sites as use the tools option, Internet options and then delete, de

  • Apple hardware test (AHT) preinstalled on latest macs

    hello, it seems that apple ships it's latest mac models, with AHT preinstalled - i.e. if you hold down the 'D' key on startup a new mac boots into AHT even without any CD present. according to another thread (which i unfortunately lost the link to) i

  • HOw to know sandard edition or standard edition one

    Hi, I want to know my oracle software is standard edition or standard one edition. SQL> select * from v$version; BANNER Oracle Database 10g Release 10.2.0.3.0 - Production PL/SQL Release 10.2.0.3.0 - Production CORE    10.2.0.3.0      Production TNS

  • Text joins performance impact

    Hello, We are building a huge calculation view which in the end will have ~1000 fields. This calculation view will be built from several smaller calculation views with union between them. Each small calculation view uses Analytical view that in the l