https://issues.apache.org/bugzilla/show_bug.cgi?id=45202

           Summary: context.xml used from conf/Catalina and not from
                    deployed web-app
           Product: Tomcat 6
           Version: 6.0.16
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: major
          Priority: P2
         Component: Catalina
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I am using context.xml as my form based autentication source.  The file lives
in mywar.war/META-INF/context.xml.  When I put the war in the webapps directory
it is exploded and the context.xml is also copied into
tc_home/conf/Catalina/localhost/ and renamed to mywar.xml.

There are several issues with this.  When developing an application I expect
that the exploded files are the ones being used so in this case modifications
to mywar/META-INF fail to have any effect.

The second issue with this for me is that I have two wars.  The first is the
authentication source that context.xml tells the second to connect to.  When
the context.xml file exists in conf/Catalina it is loaded before the web app
that is the authentication source has been started and the authentication
server connection is therefor not established.  My workaround it to always
delete the conf/Catalina directory before starting the server.  Kind of a pain
but seems to work.

Why is the file moved to the conf directory and then access from there as
opposed to the deployed webapp?  

Thank You


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to