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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7239

Manager application doesn't work on 4.0.4-B1

           Summary: Manager application doesn't work on 4.0.4-B1
           Product: Tomcat 4
           Version: 4.0.4 Beta 1
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I have an application that uses the rowset.jar from Sun. When I use the 
manager application in Tomcat 4.0.3 it works ok. I'm able to stop and 
start the context that is using it. Although when I load this 
application on 4.0.4-B1 and try to stop the context I get the message:

WebappClassLoader:     Resource '/WEB-INF/lib/rowset.jar' is missing

And when I start the context, it fails:

FAIL - Application at context path /examples could not be started
FAIL - Encountered exception java.lang.IllegalStateException: 
standardHost.start /examples: LifecycleException:  Loader has already been 
started

I believe this is not related to the rowset.jar itself and it can happen with 
any library. 

It works in 4.0.3.

Doing some further investigation, I found out the following difference in the 
code between 4.0.3 and 4.0.4-B1:

- when calling webappclassloader, 'modified' method, it checks for the 
modified date of the jar/class by calling resources.getAttributes
- looking at the ProxyDirContext ( getAttributes method ), I found a 
difference. 
----> 4.0.3: it does a cacheLookup and return an entry;
----> 4.0.4-B1: it always returns a null. So it tries to open the File which 
doesn't exist because of the relative path that is used and says the resource 
is missing.

This change has something related to new piece of code in StandarContext  that 
releases DirContext ?

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

Reply via email to