Integrating two web applications in JDev 9i

Hi all,
what is the best way to integrate two web applications developed independently, on JDeveloper 9.0.3.4?
I tried with one project for each application but no success. I then tried as one project by tweaking another application that my application depends on. The other application handles user management, login etc. The problem is after logon I get the link to the services of my application, but the root context to which I am directed is not recognized because it is set as the root of that user management application. If I enter correct URL, then the session is not preserved and I am redirected to login page again, i.e. I cannot switch smoothly between application contexts and test how it works together.
Many thanks,
mile

Hi Suman,
For enabling SSO for web apps we need have 3 options in hand.
Please check the below link for the three methods.
http://help.sap.com/saphelp_nw04/helpdata/en/12/9f244183bb8639e10000000a1550b0/frameset.htm
This also depends on the Portal version we are using, If the Portal is EP 6 APP integrator as you mentioned works but if its EP 7 pls use the below link for enabling SSO for web apps
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f05ae0f0-bf93-2b10-ed9e-a7320c012841
Hope this helps solve your problems.
Good Luck!
Regards,
Shaila
Edited by: Shaila kasha on May 26, 2009 11:51 AM

Similar Messages

  • Two web Applications targeting one model project, missunderstand

    Hi sirs;
    Does two web application can use the same applicationModule Pooll Instance ? like the cenário below;
    Or
    Each web application must have it's own model Project ?
    JDev 11g, WebLogic Server Version: 10.3.1.0
    The simpliest way to explain my doubt;
    1. Lets create one Fusion ADF Application;
    1.1 ViewProject_One
    1.2 ViewProject_Two
    1.3 Model_Shared
    One index.jspx in each viewProject and one adfTable targeting the same AppModule ( here I tried also to create a second appModule extending the original )
    When we run ViewProject_One it works ok;
    When we Run ViewProject_Two it worsk ok;
    Whe we Runnig viewProject_two tried to browse ViewProject_One index.jspx whe crash into
    29/09/2009 09:52:52 UNEXPECTED_CLIENT_OBJECT_TYPE oracle.adf.controller.internal.metadata.xml.MetadataResourceXmlImpl
    SEVERE: oracle.adf.controller.internal.metadata.xml.MetadataResourceXmlImpl
    29/09/2009 09:52:52 org.apache.myfaces.trinidadinternal.agent.AgentFactoryImpl _populateUnknownAgentImpl
    WARNING: O User-Agent "mAgent" é desconhecido, criar um agente com atributos de agente "desconhecido".
    This post is an try-and-error of this original post Deploy Enterprise application with 2 modules ( web applications )
    Thank's for any help
    Thanks
    Edited by: Marcos Ortega on Sep 29, 2009 6:07 PM
    Edited by: Marcos Ortega on Oct 1, 2009 5:00 PM

    My question actually was not about compile time dependencies, but about run-time dependencies between two projects app1.jpr and app2.jpr.
    First project has J2EE context root /app1 and the second one has context root /app2.
    First project runs as http://localhost:8887/app1/login.jsp where user can login. After successful login it renders page with link to the page in the second project, e.g. http://localhost:8887/app2/welcome.jsp
    When user clicks on this link it is supposed to transfer control to the second web application app2.
    The problem is the first root context does not recognize the /app2 context. Only if you execute second project first it will start in its own root context which is /app2, but then it is not possible to use application app1, which must be executed first!?
    I guess application.xml, orion.xml, web.xml etc. must be configured but don't know how

  • Error while running web application through JDEV (10.1.3.0.3) in OC4J

    Error while running web application through JDEV (10.1.3.0.3) in OC4J.
    Here is the error message.
    07/10/02 14:45:28 Exception in thread "OC4J Launcher" oracle.classloader.util.AnnotatedNoClassDefFoundError:
         Missing class: javax.xml.bind.JAXBContext
         Dependent class: com.oracle.corba.ee.impl.orb.config.InternalSettingsORBConfigImpl
         Loader: oc4j:10.1.3
         Code-Source: /C:/jdev/j2ee/home/lib/oc4j-internal.jar
         Configuration: <code-source> in boot.xml in C:\jdev\j2ee\home\oc4j.jar
    The missing class is not available from any code-source or loader in the server.
    07/10/02 14:45:28      at oracle.classloader.PolicyClassLoader.handleClassNotFound (PolicyClassLoader.java:2073) [C:/jdev/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@7]
         at oracle.classloader.PolicyClassLoader.internalLoadClass (PolicyClassLoader.java:1681) [C:/jdev/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@7]
         at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1633) [C:/jdev/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@7]
         at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1618) [C:/jdev/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@7]
         at java.lang.ClassLoader.loadClassInternal (ClassLoader.java:319) [jre bootstrap, by jre.bootstrap]
         at com.oracle.corba.ee.impl.orb.config.InternalSettingsORBConfigImpl.init (InternalSettingsORBConfigImpl.java:46) [C:/jdev/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\jdev\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.oracle.corba.ee.impl.orb.config.SunRIORBConfigImpl.init (SunRIORBConfigImpl.java:97) [C:/jdev/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\jdev\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.oracle.iiop.server.IIOPServerExtensionProvider.configureOrb (IIOPServerExtensionProvider.java:26) [C:/jdev/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\jdev\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.oracle.corba.ee.impl.orb.ORBServerExtensionProviderImpl.preInitApplicationServer (ORBServerExtensionProviderImpl.java:45) [C:/jdev/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\jdev\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.ApplicationServer.serverExtensionPreInit (ApplicationServer.java:1031) [C:/jdev/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\jdev\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.ApplicationServer.setConfig (ApplicationServer.java:861) [C:/jdev/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\jdev\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.ApplicationServerLauncher.run (ApplicationServerLauncher.java:98) [C:/jdev/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\jdev\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at java.lang.Thread.run (Thread.java:595) [jre bootstrap, by jre.bootstrap]

    Hi,
    The guide you were refering was pointing to 10.1.2 wizards.
    For the latest 10.1.3 tutorial, please follow the below tutorial link :
    http://www.oracle.com/technology/products/jdev/101/tutorials/WS/WSandAScontrol.htm
    Hope this helps,
    Sunil..

  • How to use two different ojdbc14.jar for two web application.

    Hi,
    I have two web application running in same tomcat, I need to use the two different ojdbc14.jar for two application, now both are taking the jars from tomcat common/lib directory, I tried copying the new ojdbc14.jar in web-inf/lib folder of one application, but it is not working.
    Could you please let me know whether this will take the jar from tomcat by befault or from web-inf, and a solution how to proceed with this.
    Thanks in advance.

    Yes, I tried removing the jars from common/lib, but as the connection string is mentioned inside the server.xml it is showing db connection error while trying to connect to the database

  • Need common page for two Web applications

    Hi,
    I got two web applications. I need to have a common point/ page to get access to them. I need to have a jsp or html page with two respective links. Providing this is fine but I need help as to how do handle switching the contexts.
    Any alternative solution is also welcome.
    Thx.

    Does it have to be an Itinerary?  This is fairly simple with just an Orchestration.

  • JDev9i-Beta;How could I run two JSP applications in Jdev enviroment at the same time?

    Hi,
    I have two JSP applications located on different directories. I wanted to run both applications at the same time in Jdev enviroment. But the second one failed.
    More info:
    I successfully ran Application1, then minimized the browser and ran Application2, then again minimized the second browser. After I maximized the first browser(Application1) and tried to go thro pages, I received page not found. Because Jdev sat up the Class Path for the newer application(Application2) and looks for pages there. I believe thats why I could not run both at the same time. How could I get around of this?

    hi,
    can you provide more details on this. Are these jsp files part of the same project or different projects. I can not duplicate this issue. Please provide us more information.
    Thank you

  • Error deploying web application using JDev 11.1.1.1.4

    I am using JDev 11.1.1.14 and WebLogic 10.3.2
    Whne I try to run a application html page from Jdev I get the foll error :
    weblogic.application.ModuleException: Failed to load webapp: 'avitrust'
    at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:393)
    at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:517)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    Truncated. see log file for complete stacktrace
    Caused By: java.io.FileNotFoundException: /u01/JDevApps/system11.1.1.4.37.59.23/DefaultDomain/servers/DefaultServer/tmp/_WL_user/jersey-web-lib/7srmrf/WEB-INF/web.xml (Too many open files)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.getInputStream(AbstractDescriptorLoader2.java:367)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:751)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:768)
    Any clue on why this error is getting generated and how this can be resolved ?

    When I try Deploying A WebCenter PS3 Portal Application using JDev 11.1.1.1.4 Integarted WebLogic Server I get the following error :
    [02:21:12 PM] Deploying Application...
    <29/03/2011 2:21:12 PM EST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1301368872572' for task '1'. Error is: 'weblogic.management.DeploymentException: [J2EE:160149]Error while processing library references. Unresolved application library references, defined in weblogic-application.xml: [Extension-Name: oracle.webcenter.framework, Specification-Version: 11.1.1, exact-match: false], [Extension-Name: oracle.webcenter.skin, Specification-Version: 11.1.1, exact-match: false], [Extension-Name: oracle.sdp.client, exact-match: false].'
    weblogic.management.DeploymentException: [J2EE:160149]Error while processing library references. Unresolved application library references, defined in weblogic-application.xml: [Extension-Name: oracle.webcenter.framework, Specification-Version: 11.1.1, exact-match: false], [Extension-Name: oracle.webcenter.skin, Specification-Version: 11.1.1, exact-match: false], [Extension-Name: oracle.sdp.client, exact-match: false].
         at weblogic.application.internal.flow.CheckLibraryReferenceFlow.prepare(CheckLibraryReferenceFlow.java:26)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:613)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:184)
         at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:58)
         Truncated. see log file for complete stacktrace
    I need some help to triage the issue and resolve the cause. any help in this context appreciated .
    Redg

  • Connecting more than two web application

    I have 2 struts web application projects both are using different databases.
    how can i connect both web application in single web application.

    ravi.choudhary wrote:
    I have 2 struts web application projects both are using different databases.OK.
    how can i connect both web application in single web application.This question is too general and not technical. The statement "connect two applications in single application" makes also completely no sense. Please elaborate at a more technical level.

  • How change information between two Web Applications?

    Hi,
    Has anyone any code sample or article how to build
    a "bridge" that would change data stored into session and servletcontext
    between two separete web application in same servlet engine?
    What I have understood is that they can not normally share same
    session or servletcontext data...
    Thanks,

    Hmm...
    Text in this Sun's tutorial says:
    "This lesson, however, shows you what to do if your servlet requires a resource available from its own server"
    The actual problem is following:
    - In Web Application 1 servlets/jsps stores data into session object and servletcontext
    - then user can request a page in Web Application 1 which should "activate/launch" Web Appilication 2 and
    pass some session objects or objects stored into servletcontext from Web Application 1 to Web Application 2.
    How to do this, it's the problem.

  • Communication between two web applications deployed on same app server

    I need to update the war file of one application(say Application A) from another application(say application B). Actually application B is the admin application of application A.
    In order to achieve this, I need to get the ServletContext of A from B. How can I do that?
    P.S: Both the applications will be deployed on the same app server and they are app server independent.

    from the JavaDocs:
    http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletContext.html
    getContext
    public ServletContext getContext(java.lang.String uripath)
    Returns a ServletContext object that corresponds to a specified URL on the server.
    This method allows servlets to gain access to the context for various parts of the server, and as needed obtain RequestDispatcher objects from the context. The given path must be begin with "/", is interpreted relative to the server's document root and is matched against the context roots of other web applications hosted on this container.
    In a security conscious environment, the servlet container may return null for a given URL.
    Parameters:
    uripath - a String specifying the context path of another web application in the container.
    Returns:
    the ServletContext object that corresponds to the named URL, or null if either none exists or the container wishes to restrict this access.
    See Also:
    RequestDispatcher

  • Integrating two Java application

    I need to integrate two Java applications.
    Can you recommend any articles or share your experience in this field.
    Thanks.

    Thanks for the response.
    Unfortunately database solution is not acceptable, that's why I am looking for Java solution, I was thinking about SOAP or other XML based solutions, but I need more info or maybe a comparison of different solutions, their pros and cons.

  • EP BW Integration (BW Web application designer settings)

    Hi all,
    I have a BW Web Application Designer. I wanted to Publish the reports into EP. When I goto Publish I see 2 options EP 6.0 and EP5.0. But the option EP6.0 is not enabled in the desinger.Is that any configurations I have to do in my BW system or in the Designer.
    Second thing is that I am interested in uploading a user created BW role into my Enterprise Portal.
    Can anyone could give me the step by step approach for the same.
    Helping answering will be certainly rewarded.
    Thanks,
    Balaji S

    Hi Balaji,
    user created BW role -- if you mean a Role created for BW activitty ... you can very well do it.
    You can create a BW iview by giving require details in the BW iview template then put it in a page, then add the page to a workset and add the workset to a role.
    Then assign the the BW role to the concerned users using User administrator.
    In the portal log in as administrator and click on the user administration->roles->search the concerned user you need to assign the BW role-> click the edit link --> search the BW role and add the role and save it.
    Hope it helps.
    Regards,
    Vivekanandan

  • Interaction between two web applications

    Hi All,
    I have an issue regarding 2 web projects.
    I have
    web application-----------related context path
    project1 ----------path1
    project2 ------------path2
    Scenario:
    Step1)
    I have logged in project1 with the foll url:
    http://localhost:8080/path1/index.jsp
    Step2);
    In index.jsp i have a button to navigate to
    http://localhost:8080/path2/page1.jsp
    Issue:
    Here is the issue.I have set one session attribute set in step1 and i need to acces it in step2.Im getting the attribute as null in step2.
    Can any one please let me know wht and where the issue is and the solution for it.
    Please help me out.
    Thanks in advance
    cheers,
    Shorath

    The fundamental problem is that web apps basically have no knowledge of each other. So if you're deploying to seperate WAR files, they're pretty much independent of each other and, specifically, can not share session data at all.
    If you want to share data between webapps, you need to use something outside the container (like a database), or you can play games with class loaders, and static class elements, making sure that your common classes are loaded outside of the webapps themselves.
    For example, in Tomcat, the shared and common directories hold classes that are loaded by the container directly and presented to your webapps.
    If you have a class with static members loaded from the common or shared directory, then both webapps will see the same instances of that class, and can share information that way. However, these classes will not be reloaded if you reload the webapps, only if you restart the container.
    The other problem, of course, is that these classes are agnostic of the session, so you'll need to implement your own session management if the data is unique to the users of your application. Kind of a catch-22.

  • How to exchange data between two web application (servlet)

    Hello, all,
    I have two servlets: SerlvetA and ServletB, they are deployed as web appA and appB in the same web container(tomcat)
    How ServletA exchange data with ServletB?
    I have tried follow methods:
    1) appA and appB could not share HttpSession, so I could not transfer data through session
    2) I write a new sigleton java class called AppBroker, servletA get AppBroker's instance, and set some data into the it. ServletB could not get the same instance of the AppBroker, because the appA and appB use different class loader.
    tell me how to?

    thanks reply, but
    1. static class can not solve the problem, it is same
    as my sigleton class method, as different web app use
    different class loaderhmm... at least in tomcat this seems not be true since i can use static classes in one webapp that are available in another web app on the same host/servlet runner.
    Maybe if you build your own classloader than the "scope" of the static class is limited to that classloader (for my understanding this shouldn't be the case since i think it depends on the instance of the jvm and not of the classloader..?!).
    2. rmi and object serialization are too expensive!
    I am working on how to use jndi to solve this problem.
    And I think this maybe a Sevlet specification's
    shortcoming: maybe a Local Method as EJB local
    interface need been introduced into servlet spec.
    could you suggestion other methods?none at the moment. i guess the basic methods are listed.
    Maybe there's just one left, a really ugly one. Depending on what kind of data and how often you have to exchange you could think of building a file-based queue, i.e. a dir where you drop files in an read out from the other web app (maybe based on a file/directory listener). But this would only be an appropriate way to go for kind of email and messaging systems i guess...

  • Integrated Planning & Web Application designer question

    We have a planning application that has an associated web template along with it.
    We have a button on the template and it executes a planning function. The issue i see is the planning function has a filter within it at a higher level (say it returns 1000 rows).
    On the web template we set the filter at a much lower level (say the filtered records are only 50). When we execute the planning function I see that it says 1000 rows read and x changed etc. How do i ensure that the planning function executes for the records that are only in the filter in the front end.
    Here is the setting on the button -
    Command - Execute Planning Function
    Binding type - Web Item Selection
    Web Item - Filter1
    Any suggestions?

    Hello Expert,
    Now if i use '0calyear' as info object, and 'year' as my variable for 0calyear info object in the query. This Info object is under column.
    And i use Navigation block to publish this Info object in the web template. The coding are as below:
    </object></TD>
        <TD vAlign=top><object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="NAVIGATIONBLOCK_2"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_NAV_BLOCK"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_QUERY"/>
             <param name="GENERATE_CAPTION" value=""/>
             <param name="CAPTION" value="Period"/>
             <param name="HORIZONTAL_NUMBER" value="1"/>
             <param name="SHOW_ROWS" value=""/>
             <param name="SHOW_FREE_CHARACTERISTICS" value=""/>
             <param name="SHOW_NAVIGATION_ICONS" value=""/>
             <param name="ITEM_NAV_BLOCK_IOBJNM_1" value="0CALYEAR"/>
             <param name="BOOKED_VALUES_1" value="Q"/>
             <param name="ITEM_NAV_BLOCK_IOBJNM_2" value="4458DUVKT8KDWAW4TFD0SGPCW"/>
             <param name="BOOKED_VALUES_2" value="Q"/>
             ITEM:            NAVIGATIONBLOCK_2
    </object></TD>
    So, When i run the web template, the first screen prompts to key in variable year. So, right now, the variable year is 2006.
    So, how should i take/enable this variable '2006' to publish in my navigation block?
    If you say javascript, where should i add in between the coding above?

Maybe you are looking for

  • Multiple users/devices on one PC

    We have three devices in our household, all identified by the same apple user id and password. (probably the first mistake.) The PC recognizes the three separate devices, but I cannot sync my device (iphone 4s) without getting all of my husband's app

  • WRT54G Router - Internet connection issues using the Ipod touch

    Ok, first - here is my setup. I've got the router hooked into the modem, with the desktop computer hooked directly into the router.  I've got my laptop running off wireless internet, and I've got an ethernet cable connecting through my laptop to an x

  • How to access Mac disks in Windows

    hi i format my external harddrive for time machine to back up , however when i plug it in into my window ... it won''t regconize it ( i do have some back up form work in it as well) how do i access mac disks in window ? can anyone help ?

  • How to make iCloud calendar appointments appear in the To-Do Bar in Outlook 2010

    I'm using Win 7 and iCloud control panel 4.0.  I understand that only the default calendar shows up in the to do bar. I tried setting iCloud as the default data file but then I can't write an email because I use IMAP which requires write access to th

  • Imovie4 won't open

    I was working on a project ( that needs to be done by Sat.) I movie quit and won't open. I found this message in the trash Last login: Thu Nov 10 15:59:27 on ttyp1 Welcome to Darwin! /Users/johnmalaga/Desktop/MacOS\ copy/iMovie; exit [John-Malagas-Co