Я настроил подключение к базе данных в JNDI в context.xml в папке «conf» в Tomcat:
Код: Выделить всё
Код: Выделить всё
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
oracle.toplink.essentials.PersistenceProvider
java:/comp/env/jdbc/Test1
persistence.entity.printers
При запуске проекта возникла ошибка:
Код: Выделить всё
javax.servlet.ServletException: #{loginBean.iniciarSesion}: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0 (Build b40-rc (03/21/2007))): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
Спасибо за помощь
Подробнее здесь: https://stackoverflow.com/questions/791 ... ame-not-fo