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 2006/05/26 00:00:03 UTC

DO NOT REPLY [Bug 39663] New: - "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

           Summary: "JasperException: File [TLD Name] not found" with zero
                    length context path
           Product: Tomcat 5
           Version: 5.5.17
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: major
          Priority: P2
         Component: Jasper
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: brad.jackson@planetdiscover.com


This happens in Tomcat 5.5.17, but not in 5.0.28. It does not occur if the
context path is something other than "".

1. Add this new host block to the %TOMCAT_HOME%\conf\server.xml file. Note that
halflife is a hostname mapped to 127.0.0.1 in my hosts file.

<Host name="halflife" appBase="C:\bugtest"
       unpackWARs="true" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">

    <Context docBase="C:\bugtest" path=""/>

</Host>

2. Create these directories:

C:\bugtest
C:\bugtest\testdir
C:\bugtest\WEB-INF

3. Add a file named index.jsp with this content to both the C:\bugtest and
C:\bugtest\testdir directories:

<%@ taglib uri="/WEB-INF/bugtest.tld" prefix="bean" %>

Bugtest

4. Create a file named bugtest.tld with this content in the C:\bugtest\WEB-INF
directory:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>bean</shortname>
<uri></uri>
</taglib>

5. Create a minimal web.xml with this content in the C:\bugtest\WEB-INF directory:

<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    version="2.4">

  <display-name>Bug Test</display-name>
  <description>
     Bug Test
  </description>

</web-app>

6. Start Tomcat and go to http://halflife:8080/ in a browser. It should display
"Bugtest"

7. Go to http://halflife:8080/testdir/ in a browser. It should display this
exception:

org.apache.jasper.JasperException: File "/WEB-INF/bugtest.tld" not found
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

org.apache.jasper.JasperException: File "/WEB-INF/bugtest.tld" not found
	org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
	org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
	org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:114)
	org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:159)
	org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:423)
	org.apache.jasper.compiler.Parser.parseDirective(Parser.java:492)
	org.apache.jasper.compiler.Parser.parseElements(Parser.java:1552)
	org.apache.jasper.compiler.Parser.parse(Parser.java:126)
	org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
	org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
	org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:155)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

It appears that TldLocationsCache.processWebDotXml() thinks the /testdir/
directory is a different context rather than a subdirectory of the default ""
context, so it is looking for /testdir/WEB-INF/bugtest.tld.

I cannot upgrade from Tomcat 5.0 to 5.5 on my development machine because of
this same problem on the application I normally work on.

-- 
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 39663] - "JasperException: File [TLD Name] not found" with zero length context path

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=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 brad.jackson@planetdiscover.com  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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 39663] - "JasperException: File [TLD Name] not found" with zero length context path

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=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 fhanik@apache.org  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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 39663] - "JasperException: File [TLD Name] not found" with zero length context path

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=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


hueh-asf@openAction.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |




------- Additional Comments From hueh-asf@openAction.net  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:

#  appBase    docBase   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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 39663] - "JasperException: File [TLD Name] not found" with zero length context path

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=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 brad.jackson@planetdiscover.com  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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 39663] - "JasperException: File [TLD Name] not found" with zero length context path

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=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 remm@apache.org  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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 39663] - "JasperException: File [TLD Name] not found" with zero length context path

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=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


luciano@virgilio.it 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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 39663] - "JasperException: File [TLD Name] not found" with zero length context path

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=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


fhanik@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO




------- Additional Comments From fhanik@apache.org  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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 39663] - "JasperException: File [TLD Name] not found" with zero length context path

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=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


fhanik@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From fhanik@apache.org  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

#  appBase    docBase   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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 39663] - "JasperException: File [TLD Name] not found" with zero length context path

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=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


fhanik@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |




------- Additional Comments From fhanik@apache.org  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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 39663] - "JasperException: File [TLD Name] not found" with zero length context path

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=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 brad.jackson@planetdiscover.com  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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 39663] - "JasperException: File [TLD Name] not found" with zero length context path

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=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 luciano@virgilio.it  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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 39663] - "JasperException: File [TLD Name] not found" with zero length context path

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=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 luciano@virgilio.it  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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 39663] - "JasperException: File [TLD Name] not found" with zero length context path

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=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


fhanik@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From fhanik@apache.org  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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 39663] - "JasperException: File [TLD Name] not found" with zero length context path

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=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 fhanik@apache.org  2006-06-07 19:28 -------
Created an attachment (id=18427)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=18427&action=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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 39663] - "JasperException: File [TLD Name] not found" with zero length context path

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=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


fhanik@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |WORKSFORME




------- Additional Comments From fhanik@apache.org  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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org