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

Similar Messages

  • Pros & Cons of having multiple web applications under one EAR project

    Could anybody let me know what are the advantages and disadvantages of having multiple web applications under one single EAR project?

    Either this is homework, in which case, do it yourself, or you already think you have some pros for doing this. Share with us

  • 2 Web Applications on One Cloud Service

    Hi,
    I know there is information out there on this because I have come across it before, but unfortunately I cannot find it now so I will ask the questions here. I see a post about running applications on different ports within a cloud service, I am not sure
    if that is the same thing that i am talking about.
    Anyway, here is my question.
    - Can I run two web applications in one cloud service?
    - If I can, is it possible to update each web application separately or do I need to do a full deployment each time one of the web applications needs to be updated.
    - If I can, is it possible to have two different domain names for each web application within the application?
    If all that is possible, how do i do it? In Visual Studio, do i just right click my solution and click add new project, and then just deploy.
    Many thanks in advance for any comments or feedback.
    David

    Yes, you can run multiple web applications on a single web role. 
    Read more about it at - http://www.wadewegner.com/2011/02/running-multiple-websites-in-a-windows-azure-web-role/
    About deployment, you wont be able to update your web applications individually as you will need to upgrade your entire service with deployment package.
    About domain names, as mentioned in the article - http://msdn.microsoft.com/en-us/library/azure/gg433110.aspx
    If you must host different websites on one web role with several users, you should use the VM role and configure the IIS isolation boundaries that are
    necessary to provide appropriate security for each site.
    Bhushan | http://www.passionatetechie.blogspot.com | http://twitter.com/BhushanGawale

  • Merging Two JSF, ADF BC Web Applications into One web application

    What would be the best way to take two JSF, ADF BC web applications written by two developers and merge them into one web application. Any place to start would be greatly appreciated. I'm using Oracle JDeveloper - 11.1.1.4.0
    Edited by: Sunanda on Jul 26, 2011 4:13 AM

    Take a look at this thread:
    Merging Two JSF, ADF BC Web Applications into One...
    Although the thread is old, but it provides about the types of contents you would need to take into consideration while merging.
    With the knowledge from the above thread, you could use refactor option in the JDeveloper menu to move the contents from one project to another.
    Thanks,
    Navaneeth

  • 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

  • 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

  • Multiple Web Services in one Jdeveloper project

    Hi all,
    I'm currently trying to implement a series of web services, all relating to one application. I'm using the top-down approach, where I generate the web service from a WSDL file, and add my implementation to the generated classes. The WSDL file imports all sorts of XML Schemas (xsd-files) and Jdeveloper correctly generates all the necessary java-classes for me. Lets call the first web service I create WS-1.
    This all works fine and I'm a happy panda. I can call the web service, it works, I can modif the wsdl and regenerate the web service to e.g. change the input etc. All this works.
    Just until the point where I want to create a second web service (lets call this WS-2). This new web service doesn't use all the XML Schemas that the first web service does, it is more simple with regards to in-/output. The problem arises when I modify WS-2 and Jdeveloper regenerates the Web service files (.java and the files in the WEB-INF/wsdl-directory). When I do this, it deletes the imported xsd-files that WS-1 uses (removes them from WEB-INF/wsdl).
    And when I regenerate WS-1 to get my xsd-files in again, then when I regenerate WS-2 it imports all the unnecessary xsd-files into the wsdl for WS-2.
    Something tells me, that there is a connection or shared library between all web services in one Jdeveloper project. That they all imports and uses the xsd-files in WEB-INF/wsdl.
    Is this true? Can't I have multiple web services (and wsdl-files) using different types (schema definitions) in the the same Jdeveloper project?
    One solution I can think of, is to have all my web services in different projects under the same application. But is this really necessary?
    I'm using Jdeveloper 10.1.3.3.0.

    Hi,
    pure from a coder instinct I think I would prefer them to be in separate projects for better reuse and clean separation. If I need project 1 to access aclass from Project 2, I can check the dependency check box in the project properties. Is there any business requirement that makes you think having all of these in a single project will help ?
    Frank
    Btw.: I agree that JDeveloper shouldn't constraint developers from doing what they want and if this is a limitation the feel free to file a bug

  • Secure and non-secure access to the web application in one war

    Say we have one web application (in one war) which includes JSP, servlets and the security intercepter. There is one business requirement to have most of the JSP(s) accessed via HTTPS, but a few JSP(S) accessed via HTTP.
    My questions are:
    a. Is this possible, or a reasonable requirement or a good practice?
    b. if yes, what can we do to make it happen in the security intercepter implementation?
    c. If not, what is the technical reasons?
    Thanks much.

    a) Yes its is reasonable and good practive, there is an overhead using https, so you should only encrypt file you need to. When you use an online store, only account details / payments are https, the shop itself is http
    b) I dont really understand your difficulty. You can define a folder as 'secure' and put all your secure pages in this folder, leaving non secure files in a different folder. Whenever a page in the secure folder is accessed, https is automatically invoked.

  • 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.

  • Merging Two JSF, ADF BC Web Applications into One...

    My question is directly stated in the subject. What would be the best way to take two JSF, ADF BC web applications written by two developers and merge them into one web application. Any place to start would be greatly appreciated. Thank you.

    Steve I wanted to try this method out first. I ran into a problem. I get a "HTTP 404 Not Found" error in the browser. I'm running this from the embedded OC4J in JDev. Maybe I don't understand how the context roots are referenced by the OC4J as they relate to testing this on my local machine.
    Browser links when pages are run seperately:
    http://10.13.8.44:8989/DptApp-UserInterface-context-root/faces/DptApp.jspx
    http://10.13.8.44:8989/EmpApp-UserInterface-context-root/faces/EmpApp.jspx
    Page locations on my local machine:
    \JDEV32\jdev\mywork\DptApp\UserInterface\public_html\DptApp.jspx
    \JDEV32\jdev\mywork\EmpApp\UserInterface\public_html\EmpApp.jspx
    Code from the bean that I'm using to navigate from EmpApp to DptApp:
        public String rtnRedirect() throws IOException {
            FacesContext fc = FacesContext.getCurrentInstance();
            HttpServletResponse response = (HttpServletResponse)fc.getExternalContext().getResponse();
            response.sendRedirect("/DptApp/faces/DptApp.jspx");
            fc.responseComplete();
            return null;   
        }I altered my redirect to reflect what I was seeing on my local machine (response.sendRedirect("/DptApp-UserInterface-context-root/faces/DptApp.jspx")) and still got the error. I'm sure I'm referencing the location of the pages incorrectly, but I'm not sure where to look to fix this. Any suggestions would be greatly appreciated. Thanks.

  • 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.

  • 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.

  • Two web sites from one computer to .mac

    I'm trying to publish two web sites on .mac. I have two accounts, so that's not a problem. The problem is trying to get the original files and copies of both web sites to another user on my iMac. I can't locate my files. I've gone to the users/library//application support/iweb, but my files aren't there at all? iWeb works just fine, I just can't locate them. If I find them how would I get them to another user, so that I can publish the second web site to .mac. I know I have to log into another account on the same machine. I get the grasp of it all, I just can't do it. Thanks anyone.
    donald

    If you can launch a site in iWeb by opening the application, then you must have a domain file in Home Folder/Library/Application Support/iWeb.
    Are you sure you are looking in the library in your Home Folder and not the System Library?
    When you find the file you can copy it to the shared folder but make sure you give the other user read & write permission.
    You don't need to have two .Mac accounts or a second user account to have multiple sites.
    You can have each website on a separate domain file or use the freeware application iWebsites to manage them.
    For more information go to....
    http://iwebfaq.org/site/iWebMultiplewebsites.html

  • 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

  • I see two iphoto applications. One is iphoto (copy) and the other iphoto (original). How did this happen?

    In the applications folder I see two iphoto apps. One labeled iphoto (copy) 376 MB/ version 8.l.2 and the other iphoto (original) 346 MB/ version 8.1.1 . Have no idea what I did. Can I delete one of them?
    I have iphoto library manager installed and used it for the first time just recently. I merged my photos into one library.
    Any help would be greatly appreciated.
    Thank you,
    Lucy

    Keep the latest verson.  But, as Larry cautioned, open it before deleting the other one to make sure it performs as expected.
    OT

Maybe you are looking for

  • Vendor code and vendor name in ME5A

    Dear Experts, In T.code ME5A Vendor and name of Vendor fields display in output but it is showing blank whenever po is created how can I found that which PR,s Po make vendor code and name display. RC

  • Error in Accessing EJB in OC4J embedded in Oracle Application server 10G

    Hello All, I am getting below error while accessing my EJB deployed in Application server oracle.j2ee.clustering.ClusteringMessages warningInOpmnGetServers Error in obtaining server list from OPMN on host 10.184.74.197:6204.  Please verify that OPMN

  • Timer function prblm

    can anyone tell me how to implement the timer function. the time increases from 1 to 1000. if a variable has a value of 30 mins, i need to show the display as 29.59,29.58,.... upto 0 then exit frame. thanks in advance. here's the code: package testin

  • Interested in Learning Java Programming.

    Hello All, I a college student and I am interested in learning Java programming. Where would be a good place for me to start? Thanks

  • IPhoto - Project - Book: Zoom Out

    I imported a pie chart like image to iPhoto. When I paste that image into a book as a photograph, iPhoto crops the upper and lower edges of the circle to match the rectanglular shape of the template photo frame. I would like to zoom out to get the co