오라클 데이터베이스를 사용하는 코드 spring + hibernate가 있습니다. 구성을 설정했지만 여전히 다음과 같은 오류가 발생합니다.
cannot Deploy Spring3HibernateApp
deploy is failing=Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'driverClassName' threw exception; nested exception is java.lang.IllegalStateException: Could not load JDBC driver class [oracle.jdbc.driver.OracleDriver]. Please see server.log for more details.
다음과 같이 database.properties를 만들었습니다.
database.driver=oracle.jdbc.driver.OracleDriver
database.url=jdbc:oracle:thin:@xxx:1521:xxx
database.user=xxxx
database.password=welcome1
hibernate.dialect=org.hibernate.dialect.Oracle10gDialect
hibernate.show_sql=true
hibernate.hbm2ddl.auto=update
ADF에서 시도하면 프로그램이 실행 중입니다.
어떻게 고칠 수 있습니까?
이 링크에서 oracl JDBC 드라이버를 다운로드해야합니다.
http://www.oracle.com/technetwork/apps-tech/jdbc101040-094982.html
라이센스에 동의 한 다음
ojdbc14.jar
다운로드 후 jar 파일을 복사 한 다음 classpath / lib 폴더에 붙여 넣습니다.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다