× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Tim Watts wrote:

import java.io.File;
import java.net.URL;
import java.net.URLClassLoader;

public class FindClass {
public static void main(String[] args) {
try {
URLClassLoader loader = new URLClassLoader(
new URL[] {new File("/wintouch/tomcat/lib/catalina.jar").toURI().toURL()});
loader.loadClass(args[0]);
System.out.println("URLClassLoader found class '" +args[0] +"'");
}
catch (Exception e) {
e.printStackTrace();
}
}
}

I tried it. I'm surprised I was able to get it to compile and run on only the second try (the first try, I had left the stream file editor in the default EBCDIC codepage when I pasted in your source, which JAVAC, not surprisingly, didn't like at all).

At any rate, I get:

java FindClass org.apache.catalina.startup.Catalina URLClassLoader found class 'org.apache.catalina.startup.Catalina'


And so far as I can determine without doing a clean install of Tomcat, nothing is customized at all, at this point, other than maybe setting port numbers (which it isn't even getting to, yet), and adding your diagnostic lines in logging.properties.

Paul Holm, on the Midrange.com Java list, suggested turning on verbose mode on Java; I'm not entirely sure how I would even do that for Tomcat.

What would be the next step?

--
JHHL

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.