Can new folder be added into a war using jar commands?

Hi All,
I am working on an installer creation attempt to make some changes on a war at the client side to inject my changes into it. As a result i am in need to modify the war using jar commands and have found some success.
I user the following command.
D:\MyWarLab>jar uf webtop.war customThis command helped me in adding my changes inside a folder named 'custom' placed at location 'D:\MyWarLab' into the 'custom' folder inside my 'webtop.war'.
Now this worked as expected since the 'custom' folder was already present inside the war.
Now my next step is to inject a new folder named 'customA' inside
webtop.war ->WEB-INF -> classes -> com -> application. This customA folder would contain the java class files i have created.The customA folder does not already exist at the above mentioned location, hence the need to create it.
I have not been able to find a jar command to add new folders at desired locations of the war.
Could you please validate my attempt and suggest a command to fulfil my requirement.

Now this worked as expected since the 'custom' folder was already present inside the war.No. It worked because 'custom' existed in the file system as a directory with files under it. Whether it was already in the war is irrelevant.
This customA folder would contain the java class files i have created. The customA folder does not already exist at the above mentioned location, hence the need to create it.If it exists on the disk you can add it to the war with the jar uf command.
I have not been able to find a jar command to add new folders at desired locations of the war.You've already found it!

Similar Messages

  • Issue with the new COPA field added into the BBSEG Structure

    Hello All,
    I have an issue with the new COPA field added into the BBSEG Structure.
    I think its added becuase of test Operationa Conern Created by somebody.
    Can you please let me know how to remove that structure from BBSEG Structure.
    Thanks
    vsr

    Hi Monohar & Ankur,
      Thanks for your answers..
      main issue is suddenly new field called RKE_COPA_KOSTL has  been added to the BBESG Structure..
      Because of this RFBIBL00 Upload is not working. I heard that  this new fields will come by generating Operating Concerns by Transaction KEA0.I found an operating concern which was created as a test in developemt system..
      But I am not sure how to delete that operating concern.Even i am not sure if we delete the Operating Concern ..is it going to delete that field in BBESG Structure or not??
    Please advise me..
    Thanks
    sathi

  • I downloaded a cd to my itunes and it went into "recently added" and won't sync to my iPhone or iPod.  How do I get that folder (recently added) into my music folder?

    I downloaded a cd to my itunes and it went into "recently added" and won't sync to my iPhone or iPod.  How do I get that folder (recently added) into my music folder?

    How do you have your Shuffle set up to sync music? 
    B-rock

  • HT1386 My old computer crashed and I can't sync new songs from my new computer to my IPod without erasing all of the existing content on the IPod.  Can new songs be added without erasing?

    My old computer crashed and I can't sync new songs from my new computer to my IPod without erasing all of the existing content on the IPod.  Can new songs be added without erasing?

    Yes by:
    Using iPhone, iPad, or iPod with multiple computers
    However, you can make this computer the syncing computer by:
    - Transering iTunes purchases to the computer by:
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    - Transfer other music by using a third-party program like one of those discussed here:
    Copy music
    - For synced photos you need a program like TouchCopy or PhoneView. The do music too.
    - After everything is on the computer connect the iPod to the computer and make a backupo by right clicking on the iPod under Devices in iTunes and select Back Up
    - Restore the iPod from that backup
    Note that the backup that iTunes makes does not include synced media like apps, music, synced photos.

  • Moving Photos to a new folder in Lightroom 1.3.1 using Mac OS 10.5.1 Doesn't Work

    I use an iMac with OS 10.5.1 and Lightroom 1.3.1.
    First, I successfully imported the photos from my Epson P-2000 to a folder (Germany) which I created as part of the import into Lightroom (for File Handling in the Import dialog I used Copy Photos to a new location and Import).
    Next, I created a new folder (Berlin) using the Lightroom folder panel and dragged some photos from the Germany folder into the new Berlin subfolder. Although the photos appear in the Berlin subfolder, they are still also in the parent, Germany folder.
    Also, I would have thought that I could select photos and then use the Edit menu's Cut and Paste commands to move the photos. But even though I have selected images in the Grid view, these commands are grayed out.
    I don't want to copy the photos - I want to move them. And I did not think that the same photo could be in two different folders. Any help would be greatly appreciated. Thanks.

    Are you seeing this only in Lightroom? They are not 'still in the parent, Germany folder.' only visible their if you have 'Include Photos from Subitems' checked in the Menu/Library of Library.
    Uncheck that you you will only see them in their correct folders.
    Don
    Don Ricklin, MacBook 2Ghz Duo 2 Core running 10.5.1 & Win XP, Pentax *ist D
    See LR Links list at my
    Blog for related sites.

  • Can select, but cannot insert into oracle tables using php.

    I am having trouble inserting data into a tables in oracle using PHP. I can insert into the tables using baninst1, but nothing else. I can't even insert using the tables' owner. Every time I try I get the ORA-00492 error of table or view does not exist. However, I can run a select statement just fine. So far, baninst1 is the only user that can actually do inserts. I've triple checked all the table grants and everything is fine. Also, I can copy/paste the exact insert statement into SQL*Plus and it works with the correct user. It doesn't have to be baninst1. I've tried everything I can think of. I've tried putting the table name in quotes, adding the schema name to the table, checking public synonyms, but everything appears to be ok. I would greatly appreciate any suggestions others may have.
    I'm using PHP 5.2.3 with an oracle 9i DB.

    Here is the code that doesn't work. It works only with baninst1, no other username will work and all I do is change the my_username/my_password to something different. This is one example function where I try to do an insert, but it doesn't work on any of the tables I try.
    Thanks for looking.
    class Oracle {
         private $oracleUser = "my_username";
         private $oraclePassword = "my_password";
         private $oracleDB = "MY_DB";
         private $c = null;
         function Connect() {
              if ( !($this->c = ocilogon( $this->oracleUser, $this->oraclePassword, $this->oracleDB ) ) )
                   return false;
              return true;
         function AddNewTest($testName, $course, $section, $term, $maxAttempts, $length, $startDate, $startTime, $endDate, $endTime)
              $result = "";
              if( $this->c == null )
                   $this->Connect();     
              $splitIndex = strpos($course, " ");
              $subjectCode = substr($course, 0, $splitIndex);
              $courseNumber = substr($course, $splitIndex + 1);
              $insertStatment = "insert into szbtestinfo(szbtestinfo_test_name,
                                                                szbtestinfo_course_numb,
                                                           szbtestinfo_section,
                                                                szbtestinfo_max_attempts,
                                                                szbtestinfo_length_minutes,
                                                                szbtestinfo_start,
                                                                szbtestinfo_end,
                                                                szbtestinfo_id,
                                                                szbtestinfo_subj_code,
                                                                szbtestinfo_eff_term)
                                                                values( '" . $testName .
                   "', '" . $courseNumber .
                   "', '" . $section .
                   "', " . $maxAttempts .
                   ", " . $length .
                   ", to_date('" . $startDate . " " . $startTime . "', 'MM/DD/YYYY HH24:MI')" .
                   ", to_date('" . $endDate . " " . $endTime . "', 'MM/DD/YYYY HH24:MI')" .
                   ", szsnexttest.nextval" .
                   ", '" . $subjectCode .
                   "', '" . $term . "')";
              //return $insertStatment;
              $s = OCIParse($this->c, $insertStatment);
              try
                   $result = OCIExecute($s);
              catch(exception $e)
              return $result;
         }

  • How can I integrate add-ons into a PDF (Use Adobe Acrobat (in Firefox), such as Babylon English Dictionary?

    How can I integrate the Fox add-ons into a PDF (Use Adobe Acrobat (in Firefox), such as Babylon English Dictionary? Many PDF do support my add-ons. BTW, the PDF in question is one that I have uploaded to my web site.

    Babylon would need to support Adobe Acrobat for that to happen.

  • Can't change activation only mode to off using the command line in Windows 7 64 bit

    I used the command line to turn activation only mode on and now when I use teh command to turn it off it will not change the iTunes setup. I am on Windows 7 64 bit. I tried uninstalling itunes and reinstalling and it is stillin activation only mode.

    Hi! Thx for your quick reply! I am still unsure what to do tho---see my questions below in bold:
    Windows 7 comes with its own version of the standard PostScript driver. = Where is this driver? I have no idea how to find it, it doesn't show up in my Printer menu in FM?
    Given that PostScript generated by a driver can be highly device-specific, you need to install the driver as modified by the PPD file for the device in question. Most printer manufacturers in fact provide a PostScript driver installer that associates their printer's PPD file with the standard Windows Printer driver and subsequently creates what is called a PostScript printer driver instance for the particular device on the I/O port you designate. = ??? I've only updated a PPD file for watermarks and have no idea what this means...is there a step-by-step instruction for this? I just need to download a PS driver to select that works & doesn't freeze up my FM when creating a .ps file.
    The real question thus is exactly what are you trying to generate PostScript for? = I create a PS, & then use Distiller to create a PDF. This enables me to have a PDF that automatically has Bookmarks, the TOC/LOF/LOT & all corss-refs are hyperlinked, etc.
    If you are trying to create PostScript for distillation into PDF, Acrobat installs a PostScript driver instance of its own, labelled Adobe PDF, that is associated with the Acrobat Distiller PPD. = I have tried the Adobe PDF selection from my Printer menu in FM, but it freezes up FM and I have to close the whole program & no PDF generates.
    BTW, although you may be successful in installing and running FrameMaker 8 on Windows 7, in fact Adobe officially does not support FrameMaker 8 on Windows 7. = I don't know what to say---the upgrade is too expensive for some of us folks out here right now, so we all need to work with what we have for now!
    I appreciate your help, thank you.

  • How can i convert ppt file into a keynote using windows 7 ?

    can i change a powerpoint file into a keynote file on my labtop using my windows 7 ?? if yes can i send it to someone who has mac OS and will it work well with him?

    No, he'll download it as a PPT.  Keynote can then open the PPT file, and he can choose to convert to the Keynote format once its open.
    Keynote: Supported file formats - Apple Support
    All he'll need to do is save it.

  • How can I seperate one string into multiple strings using PowerShell?

    New to PowerShell...how can I read/separate parts of a file name? For instance if I have a file name like "part1_part2_part3_part4.xls", how to separate this file name to four different parts? So I basically want to go from that file name,
    to four different strings like part1, part2, part3, and part4...as four separate strings. How can I get this done in PowerShell?
    Thanks

    You can try something like this
    PS> (Get-ChildItem part1_part2_part3_part4.xls).BaseName.Split('_')

  • Can I upload PowerPoint directly into Connect without using Adobe Presenter?

    I have a PowerPoint file (.ppt as well as .pptx) and the slides are fairly simple - mostly bullet point lists in Arial or Calibri font (nothing wild and crazy).  When I upload the content directly into the Connect envrionment, the formatting of the slides (in the share pod) is all wacky.  Instead of it sizing the slides to fit the share pod, the bullet points go down past the bottom of the pod and cannot be read.
    I was told that the only solution to this is to purchase Adobe Presenter and publish my PowerPoint files (using Presenter) into Adobe Connect.  That is not an option for me at my company.  It seems like uploading a simple PowerPoint should be a basic feature of Connect without having to download/purchase Presenter licenses.  Maybe I'm wrong.  Below are a few images in case this is not making sense.  If anyone has advice, PLEASE let me know.  I cannot possibly using connect for virutal training if slides look the way they do below.  Thanks!
    The first image is the PowerPoint slide
    Here is what it looks like in the Share Pod:

    Thanks Robert,
    I tried to ask Adobe for a short list of supported / unsupported fonts but the tech kept telling me he could not give me that information.  I thought I tried Arial to no avail but I can do so again.  Just reformatted everything in Garamond and it worked fine.
    Thank you again.

  • Can we integrate Lotus quickr into ep 7 using application integrator

    hi gurus,
    can we integrate lotus quickr in to ep 7 (i.e sso) using appliction integrator or do we have any other way to do sso,
    helpful replies are appreciated.
    Thanks & Regards
    K Naveen Kishore

    Hi,
    Tobias , thank you for you reply
    yes it is ,Lotus Quickr is a DMS(document management system) which sits on Lotus Domino server.
    i have done integrating Lotus quickr to ep 7,using application integration,
    what i have done:
    1)uploaded par file,
    2)ceated system template,
    3)created system using template,
    4)then iview using par,
    5)done usermapping
    in iview in the property
    URL Template Fragment for User Mapping : i have given
    Username=<MappedUser>&password=<MappedPassword>
    i took Username and password names from source of the login page of quicke
    document.write("<input id=\"user\" class=\"text\" type=\"text\" name=\"Username\" />");
    document.write("
    <label for=\"password\">""Password:""</label>
    document.write("<input id=\"password\" class=\"text\" type=\"password\" name=\"password\" />
    document.write("
    <input id=\"button\" type=\"submit\" name=\"login\" value=\"""Log In""\" />
    when i cliclk on preview
    finally page is displayed without user logedin, when i tried to login with this page with valid username and password same page is displayed .but when i tried with invalid username and password it is saying invalid username and password.
    also as u said  "Best way would be to configure Quickr to user Kerberos authentication"  if possible send me the step by  step guide for this.
    Regards
    K Naveen Kishore.

  • How can I import scanned images into InDesign CS5 using Mac10.6?

    I want to be able to import scanned images. What file format must I save the data in?

    Greg Parks L.A. wrote:
    For example, to print on a press you need images that are CMYK at 300 ppi, 100% scale. If you're just making office-quality documents or PDFs, you can use RGB images at a lower resolution.
    You do not need images to be CMYK for print. InDesign can handle the conversion from RGB to CMYK when exporting to PDF. The old rule of thumb that images for print need to be 300 ppi is history. The ideal minimum resolution is halftone screen times the square root of 2 (1.41421356). But you can get away with a lower resolution for most images.

  • Can't get letter "s" into higher case using shift key!

    When I press the shift key and the letter "s" at the same time, the computer does nothing and then a few seconds later makes that noise as if you are typing, when not selected in any program.
    Should I re-install Leopard or take back to the store, orrrr wait for an Apple update to fix these keyboard issues?

    Check whether either the speech or listening keys in the Speech pane of System Preferences have become set to that keystroke, and change the setting if either has been.
    (26301)

  • Help-I can't add debug symbol into my .o using ctfconvert.

    Hello,
    Who knows how to use ctfconvert/ctfmerge?
    I did as below, but failed.
    #gcc -D_KERNEL -c dummy.c
    #ctfconvert -g -l LB dummy.o
    and I got the message:
    ERROR:ctfconvert:dummy.o doesn't have type data to convert
    removing dummy.o
    Then I did like this, it's no use either.
    #gcc -D_KERNEL -c -g dummy.c
    #ctfconvert -g -l LBL dummy.o
    and I got the message�F
    ERROR:ctfconvert:GCC-generated stabs are unsupported. Use DWAF instead.
    removing dummy.o
    Is there something wrong?

    Did you try using the Sun Studio compiler instead?
    Cheers,
    R.

Maybe you are looking for

  • User Exit for IW51-Create Notifcation

    Hi Friends I want to capture User or System Status when Notifcation - IW51 is saved. Kindly help me finding the exact user exit for this requirement, Thanks Senthiil

  • Mac not able to connect to SMB File Server

    I'm having an issue with a Mac trying to connect to our file server. It was working before our company move but once we moved into our new building it stopped working. Our network settings stayed exactly the same except our router and firewall. It se

  • Problem with running service resgitry configiration wizard for NWCE7.2

    Hello Guru's I am planning to use NWCE7.2 for developing a pilot. I have installed the NWCE7.2 after downloading form SDN. The basic installtaion was successful. But i ma facing problem in initial configuration. Note:I am new to NWCE but have install

  • Error when updating published folio

    Preparing to submit app for iTunes approval and testing using TestFlight. All was going well until I tried to update content in an iPhone rendition. One article needed an edit, the edit was made and folio was shared with application account. I copied

  • HT201263 can I update my iphone 3g ios 4.2.1 to ios 6.1.3?

    can I update my iphone 3g ios 4.2.1 to ios 6.1.3?