DO NOT REPLY [Bug 39663] - JasperException: File [TLD Name] not found with zero length context path
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=39663. 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=39663 --- Additional Comments From [EMAIL PROTECTED] 2006-06-08 12:27 --- By default, auto and live deployment are enabled, so the configuration works around that. If a webapp folder is located inside the appBase folder of the host, it will be picked up by the auto deployer, and so the choice is to either ignore the docBase of the webapp or deploy it twice. In newer versions of Tomcat (above 5.5.9, at least), docBase is thus ignored if inside appBase. Similarly, path is infered from the webapp folder name (or war name). I understand in some cases it doesn't work as before, but my goal was to get something that was predictable with very few changes, even if it's not the most convinient or most logical sometimes. As it's independent of Tomcat (it's the host config class), it could be esily swapped with a better one. -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 39663] - JasperException: File [TLD Name] not found with zero length context path
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=39663. 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=39663 [EMAIL PROTECTED] changed: What|Removed |Added OS/Version|Windows XP |All Platform|PC |All Version|5.5.17 |5.5.16 -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 39663] - JasperException: File [TLD Name] not found with zero length context path
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=39663. 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=39663 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |NEEDINFO --- Additional Comments From [EMAIL PROTECTED] 2006-06-07 17:24 --- Are you sure this is not just a result of you having appBase (Host) set to the same directory as docBase(Context). these two should not be the same, appBase should contain one or more webapps Filip -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 39663] - JasperException: File [TLD Name] not found with zero length context path
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=39663. 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=39663 --- Additional Comments From [EMAIL PROTECTED] 2006-06-07 18:00 --- For the default web application (with the Context's path=) as it's called by the Tomcat Context tag documentation, the Hosts's appBase directory will always be the same as the Context's docBase directory, I think. I just tried testing with a blank value for the Context's docBase instead of the full path, and it has the same problem. Removing the Context tag entirely also gives the same error. Regardless of whether this is technically correct or not, I think a large number of people are currently relying on this functionality that worked in versions of Tomcat in 5.5.12 and before. -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 39663] - JasperException: File [TLD Name] not found with zero length context path
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=39663. 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=39663 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEEDINFO|RESOLVED Resolution||INVALID --- Additional Comments From [EMAIL PROTECTED] 2006-06-07 18:23 --- No, this bug is self inflicted. appBase must be different than docBase. Please verify that this bug works if you setup the system correctly, until then we will leave as invalid. if the bug persist when appBase != docBase, then reopen the bug and I will fix it. (In reply to comment #4) For the default web application (with the Context's path=) as it's called by the Tomcat Context tag documentation, the Hosts's appBase directory will always be the same as the Context's docBase directory, I think. I just tried testing with a blank value for the Context's docBase instead of the full path, and it has the same problem. Removing the Context tag entirely also gives the same error. Regardless of whether this is technically correct or not, I think a large number of people are currently relying on this functionality that worked in versions of Tomcat in 5.5.12 and before. -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 39663] - JasperException: File [TLD Name] not found with zero length context path
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=39663. 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=39663 --- Additional Comments From [EMAIL PROTECTED] 2006-06-07 18:43 --- So you're telling me I cannot have a default web application with a context path of unless I put it in a ROOT directory under appBase like Tomcat's webapps directory has? That is the only way I can make it work. I dropped my bugtest files into %TOMCAT_HOME%\webapps then renamed the %TOMCAT_HOME%\webapps\ROOT directory and left the server.xml file unchanged and it is still broken. -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 39663] - JasperException: File [TLD Name] not found with zero length context path
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=39663. 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=39663 [EMAIL PROTECTED] changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|INVALID | --- Additional Comments From [EMAIL PROTECTED] 2006-06-07 19:19 --- you can name the app whatever you want and still serve it up as docBase=bugtest path= should work fine, but if are saying its still bust, then I will reopen and take a look at it. -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 39663] - JasperException: File [TLD Name] not found with zero length context path
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=39663. 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=39663 --- Additional Comments From [EMAIL PROTECTED] 2006-06-07 19:28 --- Created an attachment (id=18427) -- (http://issues.apache.org/bugzilla/attachment.cgi?id=18427action=view) Test application -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 39663] - JasperException: File [TLD Name] not found with zero length context path
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=39663. 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=39663 [EMAIL PROTECTED] changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution||WORKSFORME --- Additional Comments From [EMAIL PROTECTED] 2006-06-07 19:29 --- I have webapps/bugtest server.xml I have Context docBase=bugtest path=/ and it works just fine. docBase should not be set to the same as appBase, as appBase is the directory for one ore more applications. in your setting, my guess is that it could work if you turn off autoDeploy. -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 39663] - JasperException: File [TLD Name] not found with zero length context path
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=39663. 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=39663 --- Additional Comments From [EMAIL PROTECTED] 2006-06-07 20:04 --- Try this in server.xml as replacement for the default Host. Shouldn't this be allowed? Host name=localhost appBase=webapps2 unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context docBase= path=/ /Host In %TOMCAT_HOME%\webapps2: %TOMCAT_HOME%\webapps2\index.jsp %TOMCAT_HOME%\webapps2\testdir\index.jsp %TOMCAT_HOME%\webapps2\WEB-INF\bugtest.tld %TOMCAT_HOME%\webapps2\WEB-INF\web.xml Then go to: http://localhost:8080/ [Works] http://localhost:8080/testdir/ [org.apache.jasper.JasperException: File /WEB-INF/bugtest.tld not found] If I then remove the Context tag, it's odd that I get a blank page for the first URL but the same error for the second URL. In Tomcat 5.5.12, I get no errors for both URLs with the Context tag, and blank pages for both URLs without the tag. If you'd like to continue this conversation via direct email instead of filling the inbox of everyone being copied, feel free. -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 39663] - JasperException: File [TLD Name] not found with zero length context path
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=39663. 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=39663 --- Additional Comments From [EMAIL PROTECTED] 2006-06-07 20:59 --- As I said, stop setting docBase to the same as appBase, then your problems will go away. If you insist on setting appBase to docBase, like you have below, then at least try to set autoDeploy=false docBase is a relative path, so setting docBase= means that you are setting docBase==appBase so you haven't presented a new scenario -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 39663] - JasperException: File [TLD Name] not found with zero length context path
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=39663. 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=39663 [EMAIL PROTECTED] changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|WORKSFORME | --- Additional Comments From [EMAIL PROTECTED] 2006-06-07 21:19 --- I've been looking at this for the past few hours - and there is something not quite consistent here. I believe it has to do with how the ProxyDirContext.contextName gets setup. When this gets setup to - ie. blank context then everything works as expected. However, when the context is set to /meshcms then this causes the misery. As far as I can tell this occurs under the following conditions - which I suppose amounts to the same thing: Host's appBase == Context's docBase || docBase == ... if appBase is set to anything else (a non-existent dir or even ) and docBase is set to the exact path then contextName is - otherwise it interprets the first bit of the path as the context, ie. /meshcms. In this event the web.xml is not found - hence the warning about web.xml not found - and the taglib is not setup. The /admin/... path is a red-herring - I can't remember why it happens - but it's not important - the failure occurs from trying to find web.xml at /meshcms/WEB-INF/web.xml - and failing. This does seem a little inconsistent to me - if the docBase is set to a particular value - either derived as it is , a relative path or a fully-qualified path then this should probably take prority - even if the appBase points to the same dir. Working as it currently does gives the following behaviour that I think is confusing: # appBasedocBase contextName Works? - ------ --- -- 1 /tmp/wa1 /wa1 fails 2 /tmp/wa1 /tmp/wa1 /wa1 fails 3 /tmp/bb/tmp/wa1 works 4 /tmp/wa1 works It seems in .12 - contextName == - for at least the scenario outlined by Luciano - scenario 1, above - hence why this worked in .12 - and does not now work in .16. Having re-read the definitions for the above - Filip is of course correct - that this is an inconsistent use of these properties - having the webapps' parent and a webapp pointing to the same directory - but the confusing element is that this behaviour has changed between .12 and .16 - this has bitten several of us here - me included. I suspect the change lies somewhere in the code that sets the ContainerBase.resources (ProxyDirContext) .contextName - by examining the defined values for appBase and docBase - but I presume this change has been made for good reason - I have not attempted to track-down the details of this change. I have re-opened this bug (sorry Filip) - so that it can be investigated further - I believe there either needs to be an exception thrown to indicate the fact that the context has the same base as the webapps so at least a visible exception is thrown - or it needs to behave as it did in .12 - ie. the context's docBase setting takes priority when determining the webapp's context. As a simple workaround - set the appBase= and the docBase to the fully-qualified path of the webapp - works for me. A better, more-robust solution may be to follow Filip's advice given for putting the webapp in a directory under the appBase. -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 39663] - JasperException: File [TLD Name] not found with zero length context path
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=39663. 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=39663 [EMAIL PROTECTED] changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution||INVALID --- Additional Comments From [EMAIL PROTECTED] 2006-06-07 21:25 --- Closing the bug to invalid, yes a warning might be nice, but its also self explanatory. If you want a warning message, then submit an enhancement request, I suggest not to try to slip that into the original bug. Here you go, and now you understand why :) as well # appBasedocBase contextName Works? Why? - ------ --- -- - 1 /tmp/wa1 /wa1 fails appBase==docBase 2 /tmp/wa1 /tmp/wa1 /wa1 fails appBase==docBase 3 /tmp/bb/tmp/wa1 works appBase!=docBase 4 /tmp/wa1 works appBase!=docBase -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 39663] - JasperException: File [TLD Name] not found with zero length context path
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=39663. 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=39663 --- Additional Comments From [EMAIL PROTECTED] 2006-05-26 09:24 --- I'm experiencing the same issue with my application (MeshCMS). The taglib standard-fmt-rt does not work, while my custom taglib still works. I tested the app on both Windows (JDK 1.5 and 1.6) and Linux (JDK 1.5). The issue happens with all versions of Tomcat 5.5.12, which works fine instead. This is my test server.xml: - Server port=8005 shutdown=SHUTDOWN Service name=Catalina Connector port=8080 / Engine name=Catalina defaultHost=localhost Host name=localhost appBase=/home/tomcat/meshcms Context path= docBase= debug=0 reloadable=false allowLinking=false / /Host /Engine /Service /Server - -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 39663] - JasperException: File [TLD Name] not found with zero length context path
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=39663. 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=39663 --- Additional Comments From [EMAIL PROTECTED] 2006-05-26 12:32 --- Some further considerations: Tomcat reports 26-mag-2006 12.14.00 org.apache.jasper.compiler.TldLocationsCache processWebDotXml AVVERTENZA: Internal Error: File /WEB-INF/web.xml not found The org.apache.jasper.compiler.TldLocationsCache.processWebDotXml() has changed a lot between 5.5.12 and 5.5.16. Maybe going back to the old method could solve this issue. -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]