InputStream is = req.getInputStream();
if (_isDebug) {
}
Skeleton skeleton = (Skeleton) _beanMap.get(cb);
if (skeleton == null) {
// If this was a load just to force the initialization, then return
if (req.getParameter("ejb-load") != null)
return;
if (_exception != null)
throw _exception;
try {
if (pathInfo == null)
pathInfo = "";
skeleton = _protocolContainer.getSkeleton(pathInfo, queryString);
} catch (Exception e) {
log.log(Level.WARNING, e.toString(), e);
skeleton = _protocolContainer.getExceptionSkeleton();
if (skeleton != null) {
skeleton._service(req.getInputStream(), res.getOutputStream(), e);
return;
}
else
throw e;
}
if (skeleton == null)
throw new ServletException(L.l("Can't load skeleton for '{0}?{1}'",
pathInfo, queryString));
if (skeleton != null) {
skeleton.setDebug(_isDebug);
_beanMap.put(cb, skeleton);
}
}
skeleton._service(req.getInputStream(), res.getOutputStream());
} catch (ServletException e) {
e.printStackTrace();
throw e;
} catch (Throwable e) {
e.printStackTrace();