Tomcat 5.x, context.xml and the caseSensitive attribute.

Hi,
I have already configured a context.xml file in the CATALINA_HOME/conf/Catalina/localhost with the following content:
<Context path="/mysite" docBase="${catalina.home}/webapps/mysite" reloadable="true"/>
It is working, because the servlets can be reloaded after a modification. My goal is to make the URL recognition of the server for may web application case-insensitive. There is an attribute caseSensitive in the <Context> element? Is that right? And this can turn off case-sensitivity of this web application. This means it should also affect the URL recognition. But wen I change the line in the context.xml to
<Context path="/mysite" docBase="${catalina.home}/webapps/mysite" reloadable="true" caseSensitive="false"/>
and try to access the URL with different case then the original it does not find the page. Is this the right place to put the caseSensitive attribute?

i am posting the Car.xml which i created in
/conf/catalina/localhost directory in Tomcat 5.5.7
?xml version='1.0' encoding='utf-8'?>
<Context path ="/Car" docBase="C:\Program
Files\Apache Software Foundation\Tomcat
5.5\webapps\Car" debug="0" />Rather than have you working directory under webapps, you can have it elsewhere in your system and refer to it using the docBase attribute. For example, say you have your work directory in d:\work\car,
then
<?xml version='1.0' encoding='utf-8'?>
<Context  path ="/Car" docBase="d:/work/car"  />would suffice.
cheers,
ram.

