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

           Summary: Context loads classes from another context
           Product: Tomcat 4
           Version: 4.1.30
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: Unknown
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Hi,

In the server.xml file I've the following elements:
- 1 engine;
- 1 host
- 2 contexts (in the same host)

Say that the contexts are C1 and C2.
In WEB-INF/classes on C1 there is a class a.b.c.Foo.class.
In WEB-INF/classes on C2 there is the same class a.b.c.Foo.class but that has
been modified. So, we have a.b.c.Foo version 1 in C1 and a.b.c.Foo version 2 in 
C2.

I have to keep the 2 versions (i.e I can't updrade a.b.c.Foo of C1).

In the web application on C2 I've a JSP that uses the class a.b.c.Foo.

As it is specified on the Class Loader HOW-TO page
(http://tomcat.apache.org/tomcat-4.1-doc/class-loader-howto.html) "All unpacked
classes and resources in the /WEB-INF/classes directory of your web application
archive, plus classes and resources in JAR files under the /WEB-INF/lib
directory of your web application archive, are made visible to the containing
web application, but to no others."

So, I'm expecting Tomcat to compile the JSP using the a.b.c.Foo class that is in
C2 and not in C1. But, I don't know why, Tomcat uses the a.b.c.Foo classes of C1
instead of C2 that generates an error in my case.

I don't really know if it is a bug, but according to the docs, Tomcat is not
behaving as it is expected to...

Thanks.

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

Reply via email to