Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-22-2012, 10:52 AM   #1
Registered: Jun 2011
Posts: 96

Rep: Reputation: Disabled
Unable to connect to database while redirecting apache to tomcat

Hi,I have apache 2.2 and tomcat 7 servers on same rhel5 machine.I deployed a project in tomcat and created corresponding database on mysql server 5.5.Project successfully deployed on tomcat,able to see webpage and all the database working fine.I checked it through
And then i redirected it to apache web server which holds my website like this :
ProxyPass / http://localhost:8080/myapp/
ProxyPassReverse / http://localhost:8080/myapp/

and it used to work for me earlier.
later unfortunately server restarted and since then its not working.
actually when i try to browse the website like this :
it redirects upto SID(site ID) of the project ,but after that page doesn't open ,it says resource not available
Valid suggestions would be greatly appreciated.
Thankyou in advance....
Old 10-23-2012, 03:55 AM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971
there's really no way a mod_proxy redirect should have any way at all to influence the back end database connection. If it does, you've got some serious code issues. You need to work out if this is an apache / tomcat issue or a tomcat / mysql issue.
Old 10-23-2012, 07:43 AM   #3
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 558
Blog Entries: 5

Rep: Reputation: Disabled
You can integrate Tomcat Server with Apache using mod_jk(Tomcat Connector).


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot connect to mysql database while redirecting apache to tomcat mlnm Linux - Newbie 1 07-19-2012 10:49 AM
Redirecting Apache website to Tomcat mlnm Linux - Newbie 2 05-30-2012 10:41 AM
Redirecting Apache/Tomcat Logs to rsyslog without writing to disk.... elorson Linux - Software 1 05-29-2011 12:56 AM
how to connect to 10g database from jsp using tomcat server? host Red Hat 0 12-05-2005 01:37 AM
TOMCAT connect to MS SQL database shane200_ SUSE / openSUSE 1 06-01-2005 02:41 PM

All times are GMT -5. The time now is 01:35 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration