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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:51:08+00:00 2026-06-13T06:51:08+00:00

I am trying to deploy my spring 3 + tomcat 6 + mysql 5.5

  • 0

I am trying to deploy my spring 3 + tomcat 6 + mysql 5.5 application on cloud foundry cloud. I am able to deploy application from Eclipse using STS plugin for cloudfoundry. Now issue i am getting is my application is not ablt to connect to database. I have configured a mysql service and started a tunnel. I have used tunnels username/password and URL to connect to database in application context file.

<Resource name="jdbc/myDB" auth="Container" type="javax.sql.DataSource"
           maxActive="10" maxIdle="3" maxWait="10000"
           username="xxx" password="xxx" driverClassName="com.mysql.jdbc.Driver"
           url="jdbc:mysql://127.0.0.1:10100/xxx?autoReconnect=true"/>

I am getting error.

Could not get JDBC Connection; nested exception is org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Could not create connection to database server. Attempted reconnect 3 times. Giving up.)

Can someone please help me. Also let me know how to upload my local sql database dump on cloud foundry DB because i think once i will be able to connect this is going to be another problem

  • 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-13T06:51:10+00:00Added an answer on June 13, 2026 at 6:51 am

    Spring applications should automatically configure JDBC connections to services bound to the application. I would recommend having a good read through of the following wiki page;

    http://docs.cloudfoundry.com/frameworks/java/spring/spring.html#determining-whether-your-application-can-be-auto-configured

    As for connecting to the service externally, you can use the VMC client to tunnel to MySQL and then use MySQL to load a SQL dump, that’s all explained on the following wiki page;

    http://docs.cloudfoundry.com/tools/vmc/caldecott.html

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

Sidebar

Related Questions

I am trying to develop my first spring application and deploy it to tomcat
I am trying to deploy my web-application to tomcat using maven 3.x here is
I am trying to deploy a Spring application on WAS 6.0 (JDK 1.4.2). Day
I am trying to deploy Spring - Tiles - Hibernate based application in WebSphere
I'm trying to deploy an application in weblogic which is based on a Spring
I am trying to deploy a dynamic web application in eclipse made up of
I am trying to deploy a WAR on the mentioned tomcat application server. However
I'm trying to deploy a Rails application from my local machine to the VPS
While trying to deploy my spring app on tomcat 6 I get an error
I am trying to deploy a simple rest service with eclipse (using jersey) on

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.