Similar Messages

  • Mapping of Web App context root and the physical directory of the web app

    I'm running Weblogic 7.0 on Windows2000.The physical directory of my web application
    is D:\WL8\weblogic81\TestDeploy\build\TestWebApp and under these directory I have
    my JSPS, static HTML and WEB-INF. I define the context path of this web app in
    the weblogic.xml ;-
    <weblogic-web-app>
         <context-root>/testapp</context-root>
    </weblogic-web-app>
    As a result of deploying this web app in the server (or it may be created manually
    also), the following entry gets inserted in the server's config.xml ,-
    <Application Deployed="true" Name="TestWebApp"
    Path="D:\WL8\weblogic81\TestDeploy\build" TwoPhase="true">
    <WebAppComponent Name="TestWebApp" Targets="myserver" URI="TestWebApp"/>
    </Application>
    Now, whenever I make a request of the form "http://localhost:7001/testapp/..",
    it's properly executing my web app. My question is, how does the container knows
    that for any request for the web app with context path as 'testapp', it has to
    server files from D:\WL8\weblogic81\TestDeploy\build\TestWebApp. In the above
    process, nowhere such mapping is specified. I expected something like Tomcat's
    server.xml, where in docbase we clearly specify this mapping between the context
    path and the physical directory. Please help.

    Let me give some more details and hopefully this will make things clearer.
    Say you deploy /foo/bar/myweb.war and in myweb.war you configure a
    context-root of /rob
    During deployment, the server creates an ApplicationMBean with a path of
    /foo/bar/. It then creates a WebAppComponent with a uri of myweb.war.
    Next, deployment calls back on the web container and tells it to deploy
    the WebAppComponent. The web container reads the myweb.war, parses
    descriptors etc. The web container then updates its data structures to
    register that myweb.war has a context path of /rob. (It has to figure
    out all the other servlet mappings as well.)
    When a request for /rob/foo comes in, the web container consults its
    data structures to determine which webapp and servlet receives the
    request. This is not a linear search of all webapps and servlets.
    There's much better ways to do pattern matching.
    Hope this clears things up. Let me know if you still have questions.
    -- Rob
    Arindam Chandra wrote:
    Thanks for the answer. Still one thing is not clear. Whatever context path I declare
    for my web app as the value of <context-root> element in the weblogic.xml (in
    my example it's "/testapp"), it is no where mapped with the "URI" attribute (or
    any other attribute, sub-element whatsoever in the <Application> element).
    Application Deployed="true" Name="TestWebApp"
    Path="D:\WL8\weblogic81\TestDeploy\build" TwoPhase="true">
    <WebAppComponent Name="TestWebApp" Targets="myserver" URI="TestWebApp"/>
    </Application>
    So when a request of the form http://myweblogic.com:7001/testapp/... arrives at
    the server, how does the server knows that it has to serve this request with files
    from D:\WL8\weblogic81\TestDeploy\build\TestWebApp ? It should not be like the
    web container iterates thru all the web application entries in config.xml and
    tries to match with one context-root declaration. I repeat, I expected some mapping
    similar to Tomcat's server.xml, where in the <docbase> element u clearly specify
    the mapping between the context path and the physical directory
    Rob Woollen <[email protected]> wrote:
    Arindam Chandra wrote:
    I'm running Weblogic 7.0 on Windows2000.The physical directory of myweb application
    is D:\WL8\weblogic81\TestDeploy\build\TestWebApp and under these directoryI have
    my JSPS, static HTML and WEB-INF. I define the context path of thisweb app in
    the weblogic.xml ;-
    <weblogic-web-app>
         <context-root>/testapp</context-root>
    </weblogic-web-app>
    As a result of deploying this web app in the server (or it may be createdmanually
    also), the following entry gets inserted in the server's config.xml,-
    <>So the server will look for your web application at the Application Path
    (D:\WL8\weblogic81\TestDeploy\build|) + the web uri (TestWebApp). So
    it
    maps the context-root you've specified /testapp to that path.
    It's a little clearer in the case where you had a full-fledged EAR.
    Then you'r application path would map to the "root" of the EAR, and the
    uris would point to the various modules (eg webapps.)
    -- Rob
    Now, whenever I make a request of the form "http://localhost:7001/testapp/..",
    it's properly executing my web app. My question is, how does the containerknows
    that for any request for the web app with context path as 'testapp',it has to
    server files from D:\WL8\weblogic81\TestDeploy\build\TestWebApp. Inthe above
    process, nowhere such mapping is specified. I expected something likeTomcat's
    server.xml, where in docbase we clearly specify this mapping betweenthe context
    path and the physical directory. Please help.

  • How to create a user using XML and specifying addional attributes that are objects

    I'm trying to create a user using XML and specifying some attributes that are objects and not sure how to do it. How would I set the DirectoryUserAcl to Public?
    Here's the xml file:
    <?xml version = '1.0' standalone = 'yes'?>
    <SimpleUser>
    <UserName>mike2</UserName>
    <Password>abc123</Password>
    <AdminEnabled>false</AdminEnabled>
    <HomeFolderRoot>/home</HomeFolderRoot>
    <HasContentQuota>false</HasContentQuota>
    <DirectoryUserAcl> ??? </DirectoryUserAcl>
    <DefaultAclBundleAcl> ??? </DefaultAclBundleAcl>
    <HomeFolderPolicyBundleAcl> ??? </HomeFolderPolicyBundleAcl>
    </SimpleUser>

    I figured out the answer:
    <?xml version = '1.0' standalone = 'yes'?>
    <SimpleUser>
    <UserName>mike2</UserName>
    <Password>abc123</Password>
    <AdminEnabled>false</AdminEnabled>
    <HomeFolderRoot>/home</HomeFolderRoot>
    <HasContentQuota>false</HasContentQuota>
    <DirectoryUserAcl classname="SystemAccessControlList" refType="name">Public</DirectoryUserAcl>
    </SimpleUser>
    null

  • Difference between the binding and the value attribute of an Oracle ADF com

    Can somebody please tell me the difference between
    the binding attribute and the value attribute of any oracle ADF component such as inputText and when would we use one over the other.
    THanks,

    Value represent the value that is going to be displayed by the item.
    Binding indicate the backing bean object that represents the instance of the component.

  • Tomcat 5.5 context.xml, how to configure the Host element

    [Probably this question should be asked elsewhere, if so please advise]
    Dear all,
    I understand that Tomcat 5.5 prefers that your web application comes with a context.xml file under the META-INF folder.
    So I added a context.xml file under the META-INF folder of my web application,
    please have a look below.
    context.xml
    <Context path="" docBase="C://Program Files//Apache Software Foundation//Tomcat 5.5//webapps//test">
         <Resource
              name="jdbc/testDB"
              factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
              auth="Container"
              type="javax.sql.DataSource"
              maxActive="10"
              maxIdle="5"
              maxWait="10000"
              removeAbandoned="true"
              removeAbandonedTimeout="60"
              logAbandoned="true"
              username="username"
              password="password"
              driverClassName="com.mysql.jdbc.Driver"
              url="jdbc:mysql://localhost:3306/test" />
    </Context> Ok, that is good so far, but how do I configure the Host element.
    I mean how do you link a specific Host to a specific Context?
    Before, the Context element was a sub element of the Host element,
    now it is completely separated.
    Host in server.xml
    <Host name="www.test.com" deployOnStartup="true" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
         <Valve
              className="org.apache.catalina.valves.FastCommonAccessLogValve"
              prefix="test_access_log."
              suffix=".txt"
              pattern="common"
              directory="C://Program Files//Apache Software Foundation//Tomcat 5.5//webapps//test//logs"/>
    </Host> I assume that if I modify the appBase of the Host element from webapps to webapps/test then it would work, but if I have several
    Contexts for the specific Host, how should I configure it then?
    Please help by giving examples!

    OK, I have changed the Host's appbase to webapps/mytestapplication.
    I want to deploy a test.war under the appbase:
    webapps/mytestapplication/test.war
    The name of the host is www.test.com
    Because the war file is not named ROOT.war (instead it is named test.war),
    the URL to the test application would be www.test.com/test.
    Now I have several relative anchor links in the test application
    Say for example the test application is deployed and accessed through www.test.com/test.
    Clicking on the aboutus link would change to URL to www.test.com/aboutus.html.
    Instead, for this to work, the URL must be www.test.com/test/aboutus.html.
    Obviously, the easiest solution is to add /test before each anchor link:
    But the there must a different solution.
    Adding a path to Context element did not work:
    <Context path="/test" ...>
    </Context>
    Question:
    1. what is the solution for the anchor scenario above, should I add /test before each link?
    2. Is my configuration (can be seen at the bottom) correct?
    Basically, I have removed the path and docBase attributes from the Context element.
    I have also set autoDeploy to false in the Host element.
    Here are a few paragraphs from the docs:
    autoDeploy attribute of Host element:
    "Finally, note that if you are defining contexts explicitly,
    you should probably turn off automatic application deployment.
    Otherwise, your context will be deployed twice each, and that may cause problems for your app."
    OK, so I set autoDeploy to false since I am defining contexts explicitly, (META-INF/context.xml)
    docBase attribute of Context element:
    The value of this field must not be set when the Context
    is configured using a META-INF/context.xml file as it will be inferred by the automatic deployment process.
    So, I remove the docBase attribute eventhough I am confused a bit.
    This is the part that confuses me:
    If autoDeploy is set to false since I am defining contexts explicitly,
    how can then anything be inferred by the automatic
    deployment process? (please answer!)
    There should not be any automatic deployment process when autoDeploy is set to false.
    path attribute of Context element:
    The value of this field must not be set except when statically defining a Context in server.xml,
    as it will be inferred from the filenames used for either the .xml context file or the docBase.
    Same as the Context element.
    Thanks!
    <Context>
         <Resource
              name="jdbc/testDB"
              factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
              auth="Container"
              type="javax.sql.DataSource"
              maxActive="10"
              maxIdle="5"
              maxWait="10000"
              removeAbandoned="true"
              removeAbandonedTimeout="60"
              logAbandoned="true"
              username="username"
              password="password"
              driverClassName="com.mysql.jdbc.Driver"
              url="jdbc:mysql://localhost:3306/test" />
    </Context>
    <Host name="www.test.com" deployOnStartup="true" debug="0" appBase="webapps/mytestapplication" unpackWARs="true" autoDeploy="false" xmlValidation="false" xmlNamespaceAware="false">
         <Valve
              className="org.apache.catalina.valves.FastCommonAccessLogValve"
              prefix="test_access_log."
              suffix=".txt"
              pattern="common"
              directory="C:/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/mytestapplication/test/logs"/>
    </Host>

  • Auto Config Tomcat 5.5 Context.xml

    I am trying to set up my app so no Data Source configuration is necessary in Tomcat 5.5 here is my context.xml anybody have any ideas why this isn't working?
    <?xml version='1.0' encoding='utf-8'?>
    <Context displayName="ElegantMailingTest" docBase="/opt/tomcat5/webapps/ElegantMailingTest.war" path="/ElegantMailingTest" workDir="work/Catalina/localhost/ElegantMailingTest">>
    <Resource auth="Container" description="Rave Generated Data Source" name="jdbc/ElegantMailing" type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/ElegantMailing">
    <parameter>
    <name>factory</name>
    <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
    </parameter>
    <parameter>
    <name>driverClassName</name>
    <value>org.gjt.mm.mysql.Driver</value>
    </parameter>
    <parameter>
    <name>username</name>
    <value>jasonwpalmer</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>******</value> (I Obviously Removed)
    </parameter>
    <parameter>
    <name>url</name>
    <value>jdbc:mysql://localhost:3306/ElegantMailing?autoReconnect=true</value>
    </parameter>
    <parameter>
    <name>maxActive</name>
    <value>30</value>
    </parameter>
    <parameter>
    <name>maxIdle</name>
    <value>10</value>
    </parameter>
    <parameter>
    <name>maxWait</name>
    <value>10000</value>
    </parameter>
    </ResourceParams>
    </Context>

    Thank you Roman,
    I'm sure I have already read those posts before I posted, but somehow when I followed your links back there again, I got it right.
    Here is my context.xml that was successful with auto-config
    <?xml version="1.0" encoding="UTF-8"?>
    <Context path="/ElegantMailingTest">
    <Resource driverClassName="org.gjt.mm.mysql.Driver" maxActive="30" maxIdle="10" maxWait="10000" name="jdbc/ElegantMailing" password="788721" type="javax.sql.DataSource" url="jdbc:mysql://localhost:3306/ElegantMailing?autoReconnect=true" username="jasonwpalmer" validationQuery="select * from validation"/>
    </Context>
    Roman I have seen your replies all over the threads and I appreciate the time you spend helping us newbies out...really thanx!
    Jason

  • Tomcat 5.x context.xml problem

    Hi All
    Have been using Tomcat after a long time. Previously in Tomcat 4.x when one had to define their own conext say "car" you need to make changes in the conf/server.xml
    But Tomcat 5.x says u need to create a separate xml file in this case car.xml in the /conf/Catalina/localhost directory. I did the same and played around a bit but still i doesnt work
    Is there anything else that needs to be done other than this ? Has anybody faced the same prob
    thnks in advance
    cheers
    j2eerookie

    i am posting the Car.xml which i created in
    /conf/catalina/localhost directory in Tomcat 5.5.7
    ?xml version='1.0' encoding='utf-8'?>
    <Context path ="/Car" docBase="C:\Program
    Files\Apache Software Foundation\Tomcat
    5.5\webapps\Car" debug="0" />Rather than have you working directory under webapps, you can have it elsewhere in your system and refer to it using the docBase attribute. For example, say you have your work directory in d:\work\car,
    then
    <?xml version='1.0' encoding='utf-8'?>
    <Context  path ="/Car" docBase="d:/work/car"  />would suffice.
    cheers,
    ram.

  • XML and the use off &

    When entering a description, using the ampersand (&) character results in the character remaining but the word "amp" (&amp) is added
    trawlled the next - cant find anything bout this. I beleive that the & prob needs too be like "&" - but not 100% sure. help!

    Because the W3C says The ampersand character (&) and the left angle bracket (<) MUST NOT appear in their literal form, except when used as markup delimiters ..... Another version of that wording can be found under the Entity References section here

  • Restriction and the Fixed attribute and JAXB

    Hi
    I have what I believe is a valid XSD, with two complex types BaseType and OtherType. What I want is for BaseType (abstract) to have an attribute but no fixed value for it. OtherType would restrict the allowable values to just "Test". I have checked the XSD with xmlspy and the W3C site.
    so happy with the xsd I try to use JAXB to generate classes:
    xjc.bat -p com.me.test example.xsd -d gen
    but I get :
    [ERROR] derivation-ok-restriction.2.1.1: Error for type 'OtherType'. An attibute use in this type has a REQUIRED setting which is inconsistent with a matching attribute use in the base type.
    (removing the Fixed attribute solves it but I'd like to keep it)
    Any ideas?
    Thanks
    Des Field Corbett
    XSD Follows:
    ================================================================================
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xs:complexType name="BaseType" abstract="true">
    <xs:attribute name="name" type="xs:string" use="required"/>
    </xs:complexType>
    <xs:complexType name="OtherType">
    <xs:complexContent>
    <xs:restriction base="BaseType">
    <xs:attribute name="name" fixed="Test"/>
    </xs:restriction>
    </xs:complexContent>
    </xs:complexType>
    <xs:element name="root" type="OtherType"></xs:element>
    </xs:schema>

    Got it to work...
    My XSD had the line in BaseTypes:
    <xs:attribute name="name" type="xs:string" use="required"/>
    and the line in OtherTypes:
    <xs:attribute name="name" fixed="Test"/>
    Changing this to:
    <xs:attribute name="name" type="xs:string" use="required" fixed="Test"/>
    Got it to work.
    Not sure if this is a Bug in JAXB or its just being fussy... Sure going to make it a pain to hand code in the extra tags in to my real life XSD!
    If there is a better way I'd be grateful to know....
    Thanks
    Des
    BTW getting a java.lang.reflect.InvocationTargetException now - but as I'm just learning JAXB so I'm guessing thats something else.

  • Lync 2013 custom meeting requests and the CustomFooterText attribute

    Hi there,
    I've been playing around custom meeting requests in Lync 2013. I need to automatically add some lines of text for a Lync Meeting request, and have been using the CustomFooterText attribute. Unfortunately, this doesn't seem to support carriage return
    so all the text is dumped onto one line... and looks very messy.
    I've read on one of the posts, that this field supports HTML, and have tried pasting in some HTML codes, but it's still rendered as text in Outlook.
    The only way I've managed to do this is to save the desired output as an image, upload it to a web server, and use the -LogoURL switch instead, which essentially inserts a graphic... not ideal, but works.
    Does anyone know of a way to insert carriage returns into the CustomFooterText?
    Regards, James.
    James Frost

    Hi James,
    I did some research and testing but found no way to add a carriage return to have this text respect the formatting as entered.
    Best regards,
    Eric

  • External Context Mapping and "The Mapping to Node...Has Not Been Completed"

    Hi there,
    I've got 2 components: A, B where A consumes the data provided by B.
    I'm calling the component B which includes a view provided by A. This view (provided by A) needs data inputted by the user in a view in B.
    The context of B contains a node called MULTIVALUES flagged as Interface + Input Element Ext.
    The component A uses the component B, in the component usage interface controller of the component A I've referenced the component controller of A. I have then created a node in A's component controller and done the mapping from the component usage interface controller of A to A's component controller.
    The manually created component controller node in A is NOT an interface.
    Now when I invoke B I'm getting an error:
    The Mapping to Node COMPONENTCONTROLLER.1.MULTIVALUES Has Not Been Completed.
    What's still missing?
    Thank you!

    it is indeed much more complex and you need lot of understanding about the component instances and their life time.
    What i do normally for such complex cyclic dependency , i try to split the common part which is needed in bot component_a and component_b and create a new super component_s.
    Component_s is used in both components. You can even go further that you create view component which has nothing but the viewContainer UI elements to embed the views from component_a and Component_b.
    The view component has to create all the used components (comp_s,comp_a,comp_b) and after creating call the interface method in comp_a and comp_b to set the component usage of comp_s (use the if_wd_comp_usage=>entering-referencemode).
    In this way the comp_a,comp_b share the same instance of comp_s.
    What i am saying is to look for a solution in application architecture and not with in the exiting components coding.

  • Captivate 4, interaction SWF using XML and the Reviewer tool Problem

    Hello everyone!
    I am an advanced AS3er and am only months old working with Captivate 4. I've found some cool ways to use Captivate and incorporating swfs that use CSS and XML for their dynamic content builder and interactivity as well. However, I've run into a problem:
    The Reviewer tool will NOT display my swf interactions that use XML, however when published as a course, I can see them perfectly fine (once I move over my css and xml folders after publishing)
    Has anyone found a work around for this problem?
    Thanks in advance!

    Hi,
    Not sure if you want to control the audio used in Captivate of if you want to control you own audio form files loaded externally. If you try to control the audio associated with captivate, believe me it will be a mess. I tried it once and hit so many hurdles that I gave up. The Captivate framework is not meant at all for extending and adding functionality. I had to to create proxy classes that allowed me to gain access to internal variable but even then my control over audio streams was incomplete. Captivate completely lacks an eventing framework!
    On an other subject, can you tell me how you got the swf to use the CSS and XML files? Do you have to manually copy them to a folder? Which folder?
    Thanks,
    Yves

  • RSAT and the missing Attribute Editor tab [solution]

    PROBLEM
    When you install RSAT on a Vista workstation or Server 2008 system, that is managing a 2000/2003 based forest, you do not see the Attribute Editor tab when looking at the properties of a User or Computer object in Active Directory Users and Computers(ADUC).
    MORE INFORMATION
    The Display Specifier is not updated in the Configuration Naming context, because the 2008 schema changes have not been executed on the forest. Part of the upgrade updates the forest Display Specifiers.  The Attribute Editor tab actually uses functions within the ADSIEDIT tool , more specifically the ADSIEDIT.DLL extension. Although the DLL is probably registered on the RSAT system, the ConfigNC need updating, in order to expose the tab in the ADUC interface.
    SOLUTION
    Use the ADSIEDIT tool (or other tool of choice...ADexplorer, LDP etc), with a user who has rights to modify the Configuration Naming Context.
    Navigate to cn=<languagepage>, cn=configuration, dc=<domainname>
                 (where <languagepage> is your relevant language...see http://support.microsoft.com/kb/324097)
                 (where <domainname> is your domain dn)
    Under the cn=User-Display object, edit AdminPropertyPages and add the line 11,{c7436f12-a27f-4cab-aaca-2bd27ed1b773}
    Under the cn=Computer-Display object, edit AdminPropertyPages and add the line 12,{c7436f12-a27f-4cab-aaca-2bd27ed1b773}
    Under the cn=Default-Display object, edit AdminPropertyPages and add the line 4,{c7436f12-a27f-4cab-aaca-2bd27ed1b773}
    Open ADUC from the Vista or Server 2008 and you should now see the Attribute Editor for the object you selected.  Note: Attribute editor is only shown when ADUC is in Advanced View.
     -Stuart Hudman

    Never mind, i got it.... the prefix number is irrelevant as long as it is in sequential order... to be able to see the attribute editor tab for groups i just
    Under the cn=group-Display object,
    edit AdminPropertyPages and
    add the line 5,{c7436f12-a27f-4cab-aaca-2bd27ed1b773}
    the first number (5,) was my next available number.
    FYI: English is 409. the actual DN would be cn=409,
    cn=DisplaySpecifiers, cn=configuration, dc=<domainname>

  • JSF and the Immediate attribute

    My JSF application has a JSP page with a dataTable. This table has 2 columns, one is an inputText field the other an outputText field with a CommandLink and Immediate set to true. The dataTable is pre-populated by an array containing objects. I also have a Save button.
    When I enter or change a value in the input field and then click my command link (to display additional information about the value in the output field) the value I just entered is lost. My form processes correctly when I hit the Save button and display a result page.
    Is there a way to preserve the data values entered by the user and still use the immediate option to avoid validation? Or should I go about this in another way?
    Thanks.

    make you backing bean in session scope..

  • Context.xml question , Thanks

    Hi, developers:
    I would like to connect to another server using context.xml. I did like the following link: < a href="http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html"> link to instruction</a>
    In the "JDBC Data Source" :4 Configure Tomcat's Resource Factory part said a Context.xml tshould be stored in the META-INF directory .
    My problem is:
    1) where is /META-INF so I can find the contect.xml. I using tomcat5.5 and find only at Tomcat5.5\conf\context.xml?
    2) When I restart with my context.xml below, the tomcat can start but application can NOT.
    Error msd: Http status 404 : The requested resource (/account App) is not available.
    code of context.xml is:
    <?xml version='1.0' encoding='utf-8'?>
    <Context displayName="account" path="/accountApp" debug="0" reloadable="true" docBase="serverdb">
    <Resource name="jdbc/dbinstance" auth="Container" type="javax.sql.DataSource"
    factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
    driverClassName="oracle.jdbc.OracleDriver"
    url="jdbc:oracle:thin:@//dburl:1522/"
    username="accuser"
    password="accpw"
    maxActive="20"
    maxIdle="10"
    maxWait="120000"
    removeAbandoned="true"
    logAbandoned="true"
    removeAbandonedTimeout="300"
    testOnBorrow="true"
    testOnReturn="true"
    validationQuery="select 1 from dual" />
    </Context>
    is some one can give me a help to solve it. Thanks in advance

    The "context" here is an artifact of the way that Tomcat works. It contains deployment information - the path to the application files, the JNDI mappings and various other bits and pieces.
    The "context" of a web application is the path to which it is deployed within the application server. An application deployed to a context called "foo" would probably be accessed by the following URL:
    http://localhost:8080/foo/And the application files would probably be stored somewhere like this:
    C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\fooTomcat keeps its context information EITHER in a file called server.xml or in a seperate file named after the application's context. So typically it will be in one of these files (for our "foo" application):
    C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\server.xml
    C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\Catalina\localhost\foo.xmlYou can create the entry in one of several ways:
    1. Edit server.xml manually
    2. Edit foo.xml manually
    3. Use an application such as the admin webapp to deploy your application
    4. Include a Context.xml file in the META-INF directory of the application
    The last option allows you to specify the default values that you want the application to take up when you deploy it to Tomcat. This saves time during development, but may cause problems for your clients when they come to deploy the application themselves.
    It is this last file that you seem to be talking about. You would normally create it as a directory and file within the source directory for your application, from which you build and deploy a WAR file. For example, you might build the following files and directories into foo.war:
    C:\dev\foo\index.jsp
    C:\dev\foo\WEB-INF\web.xml
    C:\dev\foo\META-INF\MANIFEST.MF
    C:\dev\foo\META-INF\Context.xml
    This would be built to a WAR file called foo.war that represents a Zip of the contents of the C:\dev\foo directory. Deploying this will cause Tomcat to notice Context.xml and extract its contents into the conf/Catalina/localhost directory as foo.xml

