CLASSPATH, Jar file or zip file visibility during compilation and  run time

I am using jwsdp-1_0_01 with some success.
However, making my *.jar or *.zip files
visible during ant builds is not working.
Setting a CLASSPATH environment
variable (BTW: I on a Linux box) seems
to have no effect. I'm using the ant build
machinery found the JWSDP download
jwsdp-1_0_01/docs/tutorial/examples/jaxrpc/
and as long as I don't reference anything in
mystuff.zip
compilation succeeds and tomcat is happy
to provide my service. How can I get ant
and tomcat to see 'mystuff.zip' or 'foo.jar'
or whatever.
Note: I was able to get past these problems
using jwsdp-1_0-ea1 but (sigh) nothing learned there
seems to help here.
-joe

Hi joe
I made changes to targets.xml (in jwsdp-1_0\docs\tutorial\examples\jaxrpc\common) to include my own jar files.
To enable Tomcat to see the jar files when I install the service, I copied them into jwsdp-1_0\common\lib.
Here is the modified targets.xml (from Windows):
<target name="compile-server" depends="prepare" description="Compiles the server-side source code">
<echo message="Compiling the server-side source code...." />
<javac srcdir="src" destdir="${build}/shared"
includes="net\agmodel\metsoap\*.java"
excludes="net\agmodel\metsoap\*Client.java"
classpath="C:/jwsdp-1_0/common/lib/genericbroker.jar:C:/jwsdp-1_0/common/lib/weatherdata.jar" />
</target>
<target name="compile-client" description="Compiles the client-side source code">
<echo message="Compiling the client source code...." />
<javac srcdir="src" destdir="${build}/client" classpath="${jwsdp-jars}:build/shared:build/client:C:\jwsdp-1_0\common\lib\genericbroker.jar:C:\jwsdp-1_0\common\lib\weatherdata.jar" includes="net/agmodel/metsoap/*Client.java" />
</target>
Hope this helps.
Good luck
Matthew

