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 2007/12/19 17:21:11 UTC

DO NOT REPLY [Bug 44106] New: - autodeploy configures directories which are not a webapp as a context

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44106>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44106

           Summary: autodeploy configures directories which are not a webapp
                    as a context
           Product: Tomcat 5
           Version: Nightly Build
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: glenn@apache.org


autodeploy of contexts will configure directories which are not a webapp,
which have no WEB-INF sub directory or WEB-INF/web.xml as a context.

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

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


DO NOT REPLY [Bug 44106] - autodeploy configures directories which are not a webapp as a context

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44106>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44106





------- Additional Comments From glenn@apache.org  2007-12-19 08:22 -------
Created an attachment (id=21294)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=21294&action=view)
Patch for HostConfig.java


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

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


DO NOT REPLY [Bug 44106] - autodeploy configures directories which do not contain WEB-INF

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44106>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44106





------- Additional Comments From glenn@apache.org  2007-12-19 11:22 -------
This is a change from how Tomcat 4 handled this and most likely Tomcat 5.0 also.
For those upgrading from earlier versions this is a change. It can be an issue
for those whose website content and webapps have to coexist and autodeploy is
required.

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

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


DO NOT REPLY [Bug 44106] - autodeploy configures directories which do not contain WEB-INF

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44106>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44106


knst.kolinko@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
          Component|Catalina                    |Catalina
            Product|Tomcat 5                    |Tomcat 6
            Summary|autodeploy configures       |autodeploy configures
                   |directories which are not a |directories which do not
                   |webapp as a context         |contain WEB-INF
   Target Milestone|---                         |default
            Version|Nightly Build               |unspecified




------- Additional Comments From knst.kolinko@gmail.com  2007-12-19 09:40 -------
Well, WEB-INF and WEB-INF/web.xml are processed if they do exist, but the
specification does not say that they must exist.

Chapter SRV.9.3 of Servlet Spec 2.4 says that a web application may consist of
some items, but as far as I searched nowhere is written that existence of
WEB-INF or deployment descriptor is required.

E.g. web applications that serve only static files may exist well without
WEB-INF/web.xml.

Please note also, that conf/web.xml in Tomcat provides the defaults for all the
web.xml files.

Also, from Sun's J2EE 5 Tutorial:
http://java.sun.com/javaee/5/docs/tutorial/doc/bnadx.html
"If your web module does not contain any servlets, filter, or listener
components then it does not need a web application deployment descriptor."


At most, it might be implemented as a configurable option to warn against such
directories, but I doubt that it should.

Marking this as an enhancement, Tomcat 6, and changing the summary.
I guess it will become WONTFIX.

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

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