Forward to different web-app on same server

I can forward a request from a servlet to another web-app on same server, but the authenticated principal is not propagated from original servlet to forwarded servlet. I'm using the requestDispatcher.forward(req,resp) method. It seems that if you forward to a web-app within same EAR or server than the user's identifty should be propagated.

With tomcat you can use single sign on .
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html#Single%20Sign%20On
regards Dietmar

Similar Messages

  • Can you run multiple APEX listeners for different instances on the same server

    Please confirm that we can run multiple APEX listeners for different instances on the same server?  Is it an xml setup configuration or do we need to do more??
    Thank You,
    Tony Miller
    SmartDog Services
    Austin, TX

    Yes.. Just exactly what I was looking for...
    Thanks Jari!!
    Thank You,
    Tony Miller
    SmartDog Services
    Austin, TX

  • How to track session IDs for multiple apps in same server instance?

    All:
    We have 2 web applications (for example: app1,app2) running in one app
    server instance (weblogic 5.1). Both of those applications use the same
    cookie name (defined in weblogic.properties ) to keep the HttpSessionID.
    The tricky thing is that if a client logs in to app1 and then logs in to
    app2 with the same web browser, (for example, IE). The app1's
    HttpSessionID kept in the cookie will be overwritten by app2's
    HttpSessionID because they use the same cookie name.
    My question is this:
    Is there a way to specify a cookie name for each application running in
    an application server instance?
    The only way we know of to work around the problem is that we have to
    host the app1 and app2 in 2 different app server instances so we can
    config app1 and app2 to use different cookie names for the
    HttpSessionID. We are curious if there is a better way to do that.
    BTW, We must use Cookie because of the requirement of cluster and load
    balancer.
    Thanks,
    Ben

    Hi Ben,
    Which version of Weblogic are you using??
    In 5.1 sp8 the Cookie names of the Web Apps are different by default.
    Prasad Peddada <[email protected]> wrote:
    Why can't you add your own cookie?
    In 6.0 you can have different cookie names for different
    apps.
    -- Prasad
    "Benjamin D. Engelsma" wrote:
    All:
    We have 2 web applications (for example: app1,app2)running in one app
    server instance (weblogic 5.1). Both of those applicationsuse the same
    cookie name (defined in weblogic.properties ) to keepthe HttpSessionID.
    The tricky thing is that if a client logs in to app1and then logs in to
    app2 with the same web browser, (for example, IE). The app1's
    HttpSessionID kept in the cookie will be overwrittenby app2's
    HttpSessionID because they use the same cookie name.
    My question is this:
    Is there a way to specify a cookie name for each applicationrunning in
    an application server instance?
    The only way we know of to work around the problem isthat we have to
    host the app1 and app2 in 2 different app server instancesso we can
    config app1 and app2 to use different cookie names forthe
    HttpSessionID. We are curious if there is a better wayto do that.
    BTW, We must use Cookie because of the requirement ofcluster and load
    balancer.
    Thanks,
    Ben

  • Problem with multiple Toplink/JPA apps in same server

    Anyone have experence of running serveral Toplink/ EJB-3 Web apps in the same server (OC4J, alas)?
    We seem to get a problem with the second app failing to initialise toplink, with an entity not found message. Each app runs OK on it's own.

    Yes, they access the same datasource and most of the tables overlap.
    We're thinking it might help to have common entity classes and put them in a shared library, but I don't know if this is relevant (setting up shared libraries complicates testing and tends to snowball, I reckon we need about 15 jars all told).
    I''ve had some funnies on OC4J before which I think may be to do with it's use of ClassLoaders, for example I initially put persistence.xml in the libary jar with the data model, but for some reason I get the entity not found error that way. It only seems to work if it's in the classes folder.
    For the moment we're getting arround the problem with multiple OC4J instances in the server.

  • Is it possible to have 2 instances with the same name but different edition in the same server?

    Hi everybody!
    I have in a little trouble ....
    *** Scenario.
    Oracle Enterprise Edition 11gr2 over Oracle Solaris 11
    3 instances: PROD, QA, DEV
    1 ASM instance
    Listener ports: 1520, 1530 & 1540
               Those are production system
    *** The problem:
    Customer can't pay Oracle EE, they want to change to Oracle Std One
    Limitations:
    I cant have a similar system to test.
    *** My idea:
    Install Oracle Std One, in the same path:
    /u01/app/oracle/product/11.2.0/db          <-- EE
    /u01/app/oracle/product/11.2.0/db_one   <-- Std Ed One
    ASM:
    /u01/app/11.2.0/grid          <-- EE                    +ASM
    /u01/app/11.2.0/grid_one   <-- Std Ed One        +ASM1
    Create databases:
    Asign similar disks to +ASM1
    Create DGs on +ASM1
    Create databases: PROD, QA, DEV for Std Ed one
    - is it posible that they have same instance name?
    - if not, i suppose create as: PROD1, QA1, DEV1
    Configure Listener port : 1521, 1531 & 1541
    Migration technique:
    Create Tablespaces, schemas
    Lock users in EE
    down listener: 1520, 1530 & 1540
    Import data of final users in a window maintanance
    configure and up listener: 1521, 1531 & 1541
    Customer should test access and apps in new
    Please tell me if my Idea is reallistic, all comments are going to be very apreciated.

    sol.beach
    I suppose end customer use a port per database in order to separate in a logical way the access to the databases,
    i mean PROD, QA & DEV has the same users.
    Hemant K Chitale
    1. I've seen physical servers with 3 ASM instances: +ASM1, +ASM2, +ASM3
       on Solaris & Oracle 10g, I suppose is posible on 11g
    2. The sever has occupied 2  sockets (2 physical CPU), so I can use Oracle Standard Ed One.
    JohnWatson2
    Thanks for your comments.
    WadhahDaouehi
    1. - You cannot run two ASM instance simultaneously on one Server, but you can run many Oracle database simultaneously
          on the same server which they use the ASM as storage type.
      As a mentioned to  Hemant K Chitale, I've seen a system with several instances running
      About
         "you can run many Oracle database simultaneously on the same server which they use the ASM as storage type."
      I'm not sure if i can use the same ASM which is part of a current Enterprise Ed over the new installation with Oracle Std Ed One.
    2. - Why you want the same instance name?
    If it is about the service name, which has by default the same instance name, just you can create a different instance name
    and create the service name with the name that you wish.
    SQL> alter system set service_names='instance_name';
    Is a similar name, not the same
    PROD, QA & DEV
    PROD1, QA1 & DEV1
    I consider add "1" at the end to refer "Oracle Standar Ed One"
    But I agree with you, i can customize throught service_name.
    Regards,
    Abraham Mtz.

  • Deploying a copy of existing database with a different name on the same server

    I am a developer(an inexperienced one) trying to understand what is the best way to deploy a brand new database with
    the exact same schema as an existing DB on the same server, but with a different name. I want to preserve the data in all reference tables which I can do by having the relevant post-deployment scripts run after the deployment. 
    What I can't understand is how the project should be set up to deploy database Customer_2 if database Customer_1 exists on
    this server - the Visual Studio project contains DB Customer and I need to find a way to be able to deploy Customer_N (but without creating N identical DB's in the project). I checked a ton of articles and blogs, and feel dumb asking this question but haven't
    been able to understand it yet. Any help would be appreciated.

    Hello,
    Maybe the TargetDatabase and the DeployToDatabase properties can help you.
    http://www.asp.net/web-forms/tutorials/deployment/web-deployment-in-the-enterprise/deploying-database-projects
    You can deploy multiples databases from one project if you want, as explained on the following
    post:
    http://stackoverflow.com/questions/1544966/gdr-deploying-multiple-database-targets-with-one-project
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Multiple oracle database instances with different characterset on  the same server

    Hello,
    Is it possible to have 2 database instances running with different charactersets,one with AL32UTF8 and the other with WE8MSWIN1252.?
    Are there any setup requirements to be performed prior to setting up the database instances?
    The 3rd party utility that we want to use does not support AL32UTF8 and insists on using a database with character set WE8MSWIN1252.
    Kindly help.
    Thanks,
    Ram.

    Hello Zhe,
    I guess I posted my question in a wrong forum.  I tried my best to find a suitable forum and thought this was the best and closest I found.  Apparently not.  Can you please let me know the right forum for my question?
    The below is the breif of what we are currently facing:
    We are in the process of finalizing plans to install Automic for our Retail applications to schedule jobs.  In the process came to know that Automic does not support AL32UTF8.
    Right now we have RMS and UC4 (now called Automic) run on the database server as UC4 supports AL32UTF8 and schema for UC4 is inside the RMS database.
    Going forward it is recommended to have a separate database instance on the same server as that of RMS database and with a different characterset which is WE8MSWIN1252.
    Please let me know what forum to post in, I will repost the question.
    Thanks,
    Ram.

  • Multiple web apps sharing same cache in a single JVM ?

    Is it possible to share cache across multiple web apps running in the same app server (multiple web apps, single JVM) ?
    Thanks for any info.

    Hi Bob,
    Cluster membership is scoped to the ClassLoader, so if your application server provides a ClassLoader-per-application, this will work fine.
    This is supported for both Coherence (NamedCaches) and Coherence*Web (HTTP sessions).
    Jon Purdy
    Tangosol, Inc.

  • Different logon pages for same server.

    hi Expert,
    I have created two different logon pages with different URL's for the same server, now i can use both the pages to logon in to the system.
    what i need to do now is :-
    URL "A"  users set ="A"
    URL "B"  users set ="B"
    If we have the above two different URL and respective users for those URLs.
    Now if i am User from the User set "A"  and try to Login by using URL "B".
    I am able to login, but i want to restrict.
    ie.
    users from set ="A" login only by the link URL "A" 
    users from set ="B" login only by the link URL "B" 
    Points would be given to helpful answers.
    Regards,
    Sanjyoti.

    Hi Sanjyoti,
    I am not sure if this would work, but if time permits then do try this.
    User A -- URL A
    User B -- URL B
    Now make User A a part of Group A, and set conditions in code that Group A can logon only through URL A and User B can logon through URL B.
    Then in code check the association user - group and group - url and accordingly allow / disallow the user to go ahead.
    This is just a thought.....do tell me if this works.....or if it doesnt then do post the solution you use....
    Thanks,
    GLM
    P.S: PLEASE CLOSE THE THREAD IF THE ISSUE HAS BEEN RESOLVED
    Edited by: GLM on Aug 27, 2008 2:08 PM

  • Falied "Configure OLAP cubes for Project Web App" in Project Server 2013

    Hi
    I'm trying to use the PS2013's capability for generate SSAS Cubes; but after I execute
    the steps described on “Configure OLAP cubes for Project Web App (http://technet.microsoft.com/en-us/library/jj943761.asp)”  the only thing
    achieved is that the state being "Processing…" and the log:
    ===== Initiating OLAP database build process =====
    [10/11/2013 2:48 PM] Cube build request message has been added to the Project Server queue
    When I check the jobs, the one who is associated with the cube creation is on "Succeeded" state but the OLAP database is never created. There is no evidence I think on the Sharepoint log.
    For notice:
    10/11/2013 14:36:24.41 w3wp.exe (0x1A70)                       0x1848 
    Project Server                   Analysis Cube Building                       
    8ida        Information        Standard Information:PSI Entry Point:   Project User: PROJECTSERVER\system  Correlation Id: 0cea4e03-a432-e311-9401-001cc094718e  PWA Site
    URL: http://<server-name>/sites/Walkthroughs  SA Name: Project Server Service Application  PSError: NoError (0) Cube build request was placed on the Project Server Queue.  afaf4b9c-57d6-7004-2661-c95edeacab11
    10/11/2013 14:36:24.43 w3wp.exe (0x1A70)                       0x1848 
    Project Server                   Analysis Cube Building                       
    8swo     Medium               PWA:http://<server-name>/sites/Walkthroughs, ServiceApp:Project Server Service Application,
    User:PROJECTSERVER\system, PSI: [CBS] Status message: Cube build request message has been added to the Project Server queue,
    LogLevelManager Warning-ulsID:0x3873776F has no entities explicitly specified.                afaf4b9c-57d6-7004-2661-c95edeacab11

    Seems like an error occurred during site collection provisioning with the project server features. The provisioning process was interrupted from a system error and doesn't recovered after system restart.
    I just created and provisioned a new site collection and everything is working now.
    ===== Initiating OLAP database build process =====
    [10/16/2013 5:57 PM] Cube build request message has been added to the Project Server queue
    ===== Verifying and running pre-build server event handler =====
    [10/16/2013 5:57 PM] Verifying and running pre-build server event handler
    ===== Determining database and OLAP database structure =====
    [10/16/2013 5:57 PM] Cube build initialization started
    ===== Building database and cubes =====
    [10/16/2013 5:57 PM] Cube build session started
    ===== Verifying and running post-build server event handler =====
    [10/16/2013 5:58 PM] Verifying and running post-build server event handler
    ===== Processing OLAP database =====
    [10/16/2013 5:58 PM] Process OLAP database session started
    ===== Verifying and running post-process server event handler =====
    [10/16/2013 5:59 PM] Verifying and running post-process server event handler
    ===== Process Completed =====
    [10/16/2013 5:59 PM] Cube build request completed successfully.

  • I want to install to different version on the same server

    Hi all,
    I want to install two different version of oracle on same server.
    and Both should work parallely without disturbing to each other.
    I know it is possible
    But while installing what preliminary precautions I willl have to take so that it won't disturbed other running database.
    waiting urgently for reply
    Pramod

    I would think as long as you set up separate staging areas for the two different versions that there should be no conflict. As always though - make sure you have good backups - maybe two.

  • Same Application Variables name in different websites on the same server.

    Hi,
    I have two websites in the same server that use both their own Application.cfm file.
    In each Application.cfm file is defined the application variable Application.DB
    In website1 the Application.DB = DB1
    In website2 the Application.DB = DB2
    Since I'm studying Application.CFC solution, and I did read that application variables with same name have as scope the entire server ... I'm a bit worried. This happen also with Application.CFM ?

    Since I'm studying Application.CFC solution, and I did read that application variables with same name have as scope the entire server ... I'm a bit worried. This happen also with Application.CFM ?
    That's not quite how it works.  Each application has its own name, and application.foo on one application (name) is a different variable from application.foo within a different application (name).
    Reading these sections of the docs might help:
    Configuring and using application variables:
    http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec0c35c -7fec.html
    cfapplication:
    http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7d 69.html
    About applications:
    http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec0b63c -7fda.html
    Defining the application and its event handlers in Application.cfc:
    http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec22c24 -7d39.html
    You should definitely be using Application.cfc, not Application.cfm, btw.
    Adam
    Adam

  • Multiple apps (instances) same server?

    Hi all,
              Are there any known issues with having multiple apps share the same weblogic.jar file?
              I have a Tomcat server that has the same app installed twice; Productive and Test.
              When both are started, they seem to be unable to read from their queues. The following exception was thrown:
              [Security:090398]Invalid Subject: principals=[jndi, Deployers, Monitors, Operators]
              When we only started one instance (either Productive or Test) the single instance worked perfectly.
              Now, we have installed both instances on seperate servers and have started both and they also appear to be working perfectly - however, it would be more ideal for us if we could get them working in harmony on the same server.
              Is it not possible to share the weblogic.jar file?
              Cheers,

    barnes,
              Thanks your response.
              The application (both) do create their own threads (daemons), but I can not see how they could be intertwined.
              I've ran tests to make sure they do reference their own settings (memory) and all seems to be ok.
              What I can't test is the internal workings of Tomcat, maybe somehow something goes awry internally there!?
              When I get a chance, I'll run some more tests... If I get something working, I'll post the results here (if I get the time).
              Cheers

  • Can I have 2 different EP instances in same server.

    Hi Friends..
    I have Enterise portal installed on server. It uses UME engine of  SCM4.0 server.
    Client weants to install  EP for different SCM5.1 system along with the old one. I am new to EP and moreoevr have no idea if tha is feasible. They say they will publish 2 links on internet.... 1 with having link to SCM4.0 and other with SCM5.1.
    Can you please provide me the guideline or some material abt same.? Is it possible and what are the risk factors. coz I have no ep development for R&D and we can't risk stopping our current EP working fine with SCM4.0
    regards.
    Ranjan

    Hi Ranjan,
    Considering your server sizing the performance will take a hit. But Still you can install 2 instance of EP in this server. All you need to take care is
    1. Your SID of the instances should be different. Eg.,EPD & EPP
    2. Your http port should be different. Eg., 50000 & 50200
    For productive use it is recommended to have atleast 2GB for one instance exclusively. In your case you have only 4GB out of which your OS & DB will consume more than a GB. So consider increasing the RAM size.
    HDD free space 10 GB should be enough.
    Regards,
    Nirmal Sivakumar G
    Award points if this answer helps you.

  • Log4j doesn't create backup files in web-app, the same code in pure java ap

    Hi all,
    in my application I have a class DummyLogger, which is a superclass to all others. It provides them a log4j Logger.
    In the constructor it sets up the important attributes:
    log = Logger.getLogger(name+" (" + app + ") ");
    log.setLevel(Level.toLevel(level));
    PatternLayout defaultLayout = new PatternLayout("%p %c,line %L,%d{dd.MM.yyyy/HH:mm:ss},%m%n");
    RollingFileAppender rollingFileAppender = new RollingFileAppender();
    rollingFileAppender.setName(name);
    rollingFileAppender.setFile(path+app+".log", true, false, 0);
    rollingFileAppender.setMaxFileSize("10MB");
    rollingFileAppender.setMaxBackupIndex(5);
    rollingFileAppender.setLayout(defaultLayout);
    log.removeAllAppenders();
    log.addAppender(rollingFileAppender);
    log.setAdditivity(false);Formerly I had the application as a pure java app and everything worked fine. Now I've made it a web application (I run it on WebsphereAS 5.0) and it has stopped creating the backup files. However the code remained the same.
    Any ideas what has happend?
    Thanks a lot,
    Ondra

    I also have the same problem. Did you find a fix?

Maybe you are looking for

  • How do i get my iphone to be the main library and everything on my itunes??

    I am putting my iphone on a new computer, but when i plug it in it just pops up as a seperate device and doesnt ask if i would like to sync it to the computer, and i cant drag my music or anything into the regular itunes library, which is currently b

  • Photosmart premium all in one wont print from SD card

    Photosmart  premium reads my SD card, and says 398 photos found, then it displays photos for a second or two and  then display reverts back to View and Print without giving me tha opportunity to select and print pictures.  I  performed a power reset

  • W530 - unknown device after installing windows 8.1

    Hi, W530 Product: 244752U BIOS: G5ET95WW (2.55 ) Windows 8.1 - Installed from scratch.  I was able to install and configure all drivers but one. I found a tread that suggested installing Lenovo Setting Dependency Package 2.0.0.13 to fix it on a diffe

  • Can't get anything to play on flashplayer

    Under manage in tool it shows my shockwave is there but when I got to play something it says I do not have flashplayer.  I can not install or uninstall and I don't know why.  This is driving me nuts   HELP!! It shows :  FLASH player is either not ins

  • How to map the permits Scenarios

    Dear Experts, Good Morning  to Every to Body. I am confusing to map the permits scenario . In my client place they raise the Work permit request to the Safety Officer for getting the approval for doing their work. Based on working condition safety of