You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by bu...@apache.org on 2002/09/25 23:07:53 UTC
DO NOT REPLY [Bug 13005] New: -
Need way of specifying EngineConfigurationFactory via properties
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=13005>.
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=13005
Need way of specifying EngineConfigurationFactory via properties
Summary: Need way of specifying EngineConfigurationFactory via
properties
Product: Axis
Version: current (nightly)
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Normal
Priority: Other
Component: Deployment / Registries
AssignedTo: axis-dev@xml.apache.org
ReportedBy: douglas.bitting@agile.com
There is a (rather significant) defect in WebLogic's webapp class loading
mechanism such that the services discovery mechanism does not work. So, one is
left in a lurch if they'd like to specify their own
EngineConfigurationFactory. It used to be that this could be set via a system
property. Here is a patch that re-enables that functionality.
This patch allows setting the system property override the services discovery
mechanism. Please note, this patch reuses an existing error message if an
exception is encountered while trying to load/initialize the specified factory
class. A new message should probably be introduced.
---- snip here ----
Index: org/apache/axis/configuration/EngineConfigurationFactoryFinder.java
===================================================================
RCS file: /home/cvspublic/xml-
axis/java/src/org/apache/axis/configuration/EngineConfigurationFactoryFinder.jav
a,v
retrieving revision 1.12
diff -r1.12 EngineConfigurationFactoryFinder.java
61a62
> import org.apache.axis.AxisProperties;
145a147,164
> EngineConfigurationFactory factory = null;
>
> String pName =
> EngineConfigurationFactory.SYSTEM_PROPERTY_NAME;
> String className = AxisProperties.getProperty(pName);
> if (!(null == className || "".equals(className))) {
> try {
> Class clazz = Class.forName(className);
> factory = newFactory(clazz,
newFactoryParamTypes,
> params);
> } catch (Exception ex) {
> log.warn(Messages.getMessage
("engineConfigInvokeNewFactory",
> className,
> requiredMethod),
> ex);
> }
> }
>
155d173
< EngineConfigurationFactory factory = null;