@pomaz_andrew

Как корректно подключить стороннюю jar-библиотеку с подписью к сервлету?

Всем доброго дня! Не получается подключение сторонней jar-библиотеки
к сервлету (Eclipse + Tomcat). Размещаю jar прямо в папке сервера lib, сервер
перестает стартовать сразу. Текст сервлета:

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
	}
}


Сервлет простейший. Я так понимаю, что проблема из-за цифровой подписи в этом jar (есть файлы RSA и SF). Как обеспечить корректное подключение библиотеки в обход этой подписи? Или как настроить Eclipse или Tomcat, чтобы игнорировались файлы подписи. Спасибо.
  • Вопрос задан
  • 365 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы