I want to set context path to ""

Can I set context path to "" like as Tomcat ?
          tomcat server.xml
          <Context path="" docBase="webapps/ROOT" debug="0" reloadable="true"
          >
          </Context>
          I set weblogic.properties as below
          weblogic.httpd.webApp.=C:/somewebapp
          It seems to work well.
          But actually WLS see weblogic/myserver/public_html.
          Please give me any advise.
          Thanx.
          ikedatka
          

I think what you are looking for is called the "default web application",
          which answers to the "/" path. Luckily someone else already answered this
          question, so I can look intelligent:
          > The answer is to set up a weblogic property:
          >
          > weblogic.httpd.defaultWebApp=<web-app-name>
          >
          > If you do this you don't need to type:
          >
          > http://localhost:7001/<web-app-name>/<the-rest-of-the-URL>
          >
          > you can just say
          >
          > http://localhost:7001/<the-rest-of-the-URL>
          >
          >
          > --kumar allamraju
          Peace.
          Cameron Purdy
          "ikedatka" <[email protected]> wrote in message
          news:[email protected]..
          > Can I set context path to "" like as Tomcat ?
          >
          > tomcat server.xml
          > <Context path="" docBase="webapps/ROOT" debug="0"
          reloadable="true"
          > >
          > </Context>
          >
          > I set weblogic.properties as below
          >
          > weblogic.httpd.webApp.=C:/somewebapp
          >
          > It seems to work well.
          > But actually WLS see weblogic/myserver/public_html.
          >
          > Please give me any advise.
          > Thanx.
          >
          > ikedatka
          >
          

