Reference.txt & library.txt file question for SP6 SP2

Hi
I need to be able to reference a portal component api library from a J2EE application outside of the IRJ application. This is normally done through the above files, however, the syntax in the files looks like the libraries have to be in the additional-lib folder, which doesn't seem very flexible. Basically I am trying to access a portal service through JNDI from a J2EE application on the same J2EE server (SP2). I can access it through JNDI, however, the problem I have is that because I need to cast the object to an IMyService class I get a ClassNotFoundException. This is because the class is part of the API jar file of the component, which the J2EE application cannot find. I don't want to have to copy the file to the additional-lib folder for this file to be accessible, so does anyone know how to create a reference to this api.jar file ?
Thanks
D

Hi Darrell,
http://help.sap.com/saphelp_nw04/helpdata/en/42/9ddd0cbb211d72e10000000a1553f6/content.htm
Regards, Karsten

Similar Messages

  • URGENT-Library Image Files question

    Are these generated locally by whoever uploads the content to the server? I am trying to publish from a different location and I get an error message saying "Cannot upload library image files".

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by [email protected]:
    Hi, I wanted to know how can i print image files from Report in a dinamic way.<HR></BLOCKQUOTE>
    Select the property pallette on the image in the layout model and open the format trigger.
    You can enter PL/SQL code to return true or false(true will print the image and false will not)
    null

  • Import .m2v files - Question for experts - this is an interesting one

    I have an internal and external harddrive.
    I have copied an .m2v file from my external harddrive to my internal harddrive, then i switch off the external drive.
    I load the .m2v file in Encore and as many others have experienced the slidebar goes to 99 % then returns to 90 % and basically loops the whole time.
    HOWEVER ... when I switch my external harddisk on suddenly it loads the .m2v file, even though i specified to load the file from my internal harddrive. As soon as i turn off the external drive all the previe pics are gone, and i am left with a black video (background with language text). It's to do with linking, but I have not solved the problem.

    The external HDD was switch off at the time.
    Encore is part of the Production Bundle, which is a legitimate copy/original.
    Something funny besides the issue of the external harddrive.
    I have just created a simple file via PP2 Adobe Media Encoder (DVD compliant) => only a short avi film into the timeline of PP2 and added a title, thats it. The external HD was switched off. The created file sits in the internal drive. I cannot load it in Encore and it hangs during loading, but as soon as I start the external harddrive it loads, this is strange. help help ..

  • Library .xml File

    I'm not sure why, but the library files being created by iTunes are called iTunes Library.itl (database file) and iTunes Library.xml I was just imformed that the default for the .xml file should actually be iTunes Music Library.xml How do I get iTunes to create the iTunes Music Library.xml file instead?
    The reason this is an issue is I have a separate media player that streams my iTunes music through my home stereo. This system allows you to use the iTunes playlists with it, but in order to do so it indexes with the iTunes Music Library file. Since mine is not there my playlists show up as empty. If I rename the file correctly then reindex the media player then the playlists show up fine. But of course the next time I open/close iTunes & it saves the library then it creates a new iTunes Library.xml file. For the time being I am simply renaming the file anytime I update my playlists, but this is a work around & I'm trying to figure out how to get iTunes to go back to its default of iTunes Music Library.xml. Perhaps I should do a reinstall of itunes then import the correct file????

    Nope, doesn't work. If I delete the .xml file it will simply recreate another one the next time I open/close itunes, but it will still be named iTunes Library.xml
    Tonight I even tried to uninstall itunes completely, then reinstall it and start my library from scratch, but once again it created an iTumes Library, not iTunes Music Library .xml
    Any other ideas?

  • Custom File Extension for Microsoft Access Text Driver (*.txt, *.csv)

    I'm trying to use a custom file extension for the Microsoft Access Text Driver (*.txt, *.csv) driver.
    I have updated the FileExtns registry to have my new extension.
    When I issue the following it does not work.
    select [NoName] 
    from openrowset('MSDASQL'
               ,'Driver={Microsoft Access Text Driver (*.txt, *.csv)};
                    DefaultDir=c:\filedir'
               ,'select * from "file.lst"')
    If I make the file a .csv it works fine.  However, if it has an extension of not CSV or TXT (in this case .lst, which is in the registry setting) extension it throws the following error and cannot seem to find a solution to it. 
    OLE DB provider "MSDASQL" for linked server "(null)" returned message "[Microsoft][ODBC Text Driver] Cannot update. Database or object is read-only.". Msg 7350, Level 16, State 2, Line 1 Cannot get the column information from
    OLE DB provider "MSDASQL" for linked server "(null)".
    In addition, (although I can probably find this elsewhere), I need to have the first line 'BLANK' so that it does not miss data (there is no header row).  Is there  a way to use OPENROWSET without BULK to basically include all rows as data?
    Any help is appreciated.

    Hi,
    According to your description, I did a test with your script, and got the same message as your post. Usually, by default, the Microsoft Access Text Driver (*.txt, *.csv) supports the four extensions file, such as *.asc, *.csv, *.tab, *.txt. To solve this issue,
    I recommend you try to save the LST file in the above format, then use OPENROESET to get data from the supported extensions file in SQL Server.
    In addition, the
    OPENROWSET function is mainly used to retrieve remote data from an OLEDB data source, when you use OPENROWSET without BULK, provider_name is a necessary parameter in the script. However, the OPENROWSET (BULK...) is mainly called from a SELECT…FROM clause
    within an INSERT statement, when importing bulk data from a data file into SQL Server table. Thus if you need to import bulk data, you should use the basic  syntax: INSERT ... SELECT * FROM OPENROWSET(BULK...), also there are some alternatives, such as
    BULK INSERT
    and
    BCP .
    Thanks
    Lydia Zhang

  • What determines the file encoding for ${C:file.txt} = 'abc' ?

    What determines the file encoding for  
    ${C:file.txt} = 'abc'
    I'm always getting ASCII as the encoding for file.txt after executing that assignment.

    Thanks so much.   I'll keep looking for the MSFT doc on this.  I scanned Bruce Payette's book and did not find anything there.   
    It turns out to be one of those "by rote" things you have to learn about PowerShell.
    My concern about the lack of documentation is that MSFT might change the underlying code in the future to use Unicode and that might break some existing code.  If there was some MSFT provided documentation declaring ASCII as the intended encoding they
    might provide plenty of warning if they do a switch in encoding.
    I note also that if you try to write characters outside the ASCII set (see example below) that character substitution happens to find an ASCII character to use in place of the one outside the ASCII set.  In the example below a 'v' is substituted for
    the '√' character:
    ${C:xo.txt} = '√'

  • Cannot checkin/checkout html, js, txt, and jsp files in MS Sharepoint Workspace 2010

    I am having issues checkin/checkout html, js and jsp files in Microsoft Sharepoint Workspace 2010. I can access (checkin/checkout) any files in the actual Sharepoint site, but when I am synchronized to the site in Sharepoint Workspace 2010 I cannot access
    html, js, and jsp files. When I try to checkout a html file, a message pops up saying:
    "Can not perform this operation. This document has been checked out or may no longer exist."
    Could this be a synchronization issue, or was Sharepoint Workspace 2010 not design to work with html, js, txt, and jsp files?

    Hi Armando,
    I'm afraid that you posted your question on the wrong forum. This forum is intended for Project Server questions. Please go to this forum in order to have answers from experts: 
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/home?category=sharepoint&filter=alltypes&sort=lastpostdesc
    Cheers.
    Guillaume Rouyre - MBA, MCP, MCTS

  • Yosemite finder crashes with previewig .txt and other files

    Hello,
    under Yosemite  the Finder crashes with previewig .txt and other files.
    Is this just my problem? Help please.
    Thank you very much.
    Regards.

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    Step 1
    For this step, the title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.
    In the top right corner of the Console window, there's a search box labeled Filter. Initially the words "String Matching" are shown in that box. Enter the name of the crashed application or process. For example, if Safari crashed, you would enter "Safari" (without the quotes.)
    Each message in the log begins with the date and time when it was entered. Select the messages from the time of the last crash, if any. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    ☞ The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    ☞ Some private information, such as your name, may appear in the log. Anonymize before posting.
    Step 2
    In the Console window, select
              DIAGNOSTIC AND USAGE INFORMATION ▹ User Diagnostic Reports
    (not Diagnostic and Usage Messages) from the log list on the left. There is a disclosure triangle to the left of the list item. If the triangle is pointing to the right, click it so that it points down. You'll see a list of crash reports. The name of each report starts with the name of the process, and ends with ".crash". Select the most recent report related to the process in question. The contents of the report will appear on the right. Use copy and paste to post the entire contents—the text, not a screenshot.
    I know the report is long, maybe several hundred lines. Please post all of it anyway.
    If you don't see any reports listed, but you know there was a crash, you may have chosen Diagnostic and Usage Messages from the log list. Choose DIAGNOSTIC AND USAGE INFORMATION instead.
    In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.)
    Please don’t post other kinds of diagnostic report—they're very long and rarely helpful.

  • Error in Flatfile (txt) to xml file scenario

    hi,
    while executing the Flat file (txt) to xml file  scenario, the txt file picked up from my source directory, but i could not find in my target directory.
    when i check message monitoring, it is showing successful.
    Audit Log for Message: af840930-3fa2-11dc-a345-000423c7753d
    Time Stamp Status Description
    2007-07-31 16:14:47 Success Channel CC_sender: Entire file content converted to XML format
    2007-07-31 16:14:47 Success Send text file "xi_input.txt" from FTP server "64.72.230.130:/praba_source", size 353 bytes with QoS EO
    2007-07-31 16:14:47 Success Application attempting to send an XI message asynchronously using connection AFW.
    2007-07-31 16:14:47 Success Trying to put the message into the send queue.
    2007-07-31 16:14:47 Success Message successfully put into the queue.
    2007-07-31 16:14:47 Success The application sent the message asynchronously using connection AFW. Returning to application.
    2007-07-31 16:14:47 Success The message was successfully retrieved from the send queue.
    2007-07-31 16:14:47 Success File "xi_input.txt" deleted after processing
    2007-07-31 16:14:47 Success The message status set to DLNG.
    2007-07-31 16:14:48 Success The message was successfully transmitted to endpoint http://xiserver1:8000/sap/xi/engine?type=entry using connection AFW.
    2007-07-31 16:14:48 Success The message status set to DLVD.
    2007-07-31 16:14:48 Success The message was successfully delivered.
    I followed the Venkat Donela blog
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    IN sender CC, i used file content conversion(mesage protocol), file name scheme xi_input.txt
    In receiver CC , I used file (message protocol),file name scheme xi_output.xml
    In both CC , transport protocol is FTP.
    so i gave server name, port, username, password.
    could you help me out to find the error for this scenario also?
    Thanks in advance

    hi,
    In sender CC
    name and value are like this
    row.fieldNames     FirstName,LastName,MiddleName,City,Place,State,Country
    row.fieldSeperator     ,
    row.processConfiguration     FromConfiguration
    row.endSeperator     'nl'

  • Can't Edit .txt and .pdf files in EP6 KM

    We just migrated our last application from EP5 to EP6, and now we're having problems with not being able to edit .txt and .pdf files.  The problem is that the files will only open in the browser rather than in their native programs (wordpad/notepad, Adobe Editor, etc).  Surely others have encountered this issue.  Are there any solutions short of installing 3rd party tools?

    Hi Jeff,
    Which program opens on a link depends on two things:
    1. The MIME-Type that is sent from the server together with the resource (file) you requested by clicking a link
    2. Your Windows Setting defining which local application should be used for which MIME Type.
    So there may be two things happening:
    1. EP 6 is sending other (or no) MIME Types with the KM resources. You can check this in your KM configuration. See KM -> Services -> MIME Service
    2. Your OS got the settings for apps/MIMEs changed. This happens e.g. if you changed on Win XP to SP 2.
    So here may be a solution:
    Go to Windows Explorer->Tools->Folder
    Options->File Types, click on the TXT extention, and click
    "Delete".  Then proceed to recreate the TXT file type with the
    default app you want (notepad). 
    IE will open your app (notepad) for links to text files from that point
    on.
    So, to check this for text files, open the registry editor, go to
    "My Computer\HKEY_CLASSES_ROOT\.txt" (or .TXT), and check for a 'String
    Value' with the value "text/plain".
    This should work with any file type, as long as you use the right MIME Type (See KM configuration / MIME Services).
    HTH,
    Carsten

  • What size should my .itl library file be for 7000 tracks?

    This will seen like a very strange question but how large should an .itl library file be? The reason that I ask is that I'm trying to get my iTunes files back in place on a new PC & I find that I have 2 old .itl files & don't know which one to import.
    I would have expected that the most recently dated one would be the one to use but Windows tells me that the file size is considerable smaller than the old one.
    I expect that there has has to be some sort of direct relationship between the number of tracks in the library & the file size of your library. My larger file is said to be 11,300kb & if I recall correctly I have about 7000 tracks in the library. Does that seem correct?
    Is it possible to try to add the the second newer library to the first one should as I expect install the larger one. Would this cause problems like duplicates?

    +I expect that there has has to be some sort of direct relationship between the number of tracks in the library & the file size of your library.+
    There probably is, but I'm not sure how to account for podcasts, audiobooks, movies, and TV shows.
    My itl file on v9.02 is 10.7MB and I have around 30K music tracks.
    v7 itl files were much bigger. Apple did some major overhaul when they released v8 and shrunk the itl file size.
    +I find that I have 2 old .itl files & don't know which one to import.+
    There is no way to "import" an ITL file. You can use a shift-start of itunes to look at each itl file and see which one is the most complete.
    Press *AND HOLD* the shift key while starting itunes until you see the option to choose a library. Browse to whichever itl file you want ot look at.
    iTunes will always use the last itl file it opened, unless you do another shift-start.

  • Whether ineed to put selection between txt and xl file?

    hi,
    my requirement is to provide to upload data from legacy to sap.in my selection screen i hav to put both presentation and application server options.
    If the presentation server option is selected then user can select the file type like Text or Excel?
    i want the approach to how to code for presentation server.i.e,
    a)whether i need to use radiobuttons for txt and excel file.

    Hi
    Check this sample code:
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS: FLATF RADIOBUTTON GROUP RAD1 USER-COMMAND X,
                UNIXF RADIOBUTTON GROUP RAD1 .
    SELECTION-SCREEN SKIP 2.
    SELECTION-SCREEN SKIP 2.
    parameters: P_FNAME type RLGRAP-FILENAME MODIF ID P1,"here you can give your txt or excel file
                UNIXFILE type RLGRAP-FILENAME MODIF ID P2.
    SELECTION-SCREEN SKIP .
    selection-screen ULINE.
    SELECTION-SCREEN: BEGIN OF LINE.
    SELECTION-SCREEN POSITION 20.
    parameters TESTRUN AS CHECKBOX default 'X'.
    SELECTION-SCREEN: END OF LINE.
    SELECTION-SCREEN END OF BLOCK B1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FNAME. "to give F4 functionality for the local PC file
      CALL FUNCTION 'F4_FILENAME'
    * EXPORTING
    *   PROGRAM_NAME        = SYST-CPROG
    *   DYNPRO_NUMBER       = SYST-DYNNR
    *   FIELD_NAME          = ' '
         IMPORTING
           FILE_NAME           = P_FNAME.
    " the following steps will let u know If the file is an txt or excel file:
      data: LEN TYPE I,
            v_fname type string.
      if p_fname is not initial.
        MOVE P_FNAME TO V_FNAME.
      else.
        MESSAGE I000(ZP).
      ENDIF.
      LEN = STRLEN( V_FNAME ).
      LEN = LEN - 3.
      IF V_FNAME+LEN(3) = 'xls'. "here IF the file is an excel..you write the condition you want.
      Endif.
    Hope you are clear,
    Vishwa.

  • How to Upload .TXT, BITMAP, .PDF files into a Data base Table.

    Hi,
    I have one requirement like Below.
    I have to create a table which should hold a Text file or a Bitmap file or a PDF file and i should be able to down load it to the desktop with same format.
    How i can upload or download such type of files.
    Please let me know..
    Srikanth.

    Hi Srikanth,
    *&      Form  f1104_download_to_lofile
    Download to data from internal table to Logical File
    FORM f1104_download_to_lofile.
    Open the file in application server
      OPEN DATASET v_filepht FOR OUTPUT IN TEXT MODE.
      IF sy-subrc <> 0.
        MESSAGE s185 WITH v_filepht.           " File opening error
        LEAVE LIST-PROCESSING.
      ENDIF.
      LOOP AT i_logfile INTO w_logfile.
        TRANSFER w_logfile TO v_filepht.
        CLEAR w_logfile.
      ENDLOOP.
      IF sy-subrc = 0.
        WRITE:/ text-055, v_filepht, text-056. " File successfully created
      ELSE.
        WRITE:/ text-057, v_filepht.           " Error creating file
      ENDIF.
    Closing the file
      CLOSE DATASET v_filepht.
    To Retrieve Data file from Application server
    (Upload from Unix)
    DATA: i_file like rlgrap-filename value '/usr/sap/tmp/filename.txt'.
    OPEN DATASET i_file FOR INPUT IN TEXT MODE.
    IF sy-subrc NE 0.
    MESSAGE e999(za) WITH 'Error opening file' i_file.
    ENDIF.
    DO.
    Reads each line of file individually
    READ DATASET i_file INTO wa_datatab.
    ENDDO.
    Also check:
    http://www.sapdevelopment.co.uk/file/file_updown.htm
    http://www.sapdevelopment.co.uk/file/file_uptabsap.htm
    OR
    Regards,
    Anjali

  • .txt or CSV file to Database

    Hi-
    I have a text file generated by a Pulse Oximeter, What I want is, as the system recieves the file (in .txt of CSV) it automaticly is entered into a MySql Database or SQL Server and generates an SMS message. Thanks
    Regards
    Tayyab Hussain

    Web services imply using sychronous communication. However, the use case you describe implies that asynchronous, so-called fire-and-forget, communication is better suited to your needs.
    For example, with sychronous communication, the system is unaware of the exact moment a TXT or CSV file will come in. Also, when the system is processing a file, all other processing waits until the system finishes. This may cause synchronicity problems if multiple files come into the system in quick succession.
    ColdFusion has an asynchronous solution that suits every requirement of your use case. The following methods will enable you to receive the file, to automatically enter it into the database and to generate an SMS message. Use ColdFusion's DirectoryWatcher gateway to monitor the directory in which the TXT or CSV files are dropped, and ColdFusion's SMS event gateway to send SMS messages.
    Whenever a third party drops a file into the directory, an event is triggered, setting the DirectoryWatcher into action. Implement a query in the onAdd method of the DirectoryWatcher's listener CFC to store the file in the database.  Following the query, use the sendGatewayMessage method to send the SMS message.

  • Important question for reading File

    Good morning
    i need help...
    any one know 1 class for oper all document?
    example:
    http:sitoclient.com/?file?filename.txt
    or
    /home/class/filename.txt
    i need 1 class for open file in all mode
    where is this class?
    one class for read file in url or in absolute path
    Message was edited by:
    mirko81

    ok i know this class but i not know where insert Java.net in my code....
    and i need use class BufferReader for other problem...
    where insert Java.net.URL ??
    String keyCode = "";
    BufferedReader file = new BufferedReader(new FileReader(keyFile));
                   if(file.read() > 0)
                        int i = 0;
                        String appKey = file.readLine();
                        for(i=0;i<500;i++)
                             char c = appKey.charAt(0);
                             if(c==' '| c=='#')
                                  appKey = file.readLine();
                             else
                                  keyCode = keyCode + appKey;
                                  appKey= file.readLine();
                                  char cd = appKey.charAt(0);
                                  if(cd==' '| cd=='#')break;
                   else
                        System.out.println("File corrotto o non presente");
                   }

