powered by Jive Software

Can not get log in post or get methods of the servlet

Hi All,

I have added servlet in the pacakge org.jivesoftware.openfire.plugin.presence but am not able to get the log inside post or get , am able to reach method init only , any one can help to fix this issue

here is my servlet:

package org.jivesoftware.openfire.plugin.presence;

import java.io.IOException;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.jivesoftware.util.Log;

public class TestServlet extends HttpServlet {

/**
*
*/
private static final long serialVersionUID = 7666454541923516489L;

public void init(ServletConfig servletConfig) throws ServletException {
Log.info(“Inside init**”);
super.init(servletConfig);
}

protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
Log.info(“Inside Get**”);
}

protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
Log.info(“Inside Post**”);
}

/* public void destroy() {
super.destroy();
//AuthCheckFilter.removeExclude(“presence/TestServlet”);
}*/

}

by the way am calling the servlet as

http://tech:9090/plugins/presence/TestServlet

any luck by now ?