import java.io.IOException;
import java.util.Enumeration;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.servlet.*;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.sip.SipFactory;
import javax.servlet.sip.SipServlet;
public class MyRegister extends HttpServlet {
private SipFactory sipFactory;
@Override
public void init(ServletConfig config) throws ServletException {
super.init(config);
ServletContext context = config.getServletContext();
Enumeration e = context.getAttributeNames();
    while (e.hasMoreElements()) {
      String name = (String) e.nextElement();
      System.out.println("  context.getAttribute(\"" + name + "\"): " + context.getAttribute(name));
    }
    System.out.println(config.getServletContext().getAttribute("javax.servlet.sip.SipFactory"));
// sipFactory = (SipFactory)(config.getServletContext().getAttribute("javax.servlet.sip.SipFactory"));
}
按sipservlet网站上的demo一般都可以通过 sipFactory = (SipFactory)(config.getServletContext().("javax.servlet.sip.SipFactory"));获得sipFactory的实例,但是我现在无法获得,有没有了解这种情况的,到底是SipServlet需要其他jar包支持还是其他原因