How to add Abab stack to exiting Java stack

Hi All,
I am having a netweaver Java Stack installed on my system. I would like to install XI - in order to install Xi ,I guess the system should be ABAP + Java. But since I am having java based engine, I would like to add ABAP stack to it. So, my question how to add an ABAP stack to already existing JAVA/J2ee engine.
So what this process is known as-- Is it upgrading or New Installation. Because I need the guide and CD's for it.
Can any one tell me which Guide(Install/upgrade/Master) wud help me.
Thanks
S

Hello
If you are adding XI 7.1 check this page: http://service.sap.com/~form/sapnet?_SHORTKEY=01100035870000702775&_SCENARIO=01100035870000000202&
If you are adding XI 7.0 check this one: http://service.sap.com/~form/sapnet?_SHORTKEY=01100035870000659894&_SCENARIO=01100035870000000202&
You should read the master guides and install the new usage type on top of your current installation but check the SAP notes about it first.
If what you want is to install XI 3.0, that is if you have an existing v6.40 java stack, I think the operation is not recommended/supported by SAP, you should install a separate instance.
Hope it helps.
-Sam.

Similar Messages

  • How to add SAP PI 7.1 JAVA stack in solution manager

    Hi,
    I just added PI system in solution manager.For ABAP stack it is working fine.
    Could you please help me that, how can I add java stack of PI system in solution manager?
    If it is through NWA in PI what will be the steps?
    Regards
    Amit

    Hi,
    could you please more specific as I am new to this one?
    In my PI system SLD Data supplier is already configured for other system.
    How can I do this using NWA for solution manager.
    regards
    Amit

  • How to create Roles in UME (ABAP+JAVA stack)

    Hi,
    I have created roles earlier on JAVA stack alone. However, this time I am working on JAVA+ABAP stack. When I am trying to create role in UME, I am getting only two tabs:
    General Information
    Assigned Groups
    I am not getting Assinged Actions tab here.How do I assing actions ?
    Can any one please help me in creating roles in ABAP+JAVA stack.
    That would be  a great help!
    Regards
    Faisal

    HI Faisal,
    When ABAP is the UME, you can only edit users / groups that are J2EE only. Any group that is defined in ABAP is read-only for the Java Server to prevent conflicts (there is no synchronization) and has to be changed in ABAP.
    Please take a look at this link, which has a great graphic describing this.
    http://help.sap.com/saphelp_nw04s/helpdata/en/7c/36dcd59865b246b993c471199ba37a/content.htm
    So, if the Java group was created in ABAP, the ABAP user has to have the ABAP role assigned to him, so that he is in the group on the Java server. make sense? The graphic in the link above really explains it well I think.
    If you a new / custom Java group (not in ABAP) then you should be able to assign users to it from the Java server.

  • How to Start Serv0 Process in ABAP+JAVA Stack without restaring

    Hi
    We have our SAP Systems in ABAPJAVA Stacks. Some times the server0 process does not show up at the AS/400 screen screen even though all other processes showup. Is there a way we can start Serv0 Process in ABAPJAVA Stack without restaring the entire system.
    I tried the following. Loged in to the ABAP System and from transaction : SMICM
    Menu Option
    Administrator --> J2EE Instance(Local) --> Restart --> Yes
    Administrator --> J2EE Cluster (Global) --> Restart --> Yes
    but still the service did not show up.
    Any Help in this reagrd would be greatly appreciated.
    The following services are shown in the green screen at the AS/400 OS Level
       Subsystem/Job                 User        Type  CPU %  Function        Status  
         R3_20                            QSYS        SBS      .0                   DEQW   
           DISP_WORK                SMP20       BCI      .0  PGM-disp+work    SELW   
           DISPATCHER               SMP20       BCI      .0  PGM-jlaunch      THDW   
           GWRD                         SMP20       BCI      .0  PGM-gwrd         SELW   
           ICMAN                         SMP20       BCI      .0  PGM-icman        SELW   
           JCONTROL                   SMP20       BCI      .0  PGM-jcontrol     THDW   
           MSG_SERVER             SMP20       BCI      .0  PGM-msg_server   SELW   
           SAPSTART                   SMP20       BCH      .0  PGM-sapstart     EVTW   
           SDM                             SMP20       BCI      .0  PGM-jlaunch      THDW   
          WATCHDOG                  SMP20       BCI      .0  PGM-disp+work    SELW   
          WP00                            SMP20       BCI      .0  PGM-disp+work    SEMW   
          WP01                            SMP20       BCI      .0  PGM-disp+work    SEMW   
          WP02                            SMP20       BCI      .0  PGM-disp+work    SEMW   
          WP03                            SMP20       BCI      .0  PGM-disp+work    SEMW   
          WP04                            SMP20       BCI      .0  PGM-disp+work    SEMW   
          WP05                            SMP20       BCI      .0  PGM-disp+work    SEMW   
          WP06                            SMP20       BCI      .0  PGM-disp+work    SEMW   
          WP07                            SMP20       BCI      .0  PGM-disp+work    SEMW                                                                               
    Thank You
    Reg,
    Kishore
    949-232-5622 (Cell)

    Hi Kishore,
    first of all, there's probably a problem with server0. Generally it should come up automatically. And one can see JCONTROL and DISPATCHER, so there must be some problem with SERVER0. This could be a timeout for instance. One has to check dev_server0 and std_server0 files.
    However, you can of course start/stop the Java part independently from ABAP using the transaction SMICM. That's the official way. You should be able to use "soft shutdown with restart" if you just want to restart the Java stack. If you have doubts that this process went fine, trigger a "soft shutdown without restart" and wait until all java processes are gone (JCONTROL, DISPATCHER, SERVER<number>'s and SDM). Then use "Restart Yes" to trigger a new start.
    But, as I said, there's probably some issue in server0...
    Best regards,
    Christoph

  • How to add the custom help exit to search help in SE11

    Hi All,
    I am trying to add the ZF4IF_SHLP_EXIT_EXAMPLE to search help exit in SE11 for search help LART . But system is asking for the access key.
    Is there any way we can achieve this with out using access key?
    Please suggest me.
    Regards
    Subhaskar

    Hi,
         To add a Search help exit goto SE11 -> in Search help option enter 'LART' -> click on display.
    once you have entered in you will have to click on change button. This will give on information message first, then it will ask if you have to maintain in the original language itself(only if you have logged in with any language other than DE). You can select your option in that then you will be able to view the same in EDIT mode. now you can go ahead and add your search help exit.
    Hope it helps.
    Thanks & Regards,
    Praveenkumar T.

  • How to add dropdown in excel using java?

    First of all sorry for creating new topic... i searched for it but i couldn't get it...
    Guys do you have any idea on how to add drop down in excel using Andy Khan's JExcel API? Or is there any other way?

    Sounds like a question for Andy Khan or the JExcel forum.

  • How to add third-party libs to Java WAS for my Webdynpro DC?

    Hello all,
    Here is my scenario:
    I have some thrid-party libs(some jars) which is necessary to my Webdynpro application. It is ok to add these files in the webdynpro project's classpath. But because these jars are missing on my server, somy webdynpro app not works.
    Could anyone give me some proposal for this kind of problem? How to add these jars to the J2EE server and access them in the webdynpro project?
    Thanks and Best regards
    Deyang

    Hi Deyang,
    Also add these jars in the <b>lib</b> folder of your WebDynpro application. Open the application in the <b>Navigator mode</b> and there under the folder structure you will find the lib folder. Copy and paste these required jars in this folder as well.
    See this pic:
    <a href="http://img508.imageshack.us/img508/4614/jars9jq.jpg">Put jar files in Lib Folder</a>
    This will solve your problem.
    Regards
    Pravesh
    PS: Please consider rewarding points if helpful and solved.

  • System Copy from ABAP Stack to ABAP+Java Stack

    Hi,
    Is it possible to system copy (homogeneous or heterogeneous) from a system based on ABAP Stack to a system based on ABAP+Java Stack? Is it the normal system copy procedure or something aditional is required to do. Pl. advise. Thanks
    regards
    Edited by: Abdus Samad on Oct 24, 2008 8:13 AM

    It depends on what you want to copy, a system copy will always wipe out the existing target. But if you want to only copy data, you might be able to do a client copy. You can start with this SAP note: [552711 - FAQ: Client copy|https://service.sap.com/sap/bc/bsp/spn/sapnotes/index2.htm?numm=552711]
    Regards Michael

  • ABAP Stack vs ABAP + Java Stack

    Hi All,
    We currently have two SAP systems (one for FI and one for HR) both running on ECC 5.0 using a separate ITS box to provide CATS (via FI system) and ESS (via HR system)
    We are about to upgrade to ECC 6.0 and replace the existing ITS with the Enterprise Portal.
    The EP box will have both the Java and ABAP stacks applied.  Now to the crux of the issue...
    Do we need to
    1. Install both the ABAP and Java Stacks on both the upgraded SAP systems
    2. Just install ABAP stacks on both upgraded SAP systems
    3. Install ABAP on FI and ABAP + Java on HR
    4. Install ABAP + Java on FI and ABAP on HR
    I have looked through a number of threads but haven't found a definitive answer to my question...
    Your help will be rewarded...with points that is!!
    Thanks,

    Hi All,
    We currently have two SAP systems (one for FI and one for HR) both running on ECC 5.0 using a separate ITS box to provide CATS (via FI system) and ESS (via HR system)
    We are about to upgrade to ECC 6.0 and replace the existing ITS with the Enterprise Portal.
    The EP box will have both the Java and ABAP stacks applied.  Now to the crux of the issue...
    Do we need to
    1. Install both the ABAP and Java Stacks on both the upgraded SAP systems
    2. Just install ABAP stacks on both upgraded SAP systems
    3. Install ABAP on FI and ABAP + Java on HR
    4. Install ABAP + Java on FI and ABAP on HR
    I have looked through a number of threads but haven't found a definitive answer to my question...
    Your help will be rewarded...with points that is!!
    Thanks,

  • NW MI 7.1 has only ABAP stack. what about JAVA stack ?

    Hi,
    Recently i installed NW MI 7.1 EHP1 system. It has only ABAP stack. But for MI configuration i hope we require JAVA stack too.
    Hence can we use some other standalone JAVA system for the MI front end configuration ? If so please tell me what are the usage types are required for that Standalone JAVA.
    Thanks & Regards,
    Bala

    Hi,
    EPC or standard AS Java usage types would be required for MI configuration.
    Suggest you to go through the Master guide at https://service.sap.com/~sapidb/011000358700000391152007E.pdf
    Also more info at http://service.sap.com/instguides ->SAP Netweaver -> Netweaver Mobile 7.1
    Regards,
    Srikishan

  • How to add minutes to date in java

    I have date in string variable, i have to add/subtract minutes from it, please adivce , how i could do in java 1.5
    sample data
    String olddate = "12/16/2010 4:58:29 PM"
    String minutes1 = "300"
    i would like to get value as below for above data
    String newdate ="12/16/2010 9:58:29 PM"

    Use SimpleDateFormat to convert the date object to string. Once the string object converted to date object use the getTime() method to get the date in milliseconds.
    Now you can easily adds/substract the date object.
    Remember, the resulting long value from getTime() method is in milliseconds, to get the value in minutes you need to multiply it by 1000 and by seconds in a minutes, that is 60.
    When your subtraction/adds done convert it back to date object.
    This is the codes:
    import java.text.SimpleDateFormat;
    import java.text.ParseException;
    import java.util.Date;
    public class DateCalculator {
         public static void main(String[] args) throws ParseException {
              String olddate = "12/16/2010 4:58:29 PM";
              System.out.println("old Date: "+olddate);
              SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy h:mm:ss a");
              long oldDateInMillis = formatter.parse(olddate).getTime();
              String minutes1 = "300";
              String newDateAdds = formatter.format(new Date(oldDateInMillis + Long.valueOf(minutes1)*1000*60 ));
              String newDateSubstract = formatter.format(new Date(oldDateInMillis - Long.valueOf(minutes1)*1000*60 ));
              System.out.println("new Date [Additions] : "+newDateAdds);
              System.out.println("new Date [Substraction] : "+newDateSubstract);
    }

  • How to add new Attribute in exits Entity at RunTime

    Hi ,
    I have try to add new attribute in my entity object at run time useing following code .
    EntityDefImpl lnewEntity = EntityDefImpl.findDefObject("model.entity.Applicant");
    aNewEntity.addAttribute("FirstName", "FIRST_NAME", String.class, false,
    false, false);
    but its giveing me NullPointerException exception
    Caused by: java.lang.NullPointerException
         at oracle.jbo.server.EntityDefImpl.getSuperAttrDef(EntityDefImpl.java:4709)
         at oracle.jbo.server.EntityDefImpl.addAttributeOfKind(EntityDefImpl.java:4774)
         at oracle.jbo.server.EntityDefImpl.addAttribute(EntityDefImpl.java:4764)
         at dk.decorateWithAttributes(UC1315ServiceImpl.java:1120)
         at dk.ServiceImpl.setNewQuestionsRowSet(UC1315ServiceImpl.java:858)
         at dk.bean.HelperBean.setQuestionsFrameLayout(UC1315HelperBean.java:314)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         ... 57 more
    <RegistrationConfigurator> <handleError> ADF_FACES-60096:Serverundtagelse under PPR, nr. 1
    javax.el.ELException: java.lang.NullPointerException
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at oracle.adf.controller.internal.util.ELInterfaceImpl.invokeMethod(ELInterfaceImpl.java:168)
         at oracle.adfinternal.controller.activity.MethodCallActivityLogic.execute(MethodCallActivityLogic.java:160)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.executeActivity(ControlFlowEngine.java:989)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:878)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:777)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.routeFromActivity(ControlFlowEngine.java:551)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.performControlFlow(ControlFlowEngine.java:147)
         at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleAdfcNavigation(NavigationHandlerImpl.java:109)
         at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:78)
         at org.apache.myfaces.trinidadinternal.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:43)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:130)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:879)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:312)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:185)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    Thanks,
    Ashwani

    Can you provide the correct code snippet?
    The provided code snippet:
    EntityDefImpl lnewEntity = EntityDefImpl.findDefObject("model.entity.Applicant");
    aNewEntity .addAttribute("FirstName", "FIRST_NAME", String.class, false, false, false);
    The variable references are different - lnewEntity / aNewEntity
    Can you do a null check if you add the attribute?
    if(aNewEntity != null) {
    aNewEntity .addAttribute("FirstName", "FIRST_NAME", String.class, false, false, false);
    Thanks,
    Navaneeth

  • How-to remove java-stack

    Hi,
    is it possible to remove a java-stack from a central instance? For example a CRM installation, having both abap and java stack?
    The java-stack is not used.
    Toine.

    Hello Toine,
    Yes, it is possible to remove the java stack. You can find the information how to do it in the WAS installation guide of your release, under a section "Deletion of an SAP System Installation (J2EE)"
    Kind regards,
    Marcelo

  • How to add images into a java application (not applet)

    Hello,
    I am new in java programming. I would like to know how to add images into a java application (not an applet). If i could get an standard example about how to add a image to a java application, I would apreciated it. Any help will be greatly apreciated.
    Thank you,
    Oscar

    Your' better off looking in the java 2d forum.
    package images;
    import java.awt.*;
    import java.awt.image.*;
    import java.io.FileInputStream;
    import javax.imageio.ImageIO;
    import javax.swing.*;
    /** * LogoImage is a class that is used to load images into the program */
    public class LogoImage extends JPanel {
         private BufferedImage image;
         private int factor = 1; /** Creates a new instance of ImagePanel */
         public LogoImage() {
              this(new Dimension(600, 50));
         public LogoImage(Dimension sz) {
              //setBackground(Color.green);      
              setPreferredSize(sz);
         public void setImage(BufferedImage im) {
              image = im;
              if (im != null) {
                   setPreferredSize(
                        new Dimension(image.getWidth(), image.getHeight()));
              } else {
                   setPreferredSize(new Dimension(200, 200));
         public void setImageSizeFactor(int factor) {
              this.factor = factor;
         public void paintComponent(Graphics g) {
              super.paintComponent(g);
              //paint background 
              Graphics2D g2D = (Graphics2D) g;
              //Draw image at its natural size first. 
              if (image != null) {
                   g2D.drawImage(image, null, 0, 0);
         public static LogoImage createImage(String filename) { /* Stream the logo gif file into an image object */
              LogoImage logoImage = new LogoImage();
              BufferedImage image;
              try {
                   FileInputStream fileInput =
                        new FileInputStream("images/" + filename);
                   image = ImageIO.read(fileInput);
                   logoImage =
                        new LogoImage(
                             new Dimension(image.getWidth(), image.getHeight()));
                   fileInput.close();
                   logoImage.setImage(image);
              } catch (Exception e) {
                   System.err.println(e);
              return logoImage;
         public static void main(String[] args) {
              JFrame jf = new JFrame("testImage");
              Container cp = jf.getContentPane();
              cp.add(LogoImage.createImage("logo.gif"), BorderLayout.CENTER);
              jf.setVisible(true);
              jf.pack();
    }Now you can use this class anywhere in your pgram to add a JPanel

  • Single-Sign-On (SSO) configuration on JAVA Stack through HTTP Header method

    Hello SDN community,
    in the context of a Proof of Concept, we are testing the integration of Microsoft Sharepoint Portal with SAP Backend (addin) systems.
    As the architecture impose use an external scenario (access from the internet), we couldn't use the Kerberos (SPNego) solution and thus we chosed the http header solution which in short uses an intermediary web server (in this case the IIS of the MOSS solution) which will act as authority.
    I miss information on how the workflow works for this http header authentication method. Through the visual administrator of the addin JAVA stack, it is possible to configure each application with a customized authentication (a choice of security modules). But this all that I know.
    My task is to configure SSO. From a sharepoint portal, the user should be able to access Web Dynpros and BSPs. I imagine that the very first call to a webdynpro or bsp (or maybe when we log on the sharepoint portal), the request to the WDP or BSP will first be forwareded by the intermediary server to the JAVA stack (or is it the SAP dispatcher that has to be configured).
    Is there an application to be built on the java stack to deal with the authentication, modify http header?
    What will the Java stack return? a sap long ticket? a token?
    How will the redirect work (to by example a BSP which is in the ABAP stack)?
    SAP preconise to secure with SSL the link between the intermediary web server and the JAVA stack, is IP restriction also a solution?
    A lot of questions about how this SSO http header should work,
    I would be very greatful for any help, or info,
    Kind regards,
    Tanguy Mezzano

    Hi Tanguy,
    to tell you the truth I'm really unsure about what you are trying to achieve. When I started posting to your thread I thought all you wanted was trying to access your J2EE engine via Browser and authenticate against the engine using HTTP Header Variables. Nevermind:
    Here are some answers to your question:
    in fact I did succeed, the problem was that even after domain-relaxation done by the J2EE, I had to change the domain of th SAP cookie to the bbbb.domain.com to be understood (I would have thought that all hosts in/under domain .domain would have accepted such a cookie but it seems that no...).
    The server does not care about the domain because Cookies in an HTTP Request do not contain any domain information. The domain is just important when the Cookie is set by the server so your Client (Browser) will know in which cases the Cookie may be sent or not. So if your domain is xxx.yyy.domain.com and your cookie is issued to .domain.com then your Browser will definitely sent it to all hosts under .domain.com (This includes xxx.yyy.domain.com etc.)
    My current scenario is: in a first request get a SAP Logon Ticket from the Java Stack, then change its domain and then directly call the backend with it.
    You can do that but there is no Client involved in this scenario. So this is useful if you just want to test the functionality (e.g. authentication to J2EE using Header Variables (This works finally!!!) and then use the fetched Logon Ticket to test SSO against any trusted Backend!!)
    So everything's is in a Java Client application without using any redirection.
    If I understand you, you're solution is from the Browser call a servlet (which is deployed on the Java Stack and has no authentication schema) by passing to it our http header.
    No, you should initially authenticate somewhere! I thought that maybe you had some resource you access before accessing the Java Stack. This could be any application (e.g. deployed on a Tomcat or JBOSS or other server or if you like even SAP J2EE). After authenticating there you are aware of the username and could use it to  procceed (e.g. Authenticate against the J2EE using the same user and HTTP Header authentication for that particular user!)
    That servlet will transfer the http header (with the HttpClient app) in order to get from the Java Stack a SAP Logon ticket, and then to redirect to the resource and by sending back the cookie in client browser. Am I correct?
    This was just a suggestion because I realized that there was no Client ever involved in any of your testing (looked strange to me!). I was just thinking that it would be easier for you to just get the Cookie into your Browser so your Browser would do the rest for you (in your case finally send the Logon Ticket Cookie to your Backend to test SSO using Logon Tickets!).
    The AuthenticatorServlet somehow serves as a Proxy to your client because your client is not able to set the Header Variable. That's why I initially suggested to use a Proxy (e.g. Apache) for that purpose. The problem is just that if you use a Proxy you will have to tell it somehow which username it should set in the Header Variable (e.g. using a URL Parameter or using a personalized client certificate and fetch the username (e.g. cn=<username> from the certificate!)
    This way of doing would simplify the calls for sso for each new application needing authentication, instead of having all code each time in it...
    I'm stuck again! Do you want to authenticate an End User or do you want to authenticate an application that needs to call any resources in your Backend that requires authentication?
    So my problem now, is how to call the servlet from the client browser:
    I'm trying to call my servlet from the browser but I don't succeed. I am able to understand how to reach a jsp from the Java Stack, but not to reach a servlet. I don't find the path to my servlet:
    <FORM method="POST" action="SSORedirect2" >
    A JSP is a servlet too. There is just no JAVA Class involved!
    You do not need any POST Request to invoke a Servlet.
    I see that my servlet is deployed, but I don't how what path to give to my form to invoke the servlet, here follows my web.xml
      <?xml version="1.0" encoding="UTF-8" ?>
      <!DOCTYPE web-app (View Source for full doctype...)>
    - <web-app>
      <display-name>WEB APP</display-name>
      <description>WEB APP description</description>
    - <servlet>
      <servlet-name>SSOredirect2</servlet-name>
      <servlet-class>com.atosorigin.examples.AuthenticatorServlet</servlet-class>
      </servlet>
    - <servlet>
      <servlet-name>SSORedirect2.jsp</servlet-name>
      <jsp-file>/SSORedirect2.jsp</jsp-file>
      </servlet>
    - <security-constraint>
      <display-name>SecurityConstraint</display-name>
    - <web-resource-collection>
      <web-resource-name>WebResource</web-resource-name>
      <url-pattern>/*</url-pattern>
      <http-method>GET</http-method>
      <http-method>POST</http-method>
      </web-resource-collection>
    - <auth-constraint>
      <role-name>DefaultSecurityRole</role-name>
      </auth-constraint>
      </security-constraint>
    - <security-role>
      <role-name>DefaultSecurityRole</role-name>
      </security-role>
      </web-app>
    If you have an AuthenticatorServlet Class all you need is to add the Servlet Mapping in your web.xml file
    e.g.
    <servlet>
      <description>
      </description>
      <display-name>AuthenticatorServlet</display-name>
      <servlet-name>AuthenticatorServlet</servlet-name>
      <servlet-class>com.atosorigin.examples.AuthenticatorServlet</servlet-class>
    </servlet>
    <servlet-mapping>
      <servlet-name>AuthenticatorServlet</servlet-name>
      <url-pattern>/AuthenticatorServlet</url-pattern>
    </servlet-mapping>
    You can directly call the Servlet in your Browser by calling the URL provided in the url-pattern of your Servlet mapping ( in this case /AuthenticatorServlet). The engine will invoke the Class "com.atosorigin.examples.AuthenticatorServlet" in the background and do whatever you defined there!
    I have also to pass my http header and the redirectUrl in the GET request.
    If you like! I just suggested this for testing purposes. As I stated before you need a way to tell your proxy (or in your case AuthenticatorServlet) which user should be set when calling the Engine in order to authenticate using HTTP Header. You could use the URL Paramater to define the user you actually want to use when you set the Header Variable.
    I just introduced the redirectURL because you were talking about redirects all the time. So if you finally want to call the Backend you could define the Backend URL in the redirectURL Parameter and the Servlet will make sure that you are redirected to this location after the whole process!
    Thx for your input very helpful,
    But again 0 points
    Cheers

Maybe you are looking for