Application context root in application container

Hi,
I wanted to determine the application installation directory during runtime in my program. How do I do it. It would be of help if I am directed any URL that explains this.
thanx for your response in advance,
Balu.

Hi,
I wanted to determine the application installation directory during runtime in my program. How do I do it. It would be of help if I am directed any URL that explains this.
thanx for your response in advance,
Balu.

Similar Messages

  • Setup an application context on your application server to host a web appli

    Hi,
    does anybody know where I can find  the following article:
    http://support.businessobjects.com/library/kbase/articles/c2016911.asp
    the link is wrong!
    It is a referencre within schedule_webi_now.zip
    A Java Server Pages (JSP) sample which demonstrates how to schedule a Web Intelligence Document to run now.
    Thanks  in advance
    Astrid

    Here ya go:
    Symptom
    How do you configure a Web Application Archive (WAR) file for a Java 2 Enterprise Edition (J2EE) application that uses the BusinessObjects Enterprise XI Java SDK?
    Resolution
    To configure a WAR file for a J2EE application that uses the BusinessObjects Enterprise XI Java SDK follow these steps:
    ====================
    NOTES:
    The following instructions also apply to Crystal Reports Server XI that is shipped with Crystal Reports XI Developer Edition.
    The following instructions are for both the Windows and UNIX operating systems.
    ====================
    1. In the WAR file's WEB-INF folder, create a lib folder.
    2. Copy the Enterprise XI Java SDK JAR files from the appropriate location below to the WAR file's WEB-INF\lib folder:
    Windows:
    ...\Program Files\Common Files\Business Objects\3.0\java\lib
    UNIX:
    <businessobjects_root>/java/lib
    3. Copy the log4j.jar file from the appropriate location below to the WAR file's WEB-INF\lib folder:
    Windows:
    ...\Program Files\Common Files\Business Objects\3.0\java\lib\external
    UNIX:
    <businessobjects_root>/java/lib/external
    4. Copy the entire crystalreportviewers11 folder from the appropriate location below to the WAR file's root folder.
    Windows:
    ...\Program Files\Common Files\Business Objects\3.0
    UNIX:
    <businessobjects_root>/java
    5. Open the web.xml file located in the WAR file's WEB-INF folder.
    6. Specify the location of the utility files used by the report viewers contained in the crystalreportviewers11 folder by inserting the following code below the <display-name> and <description> tags but within the <webapp> tag definition:
    <!-- Context Param -->
    <context-param>
    <param-name>crystal_image_uri</param-name>
    <param-value>crystalreportviewers11</param-value>
    </context-param>
    <!-- Context Param End -->
    7. Deploy the WAR file to your J2EE application server.
    You are now able to run an application that uses the BusinessObjects Enterprise XI Java SDK on a J2EE web application server.
    Jason

  • How to load objects in web application context during oc4j startup?

    Hi
    How I can put some objects in application context during oc4j application startup?
    I'm using oracle as10g j2ee and web cache edition.
    Thanks

    An idea would be to write your own OC4JStartup implementing class and have this thing create the objects you want and bind them to JNDI.

  • How change programmatically war context root inside ear

    Hi,
    We have an ear application containing a war.
    We need to specify by code at runtime the war application context root WITHOUT specifiy it in web.xml or application.xml deployment descriptor.
    Is it possibile?
    thanks in advance for help

    I found it. It is in the edit descriptor of the ear file, not war file. Sorry about that. My mistake.

  • How to change data source name and context root during deployment

    Hi,
    Env:
    WLS 10.1.3
    JDev 11.1.1.6
    Hudson
    I need to deploy two instances of my ADF application on the same development enviroment. We are using Hudson to deploy. My question is how to change data source name and application context root before second deployment.
    Kuba

    I don't believe there is an inbuilt facility to do this.
    Previously how I've done this is when checking files out using Hudson jovs, before the build I then use an Ant extension called XmlTask (http://www.oopsconsultancy.com/software/xmltask/) to modify the required XML files.
    Can I ask why you're doing this in the first place please? Multi-tenancy? 2 versions of the same app?
    CM.

  • Change the integrated deployment context root

    How do I change the context root of applications deployed with the integrated WLS instance? I created my own application.xml and put it in project_root/META-INF but this gets overwritten when the application is deployed.

    Hi,
    Ok, we know that it is easy to change the context-root as you explained from within jdev.
    My question is if I want to set the context-root to default "/ how can I do?
    Jdev dosen't accept to set the context-root to "/" (context root invalid) and if there is a valid context root it overwrites my application.xml when I deploy to ear.
    Any solution other that this workarround:
    after deploying to ear unzip it and change the application.xml to <context-root>/</context-root>
    Thanks
    Jamil
    Edited by: Jamil Nour on Feb 23, 2010 12:19 AM

  • Can I specify both /app and /apptest as context roots for my app?

    Greetings everyone.
    I want requests for both http://host/app/stuff and http://host/apptest/stuff to be handled by the same application.
    I don't want to make the application context root the domain root.
    Can I specify both /app and /apptest as context roots for the app in its sun-web.xml file or somewhere somehow?
    Is this an app server specific thing?
    Thanks,
    Bishop

    Sorry this was maybe the wrong forum for this.
    I reposted on http://forums.java.net/jive/thread.jspa?threadID=63818
    That thread has some more responses.

  • Running applications from root context

    Is it possible to set OC4J (10.1.3.4) up in such a way that are applications can be run as if they are all coming from the root context? In TOMCAT there is a setting emptySessionPath=true that one can set to achieve this.
    More on Tomcat setting:
    emptySessionPath="true" -The HTTP <Connector> declaration and the AJP/1.3 <Connector> declaration both contain 'emptySessionPath="true"' — this is necessary so that we can share session information between servlets and portlets by having the path on the session cookie be set to '/' instead of the path of the webapp. Without this, the portal webapp and the portlet webapp will get separate session cookies and therefore separate session IDs.

    Yes you can bind a specific web module to the root context, which means it can be accessed from "/" via the OC4J HTTP listener.
    However it looks like you are wanting to do more rather than just that, namely share sessions amongst different applications? If so, then that answer is no. OC4j session state is bounded to each web module.
    I've never looked at what it does, but there is a System property you can set for OC4J to override the cookie path
    oc4j.cookie.overridePath : The property key to use when the path for cookie should be set to a fixed string. When not set, it means that the application context path is used as the cookie path.
    If you set that to "" then I'm not sure what it does -- but I'm 99% sure the jsessionid cookie value will still be bound to the specific web module and not shared between modules.
    steve-

  • How can I get the web application's context root?

    I have a web application, which is defined in Tomcat's server.xml:
    <Context path="/cbes" docBase="e:\work\GM\code\CBESCurrency" debug="0"
    reloadable="true" crossContext="false"/>
    And I hava a servlet in this web application.
    How can I get the context root of the web application?
    in this example: reture should be "cbes" or "/cbes"
    how?
    thanks alot.

    getContextPath() in javax.servlet.http.HttpServletRequest

  • Problem with same application under two different context root

    JDev 11.1.1.6
    Does anyone have experience with such one scenario, so same app, but with two diff context root ?
    At a certain point, since both start to be used (and just in that case), at times there was a drastic deceleration, as if something is blocking some period. Subsequently, after some time, the application start to behave normally. I also periodically comes to acceleration and deceleration. In the log files there is no trace, no exception happens, nothing.
    And all this in a situation where both applications use only one user per app (so, the resources are not concerned)
    Any comments ?

    same app, but with two diff context root ?
    A web app packaged in WAR can have only one context root. Package a web app in two different WARs for two different context roots.
      weabpp1.war web.xml
    <?xml version='1.0' encoding='UTF-8'?>
    <weblogic-web-app>
      <context-root>context-1</context-root>
    </weblogic-web-app>
      weabpp2.war web.xml
    <?xml version='1.0' encoding='UTF-8'?>
    <weblogic-web-app>
      <context-root>context-2</context-root>
    </weblogic-web-app>

  • Can not get application bc4j for adding context root file

    Hi all,
    Can someone help me on this,
    i got this this error while trying to run my web based reporting:
    06/08/21 18:01:04 [SEVERE]: Error instantiating application at file:/C:/Documents and Settings/Bryan1/Desktop/Pattern Maching JSP 2006Feb/jdevstudio1013/jdev/system/oracle.j2ee.10.1.3.34.12/embedded-oc4j/applications/bc4j.ear: Unable to get ApplicationConfig for bc4j : Error creating deployment directory: IO Error: The system cannot find the path specified.
    06/08/21 18:01:04 [SEVERE]: Error instantiating application at file:/C:/Documents and Settings/Bryan1/Desktop/Pattern Maching JSP May2006/jdevstudio1013/jdev/system/oracle.j2ee.10.1.3.34.12/embedded-oc4j/applications/ITS.ear: Unable to get ApplicationConfig for ITS : Error creating deployment directory: IO Error: The system cannot find the path specified.
    2006-08-21 18:01:07.265 WARNING J2EE_OJR0007 Can not get application bc4j for adding context root file:/C:/Pattern Maching JSP May2006/jdevstudio1013/jdev/system/oracle.j2ee.10.1.3.34.12/embedded-oc4j/config/default-web-site.xml
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 5282 ms.
    Target URL -- http://192.168.2.55:8988/Trans-Reporting-context-root/login.jsp
    06/08/21 18:01:07 Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview initializedIF i run http://192.168.2.55:8080/Reporting/login.jsp from web browser then is ok, but cannot straight run from JDeveloper? How to set the path?
    rgds,
    bryan

    Dear Frank,
    Thanks for ur reply but i still failed to access to my login.jsp
    I already select RUN from menu then clean <XXXX.jpr>, then rebuild the project and Run the project but still have the same problem.
    rgds,
    bryan

  • Context root for web Module application (with slash)

    We are on PI 7.31. I am getting URL not found error with web application in certain cases. Initially, i had thought it was not working because of the Slash. Later I realized it was happening with only keyword 'inbound'.
    Edited:
    my alias (context-root) starts with "inbound" and that is the problem.. For me when i try anything other inbound it works..
    For some reason, when I put my context-root as 'inbound' it gives me the message that URL does not work. All other context roots with  and without "/"(slash) works.

    Okay, The URL prefix in the SMICM is generated from the Services/external Alias defined in the SICF. Unfortunately in the new PI 7.31 environment, the URL prefix is stripped down to the first level.
    In our case, we had the URL (/inbound/xxx/yyy) which was SICF service. As a result our URL prefix was stripped to /inbound/. When we developed a java webmodule with URL /inbound/zzzz, it gave service not active error.
    We are creating a message with SAP to see if this will be the standard behavior going forward. Anyone encountered such an issue before?
    Moderators, I guess this question needs to be moved to a different topic thread. Wondering if I should close this thread and open a new one ?

  • WebLogic 10.3 , ear file, application.xml only finds first context root

    I just can't find out what this is. I have two web service projects (JAX-WS) and am trying to put them in an .ear file to deploy to WebLogic 10. Normally, this is done by creating an .ear with both projects .war files in it and an application.xml file in the META-INF directory that defines the context-root for each .war file. However, nothing I do for WebLogic 10 seems to work, it only see's the first context-root and sets that same context-root for both web services. I have verified this by switching the order in the application.xml file. Also, this exact same .ear file deploys to the Sun Enterprise Server (Glassfish) and acts correctly. Using a weblogic.xml file in each .war and deploying them individually they end up having the correct context root, just not from an .ear using application.xml. I even tried deleting the application.xml file and just having the weblogic.xml files in each .war define the context root and it still only came up with one context root for both. It's as if only one context root is allowed in an .ear for WebLogic 10, which can't be correct as we are doing this on WebLogic 9.2 (JAX-RPC) with multiple .war files in an ear.

    Hi,
    Try to increase severity of the server logging to avoid more logging.
    Avoid Debugs and and info and better select the severity to notice which will avoid more logging.
    Regards,
    Kal

  • Context Root for WebDynPro Applications

    Is it possible to give a custom context root for a WebDynPro Application?
    Ex: http://localhost:50000/myapp
    Thanks and Regards
    Chandu

    Hi,
    If u r talking about Custom Controller context , it is possible.For every WD component bydefault one component controller will be there and u can create any no of custom controllers.Both r faceless entyties and work as globel resource for any views in the component.
    Regards,
    Srikanth Reddy.T

  • Different application but with same context root

    hi all,
    I have two applications www.a.com and www.b.com deployed on two separate oc4j instances, both of the context root are also set to "/". But i found that only the www.b.com is correct, when i goto www.a.com, it will goto the page of www.b.com. How can i make the right cofiguration? I'm using oracle 10g AS (ver. 10.1.2.0.2).
    I have search around the forum and seems no one have similar question, can anyone answer me this newbie question. Thanks alot.

    thanks for your reply.....i'm a newbie on the oracle AS.. let me elaborate more on my situation...
    I'm using oracle http server, and i have setup 2 virtual hosts (one is for www.a.com, and the other is www.b.com) as following:
    <VirtualHost default:80>
    ServerName www.a.com
    DirectoryIndex index.html
    DocumentRoot "C:\OraHome_1\j2ee\test1\applications\App1"
    </VirtualHost>
    <VirtualHost default:80>
    ServerName www.b.com
    DirectoryIndex index.html
    DocumentRoot "C:\OraHome_1\j2ee\test2\applications\App2"
    </VirtualHost>
    At the AS, i created 2 oc4j instances which is testInstance1 and testInstance2. And then i deployed my two applications to the instance separately, but the context root are also set to "/". After that, i found that in the mod_oc4j.conf, it shows the following statement in it:
    Oc4jMount / testInstance1
    Oc4jMount /* testInstance1
    Oc4jMount / testInstance2
    Oc4jMount /* testInstance2
    i hope that is clear enough now for you to solve my problem. If not, please let me know... thanks.

Maybe you are looking for