Similar Messages

  • I want to set context path to 1 character like "/a"

              I use WLS6.1.
              I'd like to access
              http://localhost:7001/a/servletname
              to web application "a" or "a.war".
              but it doesn't seems work.
              (Returned "Http Error 404")
              Can't I set context path to 1 character,
              like "/a","/b",..."/z",etc?
              thanks for your answer.
              Kurose
              

    In this case you probably should submit this to [email protected] - it
              definitely looks like a bug. BTW, did you try 6.1sp1? This bug looks
              so obvious, so it's possible it was fixed in sp1.
              Kurose <[email protected]> wrote:
              > Thanks your reply.
              >>Maybe the problem you have is similar - does it work if you deploy
              >>aaa.war instead of a.war (and try http://localhost:7001/aaa/servletname)
              >>?
              > It works when WAR-File name is aa.war(Only 2 characters).
              > <http://localhost:7001/aa/servletname>
              > And on WLS6.02,a.war works.
              > <http://localhost:7001/a/servletname>
              > On on WLS6.1 it doesn't work.
              >>Did you application deploy successfully?
              > No exception when application was deployed.
              > But done "undeploy => deploy" on AdminConsole,
              > exception is occurring.
              > Dimitri Rakitine <[email protected]> wrote:
              >>Did you application deploy successfully? There is(was?) a bug
              >>in 6.1 using File.createTempFile which was preventing war's with
              >>archives in WEB-INF/lib with names less than 3 characters from
              >>working.
              >>
              >>Maybe the problem you have is similar - does it work if you deploy
              >>aaa.war instead of a.war (and try http://localhost:7001/aaa/servletname)
              >>?
              >>
              >>Kurose <[email protected]> wrote:
              >>
              >>> I use WLS6.1.
              >>
              >>> I'd like to access
              >>> http://localhost:7001/a/servletname
              >>> to web application "a" or "a.war".
              >>> but it doesn't seems work.
              >>> (Returned "Http Error 404")
              >>
              >>> Can't I set context path to 1 character,
              >>> like "/a","/b",..."/z",etc?
              >>
              >>> thanks for your answer.
              >>
              >>> Kurose
              >>
              >>
              >>--
              >>Dimitri
              Dimitri
              

  • Set Context Path

    I wish to separate customer specific jsp codes in different directory. All jsps are stored in a directory "/jsp".
    Within this there is another directory "cust_jsp" , where I moved the customer specific code. This customer code links to other jsps in the parent directory (/jsp).
    When I visit the customer specific code and then try to go to other link, it tries to look for them in the current directory. What I want, is that it should look for any hyperlinks from the web-apps root directory.
    I guess, I can use request.getContextPath() and then append this in front of the hyperlinks. But doing this would require a lot of change in the application.
    Is there any other way, where i can set the context path to the root so it looks for the files from the web-apps root directory.
    Thanks for your help.
    RM

    if you are using eclipse or WSAD you could set the context path in Project>properties>web

  • How to set local path for load library

    Hi,
    How do i set local path for native dll as i dont want to set the path in the environment variable.
    can i do like this
    System.loadLibrary("c:\abc");
    Thanks

    I believe that System.load() does exactly the same thing, but accepts fully qualified filenames. So give that a try.
    Failing that.... maybe you can add -Djava.library.path=
    to your command line to explicitely override the path set ?
    regards,
    Owen

  • PermissionDeniedException while setting conext path in merchandiser dyn admin

    Hi All,
    I created a project in BCC using admin user and when I tried setting context to that project in merchandiser dyn admin, i got permission denied exception.
    javax.ejb.EJBException: QUERY_EXCEPTION_MESSAGE: RQL query: status = ?0 RANGE ?1+?2, Args: ?0=Active ?1=0 ?2=5000 ; nested exception is: CONTAINER:atg.repository.RepositorySecurityException; SOURCE:atg.security.PermissionDeniedException: You do not have read access to the project item descriptor.
    at atg.repository.tojava.runtime.RJSupport.executeRqlStatement(RJSupport.java:1045)
    at atg.epub.project._ProjectHome_ReposImpl.findProjectsByStatus(_ProjectHome_ReposImpl.java:131)
    at atg.service.dynamo.admincontext.ProjectAdminContextProvider$1.doInTransaction(ProjectAdminContextProvider.java:222)
    at atg.service.dynamo.admincontext.ProjectAdminContextProvider$1.doInTransaction(ProjectAdminContextProvider.java:217)
    at atg.dtm.TransactionUtil$TypedTransactionAction.doWithTransaction(TransactionUtil.java:95)
    at atg.service.dynamo.admincontext.ProjectAdminContextProvider.getAvailableOptions(ProjectAdminContextProvider.java:217)
    at atg.service.dynamo.admincontext.AdminContextFormHandler$ProviderAndCurrentContext.(AdminContextFormHandler.java:366)
    at atg.service.dynamo.admincontext.AdminContextFormHandler.getProviderAndCurrentContexts(AdminContextFormHandler.java:327)
    How Can I add permission to the user to set context path in merchandiser dyn admin.

    Sorry forgot to update the post, I have tried following and failed:
    admin user being super-admin, I have added read,write,creare,delete privileges to it.
              I have tried adding guper-admin to both process and project item-descriptors in atg/epub/publishingSecurity.xml acl.
              <acl-property name="acl" />
                 <descriptor-acl value="Profile$role$ePubSuperAdmin:read,write,create,delete;   Newly added profile privileges
                                                           Profile$role$epubAdmin:read,write,create,delete;                       
                                                           Profile$role$epubManager:read,write,create,delete;
                                                           Profile$role$epubUser:read,write,create,delete;
                                                           Admin$role$administrators-group:read,write,create,delete" />
    On that page I was able to set context, but for other pages(components) Same exception came.
    Is there any problem with newly added acl-value: Profile$role$ePubSuperAdmin:read,write,create,delete?
    Also let me know if other changes are required.
    Thanks,
    Nitin.

  • Set the path of SAP HELP

    Friends,
            My Basis Admin want to set the path of SAP HELP which is not working currently, so will you pls. tell us the way through which my Basis friend can set the path for it.
            Thanks
    Hitz

    Hi Hitesh,
    Refer to the link
    <a href="http://www.sap-basis-abap.com/sapbs028.htm">http://www.sap-basis-abap.com/sapbs028.htm</a>
    Hope it helps...
    Lokesh
    pls. reward appropriate points by clicking the stars on the left side

  • How to set the servlet context path manually in Tomcat web server.

    I tested some servlets by putting them in the folder , which the tomcats examples application uses (ie Tomcat 4.1\webapps\examples\WEB-INF\classes\) and it appeared to be working fine.
    I was calling the servlet like this : http://localhost:2006/examples/servlet/TestServlet
    But when I installed my own WAR file in the server , the servlet is not working now. now the new location of my servlets is : Tomcat 4.1\webapps\MyApp\WEB-INF\classes\
    and I'm trying to call the servlet like this : http://localhost:2006/MyApp/servlet/TestServlet
    The error , what i'm getting is :
    description :The requested resource (/MyApp/servlet/TestServlet) is not available.
    Some body please tell where I'm making the mistake ? I believe this may have something to do with the servlet context path setting. If anybody has any idea , how to set the path..will be much appreciated.

    Thanx for your reply , at first I was not using any web.xml(since not mandatory) but even after using the web.xml file the error is coming . Please have a look into the contents of the web.xml file and let me know if you find any problem...
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <servlet>
    <servlet-name>TestServlet</servlet-name>
    <servlet-class>TestServlet</servlet-class>
    </servlet>
    </web-app>
    one more thing I would like to tell you here. I was just looking into the configuration of Iplanet web server..I found that , there are options to set the servlet container path (like : - Prefix: /servlet
    Servlet Directory: /ecomm/iplanet/nes60/product/docs/container )
    so from here I came to know that "container " is the folder where we should put our servlets and it has URI as "servlet" but yet I'm not able to find any option in the Tomcat Web server to set the servlet container to any different directory.
    If you have any idea please let me know.

  • Finding the context path or docBase in a backing bean - Howto

    How should I go about finding the context path or docBase in a backing bean?
    Is there anyway to get this from glassfish or jsf? GlassFish proudly displayed it on the Application Server > Applications > Web Applications > page. It puts it there with an EL for example:
    ${com.sun.aas.instanceRoot}/applications/j2ee-modules/jsf-witaCan and/or should I try to use it in a backing bean? i.e. can I rely on it to stay defined?
    Or should I make a property which I can set for my backing work?

    Is this what you want?
    FacesContext.getCurrentInstance().getExternalContext().getContext()

  • Context path

    I have a web app in a war called my_war which is in an ear called my_ear
    I have a jsp page called hello.jsp in directory "dude" (i.e. the directory structure in the war has a directory /dude with hello.jsp in it)
    So to get to this page in my browser, I type
    http://ip_address/my_ear/dude/hello.jsp
    Note that by default, it uses the ear name which seems pretty sensible.
    If I put <%=request.getContextPath()%> in this jsp page, I get "/my_ear"
    This is also what I expected and I'm happy so far, I will refer to this value as the "context path"
    Now say I have another jsp page dude2/booya.jsp
    I want an html link between the 2.
    I could get this by <%=request.getContextPath()%>/dude2/booya.jsp
    I know I could also probably go ../dude2/booya.jsp, but I'd rather not.
    To make my design a bit nicer, I would prefer to avoid calling <%=request.getContextPath()%> each time I want to get the context path. I'd rather store it globally. It can't change right?
    Is there a way to get the context path on deployment of my web app.
    e.g from the init method of a servlet that is set to load-on-startup

    The context path can change if you deploy the war or ear differently. There is a context path setting in application.xml in the ear's META-INF. Your best bet is to use inheritance. You can make your JSPs/servlets extend a base servlet which could add another parameter to the service signature. That's kinda how JSP gets its other auto defined locals like request, response, and out. The downside is that you'd have to declare the new method in your JSPs unless you wanna get into creating/modifying the JSP servlet generator. I dunno, maybe that's not such a hot idea after all.
    Cliff

  • How can i set a path for my deployment files in weblogic server 10.3

    Hi
    How can i set the path for my WAR ,JAR files while deploying.i am using the wls10.3 version.
    is there any scripts for this ,please provide me.
    my Application is ADF 11g application.

    By "path", I assume you mean "classpath".
    The simplest way is simply to include the jars you need inside the web application or web module's WEB-INF/lib directory, EJB module's META-INF/lib directory, or EAR lib directory.
    If that's not practical, if you use NodeManager to start your servers, you can go to the "Server Start" tab in the server definition in the WebLogic console and edit the "Classpath" field, which defaults to no value. You can specify a classpath value there. Note that if you specify a value there, it REPLACES the default classpath for the server, it doesn't add to it. If you need to just add to it (a much more likely scenario), if the value references the value "$CLASSPATH" in it, that will reference the original classpath value that the server would have had.
    So, for instance, if you wanted to include the MQ jars in the server classpath, you could set a value like this:
    /usr/java/mq/lib/mq.jar:/usr/java/mq/lib/mqstuff.jar:$CLASSPATH

  • How to set the PATH in Terminal?

    As a newbie to Bash and the Terminal, in connection with installing a new version of Ruby and various add-ons, I have been messing around with changing the PATH via various methods I've found on the internet, and trying to add a new directory to my PATH. Unfortunately, I cannot figure out how to set the PATH correctly. Here is what I understand so far:
    1. Bash first looks to ".bash_profile" in the home directory for PATH settings.
    2. If none, Bash then looks to ".bash_login" for PATH settings.
    3. If none, Bash then looks to ".profile".
    4. If none, Bash then looks to a system file in "/etc/profile" for default PATH settings.
    5. For a new shell after login, Bash looks for a ".bashrc" file.
    I cannot find any of the above files (I have Finder set to show hidden files already). Somehow, following some instructions from the internet without really knowing what I was doing over the past week I have set my PATH as follows:
    /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/*****/src:/usr/X11/bin
    but I cannot find the file that is setting this PATH. I have tried creating a new ".bash_profile" shell file and putting it in various places such as "/bin" and "/usr/bin" but the file is not being read.
    * As a temporary workaround I tried using the command "source .bash_profile" upon login to set the PATH using the .bash_profile file that I created, but it does not work.
    * I am able to temporarily alter the path using the command "PATH=/usr/local/bin:$PATH" but this only lasts for an active shell; when I close out and reopen a new shell, it reverts to the default.
    So my questions are:
    Is it correct that there is a "/etc/profile" somewhere that is setting the default PATH? If so where is it? Should I alter it, or create a new ".bash_profile" somewhere to set the PATH? If not, where is my PATH being set? If I should create a new ".bash_profile", what exactly should go in it?
    Thanks in advance for any assistance.

    ... I created a new ".bash_profile" file directly under my home directory and it worked like a charm. Below is the content of the file:
    "PATH=/usr/local/bin:/bin/:/sbin/:/usr/bin/:/usr/sbin/:/Users/******/Ruby:/Users/*******/src:/Users/******/Java Programs/"
    What are the "..."'s? Is that just you, or is the contents of the file actually inside of double quotes?
    is there an 'export PATH' also in the file? As in
    PATH=/usr/local/bin:/bin/:/sbin/:/usr/bin/:/usr/sbin/:/Users/******/Ruby:/Users/*******/src:/Users/******/Java Programs/
    export PATH
    And did you either restart your Terminal session so your .bash_profile was read, or issue a 'source .bash_profile' command to execute the .bash_profile after your change?
    The only remaining problem is that from the home directory, I'm unable to directly run programs in the above-designated subdirectories (without first navigating to the subdirectory containing the file. Is there something wrong with the syntax or order of the directories I put in the path?
    For example: there is a file called "newprogram.rb" in the "Ruby" directory listed above. I should be able to execute it from the home directory using "ruby newprogram.rb" but it does not work. The same command works fine from within the "Ruby" directory.
    Does the 'ruby' command search PATH to find its scripts?
    Have you read the "man ruby" man page to see if it talks about PATH?
    A common Unix feature is that programs and scripts with the executable bit set, and are located in a PATH directory, will be run if you just type their names.
    For example, if the first line of newprogram.rb script starts with
    #!/usr/bin/ruby
    and if the script is executable
    chmod +x newprogram.rb
    And if it is in a directory in PATH, then just typing
    newprogram.rb
    should run your perl script using /usr/bin/ruby. If you want to use a different version of Ruby, then change the #! line so it point to your version of Ruby. Or if your version of Ruby is found earlier in PATH then the /usr/bin/ruby, you can use
    #!/usr/bin/env ruby
    as your script's first line which will search PATH for 'ruby' and use the first one it finds.
    Message was edited by: BobHarris

  • How to set the path variable on Windows ME?

    I want to get a friend of mine to start using java the only problem is that we both dont know how to set the path variable in Windows ME. I cant seem to find any instructions on it for ME. So if someone could please tell me how or give me a llnk to directions for Windows ME. Thanks.

    Refer to the Installation Instructions for the package that you installed - I believe #5 if the instructions has the information. A link to the instructions is at the page you installed from.

  • Can't set directory path in a JTextField

    I've tried to set some directory paths in a JTextField, but nothing displayed in that the JTextField. However, i can print the directory paths one at a time to the console. The following is the code and will explain what I am trying to do:
    fileDialog.showOpenDialog(this);
    File[] classpath = fileDialog.getSelectedFiles();
    if(classpath.length == 0)
    return;
    String cp = "";
    for(int i = 0; i<classpath.length; i++){
    //System.out.println(classpath.getPath());
    cp.concat(classpath[i].getAbsolutePath());
    System.out.println(cp);
    jTextField_cp.setText(cp);
    if I uncomment the first print statement,each path will be shown on a new line in the console. But when I want to print the pathes of the directories in one time( concatenate them first), there's no output at all (the second print statement), I only got some empty new lines in the console. Is it any problems with the use of "cp.concat()" method?

    I'm pretty sure that it'll work if you replace your concat line with this.
    cp = cp.concat(classpath.getAbsolutePath());Java strings are passed by the value of their references, so you are only manipulating the value of the reference, the the string itself, unlike other objects. To work around that, assign cp the new string returned from the concat method.

  • Get context path in a jsp without using a scriptlet

    Hi Guys
    I am using Scriptlet to get a application context path in a JSP. I want to get the context path with out using an scriptlet in a JSP, is there way to achieve this..?
    <%=request.getContextPath() %>/listofvalues.do?method=viewListOfValues thanks in advance.
    Regards
    Praveen
    Edited by: praveen_kumarvr on Jul 3, 2008 8:30 AM

    ${pageContext.request.contextPath}A common practice is to put this value in the <base href> in the HTML head and then use this as the root for all of the relative URL's in the page.

  • Trobule in saving log in file which is in my context path

    Hello all, i am facing problem while saving log into Log file from servlet. I am using Log4j library and eclipse as IDE. When i push any log information to log file, it make log file default to eclipse path not in my servlet context path. I am using log4j.properties file for configuration. Which has following contents :
    log4j.rootLogger=DEBUG, FA
    log4j.appender.FA=org.apache.log4j.FileAppender
    log4j.appender.FA.File=log.txt
    log4j.appender.FA.layout=org.apache.log4j.PatternLayout
    log4j.appender.FA.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
    and servlet code for configuring properties file is : PropertyConfigurator.configure(context.getResource("/log4j.properties"));
    what when i push content to log.txt it create file in my eclipse path. How can i set the file path as my context path for log.txt?
    thanks in advance.
    sanjeev

    I don't know such way. But maybe You can read the file when application starts (in ServletContextListener) and change this property when it's already running. Don't know if this helps, but may try.

Maybe you are looking for

  • Audigy 4 pro sta

    I am having issues with my new Audigy 4 pro emitting static. Sometimes it's really loud, and other times a low static hum. I have disabled the on board sound, changed the pci slot, where the internal card sits, uninstalled all of the software, and re

  • Error when create a set of recovery disc . In HP Pavilion G6-2103TU Laptop

    Dear friends.               when i create a set of  recovery disc in DVD-R.Error  occur (we are experiencing errors in recovery media  creation.tray again ).  Two  disc already create at 3rd disc  this problem facing.helps me. jyoti prakash Jyoti pra

  • Zen:M Battery death!!!!!a last hope!

    A few months ago, I bought a wall charger(Creative Switching adaptor model:tesa9g-0502400).Suddlenly when?I connected?the Mp3(vision zen:m) to the wall charger,the screen turned black! and shut down!!since that moment,each time I connect the Mp3 to t

  • Problem opening PDF from Google search

    Hi , I;m a newb to the  BB Torch 9810 and was wondering why , when I click on a link (Google search) , ffor a specific PDF file , my BB wants to save the file , rather than open it . How do I correct this problem , so the file will open and I won't b

  • Transferring contacts via bluetooth

    Hi all, I just bought a new nokia E66 phone and trying to transfer all my contacts from the old phone (nokia 6300)to the new or at least to my computer by bluetooth but I couldnt figer out how to do that with the nokia 6300. if anyone can help me wit