LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 10-22-2012, 09:52 AM   #1
mlnm
Member
 
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
http://localhost:8080/myapp
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 :
http://mywebsitename.com
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, 02:55 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,384

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
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, 06:43 AM   #3
arun5002
Member
 
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 549
Blog Entries: 5

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


Reply


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 09:49 AM
Redirecting Apache website to Tomcat mlnm Linux - Newbie 2 05-30-2012 09:41 AM
Redirecting Apache/Tomcat Logs to rsyslog without writing to disk.... elorson Linux - Software 1 05-28-2011 11:56 PM
how to connect to 10g database from jsp using tomcat server? host Red Hat 0 12-05-2005 12:37 AM
TOMCAT connect to MS SQL database shane200_ Suse/Novell 1 06-01-2005 01:41 PM


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

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