I acquired file .ova to revive virtual machine with installed and set up some jee application. Unfortunatelly, I've got a bit of trouble with connect with database (also is preinstalled on that .ova file). I've no clue what it really can often mean and what must i do. Worth to express, my 2 other colleagues imported whole factor without trouble, they are able to connect with database.

Anyway on their own virtual machine they've internet connection, I do not, can it be the main reason? Project use hibernate for connecting to localhost with following particulars: (however i obtain the same error with every other tool for connecting db)

<bean id="dataSource"
    class="org.springframework.jdbc.datasource.DriverManagerDataSource">
    <property name="driverClassName">
        <value>oracle.jdbc.driver.OracleDriver</value>
    </property>
    <property name="url">
        <value>jdbc:oracle:thin:@localhost:1521:xe</value>
    </property>
    <property name="username">
        <value>ad</value>
    </property>
    <property name="password">
        <value>ad</value>
    </property>
</bean>

Another diffrence between my hardware and them, my host product is windows 7 x64, their are windows xp.

Help! Thanks ahead of time!

The file ought to be .ora

jdbc:oracle:thin:@localhost:1521:xe

This means you ought to have a began and completely functional oracle database instance in your machine.

Are you able to see following services running inside your virtual machine. run services.msc

  • OracleXE
  • OracleXEListener

If they're began and you will connect Oracle XE inside your virtual machine (Use XE's connect to start menu link for simple checking. )

Your issue is together with your network reference to VM as well as your Host machine. Turn to coworker's network connection configurations. Virtual Box version is below.

http://www.virtualbox.org/manual/ch06.html

  • Not attached
  • Network Address Translation (NAT)
  • Bridged networking
  • Internal networking
  • Host-only networking
  • Generic networking

After you accomplish that , you have to improve your connection string if you're attempting to connect from Host to Virtual Machine. Give your Virtual Machine's IP inside your connection string.