Similar Messages

  • Converting html file into zip file and send email attaching zip file

    Hi Experts,
    I am trying to send email with attachment(html). Which contains more than 7MB. So, It is throwing an error like Size exceeded.
    So, Now i need to compress the data for less than 7MB.
    I decided to convert HTML File into ZIP File.
    Kindly suggest me to convert the HTML file into ZIP file and sending email with attached ZIP file.
    Correct answer rewarded,
    Thanks & Regards,
    N. HARISH KUMAR

    Hi Experts,
    *// HTML_TAB converting into ZIP File
       DATA  : zip_tool TYPE REF TO cl_abap_zip,
               filename TYPE string ,
               filename_zip TYPE string .
       DATA  : t_data_tab TYPE TABLE OF x255,
               bin_size TYPE i,
               buffer_x TYPE xstring,
               buffer_zip TYPE xstring.
    filename = text-007.                                                                          "'HTML_TAB
    *describe the attachment
       DESCRIBE TABLE html_tab LINES tab_lines.
       bin_size = tab_lines * 255.
       CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
         EXPORTING
           input_length = bin_size
         IMPORTING
           buffer       = buffer_x
         TABLES
           binary_tab   = html_tab.
       IF sy-subrc <> 0.
    *     message id sy-msgid type sy-msgty number sy-msgno
    *     with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
       ENDIF.
    *create zip tool
       CREATE OBJECT zip_tool.
    *add binary file
       CALL METHOD zip_tool->add
         EXPORTING
           name    = 'FSSAI_MAIL.HTML'
           content = buffer_x.
    *get binary ZIP file
       CALL METHOD zip_tool->save
         RECEIVING
           zip = buffer_zip.
       CLEAR: t_data_tab[],bin_size.
       CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
         EXPORTING
           buffer        = buffer_zip
         IMPORTING
           output_length = bin_size
         TABLES
           binary_tab    = html_tab.
    Thanks & Regards,
    N. HARISH KUMAR

  • I have a 2007 iMac with version 10.6.8.  When downloading "some" files to my computer, these files become "zip files."  When I open the zip file, it produces a document in some coding language. How can I open the file to produce a legible document?

    I have a 2007 iMac with version 10.6.8 and 4GB of expanded memory.  When downloading "some" emailed documents, the downloaded file becomes a "zip file," which when opened looks like a coded message.  How can I open the "zip file" so that it produces a legible document?  Please, help!!  thank you!!!

    A "zip file" is a compressed file. "Zipping" in principle does not and cannot change the contents. So that if the contents before zipping are garbage, or unreadable on a Mac, when you expand the file you will get garbage or an unreadable file.
    The first thing to verify therefore is whether the file, before it was zipped, was in a "Mac friendly" format. Can you do that?
    You do not need an App to zip or unzip. These functions are built in on our Macs.
    And yes, zipping and unzipping using the built in functionality, work fine in OS 10.6.8. And 10.7 and 10.8 and 10.9.

  • How to compile and run java files on a mac using command line?

    can someone tell me or link me to some article on how to compile and run java files from command line on a mac? I have mac OS X leopard

    What do you mean by "where to put them" ? What do you want to put anywhere ?
    Have you read Peter's comment in brackets ? Perhaps you have a classpath problem ?
    Edited by: Michael_Knight on Aug 31, 2008 4:23 AM

  • How to compile and run a .java file from another java program

    hello,
    can any one tell me how to compile and run a *.java* file from another java program which is not in same directory?

    Well a smarter way of implementing this is by using a solution provided by Java Itself.
    If you are using J2SE 6.0+ there is an in built solution provided along with JDK itself and inorder to go ahead with solution the below are set of API which you;d be using it for compiling Java Programs (Files)
    http://java.sun.com/javase/6/docs/api/javax/tools/package-summary.html
    How do i do that ??
    Check out the below articles which would help you of how to do that
    http://www.ibm.com/developerworks/java/library/j-jcomp/index.html
    http://www.javabeat.net/javabeat/java6/articles/java_6_0_compiler_api_1.php
    http://books.google.com/books?id=WVbpv8SQpkEC&pg=PA155&lpg=PA155&dq=%22javax+tools%22+compiling+java+file&source=web&ots=XOt0siYe-f&sig=HH27ovuwvJgklIf8omTykUmy-eM
    Now once we are done with compilation.In order to run a Specific class all you ought to do is create an object and its specific methods of a specified class included in the CLASSPATH which you can manage it easily by usage little bit reflections.
    Hope that might help :)
    REGARDS,
    RaHuL

  • Compile and run java programs using batch file

    i am using eclipse to run my java programs.How to compile and run those programs using a batch file?

    a) just write a batch file, and add it to the project. When you want to run it, go to a command window and invoke it. (There is probably also a way to invoke it from Eclipse)
    b) if the project is complicated, take a look at ant. Eclispe knows about ant files.

  • HT5192 I cant update my mibile always i got the same message. An error occurrd during updating and sime times cannot establish connection ?!!!!

    I cant update my mibile always i got the same message. An error occurrd during updating and sime times cannot establish connection ?!!!!

    Hi Martha Leal Tapia,
    Yes this issue was resolved. I had to add the below two parameters in the instance profile and continue the installation.
    icm/server_port_1 = PROT = P4, PORT = 5$(SAPSYSTEM)04, HOST = <full hostname as in the /etc/hosts file>
    icm/host_name_full=<full hostname as in the /etc/hosts file>
    Note 1158626 P4 connection to ICM on machine with multiple IPs fails.
    You can refer following SAPnote # 609603 for the above concepts although this refers to old release."
    Thanks and regards
    Ananth

  • Check user role/authorization during Web report run-time?

    Hello again,
    I ran into a problem. I need to check <b>user's authorization during webtemplate execution (run-time)</b>. I want to have a possibility to allow in one web template extra functionality (through template menu) to key users. Normal users, who are running same report, should not have this extra menu visible.
    Is it possible to check user authorizations or roles during web-template run-time?
    Thank you!
    Vitaliy

    Hi Harinam,
    From my logic your are right.
    The restriction is in two new roles (Requestor and Approver role).
    But ->
    If I assign my approver role the selection possiblities of the request types during the AR creation is restricted and the AR search function does not work.
    If I assign my requestor role the restriction of the request type is not there, but the AR search function works again. :-(
    If I assign the original approver role of sap I have the same behavoiur for the AR search.
    Both new roles are a 1:1 copy of the SAP standard roles - > Exception, ristriction on request type 'Execption Approval' is not displ.
    I have execute ST01 now. If I try to open the log, the system syst "No records that correspond to these search criteria".
    But I have found something else.
    The problem appears only if I search for Process ID "Access Request Approval Workflow".
    If I select other Process ID such as "Control Assignment Approval Workflow" or "Fire Fighter Log Report Review Workflow", everything works fine.
    Very strange!
    BR
    Melanie

  • How can I stop Microsoft IE renaming .jar files to .zip files?

    I realise this question has been asked before on this forum, but as far as I can tell no answer has yet been posted.
    If I put a .jar file on my webserver for people to download, later versions of Internet Explorer will rename the file from xxx.jar to xxx.zip on the client's machine. Is there any way of stopping this from happening?
    It looks like the problem is caused by IE examining the contents of the file and realising it uses ZIP compression. As a result, any file that I create (not just jars) that uses Java to zip the contents, when placed on a web server, gets interpreted as a .zip file by IE regardless of its extension.
    I realise there are some workarounds such as zipping the .jar file, creating a .exe file from the .jar, telling everyone to use Firefox etc., but none of these are really acceptable or particularly efficient. I am really hoping there is something I can do to the .jar file or the compression process that will tell IE to leave the file alone.
    Thanks,
    Jo.

    You can save any kind of document on iCloud Drive, as long as the file size is smaller than 15GB.
    See:   iCloud Drive FAQ
    Create a new folder for your Office documents on iCloud Drive and drag your documents there, or select iCloud Drive in the File Chooser panel, when you save a document.

  • Problem In Extracting xml file from Zip File

    Hi,
    In my application I am creating a zip file which contains some xml files. I am using Weblogic 8.1 for my application.
    When I try to extract the xml file from the zip file it displays error and those xml files are not extracted from the zip file.
    Otherwise on tomcat it works absolutely fine.
    Is there any support issues of using the zip files with weblogic?
    Please respond.
    Thanks in Advance.

    Friends
    I resolved the problem
    just to add the jars of
    mail.jar and activation.jar in the client side.
    regards
    ashok

  • Process txt files in zip file

    Hello everybody,
    I have a scenario where PI needs to obtain a zip file via FTP using the File adapter, this zip file contains a number of txt files that I need to process, and the content of one of them send it to an ECC, now I'm using the PayloadZipBean Module in the Sender FIle Adapter, and I have two things if I use the Message Protocol as File, I get a Payload for each txt file in the zip file, but this payload has no structure, and if I use the File Content Conversion I get an XML strcuture with only one field and a strange string in it, and somewhere in this string the names of the files I assume all the content of the zip file, can anyone help on how could I achieve what I need that is to pull the zip file via SAP PI, then unzip it, and with the content of one of the txt files send it to an ECC via ABAP Proxy, thanks in advance for your answers.
    Regards,
    Julio Cesar

    Hi,
    you can do it in futher way ...
    pickup zip file and simply extract and dump it in another temp folder (can use scripts on OS level).
    @ then Use another sender communication channel to pickup all these text file .
    for further clarification you can use these links also. -
    Re: PI needs to obtain a zip file via FTP using the File adapter
    Accessing File using FTP from Java Mapping
    File Sender Adapter with FTP protocol
    BR
    Raj

  • Cannot open/unblock msi & exe files in .zip file

    Trying to open .zip file but get security warning. Have tried to set unblock file but still issue still exists and the files cannot be opened. Is there a way to override this restriction?

    I had the same problem in build 9926 (seems to be solved for me in 10041). Clicking "Unblock" or running the Powershell command "unblock-file" had no effect whatsoever.
    A workaround is to add a Policy that prevents Windows from blocking the file in the first place, when it's downloaded. This requires you to redownload the files though, as it does not fix already blocked files.
    Solution 1:
    Add the following to the registry or save it as a reg-file to import:
    Windows Registry Editor Version 5.00
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments]
    "SaveZoneInformation"=dword:00000001
    Where 1 is "do not block downloaded files" and 2 would be "block downloaded files"
    Solution 2:
    Open gpedit.msc and browse to User Configuration > Administrative Templates > Windows Components > Attachment Manager. Enable "Do not preserve zone information in file attachments".
    Seems no reboot is required.
    More info here https://support.microsoft.com/kb/883260

  • Add .txt files into .zip file

    Hello friends,
    Any buddy knows how to add ".txt" files into ".zip" format through the ABAP code. 
    Thanks in advance.

    Hi Murali,
    You can use the method in the class CL_ABAP_GZIP to zip your file and then download it using GUI_DOWNLOAD.
    data: zip type ref to cl_abap_zip,
          result type xstring.
    create object zip.
    zip->add( name = some_file content = content ).
    result = zip->save( ).
    Also you can check this thread as well.
    How to Download data in Zip folder
    Re: UNZIP file from ABAP
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • Java.util.zip.ZipFile.entries() shows only 99 files but zip file is fine.

    Hi,
    I have a wierd issue with java.util.zip.ZipFile
    Code as simple as
    ZipFile file = new ZipFile("my.zip") ;
    System.out.println(file.size());
    For this particular zip file, it says 99 files found but the zip contains more than 60,000 files. I tried the zip with unzip and zip utilities and the zip file checks out fine. I even tried to unzip the contents, and zip 'em up all over again, just to eliminate the chances of corruption while the zip was being transferred over the network.
    The same program works fine with another zip containing more or less the same number of files and prints 63730.
    Any idea? This can not possibly be related to the type of files the zips contain? right? In any case, the contents of both zips are text/xml files.
    Any help would be greatly appreciated.
    Regards,
    ZiroFrequency

    I know its a problem with this particular zip. But whats interesting is that "unzip" can easily open / verify the zip and claims that it is a valid zip.
    As I wrote earlier, I unzipped the file and zipped up the contents again in a new zip but java can't still count the contents correctly.
    So I am thinking there is something to do with the "contents" of the xmls inside the zip? (characterset issues?)
    There are no exceptions thrown and no error anywhere :(
    I basically need to pinpoint the issue so that I can have it corrected upstream as this zip file processing is an ongoing process and I need to resolve it not just once but for the periodic executions.
    Hope this helps explain the issue.

  • Appending files to zip files

    Hi,
    My requirement is i have to append data to zip files using file receiver adapter.
    am also using FCC.
    can anybody help me on this how to approach.
    -Kishore
    Edited by: Kishore_Kumar_XI on Mar 3, 2012 6:05 PM

    Hi,
    I think you can use my blog case for your scenario
    ABAP PROXY TO FILE – Handling Heavy Volumes in SAP PI (ABAP PROXY TO FILE u2013 Handling Heavy Volumes in SAP PI)
    Steps:
    1. split into two scenario
         proxy --> XI --> file    (using above blog concept)
         (ii) file (zipped) --> Xi --> FTP (file) without IR objects
    using the first scenario write the file to XI server internal file location using NFS protocol using file receiver channel in append mode.
    Use the scripts as mentioned in the above blog (Note:- scripts will differ depending on XI Operating System). In the second script i.e.,  "Run OS Command After Message Processing" script, add the extra functionality which can zip and rename the file when it is last transaction. The last transaction can be identified from ABAP proxy message with little extra functionality in the report and using dynamic configuration we can pass this as input to second script which does the zipping and renaming.
    We are renaming the file for the last transaction, so that it can be pooled by second scenario file sender channel which will pool with the same naming convention. Pass this zip file directly to FTP server without using any IR objects.
    Regards,
    Praveen Gujjeti

Maybe you are looking for