This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Problem connecting tomcat6 with oracle db in ubuntu Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Problem connecting tomcat6 with oracle db in ubuntu" Watch "Problem connecting tomcat6 with oracle db in ubuntu" New topic
Author

Problem connecting tomcat6 with oracle db in ubuntu

suzanne d'souza
Greenhorn

Joined: Feb 15, 2013
Posts: 4
Hey guys,

i would really appreciate some help on this..

i installed ubuntu server in remote n then tomcat6..i deployed my war using tomcat manager..

n placed classes12.jar n ojdbc14.jar in

/var/lib/tomcat6/common/classes

and created an xml file called age_rep.xml (age_rep is my appl folder name).my Age_rep.xml looks like this :






i then modified web.xml file in

/var/lib/tomcat6/webapps/age_rep/WEB-INF (age_rep is my appl folder).web.xml looks like




and then i have included the below line in my code



but still its not getting corrected..
I followed the same procedure(except placed the jar files in tomcats/lib) in windows and that works fine..please help

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16303
    
  21

You seem to have something strange going on. The common/lib directory was part of Tomcat 5, but no longer exists in Tomcat 6. In Tomcat 6, database driver jars should go in the TOMCAT_HOME/lib directory. Also, classes12 is about 10 years ago and was replaced by the ojdbc14.jar.


Customer surveys are for companies who didn't pay proper attention to begin with.
suzanne d'souza
Greenhorn

Joined: Feb 15, 2013
Posts: 4
sir.i tried reinstalling tomcat6 again on my ubuntu..the path is the same..
n still no changes
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem connecting tomcat6 with oracle db in ubuntu