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 7836319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T14:05:39+00:00 2026-06-02T14:05:39+00:00

I have a Dynamic Web Project in Eclipse and is trying to connect through

  • 0

I have a Dynamic Web Project in Eclipse and is trying to connect through JDBC to Oracle 11g Release 2 Express Edition. But I am getting the error with the following message :

Could not connect to Oracle 11g XE Conn.
Error creating SQL Model Connection connection to Oracle 11g XE Conn. (Error: IO Error:     The Network Adapter could not establish the connection)
IO Error: The Network Adapter could not establish the connection
Error creating JDBC Connection connection to Oracle 11g XE Conn. (Error: IO Error: The Network Adapter could not establish the connection)
IO Error: The Network Adapter could not establish the connection

To add, since I am using Apache Tomcat 6.0.35, I have added the Resource and ResourceParams (for the database that I am trying to access) in the server.xml file of
\conf.

<Resource name="jdbc/FlightDB" scope="Shareable" type="javax.sql.DataSource"
          auth="Container" description="Home Oracle 11g Express Edition"/>
        <ResourceParams name="jdbc/FlightDB">
            <parameter>
                <name>driverClassName</name>
                <value>oracle.jdbc.driver.OracleDriver</value>
            </parameter>

            <parameter>
                <name>url</name>
                <value>jdbc:oracle:thin:@server:1521:flightDB</value>
            </parameter>

            <parameter>
                <name>username</name>
                <value>system</value>
            </parameter>

            <parameter>
                <name>password</name>
                <value></value>
            </parameter>

        </ResourceParams>

Also, I have added the resource-ref element in web.xml of my current web application.

   <resource-ref>
        <res-ref-name>jdbc/FlightDB</res-ref-name>
        <res-type>javax.sql.DataSource</res-type>
        <res-auth>Container</res-auth>
   </resource-ref>

But it is no help as the problem recurs.

Any help will be greatly appreciated. Look forward to replies.

Thanks,

Somnath

  • 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-02T14:05:40+00:00Added an answer on June 2, 2026 at 2:05 pm

    Try following url

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

    Last part is SID of server, not database name. Database (or Schema) name is determined by user name during log in. So if your database name is flightDB then there is also user called flightDB. Also check that user has sufficient privileges.

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

Sidebar

Related Questions

I'm trying to create a dynamic web project in eclipse, but my version of
I have a dynamic web project in eclipse, which uses annotations to map servlets
(Eclipse 3.4, Ganymede) I have an existing Dynamic Web Application project in Eclipse. When
I have an existing Dynamic Web Project in Eclipse Indigo and the m2e plugin
I have created a web application using Jersey and Dynamic Web Project of Eclipse.
I have a basic web application (dynamic web project in eclipse) with an associated
I have a modular Dynamic Web Project in Eclipse. When I try to publish
I have a small Dynamic web project in Eclipse gallileo that references another project.
I have created simple Java Dynamic Web project in Eclipse. I host my project
I've created a Dynamic Web Project in Eclipse. I have 2 beans, 1 @Entity

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.