SAXParserFactory attempting fetch of services file from httpd root dir

Background: I have a small applet that uses the java plug-in. This applet displays a navigation tree for my intranet site. The applet is archived in a jar file. The applet fetches an XML file from the hosting server and then uses JAXP SAX2 parser to convert the XML data into the tree. My parser factory creation follows the examples on this site:
SAXParserFactory factory = SAXParserFactory.newInstance();
According to the documentation on SAXParserFactory, it looks in four places for the concrete class to use for the parser factory:
- Use the javax.xml.parsers.SAXParserFactory system property.
- Use the properties file "lib/jaxp.properties" in the JRE
directory.
- Use the Services API (as detailed in the JAR specification), if
available, to determine the classname. The Services API will look
for a classname in the file
META-INF/services/javax.xml.parsers.SAXParserFactory in jars
available to the runtime.
- Platform default SAXParserFactory instance.
I let the platform default be selected and the applet runs fine.
The problem is that with every access to the page, I get the following entries in the access and error logs for my apache server (with JRE 1.4.1_01 and 1.4.2):
access:
xxx.xxx.xxx.xxx- - [27/Jun/2003:09:06:43 -0700] "GET /META-INF/services/javax.xml.parsers.SAXParserFactory HTTP/1.1" 404 258
error:
[Fri Jun 27 09:06:43 2003] [error] [client xxx.xxx.xxx.xxx] File does not exist: XXX/meta-inf/services/javax.xml.pars
rs.SAXParserFactory
I don't have a services file in the jar file for the applet because I wanted it to use the platform default.
Is anyone else seeing this behavior? Is there a workaround without having to hardcode a concrete class path into a services file embedded in the jar?
Thanks in advance,
Paul

It's looking to find out which SAX parser you want it to use. You can specify that any number of ways (system property, service provider, etc.).
See:
http://developer.java.sun.com/developer/EJTechTips/2003/tt0311.html#1
and
http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html#Service%20Provider
for more information.