Maybe you are looking for

  • Family Plan upgrade question

    I currently have a family share plan with 5 lines.  None of the 5 phones are smartphones.  2 of the lines/phones currently have the $10/month unlimited data package (LG Voyager phone).  Our 2 year contract expires in May 2011 but we can upgrade now i

  • Automatic creation of source lists on contract creation

    Hi, Is there anyway to automatically generate a source list when a contract is created for the each line in the contract?  I know that you can go to Item -> Maintain source list, but the business is reluctant to accept this solution since it is an ex

  • Final Cut Pro 3-Mac Pro 3.2 Xeon

    I'm trying to install my copy of FCP 3 onto my Mac Pro 3.2, and every time I try to launch it gives me the error "Final Cut Pro" requires a System ID file which is missing or Invalid. Please reinstall using the original CD that was used to install Fi

  • RMI Dynamic Class Loading

    Hello, I have a standalone Java Client which is connecting to an RMI based svr component on WLS 6.0sp1. However, before connecting to the RMI Svr, I am trying to boot strap couple of other CLASS files from the App Svr. using the RMIClassLoader. Now h

  • Anyway to add custom javascript on launching an iView

    Hi Expert,   I would like to see is there anyway to add custom javascript on an iview (which contains standard SAP pcd contain). I would like to invoke a script on the onLoad to trigger a popup windows when that iview launch.