P
P
pomaz_andrew2017-04-06 13:43:56
Java
pomaz_andrew, 2017-04-06 13:43:56

How to correctly connect a third-party jar-library with a signature to a servlet?

Good day everyone! Unable to connect a third-party jar library
to a servlet (Eclipse + Tomcat). I place the jar directly in the lib server folder, the server
stops starting immediately. Servlet text:

import java.io.IOException;
import java.io.PrintWriter;  
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
 * Servlet implementation class PrepayServlet
 */
@WebServlet("/PrepayServlet")
public class PrepayServlet extends HttpServlet {
  private static final long serialVersionUID = 1L;
       
    /**
     * @see HttpServlet#HttpServlet()
     */
    public PrepayServlet() {
        super();
        // TODO Auto-generated constructor stub
    }

  /**
   * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
   */
  protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    // TODO Auto-generated method stub

    
  }

  /**
   * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
   */
  protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    // TODO Auto-generated method stub
  }
}

The servlet is simple. I understand that the problem is due to the digital signature in this jar (there are RSA and SF files). How to ensure the correct connection of the library bypassing this signature? Or how to configure Eclipse or Tomcat to ignore signature files. Thank you.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question