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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:19:35+00:00 2026-06-13T21:19:35+00:00

Eclipse Version: (Java EE): 3.7 Indigo, 32 bit Tomcat version: 6.0 OS: Windows 7

  • 0

Eclipse Version: (Java EE): 3.7 Indigo, 32 bit
Tomcat version: 6.0
OS: Windows 7 64-bit SP1

Problem: I have created a dynamic web-app xyz in Eclipse. After properly integrating Eclipse and Tomcat, I added xyz to the local server instance, and I edited xyz’s context entry in server.xml (in the Eclipse server project) to include a jdbc resource reference.

server.xml (in Eclipse. Username, pwd, ip etc. below are altered)

<Context docBase="xyz" path="/xyz" reloadable="true" source="org.eclipse.jst.j2ee.server:xyz">
      <Resource auth="Container" 
                driverClassName="oracle.jdbc.driver.OracleDriver" 
                factory="org.apache.commons.dbcp.BasicDataSourceFactory"
                maxActive="100"
                maxIdle="30"
                name="jdbc/xyz"
                username="123"
                password="123"
                type="javax.sql.DataSource"
                url="jdbc:oracle:thin:@1.1.1.1:sid" />
</Context>

However, when Eclipse publishes this server.xml file to the hot deploy folder
(in Windows, located at .metadata … > tmp0 > conf), Eclipse omits the Resource refcompletely. The deployed server.xml file looks like:

<Context
    docBase="C:\ws\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\xyz"
    path="/xyz"
    reloadable="true"
    source="org.eclipse.jst.j2ee.server:xyz" />

Why is this happening? (Is there a fix?). In other words, how do I make Eclipse deploy the server.xml file WITH my resource ref?

  • 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-13T21:19:37+00:00Added an answer on June 13, 2026 at 9:19 pm

    You Should put the DataSource entries in Context.xml and not Server.xml

    its not recommended to use <Context></context> in server.xml from version 6.0 onwards.

    Update : to resolve Sever.xml doesnt copy

    refer to this quote Source

    You don’t need to edit the copy in the temp directory. It will be
    updated from the master copy (currently in configs) the next time you
    publish.

    Since you know enough about the Tomcat configuration, there’s another
    thing that will help. Under Preferences > Server, select the checkbox
    that creates resources in the workspace. Then delete the existing
    Tomcat server and create another one. This will create all the
    resources inside the workspace instead of in the .metadata directory,
    so you can edit them alongside other files in your workspace.

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

Sidebar

Related Questions

Running Eclipse Indigo Service Release 2, on Windows 7. (Java EE Version) When in
I use Eclipse IDE: Eclipse Java EE IDE for Web Developers. Version: Indigo Release
I'm using : Eclipse Java EE IDE Web Developers version:Indigo Release with hibernate tools,
I've installed Eclipse Indigo SR2 EE: Eclipse Java EE IDE for Web Developers. Version:
I have downloaded Eclipse Java EE version (3.5) and I would like to use
I have Eclipse PDT version 1.3.0 PHP Version 5.3.8 Running on windows XP Pro
I have download entire Eclipse Helios/Indigo version Source Code. Now I want to work
I added 32-bit android adk to eclipse(Classic, Indigo, Version: 3.7.0 Build id: I20110613-1736) in
I've installed Android SDK in Eclipse Indigo on Windows 7 64 bit, but when
I am new to eclipse and learning Eclipse with version Eclipse Indigo JAVA EE

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.