use of org.apache.axis.ConfigurationException in project Lucee by lucee.
the class RPCServer method getEngine.
/**
* get the engine for this Server from cache or context
* @return
* @throws AxisFault
*/
public AxisServer getEngine() throws AxisFault {
if (axisServer == null) {
synchronized (context) {
Map environment = new HashMap();
environment.put(AxisEngine.ENV_SERVLET_CONTEXT, context);
axisServer = AxisServer.getServer(environment);
axisServer.setName("LuceeServer");
}
// add Component Handler
try {
SimpleChain sc = (SimpleChain) axisServer.getGlobalRequest();
sc.addHandler(new ComponentHandler());
} catch (ConfigurationException e) {
throw AxisFault.makeFault(e);
}
TypeMappingUtil.registerDefaults(axisServer.getTypeMappingRegistry());
}
return axisServer;
}
Aggregations