jmsnell 2003/02/07 10:05:06
Modified: java/src/org/apache/axis/configuration
EngineConfigurationFactoryFinder.java
Log:
Adding an error check to catch the JDK 1.4 related missing servlet.jar exception.
This "solves" the problem by ignoring it. This is, at best, a temporary solution as
it hides any other exceptions that may occur during the factory init process.
Revision Changes Path
1.24 +8 -0
xml-axis/java/src/org/apache/axis/configuration/EngineConfigurationFactoryFinder.java
Index: EngineConfigurationFactoryFinder.java
===================================================================
RCS file:
/home/cvs/xml-axis/java/src/org/apache/axis/configuration/EngineConfigurationFactoryFinder.java,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- EngineConfigurationFactoryFinder.java 11 Dec 2002 22:38:11 -0000 1.23
+++ EngineConfigurationFactoryFinder.java 7 Feb 2003 18:05:05 -0000 1.24
@@ -157,6 +157,7 @@
EngineConfigurationFactory factory = null;
while (factory == null && services.hasNext()) {
+ try {
Class service =
services.nextResourceClass().loadClass();
/* service == null
@@ -165,6 +166,13 @@
if (service != null) {
factory = newFactory(service, newFactoryParamTypes,
params);
}
+ } catch (Exception e) {
+ // there was an exception creating the factory
+ // the most likely cause was the JDK 1.4 problem
+ // in the discovery code that requires servlet.jar
+ // to be in the client classpath. For now, fall
+ // through to the next factory
+ }
}
if (factory != null) {