Maybe you are looking for

  • How do I manually transfer music from my MAC to my iPod Nano (4th Generation)?

    Recently, I have encountered a problem when trying to drag and drop songs and playlists from my Mac to my iPod Nano (4th Generation). I click on the file in my iTunes Library window but it won't allow me to copy it to my iPod. I've restarted both my

  • New field (Customer group 5) to be added to the Catalog for Pricing.

    Hello friends, For the creation of a new Condition table, I require the field, KNVV-KVGR5 i.e Customer group 5 field present in Sales area data ->Extras -> Additional data in Customer master to be added to the Catalog of allowed fields since this fie

  • Highlighting 3 elements at the same time...

    Please let me know if this is do-able, and if so, how. Picture a newspaper column : there's a picture on top, followed by text underneath, and some padding all around displaying only a paper-textured background image. MouseOver *any* portion of the c

  • "Tab" as Keyboard Shortcut.

    I would like to assign "tab" as a keyboard shortcut in Flash CC, when I try to do it in the "Keyboard Shortcut Window" it tabs me out of that frame so I am unable to assign it. Please Help. I looked at the Keyboard Shortcut XML file in my preferences

  • Multiple use of cllps

    To get long event videos on a dvd, i'd like to mark one long clip in several places and then have buttons in DVD Studio offer the options to 'see the whole thing', see 'intro a', see 'intro b' , 'see Q and A', etc. This way there is only one iteratio