Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7734337
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:13:29+00:00 2026-06-01T07:13:29+00:00

Ok, I got one of our JAVA/JDBC guys to come take a look at

  • 0

Ok, I got one of our JAVA/JDBC guys to come take a look at my JDBC issue as documented in http://stackoverflow.com/questions/9787525/jdbc-ordeal-it-shouldnt-be-that-difficult-partial-solved-new-errors It seems that if I put ojdbc14 as the ConnectionName I get this error:

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

But if I put ojdbc14.jdbc as the ConnectionName I get this error:

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

He seems to think that the second version is the one that should be used, but that there is some missing configuration on the server, like JNDI name or something like that.

I need someone to confirm that one or the other of these is the correct format and what exactly has to be done of the server side for it to find the connection information.

Any help would be appreciated.

MJ

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T07:13:30+00:00Added an answer on June 1, 2026 at 7:13 am

    See http://www.openntf.org/internal/home.nsf/response.xsp?action=openDocument&documentId=7888655D70FDDD6186257930002E1D3F&MainID=D861DE698262EDDA86257930002AEE52 for an example how to connect to MS SQL. It might give you some ideas, since JDBC is more or less the same for any RDBMS. See specifically point 1. It’s not enough to put the .jar to plugins folder. It needs to be as plugin.

    See http://www-10.lotus.com/ldd/ddwiki.nsf/dx/creating_an_xpages_library for instructions how to create a plugin.

    Update
    I did try it from scratch with H2 database engine. Following works:

    1) I imported JDBC driver to WebContent/WEB-INF/lib

    2) I did create WebContent/WEB-INF/jdbc/h2.jdbc with following content

    <jdbc>
        <driver>org.h2.Driver</driver>
        <url>jdbc:h2:tcp://localhost/~/test</url>
        <user>SA</user>
        <password></password>
    </jdbc>
    

    3) Create a simple Xpage with following content. I marked with bold part where connection defined in (2) is specified.

    <xp:viewPanel rows="10" id="viewPanel1" var="user">
        <xp:this.facets>
            <xp:pager partialRefresh="true" layout="Previous Group Next"
                xp:key="headerPager" id="pager1">
            </xp:pager>
        </xp:this.facets>
        <xp:this.data>
            <xe:jdbcQuery connectionName="h2" sqlQuery="select * from test"
                var="jdbcData1" defaultOrderBy="id">
            </xe:jdbcQuery>
        </xp:this.data>
        <xp:viewColumn id="viewColumn1" columnName="id">
            <xp:this.facets>
                <xp:viewColumnHeader xp:key="header" id="viewColumnHeader1"
                    value="ID" sortable="true">
                </xp:viewColumnHeader>
            </xp:this.facets>
        </xp:viewColumn>
        <xp:viewColumn id="viewColumn2" columnName="name">
            <xp:this.facets>
                <xp:viewColumnHeader xp:key="header" id="viewColumnHeader2"
                    value="NAME" sortable="true">
                </xp:viewColumnHeader>
            </xp:this.facets>
        </xp:viewColumn>
    </xp:viewPanel>
    

    Will try reproduce it later in Oracle 11g Express Edition.

    UPDATE #2

    For Oracle 11 XE Release 2 it works exactly the same, with only one exception. I had to follow http://www-01.ibm.com/support/docview.wss?uid=swg21279509 to grant following rights:

    grant {
        permission java.lang.RuntimePermission "getClassLoader";
    }
    

    In addition, I used ojdbc6.jar as advised in Oracle documentation, due to fact that Domino 8.5.3 uses Java 6. Of course, my initial statement with adding Oracle JDBC driver to Domino in form of a plugin, since this will allow you to use it in every XPages application.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A customer got this Java security warning on one of our ancient java components
I've got a crash in our app which I can't debug as one of
i got one page from curl which contain <?xml version=1.0 encoding=UTF-8?> <ipinfo xmlns=http://data.quova.com/1 xmlns:xs=http://www.w3.org/2001/XMLSchema-instance>
I've got one really big .java class file that has a lot of members.
I have got one weird issue. I am working on an asp .net mvc
Today one of our app got rejected due to email button for enquiries and
One of our applications recently got installed in a system that is tightly locked
We got a problem in one of our ASP.net apps, the mscorwks.dll is using
We recently got a call from one of our clients, complaining that their site
Just started converting our maps from V2 of the API to v3. Got one

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.