the jar file for your sybase driver should in the class path of tha app server. If it's tomcat put your jar file in tomcat_home/common/lib
it will work. -navjot singh |-----Original Message----- |From: Chirag Mehta [mailto:[EMAIL PROTECTED] |Sent: Thursday, July 31, 2003 5:01 PM |To: Struts Users Mailing List |Subject: Database Connection | | |Hello, | |I have just started developing with Struts and was wondering if |anyone could help me connect to a Sybase Database using my webapp? | |I have set up my JSP page, actionform and action. I have set the |datasource properies in my config.xml and am calling them from my |action. It is giving me a class not found exception like below. | |java.sql.SQLException: open: java.lang.ClassNotFoundException: |com.sybase.jdbc2.jdbc.SybDriver | at |org.apache.struts.legacy.GenericDataSource.open(GenericDataSource.java:735) | at |org.apache.struts.action.ActionServlet.initModuleDataSources(Unknow |n Source) | at org.apache.struts.action.ActionServlet.init(Unknown Source) | at javax.servlet.GenericServlet.init(GenericServlet.java:256) | at |org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrappe |r.java:935) | |Anyone got any ideas what i maybe ding wrong. | |One other question. Does anyone know of any drivers that connect |to a informix DB and how to use them? | |Sorry if this is a very basic question. I am only a first yr undergraduate! | |Chirag | | --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]