You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2016/06/13 10:02:51 UTC

[Bug 59691] New: No logs "Deploying web application directory" if context element is defined within host

https://bz.apache.org/bugzilla/show_bug.cgi?id=59691

            Bug ID: 59691
           Summary: No logs "Deploying web application directory" if
                    context element is defined within  host
           Product: Tomcat 8
           Version: 8.0.30
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: amit.pande@veritas.com

<Service name="catalina">

    <Engine defaultHost="localhost" name="Catalina_NetBackup_Web_Services"
startStopThreads="0">

      <Host appBase="webapps" autoDeploy="false" name="localhost"
startStopThreads="0" unpackWARs="true">


    <Context path="/xyz" reloadable="true" override="false">
             <Valve allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1"
className="org.apache.catalina.valves.RemoteAddrValve" denyStatus="404"/>
             <Valve allow="localhost"
className="org.apache.catalina.valves.RemoteHostValve" denyStatus="404"/>
        </Context>

</Host>
</Engine>

</Service>



If I have the nested context element defined as above, in catalina.out I don't
see following Info logs.

13-Jun-2016 15:21:28.641 INFO [localhost-startStop-1]
org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
application directory C:\Program Files\xyz\abc\wmc\def\webapps\ROOT
13-Jun-2016 15:21:28.668 INFO [localhost-startStop-1]
org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web
application directory C:\Program Files\xyz\abc\def\webserver\webapps\ROOT has
finished in 27 ms


We deploy multiple applications so it's important for us to get the deployment
time for each of the web application. 


The above log statements are seen once the context element is removed from
above configuration.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 59691] No logs "Deploying web application directory" if context element is defined within host

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59691

--- Comment #2 from Amit Pande <am...@veritas.com> ---
Aren't there any work-arounds ?

It looks odd NOT to have any solution to this. 

Did I miss something while controlling access to some web apps from only
localhost ?

Is there any other way to configure the remote address valves without losing
the deployment logs ?

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 59691] No logs "Deploying web application directory" if context element is defined within host

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59691

Remy Maucherat <re...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #1 from Remy Maucherat <re...@apache.org> ---
That's because the webapp is not deployed by the Tomcat deployer (= HostConfig)
in that case.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 59691] No logs "Deploying web application directory" if context element is defined within host

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59691

--- Comment #3 from Remy Maucherat <re...@apache.org> ---
That's a lot of questions that should go to the user mailing list.
Yes, you can put this configuration inside the webapp itself rather than
defining your webapp statically in server.xml.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 59691] No logs "Deploying web application directory" if context element is defined within host

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59691

--- Comment #4 from Amit Pande <am...@veritas.com> ---
Thanks for putting this to a mailing list. 


Had thought of putting the address/ip valve configuration to each of the web
app's META-INF/context.xml.

However, we are using Spring based Java configuration (no XMls) , so probably
did not investigate much on how this can be achieved.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org