Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
JDBCConnectionPool - initialization failed
Hi.
I downloaded vaadin-6.7.5.jar and try to connect Oracle database (ojdbc14.jar provider) from NetBeans 7.0.1
My code:
try {
JDBCConnectionPool connectionPool = new SimpleJDBCConnectionPool(
"oracle.jdbc.driver.OracleDriver",
"jdbc:oracle:oci8:@localhost:1521:testing",
"xx", "xx", 2, 5);
} catch (SQLException ex) {
Logger.getLogger(MyApplication.class.getName()).log(Level.SEVERE, null, ex);
}
I got an exception oracle.jdbc.driver.OracleDriver - initialization failed
I tried "oracle.jdbc.OracleDriver" instead "oracle.jdbc.driver.OracleDriver" it doesn't worked.
Besides that, I have a desctop application thich connect to Oracle database very well, and here is it persistence.xml file:
<property name="toplink.jdbc.user" value="xx"/>
<property name="toplink.jdbc.password" value="xx"/>
<property name="toplink.jdbc.url" value="jdbc:oracle:oci8:@localhost:1521:testing"/>
<property name="toplink.jdbc.driver" value="oracle.jdbc.driver.OracleDriver"/>
The parametres for Driver and Url I took from it.
What i do wrong? How can I escape the exception - initialization failed?
Thank you.
P.S. I'm a newcomer in NetBeans and Java.
I'm not familiar with the mentioned Oracle database, but my first guess would be to check that all the necessary JARs are installed in WEB-INF/lib. They are not checked compile-time as the driver selection is done there with a string.
Some more of the stack dump might also be informative.
If you use JPA in your Vaadin application, you could use the same persistence.xml file to avoid errors from that. I don't know if you are going to use JPAContainer or not, but the JPAContainer docs in the Book have more details on configuring JPA stuff in general.
You was right, not all necessary JAR's was installed/add in Libraries. Thank you!