You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by sh...@locus.apache.org on 2000/01/18 07:17:44 UTC
cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/loader ServletClassLoaderImpl.java
shemnon 00/01/17 22:17:44
Modified: src/share/org/apache/tomcat/loader
ServletClassLoaderImpl.java
Log:
fixed bug -- Jars placed in the WEB-INF/lib directory are not getting loaded.
Submitted by: "Lars Hofhansl" <lh...@poet.com>
Revision Changes Path
1.2 +2 -2 jakarta-tomcat/src/share/org/apache/tomcat/loader/ServletClassLoaderImpl.java
Index: ServletClassLoaderImpl.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/loader/ServletClassLoaderImpl.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ServletClassLoaderImpl.java 2000/01/13 18:56:04 1.1
+++ ServletClassLoaderImpl.java 2000/01/18 06:17:44 1.2
@@ -114,7 +114,7 @@
for(Enumeration e = context.getLibPaths();
e.hasMoreElements(); ) {
String libpath = (String) e.nextElement();
- File f = new File(basepath + libpath + "/");
+ File f = new File(basepath + "/" + libpath + "/");
Vector jars = new Vector();
getJars(jars, f);
@@ -122,7 +122,7 @@
try {
String jarfile = (String) jars.elementAt(i);
URL jarURL = new URL(protocol,hostname,port,
- basepath + jarfile);
+ basepath + "/" + libpath + "/" + jarfile);
addURL(jarURL);
}catch(MalformedURLException mue) {
}