Similar Messages

  • My windows(8.1 64bit) partition is read only from the mac(yosemite) side of things. Anybody have a clue on how to fix this? Also, slightly frustrating as well, windows crashes every time I attempt to open a file from the mac partition.

    my windows(8.1 64bit) partition is read only from the mac(yosemite) side of things. Anybody have a clue on how to fix this? Also, slightly frustrating as well, windows crashes every time I attempt to open a file from the mac partition.

    All Office applications will also try to open a temporary work file in the same location as the source file. This implies the source file directory also needs to be writable for this temporary file. Since the default HFS+ driver provides only read-only access, such temporary files will fail to open, and will cause the application to fail.
    As a test copy the file you want to edit, say an Excel spreadsheet from the OSX file system to the C: drive on the Windows side and try to open it. If you look in this directory, you should see two files, the source and a temporary file. You may have to force the temporary file to be opened on a read-write file system, by manipulating the folder for temporary files.

  • Fetching of multiple files from Application Server into SAP Program

    Hi All,
    I have a issue related <b>Fetching of multiple files from Application Server into SAP Program</b>.
    Actual issue is as below.
    In the <b>selection screen</b> of <b>my program</b> i will give <b>Application Server Path</b> as :
    <b>/PW/DATA/SAP/D1S/PP/DOWN/eppi0720*</b>
    Then the based on above input it should pick up all the files that are matching <b>eppi0720*</b> criteria.
    Suppose if i am having <b>5</b> files with above scenario, i have to fetch all those <b>5</b> files at a time and place in my SAP Program.
    All those 5 file's data should come into SAP at a time.
    Can anybody tell me how can we solve above issue.
    If any body has come across same issue please provide me with solution.
    Thanks in advance.
    Thanks & Regards,
    Rayeez.

    If you want to get around the authorization check, you can do something like this.
    report zrich_0001 .
    parameters: p_path type epsf-epsdirnam
                      default '/usr/sap/TST/SYS/global'.
    parameters: p_file type epsf-epsfilnam default 'CO*'.
    start-of-selection.
    perform get_file_list.
    *       FORM get_file_list                                            *
    form get_file_list.
      types: name_of_dir(1024)        type c,
             name_of_file(260)        type c,
             name_of_path(1285)       type c.
      data: begin of file_list occurs 100,
              dirname     type name_of_dir,  " name of directory. (possibly
                                             " truncated.)
              name        type name_of_file, " name of entry. (possibly
                                             " truncated.)
              type(10)    type c,            " type of entry.
              len(8)      type p,            " length in bytes.
              owner(8)    type c,            " owner of the entry.
            mtime(6)    type p, " last modification date, seconds since 1970
              mode(9)     type c, " like "rwx-r-x--x": protection mode.
              useable(1)  type c,
              subrc(4)    type c,
              errno(3)    type c,
              errmsg(40)  type c,
              mod_date    type d,
              mod_time(8) type c,            " hh:mm:ss
              seen(1)     type c,
              changed(1)  type c,
            end of file_list.
      data: begin of file,
              dirname     type name_of_dir,  " name of directory. (possibly
                                             " truncated.)
              name        type name_of_file, " name of entry. (possibly
                                             " truncated.)
              type(10)    type c,            " type of entry.
              len(8)      type p,            " length in bytes.
              owner(8)    type c,            " owner of the entry.
            mtime(6)    type p, " last modification date, seconds since 1970
              mode(9)     type c, " like "rwx-r-x--x": protection mode.
              useable(1)  type c,
              subrc(4)    type c,
              errno(3)    type c,
              errmsg(40)  type c,
              mod_date    type d,
              mod_time(8) type c,            " hh:mm:ss
              seen(1)     type c,
              changed(1)  type c,
            end of file.
      call 'C_DIR_READ_FINISH'             " just to be sure
           id 'ERRNO'  field file_list-errno
           id 'ERRMSG' field file_list-errmsg.
      call 'C_DIR_READ_START' id 'DIR'    field p_path
                              id 'FILE'   field p_file
                              id 'ERRNO'  field file-errno
                              id 'ERRMSG' field file-errmsg.
      if sy-subrc <> 0.
        sy-subrc = 4.
        exit.
      endif.
    * Read the file list and add to internal table.
      do.
        clear file.
        call 'C_DIR_READ_NEXT'
          id 'TYPE'   field file-type
          id 'NAME'   field file-name
          id 'LEN'    field file-len
          id 'OWNER'  field file-owner
          id 'MTIME'  field file-mtime
          id 'MODE'   field file-mode
          id 'ERRNO'  field file-errno
          id 'ERRMSG' field file-errmsg.
        if sy-subrc =  1.
          exit.
        endif.
        append file to file_list.
      enddo.
    * Write out the file list
      loop at file_list.
        write:/ file_list-name.
      endloop.
    endform.
    Regards,
    Rich Heilman

  • I am using Adobe Reader with paid up service through May 2015.  When I attempt to convert a file from PDF or to PDF, I get the message "An error occured while trying to access the service.  What do I need to do to access the service paid for?

    I am using Adobe Reader with paid up service through May 2015.  When I attempt to convert a file either to PDF or from PDF, I get the error message, "An error occurred while trying to access the service".  What do I need to do to get access to the service I have paid for?

    Hi DeaconTomColorado,
    Please see "Error occurred when trying to access this service" when logging on to Acrobat.com.
    Adobe has just released an update to Adobe Reader, so if you're accessing the service via Reader, please let us know whether the update helps resolve the issue.
    Best,
    Sara

  • Numbers freezes when I attempt to open a file from the iCloud

    Hello,
    My Numbers app for my iMac freezes when I attempt to open a spreadsheet file from the iCloud.  These same files open fine on my iPad, and I make sure to close Numbers on my iPad before I attempt to open the file on my iMac, but it makes no difference.  The app freezes, and I have to manually force stop the Numbers process.  Any help would be appreciated.

    How do I get the dock to recognize the latest numbers version I have.
    Go to the Applications folder, find Numbers 3 and drag it to the dock. It will then look like the lower icon here (the one with the 4 columns). 
    Another way is, if Numbers 3 is already open, to right-click the icon in the Dock and choose 'Keep in Dock' under 'Options':
    You can drag the icon with the three columns off the Dock if you don't want to open Numbers 2 from the Dock.
    SG

  • Lightroom hangs when attempting to import RAW files from D750

    Hi guys,
    I purchased lightroom 5 sometime back to install on multiple platforms. Recently did an update on my macbook and it was able to read the NEF files from D750.
    However when I installed lightroom 5 on my iMac, the prog keeps hanging when I attempt to import files from the D750. Other NEF files from my D700 were ok.
    Anyone knows why?

    Could be a hardware issue
    Make sure the cable connection to the D750 is properly connected. Also, if possible try using a card reader. Or vice versa.

  • [Concurrency] SecurityError when attempting to access a file from a worker

    I was working on encrypting some files in a worker using AIR, when I ran into this strange error...
    SecurityError #0 - file
    at FileWorker/onChannelMessage()[/Users/axon/Projects/Flash/WorkerFile/src/FileWorker.as:32]
              at flash.system::MessageChannel/internalAddEventListener()
              at flash.system::MessageChannel/addEventListener()
    This error triggers when simply placing some code to create a File class instance from a path in my background worker.
    Here is an awesome example of my issue: WorkerFile.zip
    It's a Flash Builder 4.6 project
    What I would like to know, is how do i open a file from a background worker? I didn't spot it on the not allowed list with the release notes, so I am baffled at this point.
    Any and all help is appreciated!
    Update: Filed a bug with bugbase.adobe.com

    You want to pass in the optional parameter of "true" to "createWorker".  The parameter controls whether the worker should be given application sandbox privileges in AIR.
    worker = WorkerDomain.current.createWorker(e.target.data, true);
    giveAppPrivileges:Boolean - indicates whether the worker should be given application sandbox privileges in AIR. This parameter is ignored in Flash Player

  • How to fetch the image file from oracle database and display it.

    hi... i've inserted the image file into the oracle database... now i want to retreive it and want to display it... can anybody help me... pls

    not a big deal dude... i fetched the image from database and saved it into my local hard disk.. but when tried to open it,ends up with no preview... dont know what d prob is... any idea... i've inserted the image as bytes n trying to fetch it as binary stream.. is that the problem... here im giving my insertion and retireving code.. jus go through it...
    Insertion code:_
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package PMS;
    import java.io.File;
    import java.io.FileInputStream;
    import java.sql.Blob;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.SQLException;
    public class Browse_java
    static Connection con=null;
    public static void main(String args[])
    try{
    System.out.println("(browse.java) just entered in to the class");
    con = new PMS.DbConnection().getConnection();
    System.out.println("(browse.java) connection string is"+con);
    PreparedStatement ps = con.prepareStatement("INSERT INTO img_exp VALUES(?,?)");
    System.out.println("(browse.java) prepare statement object is"+ps);
    File file =new File("E:/vanabojanalu-/DSC02095.JPG");
    FileInputStream fs = new FileInputStream(file);
    System.out.println("lenth of file"+file.length());
    byte blob[]=new byte[(byte)file.length()];
    System.out.println("lenth of file"+blob.length);
    fs.read(blob);
    ps.setString(1,"E:/vanabojanalu-/DSC02095.JPG");
    ps.setBytes(2, blob);
    // ps.setBinaryStream(2, fs,(int)file.length());
    System.out.println("(browse.java)length of picture is"+fs.available());
    int i = ps.executeUpdate();
    System.out.println("image inserted successfully"+i);
    catch(Exception e)
    e.printStackTrace();
    finally
    try {
    con.close();
    } catch (SQLException ex) {
    ex.printStackTrace();
    and Retrieving code is:
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package PMS;
    import java.beans.Statement;
    import java.io.*;
    import java.net.*;
    import java.sql.*;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import oracle.jdbc.OracleResultSet;
    * @author Administrator
    public class view_image2 extends HttpServlet {
    * Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
    * @param request servlet request
    * @param response servlet response
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    response.setContentType("image/jpeg");
    //PrintWriter out = response.getWriter();
    try
    javax.servlet.http.HttpServletResponse res=null;;
    int returnValue = 0;
    Connection con = null;
    PreparedStatement stmt = null;
    ResultSet rs = null;
    InputStream in = null;
    OutputStream os = null;
    Blob blob = null;
    //String text;
    //text=request.getParameter("text");
    //Class.forName("com.mysql.jdbc.Driver");
    con=new PMS.DbConnection().getConnection();
    System.out.println("jus entered the class");
    //String query = "SELECT B_IMAGE FROM img_exp where VC_IMG_PATH=?";
    //conn.setAutoCommit(false);
    PreparedStatement pst = con.prepareStatement("select b_image from img_exp where vc_img_path=?");
    System.out.println("before executing the query");
    pst.setString(1,"C:/Documents and Settings/Administrator/Desktop/Leader.jpg");
    rs = pst.executeQuery();
    //System.out.println("status of result set is"+rs.next());
    System.out.println("finished writing the query");
    int i=1;
    if(rs.next())
    System.out.println("in rs") ;
    byte[] byte_image=rs.getBytes(1);
    // byte blob_byte[]= new byte[(byte)blob.length()];
    //System.out.println("length of byte is"+blob_byte);
    //String len1 = (Oracle.sql.blob)rs.getString(1);
    //System.out.println("value of string is"+len1);
    //int len = len1.length();
    //byte [] b = new byte[len];
    //in = rs.getBinaryStream(1);
    int index = in.read(byte_image, 0, byte_image.length);
    System.out.println("value of in and index are"+in+" "+index);
    FileOutputStream outImej = new FileOutputStream("C://"+i+".JPG");
    //FileOutputStream fos = new FileOutputStream (imgFileName);
    BufferedOutputStream bos = new BufferedOutputStream (outImej);
    //byte [] byte_array = new byte [blob_byte.length]; //assuming 512k size; you can vary
    //this size depending upon avlBytes
    //int bytes_read = in.read(blob_byte);
    bos.write(index);
    /*while (index != -1)
    outImej.write(blob_byte, 0, index);
    index = in.read(blob_byte, 0, blob_byte.length);
    //System.out.println("==========================");
    //System.out.println(index);
    //System.out.println(outImej);
    //System.out.println("==========================");
    /*ServletOutputStream sout = response.getOutputStream(outImej);
              for(int n = 0; n < blob_byte.length; n++) {
                   sout.write(blob_byte[n]);
              sout.flush();
              sout.close();*/
    outImej.close();
    //i++;
    else
    returnValue = 1;
    catch(Exception e)
    System.out.println("SQLEXCEPTION : " +e);
    finally {
    //out.close();
    // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
    * Handles the HTTP <code>GET</code> method.
    * @param request servlet request
    * @param response servlet response
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
    * Handles the HTTP <code>POST</code> method.
    * @param request servlet request
    * @param response servlet response
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
    * Returns a short description of the servlet.
    public String getServletInfo() {
    return "Short description";
    // </editor-fold>
    }

  • When downloading, why do I get a message saying "Safari cant open file because the file has moved since it was downloaded?"  I just attempted to download the file from a website.  Thanks.

    When downloading from a website, I get a message that says, "Safari cant open th file--- because the file has been moved since you downloaded it.  How do I correct this problem.  It wont let me open attachments from yahoo email either.  Thanks.

    EDIT:
    After posting I see this question has the tag of "windows". I don't know if this applies to the Windows version or not.
    The only time I see this message is if I download something, trash it, AND empty the trash. If I don't empty the trash, it finds it there. It will find it wherever I move it to, unless it is was in the trash and emptied.
    Using Finder, is the downloaded file in your Downloads folder?
    Maybe if you go to Safari/Preferences/General and change the location for downloads to something else then change it back to Downloads it might correct it.

  • How to fetch movie(mpg) file from repository.

    Hi All,
    I have uploaded a mpg(video) file in content repositoy. But I am not able to fetch
    it and display it using embed tag.
    is anybody aware of a right method to do the same?
    I am using weblogic 8.1.
    Thanks in advance.

    Can can do it via FTP transfer.
    Use the below code
    REPORT ZFTPSAP LINE-SIZE 132.
    DATA: BEGIN OF MTAB_DATA OCCURS 0,
    LINE(132) TYPE C,
    END OF MTAB_DATA.
    DATA: MC_PASSWORD(20) TYPE C,
    MI_KEY TYPE I VALUE 26101957,
    MI_PWD_LEN TYPE I,
    MI_HANDLE TYPE I.
    START-OF-SELECTION.
    *-- Your SAP-UNIX FTP password (case sensitive)
    MC_PASSWORD = 'password'.
    DESCRIBE FIELD MC_PASSWORD LENGTH MI_PWD_LEN.
    *-- FTP_CONNECT requires an encrypted password to work
    CALL 'AB_RFC_X_SCRAMBLE_STRING'
         ID 'SOURCE' FIELD MC_PASSWORD ID 'KEY' FIELD MI_KEY
         ID 'SCR' FIELD 'X' ID 'DESTINATION' FIELD MC_PASSWORD
         ID 'DSTLEN' FIELD MI_PWD_LEN.
    CALL FUNCTION 'FTP_CONNECT'
         EXPORTING
    *-- Your SAP-UNIX FTP user name (case sensitive)
           USER            = 'userid'
           PASSWORD        = MC_PASSWORD
    *-- Your SAP-UNIX server host name (case sensitive)
           HOST            = 'unix-host'
           RFC_DESTINATION = 'SAPFTP'
         IMPORTING
           HANDLE          = MI_HANDLE
         EXCEPTIONS
           NOT_CONNECTED   = 1
           OTHERS          = 2.
    CHECK SY-SUBRC = 0.
    CALL FUNCTION 'FTP_COMMAND'
         EXPORTING
           HANDLE = MI_HANDLE
           COMMAND = 'dir'
         TABLES
           DATA = MTAB_DATA
         EXCEPTIONS
           TCPIP_ERROR = 1
           COMMAND_ERROR = 2
           DATA_ERROR = 3
           OTHERS = 4.
    IF SY-SUBRC = 0.
      LOOP AT MTAB_DATA.
        WRITE: / MTAB_DATA.
      ENDLOOP.
    ELSE.
    do some error checking.
      WRITE: / 'Error in FTP Command'.
    ENDIF.
    CALL FUNCTION 'FTP_DISCONNECT'
         EXPORTING
           HANDLE = MI_HANDLE
         EXCEPTIONS
           OTHERS = 1.

  • Multiple failed attempts to open PDF file from Windows Explorer by double clicking

    Hi,
    The configuration of my system is: Windows 7 SP1 x64, Adobe Reader 11.0.10.32.
    When double clicking on PDF file or trying Open with Adobe Reader IX in context menu  in Windows Explorer or any other file manager, the Adobe Reader opens only after few attempts. At each failed attempt the new AcroRd32.exe process arises. And only after few attempts the file opens! As a result, i see multiple empty AcroRd32.exe processes in Task Manager, each take about 4000 Kb of RAM and the only one file opened. I'm forced to kill those empty processes manually, because they are not killed when closing Adobe Reader window.
    I found the same problem on another PC with the same configuration.
    Best,
    Alexei

    Hi Alexei,
    Could you please let me know for how long have you started facing this issue.
    Open TEMP folder (Press Windows + R and type %temp%) and delete all the files in it.
    Does this happen with any specific PDF or all PDFs?
    You might try disabling Protected Mode by opening Reader and going to "Edit > Preferences > Security (Enhanced)"
    Let me know how it goes.
    Regards,
    Anubha

  • Loading XML file from EAR root ?

    I would like to be able to load/read an XLM file stored in the EAR root (just aside JARs and WARs). That way it will be easy to find and modify the file.
    But I can't read it :-/
    Is it possible to do so, or am I just doing crap ?

    What are you doing wrong? You're using a Transformer, which expects to be given an XSLT document. If you want to make a DOM from that then you should use a DocumentBuilder, or you could use a SAXParser if you just want to extract the data from the XML file as you read it.

  • Lucreate "failure" - error copy files from zone root

    I am using Live Upgrade to take a Solaris 10 8/07 server to Solaris 10 10/08. All the pre-req patches have been applied. When running lucreate, I get some grief about failing to copy some files. Otherwise lucreate seems to work fine.
    Copying.
    Creating shared file system mount points.
    Copying root of zone <dmgrdv01>.
    Copying root of zone <wasdv01>.
    Copying root of zone <webdv01>.
    Copying root of zone <waspl01>.
    Copying root of zone <dmgrpl01>.
    Copying root of zone <webpl01>.
    Copying root of zone <tst01>.
    Copying root of zone <tst02>.
    Copying root of zone <tst03>.
    Copying root of zone <sjsdv01>.
    ERROR: Zone <sjsdv01> in BE <sol10_807>: cannot copy root
            See </tmp/.lucopy.cpio_err.28752.sjsdv01> for details.
    Copying root of zone <empdev01>.
    .sjsdv01 is a whole root zone hosting an installation of the Sun Java System Directory Server and Application Server. Here is the error log file:
    # cat /tmp/.lucopy.cpio_err.28752.sjsdv01
    cpio: Cannot open "./root/var/opt/mps/serverroot/admin-serv/tmp/iwswatchdog.3837", skipped, errno 122, Operation not supported on transport endpoint
    cpio: Cannot open "./root/var/opt/mps/serverroot/admin-serv/tmp/iwswatchdog.15973", skipped, errno 122, Operation not supported on transport endpoint
    cpio: Cannot open "./root/var/opt/mps/serverroot/admin-serv/tmp/iwsadmin.3838", skipped, errno 122, Operation not supported on transport endpoint
    cpio: Cannot open "./root/var/opt/mps/serverroot/admin-serv/tmp/iwsadmin.15974", skipped, errno 122, Operation not supported on transport endpoint
    12835872 blocks
    4 error(s)
    #Am I correct in assuming that this means the zone was successfully copied except these four files?
    Thanks,
    Mark

    The files are pure plain text ?Yes, although I have also tried with various other files which were around - MS Word, PDF.
    Do all files fail or just specific files...As far as I can see, all files of the right size.
    I am aware of one other outstanding Windows specific
    bug, 3703236, which leads to file size truncation.
    I've only seen this with Binary documents such as
    PDF, ZIP, JPEG, and it is typically only seen with
    files over 1MB in size, and typically results in
    files that are between 100K and 300K remaining.
    Are you running this test on with the database
    running on Windows ?, is so what is the server
    platform ?.Server 2000, and XP Pro.
    What is the size of the file(s) you are
    uploading, and what size are they after the upload ?Everything from 1k to 1m, going up in powers of 2. The latest test, with 9.2.0.7 and an updated Windows MSDAIPP.DLL files start to fail at 64K. The failed transferred files are usually around 40K, but the size varies.
    >
    Do you have proxy servers etc configured in your
    Internet Explorer ? Can you disable them and try
    again...
    Yes. No difference.
    Can you open a tar with Oracle Support, upload the
    document(s) that are failing, and post the tar number
    here.
    Tar is 5004416.993
    See also
    Excel output truncated (255 chars only) - Workaround?
    44573&tstart=50

  • Loading External Files From SWF Root

    Hi All,
    I do not know anything about flash.  I have been provided with some flash movies/apps to include in a web design that I am doing.  These flash movies load an external xml file.
    This is failing.
    The problem appears to be that when the flash movie goes to load the file using a relative directory path, it starts at the very root of the web directory, where the main jsp file is, instead of the where the .swf file is located.
    For example, say my website is www.mywebsite.com/mysite.jsp and I have stored the flash in a directory similar to /mywebsite.com/flash/movie1/movie1.swf.
    When the movie goes to play, I am getting a 404 error in firebug because the flash movie is trying to load the external xml from /mywebsite.com/file.xml instead of /mywebsite.com/flash/movie1/file.xml.
    How can this be corrected?  Is there a way for the flash application to use the .swf root directory instead of the .jsp file root directory?
    I hope this made sense.  Good chance it doesn't. 

    When you load the Flash file into a web page, the web page becomes its frame of reference for loading other content.  So to fix this situation you should either relocate things to where the Flash file lives in the same directory as the web page that loads it, or retarget the files that the Flash file is loading as if it were in the web page's folder (using absolute paths should guarantee correct targeting).

  • Function module to fetch pdf file from App. Server and print/email?

    Hi all,
    Is there any function module to fetch a PDF file from APPLICATION SERVER and print the PDF file or send it as an attachment in an email?
    Please help..
    Thanks in advance.
    Sandeep.

    Hi Sandeep,
    Is there any function module to fetch a PDF file from APPLICATION SERVER
    1) As far as i know there are no FMs to read a file from App server, you can do the same using *OPEN/READ/CLOSE dataset ABAP statements - There are tons of examples for this on the net.
    and print the PDF file or send it as an attachment in an email?
    You can send the file read from the app server(by the suggested method above) and use CL_BCS to send it as an attachment.
    Again there are many examples on the net on how to use CL_BCS for the same.
    Regards,
    Chen

Maybe you are looking for