} else throw new WebServiceException(rb.getString("ejb.endpointuri.error"));
}
// notify monitoring layers that a new endpoint is being created.
WebServiceEngineImpl engine = WebServiceEngineImpl.getInstance();
if (endpoint.getEndpoint().getWebService().getMappingFileUri()!=null) {
engine.createHandler((com.sun.xml.rpc.spi.runtime.SystemHandlerDelegate)null, endpoint.getEndpoint());
} else {
engine.createHandler(endpoint.getEndpoint());
try {
endpoint.initRuntimeInfo((ServletAdapterList)adapterListMap.get(uri));
} catch (Exception e) {
logger.log(Level.WARNING,
"Unexpected error in EJB WebService endpoint post processing", e);