I made a basic JUnit test to set up this oracle database on my computer with hibernate. The database works and everything, but trying to hook it up to Hibernate is proving to be a challenge. My config file is below:
<hibernate-configuration>
<session-factory>
<!-- Database Connection Properties -->
<property name="hibernate.connection.driver_class">oracle.jdbc.OracleDriver</property>
<property name="hibernate.connection.url">jdbc:Oracle:thin:@127.0.0.1:8080/slyvronline</property>
<property name="hibernate.connection.username">YouNoGetMyLoginInfo</property>
<property name="hibernate.connection.password">YouNoGetMyLoginInfo</property>
<property name="hibernate.connection.pool_size">10</property>
<property name="dialect">org.hibernate.dialect.OracleDialect</property>
<!-- Other -->
<property name="show_sql">true</property>
<property name="hibernate.hbm2ddl.auto">validate</property>
<!-- Mapping files -->
<mapping class="com.slyvr.pojo.Person"/>
</session-factory>
</hibernate-configuration>
The JUnit test is fairly straight forward and I'm sure it should work, but I'm getting this JUnit failure:
org.hibernate.exception.JDBCConnectionException: Cannot open connection
Any ideas what's wrong with it?
Full stack trace is here: http://pastebin.com/KmWeVdqG
JUnit test is here: http://pastebin.com/HZbFdPPX
And just in case...Person Pojo class: http://pastebin.com/nuHEX0rr