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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:02:57+00:00 2026-05-26T03:02:57+00:00

On a glassfish server I have a JDBC Connection pool set up for my

  • 0

On a glassfish server I have a JDBC Connection pool set up for my postgresql database. I have also create a JDBC Resource on my Glassfish server for this Connection pool

If I create a web app that I deploy and run on this Glassfish server I get the following message about the jdbc resource. (IDE is Eclipse)

[#|2011-10-03T13:33:09.745+0200|WARNING|glassfish3.1.1|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=132;_ThreadName=Thread-2;|This web app [GlassfishTest] has no expand »resource environment reference by the name of [jdbc/MEM_Reporting]|#]

In my web.xml the resource is configured as follows:

<resource-env-ref>
<resource-env-ref-name>jdbc/MEM_Reporting</resource-env-ref-name>
<jndi-name>reporting</jndi-name>
</resource-env-ref>

I have been searching for a while now but cant find any solution, hope any of you guyz can help out.

  • 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-05-26T03:02:57+00:00Added an answer on May 26, 2026 at 3:02 am

    Shouldn’t you’ve be using resource-ref instead of resource-env-ref?

    UPDATE:

    How do you reference it? Did you try to reference it with “java:comp/env/jdbc/MEM_Reporting”

    also in web.xml resource-ref should look ike

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

    in sun-web.xml

     <resource-ref>
         <res-ref-name>jdbc/MEM_Reporting</res-ref-name>
         <jndi-name>jdbc/MEM_Reporting</jndi-name>
     </resource-ref>
    

    Also, take a look at
    Sun documentation for Reference Elements

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

Sidebar

Related Questions

i have an spring web application (on glassfish server) that use JDBC connection pool.
We have a Java EE-based web application running on a Glassfish app server cluster.
I have an embedded glassfish server and a small web app. I want to
I have glassfish installed on a server with a JMS ConnectionFactory set up jms/MyConnectionFactory
I have a Web Application deployed to a local Glassfish server which I would
I have Enterprise Application with EJB3 and JSF on Glassfish server. After running this
I would like to monitor remote glassfish server. I have enabled JMX Connection in
I have JSF with Richfaces app on Glassfish server. Is it possible to make
I want to create a JDBC Realm for my web app. Since my users
I've got a Glassfish v3 server running a few web applications (servlets, JSP, JDBC).

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.