Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

My page always need click reload to connect database  RSS feed

 
Ratih Pertiwi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

I developed my web app in Windows environment and need to deploy it on Linux, but i get a problem in database connection.
My web page is not connected with database automatically each time onload, we must click "Reload/Refresh" in web browser to get connected with the database.
I have no idea what's wrong since it work well in my laptop on localhost which is Windows.

Can you tell me any suggestion to solve this problem? I use connection pooling to my database in MySQL. I developed the application using Struts framework, and deploy it in Tomcat server through JBoss.

Here is some code I write:

1. context.xml


2. web.xml


3. connection pooling class


Any response I really appreciate it.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!