Classpath in tomcat.bat for jdbc driver (jsp page)

Dear Friends,
I am able to run my java program with Microsoft JDBC driver from console (dos prompt).
But, when i am trying to run JSP program on browser using, the same driver, it is saying classNotFoundException().
do i need to set the classpath for Microsoft jdbc driver in my tomcat.bat ?
Please help me, what changes do i have to do in tomcat.bat to run the microsoft jdbc driver for jsp application.
If anyone having idea, please share ur valuable ideas.
thanks in advance.
yours
Rajesh
[email protected]

If the driver is packed in a jar-file, you can just place the jar in the lib directory of Tomcat. If it's not, you can pack it in a jar and do the same thing:)

Similar Messages

  • Where can I find installation instructions for JDBC driver?

    Is any one here to help me out by pointing out where I can find the installation instructions for the downloaded oracle 8i jdbc driver?
    Thanks

    Hi,
    You will find the installation instructions for JDBC Driver in the JDBC Developer's Guide & Reference.
    Here is a direct link to it http://otn.oracle.com/docs/products/oracle9i/doc_library/901_doc/java.901/a90211/getsta.htm
    Hope this helps,
    OTN Team

  • How to config the CLASSPATH in Win2000 server for JDBC(oracle.jdbc.driver,*)

    I am using the OS: Win2000 Server.I need to connect to some remote DataBase,but I
    don't know how to config the driver in the CLASSPATH environment variable, my Problem is: when I import the oracle.jdbc.driver.OracleDriver ,and run the program, it warns to me that it cannot find the class,and i know i didnot config the CLASSPATH in environment variables, so I want someone to tell me how to config it ,and where should the file "class12.zip" be placed !
    Thank you! maybe the problem is a piece of cake for you ,but now i do not know how to deal with it!

    Hi ,
    try this,
    http://myjdbc.tripod.com/basic/jdbcurl.html
    Regards
    Elango.

  • Looking for jdbc driver ?

    hi, i am looking for a jdbc or odbc filemaker driver ? does anyone know where to download one for free ? it's not for production environement!!! it's only for testing access to filemaker pro database from jsp page ...
    thanks for your help

    Did you try this?
    http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=jdbc+odbc+filemaker

  • JDBC driver patch for JDBC driver 8.1.7 on NT to connect 9i db

    The patch number 1725012 related to JDBC driver patch for 8.1.7
    for use with JDK 1.2.x/1.1.x to connect to a oracle 9i database
    now shows patch support for six items but the NT operating
    system is missing in the list. Do we need to wait for the NT
    support patch release..? or any other work around to address
    this bug in the mean time for testing in NT OS.
    The JDBC error thrown is
    ORA-00600: internal error code, arguments: [ttcgcshnd-1],[0]...

    You must include "classes12.zip" instead of "classes111.zip".
    Since "classes111.zip" is required only for Java 1
    and "classes12.zip" is required for Java 2 which means from J2SE 1.2 on forward.
    In adition you might need to inlcude "nls_charset12.zip" as well. Try it first without and if it is not working include it as well.
    The required files can you get from the OTN.
    This should help
    Roger

  • Requirements for JDBC Driver needed for SOA 8 }connection pool

    Hi,
    I have an AS400 jdbc driver. This driver is JDBC API version 2.x. Also is a Driver Type 4.
    What are the requirements of a JDBC Driver needed for connection pool in SOA 8?
    Thanks.
    Lorenzo Jimenez

    You can use pretty much any jdbc driver, including type 2 and type 4.
    You need to make sure your shared libraries needed by the driver are available to the appserver when you boot.
    Other than that, it is no different than configuring any other driver.

  • Lock generator for JDBC driver ...

    NetIQ's IDM ( iManager) product ships with OraLockGenerator java class (for Oracle).  Does MSSQL have a sample of an equivalent functionality ?
    The OraLock java code is very simple and uses most of the Novell base classes. Am not sure if the calls there (SQL statements) are supported by the MS SQL JDBC driver. 

    >Does MSSQL have a sample of an equivalent functionality ?
    Can you detail the functionality you want? 
    Are you trying to implement similar functionality in your own project?  Or are you trying to run the NetIQ's IDM ( iManager) product on SQL Server?
    David
    David http://blogs.msdn.com/b/dbrowne/

  • Problem Loading JDBC Enabled JSP Page

    Hi all, does anyone knows that's the case of this error:
    This happened when I tried to access MySQL Database from remote client. I have no problem loading normal jsp file w/o JDBC Connection. Kind of confused on what is going on
    Regards,
    Joe
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: com.mysql.jdbc.Driver
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:536)
    root cause
    javax.servlet.ServletException: com.mysql.jdbc.Driver
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536)
         at org.apache.jsp.dbquery_jsp._jspService(dbquery_jsp.java:112)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:536)
    Apache Tomcat/4.1.24

    Hi scsi-boy, first of all, thank you so much for your
    prompt and fast response. So how do i tackle
    ClassNotFoundException ?.i'm sorry coz i'm a newbie to
    jsp. I hope by providing my configuration below could
    aid you in understanding my problem.
    I've place the setting config in /etc/profile with the
    following:
    JAVA_HOME=/usr/local/java
    CATALINA_HOME=/usr/local/tomcat
    ANT_HOME=/usr/local/ant
    APACHE_HOME=/usr/local/apache
    MYSQL_HOME=/usr/local/mysql
    CLASSPATH=${CATALINA_HOME}/common/lib/servlet-api.jar:$
    YSQL_HOME/connector/mysql_connector/mysql_connector-jav
    -3.08-stable-bin.jar:${JAVA_HOME}/lib/tools.jar:${JAVA_
    OME}/jre/lib/rt.jar:./
    PATH=${PATH}:${JAVA_HOME}/bin:${ANT_HOME}/bin:
    MANPATH=${JAVA_HOME}/man:${MANPATH}
    export JAVA_HOME ANT_HOME APACHE_HOME MYSQL_HOME
    CATALINA_HOME CLASSPATH PATH MANPATH
    As you can see, i've un-tar mysql_connector in
    /usr/local/mysql/connector directory and set my
    classpath to point to that file. Is that the proper
    way to do it?
    Regards,
    Joesorry not a JSP expert however just to clarify i am guessing that it is a ClassNotFoundException. it could be something else entirely and i don't really want to send you on a wild goose chase. we need to know what the root exception actually is.
    i am off to sleep now but i'm sure if you can give a little more information which may involve figuring out how to get it to cough up more information someone will help you here.

  • How to search for file in jsp page

    i need help on how to search for a file in a folder where there is a lot of subfolder.like how u search in a document in windows. i need a complete codes in jsp page.
    thank you in advance.
    Message was edited by:
    n_dilah

    no i need to do a search engine in jsp page which is the j2ee.
    i type smth than tat file from any folder will appear the same way when u need to search your file in a document in windows.
    well can u nice people tell me where i can get the codes bcos i stinks when it come to programming.
    thank you very very very much.

  • Not Prompting for Parameters in .jsp page

    Post Author: montgomm
    CA Forum: General
    We have defined an input parameter to our report and it will successfully prompt for the input parameter within the designer preview.  However, once we build a .jsp page to contain the report and load it to our server, when we run it, it never prompts for any parameters. It does display the report in the .jsp, but it appears to be always running for the last parameters that we entered for the report in the designer.Any suggestions on correcting this?Is there any good documentation on parameter passing in .jsp pages?

    Yes.
    You can create a form in one jsp and have it's value sent in a parameter key to another jsp file identified as the action target.
    Here is code for first jsp file (i.e. first.jsp). This will give you a text input box and a submit button labeled sendit.
    <form action=second.jsp>
    <input type=text name=filename>
    <input type=submit name=Submit value="SendIT">
    </form>
    Here is code snibit to get the param in the second jsp file (ie. second.jsp)
    StringBuffer theparam = new StringBuffer();
    theparam.append(request.getParameter("filename"));
    out.println("The second jsp got param=" +theparam);
    Hope you get it workin'
    Gregg

  • Creating WSDL for Java Application/ JSP Page

    I am looking for creating a Webservice(WSDL) for a Java application which connects to the R/3 System Backend. I have tried to connect to the Backend using JCO in JSP page and was successful, but I need to generate a WSDL file which when consumed performs the connection and looks up for the data in the Backend. The FrontEnd can be a JSP application or a Java Application in NetWeaver.

    The easiest thing to do is put it in a JAR file with an appropriate manifest. That way it retains cross-platform functionality, which is kind of the point of writing things in Java. The JAR file will be double-clickable.
    If you absolutely must put it in an .exe for some reason, there are applications on the web that will do it.
    Either way, a google search is your next step.
    Drake

  • Use HTTP Session to pass Object from Web Dynpro for Java to JSP page

    Is it possible to get a handle on the HTTP Session object from within a Web Dynpro application? I want to place a Java object in there that can be retrieved by a JSP page.
    Thanks in advance.

    Hi Tom Cole,
       You can try this. i am not sure if this will work or not.
    HttpServletRequest request = ((IWebContextAdapter) WDWebContextAdapter.getWebContextAdapter()).getHttpServletRequest();
    You can also try this.
    IWDRequest mm_request = WDProtocolAdapter.getProtocolAdapter().getRequestObject();
    HttpServletRequest request = (HttpServletRequest)mm_request.getProtocolRequest();
    IWDRequest basically wraps the HttpServletRequest. if you are using NW04s then the getProtocolRequest() may not be available.
    Regards,
    Sanyev

  • Help for JDBC Driver

    Hi,
    I am using PostgreSQL as the database. I have downloaded the driver for postgreSQL. The problem is when i try to connect to the database using JDBC through DriverManager.getConnection() in JSP it gives java.sql.Exception ... No suitable driver error... the same code works fine if executed on a local machine where postgreSQL is installed ...
    can you help me in this ??
    thanx

    did u obtain the driver name using
    Class.forName("postgresql.Driver");
    right before invoking the getConnection() method? Try that if u haven't already done so.

  • Connection Failed error message for JDBC Driver "SAPClassNotFoundException"

    Dear Friends
    I have strange problem. I am failed to connect with SQL Server from PI Quality system. My configuration of communication channel is working perfectly fine in Development system. Same configuration for Communication channel is not working in Quality  system.
    Below is the error log from communication channel monitoring.
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error when attempting to get processing resources: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: DriverManagerException: Cannot establish connection to URL 'jdbc:sqlserver://*************;databaseName=*************;user=sa;password=***************;':
    SAPClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDrive
    Please tell me  how can I solve this problem. Any reply from you will be appreciated greatly.
    Thanking you
    Regards
    Naeem

    20. ClassNotFoundException while using SQL Server 2005 Driver
    Q: I am not able to connect to DB using SQL Server 2005 driver if I use com.microsoft.jdbc.sqlserver.SQLServerDriver as driver class name. I get [classNotFoundException|http://sapnwnewbie.blogspot.com/2011/09/sapclassnotfoundexception-when-using.html]. Why?
    A: Driver class names for SQL Server 2000 driver and SQL Server 2005 driver are different.
    If you are using SQL Server 2005 driver, then class name should be as follows:
    Driver class: com.microsoft.sqlserver.jdbc. SQLServerDriver
    URL :jdbc:sqlserver://<db_Server>:port;databaseName=< db_name>
    If you are using SQL Server 2000 driver , then class name should be as follows:
    Driver class: com.microsoft.jdbc.sqlserver. SQLServerDriver
    and URL is as follows:
    jdbc:microsoft:sqlserver://<db_server>:port; databaseName=<db_name>

  • Oracle 11i v1 for JDBC driver

    Hello:
    I checked the drivers on my XP. There is a driver called: Oracle in OraHome92. Is it ODBC? We are using 11i v1. Is it that we do not need to install JDBC client driver?
    Thanks,
    S

    A lot more useful information is required here to be able to advise you.
    Start with the assumption that you have a client, a middle tier and a data server ... three separate machines. If this is correct tell us about all of them. If it is not then explain your architecture.
    If by 11i you are referring to e-Business Suite then you should ask your question in the appropriate Apps forum as the correct answers for Apps are not necessarily the generic answers you will get here.

Maybe you are looking for