Connect to dbf file from jsp with servletexec??

I am trying to connect to a dbf file from a jsp page on an win2003Server with ServletExec. But i get the exception "no suitable driver".
It works fine with the exact same code and file on my winxp machine. This is the connectionstring: url = "jdbc:odbc:;DRIVER=Microsoft dBase VFP Driver (*.dbf);Sourcedb=E:\\Data\\der\\Solutions;Sourcetype=dbf";
I can create a "Microsoft dBase VFP Driver" odbcConnection from the controlPanel and than use the connection from MicrosoftAccess and it works as it should. But I can't use it from the jsp code like this: url="jdbc:odbc:testdriver" .
It feels like I am missing something in servletexec. Like a classpath to the odbcdriver. But in all my other installations I have not done anything more than installed the servletexc correctly and added the classpath for parser.jar and jaxp.jar.
Am I missing something here???
Zoktrax

Try putting a Class.forName( "my.jdbc.DriverClass" ) before DriverManager.getConnection( url, user, password ), where "my.jdbc.DriverClass" is the fully-qualified class name of the JDBC driver class. I think that JDBC driver classes have static initializers that register the driver class with the DriverManager. I had a similar problem and the Class.forName( ) fixed it.
If that doesn't work, double-check your URL.
- Jesse

Similar Messages

  • How to call java class file from jsp

    hi
    we need to call java classes (which are written separately in .java file )from jsp file. we need it for our project if anyone knows about please reply us.
    bye
    siva sankari

    you can call the methods in a lot of ways. you could use scriptlets with the
    <%@ page import="package.class"%> and then inside instantiate an object
    <%
         MyClass mc = new MyClass(parameters if any);
         mc.theMethodYouWantToCall();
    %>or as Madathil has stated,
    or use the JSP tags
    <jsp:useBean id="anyname" class="classname"/>and then use the getProperty tag
    or even Custom Tags

  • WHAT IF I DELETE THE SYSTEM06.DBF FILE FROM DATABASE /U01/DB/apps_ sid / system06.dbf and how to recover it in apps

    WHAT IF I DELETE THE SYSTEM06.DBF FILE FROM DATABASE /U01/DB/apps_<sid>/ system06.dbf and how to recover it in apps

    Hi,
    First of all you must Open a ticket with oracle Support and explore the options
    You can use this note to fix it:
    RECOVERING FROM A LOST DATAFILE IN A UNDO TABLESPACE [ID 1013221.6]
    If you is Unable to Drop Undo tablespace Since Undo Segment is in Needs Recovery
    You can Upload the following trace file while opening the ticket
    SQL>Alter session set tracefile_identifier='corrupt';
    SQL>Alter system dump undo header "<new of undo segment in recover status>";
    Go to udump
    ls -lrt *corrupt*
    Upload this trace file
    Also upload the alert log fileRegards,
    Levi Pereira
    Edited by: Levi Pereira on Nov 29, 2011 1:58 PM

  • Generate .dbf file from oracle database using JDBC

    Dear all,
    I need to generate a .dbf file from oracle table. Anyone know how to do this using Java Programming or JDBC? please help!
    thank you

    Hi,
    I assume you already have a JDBC driver for either FoxPro or DBase. If not, use the JDBC-ODBC bridge and the ODBC driver that comes with Window$.
    When you issue a "Create TABLE" command the driver will automatically create a .dbf file and then you can export data to it.
    Imran

  • Create XML file from ABAP with SOAP Details

    Hi,
    I am new to XML and I am not familiar with JAVA or Web Service. I have searched in SDN and googled for a sample program for creating XML document from ABAP with SOAP details. Unfortunately I couldn't find anything.
    I have a requirement for creating an XML file from ABAP with SOAP details. I have the data in the internal table. There is a Schema which the client provided and the file generated from SAP should be validating against that Schema. Schema contains SOAP details like Envelope, Header & Body.
    My question is can I generate the XML file using CALL TRANSFORMATION in SAP with the SOAP details?
    I have tried to create Transformation (Transaction XSLT_TOOL) in SAP with below code. Also in CALL transformation I am not able to change the encoding to UTF-8. It's always show UTF-16.
    <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sap="http://www.sap.com/sapxsl" version="1.0">
      <xsl:template match="/">
        <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
          <SOAP:Header>
            <CUNS:HeaderInfo>
              <CUNS:InterfaceTypeId>10006</InterfaceTypeId>
              <CUNS:BusinessPartnerID>11223344</BusinessPartnerID>
              <CUNS:SchemaVersion>1.0</SchemaVersion>
              <CUNS:DateTime>sy-datum</DateTime>
            </CUNS:HeaderInfo>
          </SOAP:Header>
          <SOAP:Body>
            <xsl:copy-of select="*"/>
          </SOAP:Body>
        </SOAP:Envelope>
      </xsl:template>
    </xsl:transform>
    In ABAP program, I have written below code for calling above Transformation.
      call transformation ('Z_ID')
           source tab = im_t_output[]
           result xml xml_out.
      call function 'SCMS_STRING_TO_FTEXT'
        exporting
          text      = xml_out
        tables
          ftext_tab = ex_t_xml_data.
    Please help me how to generate XML file with SOAP details from ABAP. If anybody have a sample program, please share with me.
    Is there any easy way to create the XML file in CALL Transformation. Please help.
    Thanks

    Try ABAP forum, as it seems not to be PI related.

  • How can I read pdf files from LabVIEW with different versions of Acrobat reader?

    How can I read pdf files from LabVIEW with different versions of Acrobat reader?
    I have made a LabVIEW program where I have possibility to read a PDF document.  When I made this LabVIEW program it was Acrobat Reader 5.0.5 that was installed on the PC. Lather when the Acrobat Reader was upgraded to version 6.0, there was an error when VI tries to launch the LabVIEW program. And Later again when we upgraded to Acrobat Reader 7.0.5 I must again do some changes and rebuild the EXE files again
    It isn't so very big job to do the changes in one single LabVIEW program, but we have built a lot of LabVIEW programs so this take time to due changes every time vi update Acrobat Reader. (We have build EXE files.)
    The job is to right click the ActiveX container and Click "Insert ActiveX Object", then I can brows the computer for the new version of acrobat Reader. After this I must rebuild all the "methods" in the Activex call to make the VI executable again.
    Is there a way to build LabVIEW program so I don't have to do this job every time we update Acrobat Reader?
    This LabVIEW program is written in LabVIEW 6.1, but I se the problem is the same in LabVIEW 8.2.
    Jan Inge Gustavsen
    Attachments:
    Show PDF-file - Adobe Reader 7-0-5 - LV61.vi ‏43 KB
    Read PDF file.jpg ‏201 KB
    Show PDF-file - Adobe Reader 5-0-5 - LV61.vi ‏42 KB

    hi there
    try the vi
    ..vi.lib\platform\browser.llb\Open Acrobat Document.vi
    it uses DDE or the command line to run an external application (e.g. Adobe Acrobat)
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • HELP! How can i restore/recover files from Bootcamp with Boot Failure - Missing operating system error?

    Hi,
    I am having a few problems with bootcamp on my imac. When i tried to move the bootcamp partition on windows 7 into free space, it crashed and turned off. Ever since i have had the error 'Missing operating system' and it fails to boot. I have some very important files on the bootcamp partition. Is it possible to recover these files or even to restore the bootcamp partition to it's original state? I do not have a backup of my bootcamp partition. Another problem i have is that ever since i tried to expand my macintosh HD partition into free space, when i hold alt while booting up (to choose which partition to boot like i normally do), the bootcamp partition has stopped appearing. This means that i cannot even boot the windows 7 bootcamp partition anymore!
    So basically here are my 2 questions:
    How can i restore/recover files from Bootcamp with Boot Failure - Missing operating system error?
    How can i make the Bootcamp partition appear in Startup Disk and when i hold the option key while starting up my computer to allow me to boot windows 7?
    Any solutions are very much apreciated!
    Thanks!
    I know that bootcamp (disk0s4) hasn't been fully deleted since it appears in disk utility (i cant do anything to it though)
    And here is the error i see when i try to launch bootcamp (back when i was actually able to boot up bootcamp to the error screen)

    WinClone 3 is OS X and saves Windows image it makes for restore - that should work but you will have to try and you would need to make a new image unless it also works with a native Windows system restore image. It is now supported and has come a long way.
    http://www.twocanoes.com/
    Paragon Clone OS works and does disk-to-disk clone just like CCC you end up with two bootable drives. But does not work with your setup. It would let you clone and move your Windows install to an SSD or another disk drive though and be bootable.
    During its clone process it checks for errors which is very helpful and lets you know - something CCC and others should adopt more of.
    http://www.paragon-software.com/downloads/demo.html
    I wish for our/my sake you had re-read and rewritten the long 'story' and broken it into a brief list of facts we needed.
    OS X
    Windows
    Backup (though external is much safer) and you want bootable OS X clones as well as TimeMachine
    https://support.apple.com/kb/HT1427
    https://support.apple.com/kb/HT1553
    There are a number of things to do like chkdsk and others as well as Windows DVD to do automatic system repairs and find out why.
    AppleHFS - the abilty to mount and read HFS volumes can be notorious.
    I would rearrange and redo your storage setup and how you use the 4-5 internal hard drive bays.

  • How can I connect to a database from ipaq with cldc??

    how can I connect to a database from ipaq with cldc??

    Hi Again
    There is a library by Mimer which allows you do connect to a Mimer SQL Server, don't know must about it, but here is a link.
    http://developer.mimer.com/
    If that doesn't suit you, I suspect that you will have to use some sort of proxy solution. Either by creating a servlet to accept the sql string you want to send, or by creating your own custom proxy server running J2EE. The servlet or the proxy server must be able to receive an SQL String, do the query to the actual database and return the results in some sort of format to the mobile device. Maybe just a space delimited string.
    Hope this helps
    -Daur

  • Is it possible to export a file from Organizer with the list of all the images in an album?

    Is it possible to export a file from Organizer with a list of all the images in a certain album? In filling one of my albums I did not save my edited images to the same file... they are spread out a bit.... Now I want them to make a book with them (outside of Elements).

    As far as I know, Elements does not have the ability to create lists.
    The solution to your problem of making a book outside of Elements is to place all the desired photos in an Album and then select File->Export->As New Files which gives you the ability to make a copy of every photo in the album in a new folder, from which you would create your photobook.

  • Is it possible to dwnload a file from web with given URL into our local sap

    Hi every Body!
    Is it possible to download a file from web with given URL into local PC with abap.
    thanks
    vikram.c

    hi
    good
    go through this link, i hope this ll help you solve your problem
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f5d3c40a-0801-0010-55b7-9e3b01745a40
    thanks
    mrutyun^

  • Forwarding to an xml file from jsp page

    hi
    i am subhash. i have problem in forwarding an xml file from jsp page.
    i have a jsp page in which i have a button. upon click, its form method is triggered and the action is set to "serverpage.jsp". In that jsp page i have to move to an xml file. I would like u to send a sample code also for the same.
    Thank You,
    Subhash..

    Refer to the Generating XML from JSP section.
    http://java.sun.com/developer/technicalArticles/xml/WebAppDev2/

  • Running an exe file from jsp

    Hi,
    Do you know a way to run the "startup.exe" Tomcat file from jsp?
    I have to start and stop a server remotely.
    Max

    public Process pFiglio;
    Runtime rt = Runtime.getRuntime();
    pFiglio = rt.exec("c:\\Tomcat\\startup.exe ");
    then you can have
    pFiglio.waitFor();
    iEsito = pFiglio.exitValue();
    pFiglio.destroy();
    Look at specification:
    http://java.sun.com/j2se/1.5.0/docs/api/
    Look class "Runtime" and "Process".
    Ema

  • I just used a firewire connection to transfer files from an older MAC to a newer MAC. My newer MAC has lost all that was on it, and all the applications are opening like they have never been used before and asking for Rosetta. Help!!!

    I just used a firewire connection to transfer files from a PowerBook G4 to a MacBook Pro. The MacBook Pro has lost all that was on it, and all the applications are opening like they have never been used before and asking for Rosetta. How do I find all my files on the MacBook Pro, or undo what I have done???

    IGNORE the last post: he thought you are using Lion or Mountain Lion.
    Since you are using Snow Leopard, you need to install Rosetta.  It can be found on your Snow Leopard Install DVD in the Options section.
    Once installed all should be well again.
    Also, if your computer is connected to the internet when the Dialog Box about PowerPC applications comes up, it MIGHT allow you to download Rosetta from the internet.  There has been some discussion that Apple has discontined internet download of Rosetta into Snow Leopard.
    Someone else will have to address your lost files problem.

  • Moving DBF Files from one computer to another

    Hi, I was looking for some help with an issue I have come across. I had SQL Developer on my Desktop with 13 different tables and up to 6 months worth of data. Yesterday when starting the desktop I got the dreaded read/write error message and the compute is not starting up now.
    I have now managed to take the hard drive out and I have managed to get into the files as an external drive on my laptop. What I am looking to do is to hopefully transfer the database files from the external drive to my laptop.
    I have installed SQL Developer and also installed OracleXE112 on the laptop and I have located dbf files on the external drive but when I overwrite the same files on my laptop I get a listener error. What is the best way to get all my tables back? If somebody could please advise, would really appreciate it some help.
    Thanks in advance.

    Hemant, my old drive (k drive now) has around 21 gb of data within the following area:
    K:\oraclexe\app\oracle\oradata\XE
    with the files
    control.dbf
    sysaux.dbf
    system.dbf
    temp.dbf
    undotbs1.dbf
    users.dbf
    So I thought I could copy these files and replace the same files I have on my c drive, but its not as simple as that lol.
    I have from cmd, connected to rman on the k drive but when I try and connect to the target database I get the following error:
    ORA-12154: TNS:could not resolve the connect identifier specified
    I dont no if its reading the tnsname.ora from the c drive or the one from the k drive...

  • How can i connect and share files from my mac book pro to my windows PC?

    (I have a tp-link wifi router which is connected to mac and from the same router pc is connected via pan cable)

    Hello Chandan Mj,
    After reviewing your post, I have located an article that can help with file sharing between Mac and Windows computers:
    OS X Mavericks: Set up a Windows computer to share files with Mac users
    Thank you for contributing to Apple Support Communities.
    Cheers,
    BobbyD

Maybe you are looking for

  • Make to Order Scenario problem

    i want to configure a make-To-Order Scenario i have create an item category  ZTAK  (for Make to order items) ... and assigned it to my sales document type and the Material item category in sales view 2 is 0001 (Make to order) when creating the sales

  • Unexpected Campus Manager Behaviour

    Hi all, I recently installed LMS 3.2 (and the latest updates for CM, RME and HUM) and am experiencing some really strange behaviour in Campus Manager. After running a data acquisition job, the campus manager portal lists 41 devices (as expected), and

  • ERROR: Unable to find AL_JobService.pid file in $LINK DIR/bin directory

    Hi,     We have a recent issue and could not find an appropiate reason, we have been running jobs in the linux server for almost 5 months now and we never had an issue.                  Today the jobs wouldnt start - a blank trace log so we decided t

  • Why no native open document format?

    I'm currently working on a draft for a native document format like ODF (OpenDocument), but beeing more "professional" while supporting color management, intermedia representations, product definition and job networking with easy file exchange. All ne

  • Isight...blurry images after 10.4.6 install?

    after installing 10.4.6, my isight camera seems to have a blurry/slightly out of focus image, but only within the ichat program (photo booth doesn't have the same problem). anyone else notice this? any settings i can look at? thanks...