GeeCON Prague 2014*
The moose likes JSP and the fly likes Regarding including jar files for directory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "Regarding including jar files for directory" Watch "Regarding including jar files for directory" New topic
Author

Regarding including jar files for directory

priya pillai
Ranch Hand

Joined: Sep 12, 2007
Posts: 57
Hi friends,

In my web application , directory structure is


Some of the jsp files are in ROOT folder and some jsp files are in ZSOR folder.The jsp files in ROOT folder are working fine.I am getting problem with the jsp files in ZSOR folder.I am getting error of

java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver .This driver is used to connect to mysql database.I copied the jar file in lib folder of ZSOR.

Note:I am using Tomcat,Mysql,linux.

Please help me to sort our this issue.

Regards
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61298
    
  66

ROOT and ZSOR are separate web applications that have nothing to do with each other. Each needs to have the jar files that they need in each of their own folders.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
priya pillai
Ranch Hand

Joined: Sep 12, 2007
Posts: 57
I copied all the jar files for ZSOR folder files in ZSOR folders lib
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61298
    
  66

Are you sure that the jar file contains the driver class?
priya pillai
Ranch Hand

Joined: Sep 12, 2007
Posts: 57
yes it contains Driver files.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Regarding including jar files for directory