hi friends,
i have a servlet deployed in tomcat which is embeded into IS integration server;
when writing the log information from the servlet to server.log file the log info is not writing into the log file, but the request is successful
following is the code snippet:- any clues, appreciated, thanks in advance
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
//BufferedReader b = request.getReader ();
//String IDoc = b.readLine ();
//response.getWriter().print(IDoc);
response.getWriter().print("SAPIDOC - GET Successful \n");
ServletContext ctx = getServletContext();
// Will show on IS level 8
ctx.log("logging a string in the IS server log via the Servlet API");
log.info("Servlet logging at the IS level 4");
log.debug("Servlet logging at the IS level 8");
try
{ log.info("ServletLog: start log message");
log.info(this.getServletConfig().getServletContext().getRealPath("//..//..//..//..////")+"SAPidoc" + System.currentTimeMillis()+ ".xml");
}
catch (Exception e)
{
log.error("ServletError: " + e.getMessage());
}
response.getWriter().print("SAPidoc" + System.currentTimeMillis()+ ".xml");
}
#webMethods#Integration-Server-and-ESB#webMethods-Archive