JDBC Ordeal: it shouldn't be that difficult (Partial Solved, New Errors)

一笑奈何 提交于 2019-12-20 06:38:40

问题


I have been trying to get the JDBC portion of the Extension library to work with our Oracle databases now for about 2 months. I've worked through various issues and misunderstandings.

Currently, I can run the sample database that comes with the Extension Library with no apparent issues. But, it doesn't like something about my Oracle setup. My jdbc file is ojdbc14.jdbc and I am using ojdbc14 as my connection name.

I put the ojdbc14.jdbc file in the WEB-Inf folder in the package explorer. I put the ojdbc14.jar file in the Notes\jvm\lib\ext folder of my client computer and put the ojdbc.jar file in the Lotus/Domino/notedev/domino/workspace/applications/eclipse/plugins folder of the server.

Here's my jdbc file:

<jdbc>
    <driver>oracle.jdbc.Driver.OracleDriver</driver>
    <url>jdbc:oracle:thin://irmsrv81:1600:pt40/CMIS</url>
    <user>UserName</user>
    <password>Password</password>
</jdbc>

When I preview my simple view xpage I get:

Error while reading the relational data comp/env/jdbc/ojdbc14

and then in the Stack trace I get these errors:

com.ibm.xsp.FacesExceptionEx: Error while reading the relational data

java.sql.SQLException

javax.naming.NameNotFoundException: comp/env/jdbc/ojdbc14

Here is my sqlQuery property of my viewPanel1:

select * from CMIS.VCOLLECTION

I am the person in our organization that is trying to champion XPages as the future of our web development and have a huge demostration presentation in April. JDBC is a significant piece of that presentation and a pivotal issue with the future of XPages at our company. If anyone can help, I would be eternally greatful.

UPDATE - New Errors:

I had my admin add the path above to the default path of the server and now I believe it is seeing my jar file. However, I'm getting a new set of errors:

Exception
Error while reading the relational data
Error while loading connection ojdbc14
Error parsing XML stream
InputStream cannot be null

Then from the Stack Trace:

com.ibm.xsp.FacesExceptionEx: Error while reading the relational data
java.sql.SQLException
com.ibm.designer.runtime.resources.ResourceFactoriesException: Error while loading connection ojdbc14
com.ibm.commons.xml.XMLException: Error parsing XML stream

Any idea what these mean?


回答1:


Based on your question here and your other related question ( JDBC installed, but getting error trying to connect to Oracle ) it sounds like you need to add the ojdbc14.jar file to the jvm\lib\ext folder on the server (or somewhere else where the server can see it).



来源:https://stackoverflow.com/questions/9787525/jdbc-ordeal-it-shouldnt-be-that-difficult-partial-solved-new-errors

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!