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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:42:36+00:00 2026-06-17T22:42:36+00:00

I am trying to add the removeAbandoned attribute to a resource in an environment

  • 0

I am trying to add the removeAbandoned attribute to a resource in an environment running Tomcat 5.5. Before adding this attribute, the servlet running in this environment works fine. As soon as I add the attribute an exception is thrown as follows:

EXCEPTION javax.naming.NamingException: No set method found for property: removeAbandoned.

I do not understand why this is happenning. As soon as I remove the attribute, the servlet works again.

Below is the entire Context tag as it appears in my environment:

<Context path="/emscribe" docBase="emscribe" debug="0" reloadable="true"  
crossContext="true"> 

 <Logger className="org.apache.catalina.logger.FileLogger" prefix="emscribe_log." 
 suffix=".txt" timestamp="true"/> 

 <Resource name="jdbc/emscribe" auth="Container" 
 type="com.mchange.v2.c3p0.ComboPooledDataSource" driverClass="com.mysql.jdbc.Driver"  
  maxPoolSize="100"  minPoolSize="5"   

 acquireIncrement="5"  removeAbandoned="true"
  user="aUserID"  

 password="aPassword"

 factory="org.apache.naming.factory.BeanFactory"   

  jdbcUrl="jdbc:mysql://127.000.71.101/emscribedx?autoReconnect=true" 
 /> 
  • 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-17T22:42:37+00:00Added an answer on June 17, 2026 at 10:42 pm

    Your exception:

    javax.naming.NamingException: No set method found for property: removeAbandoned.
    

    states that it can’t find a method getRemoveAbandoned() and setRemoveAbandoned(boolean removeAbandoned) from the type specified in your resource.

    The removeAdandoned property can only be used with Apache DBCP BasicDataSource.

    So, your resource jdbc/emscribe type must not be com.mchange.v2.c3p0.ComboPooledDataSource but rather org.apache.commons.dbcp.BasicDataSource.

    Hope this helps.

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

Sidebar

Related Questions

Trying to add a stop function to the Audio object in javascript like this
Trying to add a 'class' html attribute, but I think the keyword 'class' is
Just trying to add some text before function's result. onClick=$('#itempriceqty0').clone().appendTo('#itempricewrapper').attr('id', $('#itempricewrapper').children().length-5+1) So I need
Im trying to add 5 to this vector if a number in the vector
I'm trying add a space before a particular string ( Token for example) by
Trying to add objects to a ArrayDeque at random intervals. This is what I
Trying to add public methods to this slider I purchased but have little knowledge
Trying to add an xml element and attribute between an existing one. I have
Trying to add a column with a custom attribute to the admin customer grid
Trying to add my event handler to ComponentDispatcher.ThreadPreprocessMessage event like this: using System; using

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.