Always lower case web-inf when WARing

The strangest thing happens when I try to create a WAR for
deployment. First let me start off by saying I have never had to
deploy on a windows box before and I am wondering if this is a
Windows (2K) problem. I am trying to use "jar cvf app.war ." from the
staging root dir to create the WAR file. The directory structure
inside the WAR is great except for any files directly under the WEB-INF
directory. Here is an example of the contents (when viewed with
WinZip):
web-inf\web.xml
WEB-INF\lib\struts.jar
WEB-INF\jsp\main\abc.jsp
WEB-INF\classes\abc\def\xyz.class
Notice that the web.xml file is in 'web-inf' instead of 'WEB-INF'.
To determine if it had to do with web.xml being an XML file extension
(or something, I am grasping for straws at why this is happening) I
added a file named test.txt to WEB-INF directory and it shows up as:
web-inf\test.txt
so it tells me that any file directly under the WEB-INF dir is the only
case where 'web-inf' is reported as it's directory. When the WAR is
created it actaully prints:
adding: WEB-INF/web.xml(in = 4131) (out= 992)(deflated 75%)
which appears as it is added as 'WEB-INF' and not 'web-inf'.
This, I believe, is what is stopping my deployment from working
with JRun. JRun works fine for me when deploying flat.
TIA!

To update this...
This is actually not a real problem. I created the WAR file using
everything from deploytool to the jar executable to Ant but the problem
was that I was using WinZip everytime to view the contents. It was
just a WinZip setting combined with a JRun specific deploy problem
(but the WinZip thing threw me off from finding that out right away).
I just needed to move on to something else and come back to it to
finally figure that out. :(

Similar Messages

  • How to CHECK WHETHER LOWER CASE OR UPPER CASE  IN CUSTOM TABLE

    Dear Friends,
                     I have a requirement where from  the flat file  i have collected into the internal table is as below :
      IDNo.     Name     Date      Location   Designation  Dept
      101       raja      4/12/2007  Delhi      manager      HR
      102       james    4/12/2007  Delhi      clerk          HR
    now iam checking against my custom table where iam   if the designation for the employee name already exists then i shouldnt modify/update the custom table that record
      now iam facing a problem where is the flat file is always having the Lower Case only ,
    as per the scenario  if my custom table already have the employee name i shouldnt modify/update i.e i shouldnt overwrite,
    this scenario is working but it is failing in the case
    by chance in the Custom table the employee name or designation is in Upper Case  the condition where iam checking in the code  is failing as the flat file data coming into the internal table is having always lower Case.
    So could any one please let me know how i should check in my custom table whether iam having upper case or lower case and how can i make it lower case ?
    because iam able to manage in the case where if the flat file data coming in Upper case i can check before only by
    using Translate to lower case . how i unalbe to  check for the data coming from the Custom table if  in Uppercase , so i want to change that to lower case then checking my condition whether that data already exists in my custom table before modifying the data coming from the flat .
    because the condition is failing when the data in the custom table is in upper case and the Flat file data is in lower case.
    please help how i can check for the data in the Custom table is in upper case and then change it to lower case.
    Regards
    Madhuri.

    Hi Madhuri,
    Translate both data in your flat file & custom table to lowercase before comparing them. With that, you're able to identify if there's a differences in for both data.
    If you're putting data that is pulled from custom table, what you can do is after selecting/reading the data, translate to lowercase or uppercase (whichever you prefer) but make sure if you translate to lowercase, your data in the flat file must be lowercase to and vice versa.
    Happy doing !!..
    Regards,
    Loo

  • Save package spec and body in lower case ?

    I'm using sqldeveloper 3.1.07. We have the convention to save all source files in lower case. However, when I do "Save package spec and body" the filename that is suggested is always upper case. Is there a setting for this that I missed or any way I can change this ?

    Buntoro,
    thank you very much - that worked just fine (if I start from the Tools menu and then can select only the packages and package body options - and then in the next step do the name filtering for the selected objects).
    I was trying to use shift key and select multiple packages from the browser and then unload - that does not give you the "package body" selection option. In that particular case, the related package bodies for the selected packages should be automatically included - but I don't know if that can be classified as a bug or even an improvement, given that this can be achieved from the Tools menu (then unload).
    I understand what you mean by
    ========================================================
    "Note that the Package Spec displays only the choosen ones.
    But, why on earth unloading all of package body instead of the ones which we chose before?
    Simply forward, the output of this caused all of the package body to be exported.
    So please be aware before using this."
    ========================================================
    I also believe this is a bug and needs to be fixed.
    Buntoro, thanx again.
    R/ Zaf
    Edited by: zaferaktan on Jan 12, 2011 10:57 AM

  • How can I reference a dtd in the Web-Inf directory from an xml file?

    Hi,
    I've placed my test.xml and test.dtd files in the following
    direcory (part of my web application)
    weblogic\config\MyDomain\applications\sample\Web-inf
    When I refer to the dtd from the xml file, as follows,
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE application SYSTEM "test.dtd">
    Weblogic tries to look for the dtd in the weblogic directory(the
    place where I started the server from). How can I get it to read
    the dtd in the Web-inf directory?
    I'm using Weblogic6.0 SP1 on Windows NT 4.0
    Thanks.

    Two options:
    1) Use SYSTEM "http://localhost:7001/sample/test.dtd"
    2) Or use XML registry in WLS6.0
    Cheers - Wei
    "Paromita" <[email protected]> wrote in message
    news:3aaff997$[email protected]..
    >
    Hi,
    I've placed my test.xml and test.dtd files in the following
    direcory (part of my web application)
    weblogic\config\MyDomain\applications\sample\Web-inf
    When I refer to the dtd from the xml file, as follows,
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE application SYSTEM "test.dtd">
    Weblogic tries to look for the dtd in the weblogic directory(the
    place where I started the server from). How can I get it to read
    the dtd in the Web-inf directory?
    I'm using Weblogic6.0 SP1 on Windows NT 4.0
    Thanks.

  • Does JSP best practice of putting under WEB-INF apply to JSF pages?

    I'm new to JSF and wondering if the "best practice" advice that used to be given of storing your jsp pages under WEB-INF (when using Model2) to keep them from being served up without going through your controller still applies with JSF.
    Since the component lifecycle is so different, I'm wondering if it would still apply? If anyone can explain why it might or might not apply I'd appreciate it!
    Thanks!

    The rule is:
    keep all the pages you don�t user to "browse", under the WEB-INF directory.
    MeTitus

  • TopLink map a field which name in low case

    I used Oracle ADF to modeling my database table. My table name and all filed names are in low cases. I used TopLink Create Java Objects from Tables wizard to crate Java objects from my table, and created map. In the TopLink mapping, the query keys are in low cases. But when my session bean execute the named query, the query statement from executeQuery doesn't put double quotes around the filed name and table name. The query statement like: select name from space. So it will cause error like "java.sql.SQLException: ORA-00942: table or view does not exist". The query statement should like:
    select "name" from "space";
    Can anyone tell me where to edit the mapping or customize code to put double quotes around field name and table name?

    I'm not sure if the JDev UI has an option to output table and field names with quotes. You could use a SessionCustomizer in your TopLink sessions.xml file to iterate over the Session's descriptors and change each of their table and field names to include the " character.
    In general you will make you life much easier if you just create the tables and field using normal upper case or case insensitive names.
    It would be nice to have an easier way to quote all table and field names, please feel free to log this issues on EclipseLink Bugzilla.
    James : http://www.eclipselink.org

  • Ignoring lower case letters

    Because I like how it looks, I will type most of my text on
    some pages in all lower case letters. When I spellcheck, DW stops
    at the begining of every sentence and wants to correct the
    "mistake" of a lower case first letter. Is there a way I can get DW
    to ignore this. It's not that big of a deal, but it is kind of
    annoying. Thanks for your help and time,
    Dale.

    It doesn't look like the code you wrote will dothat.
    And that tells me you haven't tried to implement it.
    If you don't know how to do it yourself, how is it
    you're going to tell if something else doesn't work?
    After adding a little something to it, it worked. I wasn't trying to be rude, it just looked liked it wouldn't do what I was trying to do. Thanks for the help.

  • Read XML file in WEB-INF works in exploded format but fails in EAR

    I'm able to read an XML file stored in the WEB-INF when my application is deployed in the exploded format, but when its deployed in an EAR, the reading fails.
              I read from forums that getRealPath could fail, so I added in the getResourceAsStream to fall back on. But in the EAR format, both fails.
              What did I miss out?
              Here's my codes:
                          StringBuffer configFileName = new StringBuffer();
                configFileName.append(File.separatorChar).append("WEB-INF");
                configFileName.append(File.separatorChar).append("app-config.xml");
                String fileName = getServletContext().getRealPath(configFileName.toString());
                if (fileName == null) {
                  request.setAttribute("efs/xmlmappings-is", getServletContext().getResourceAsStream(configFileName.toString()));
                } else {
                  request.setAttribute("efs/xmlmappings-str", fileName);
              

    Hi          > Thread.currentThread().getContextClassLoader().getReso
              > urceAsStream()
              >
              > getClass().getClassLoader().getResourceAsStream()
              > should also work
              > if the file is in WEB-INF/classes
              >
              > regards
              > deepak
              It works, thanks!

  • Caps lock indicator is on but it is in lower case

    Hi,
    I have Notebook model 14-b157TU. since 2 days, My laptop's caps lock indicator is working in reverse way - indicator is on when it is lower case and off when it is upper case. I have tried restarting the system and removing the battery for sometime and then turning on the laptop. But the problem still persists.
    Help me to resolve this.

    Welcome to the Apple Support Communities
    As you say that the Shift key is stuck during startup, too, discard any software problem, because it's a hardware problem. Take the Mac to an Apple Store or reseller to get your computer repaired

  • Why does Firefox always block any link I try to open going to a web page when I don't have pop up blocker on?

    Why does Firefox always block any link I try to open going to a web page when I don't have pop up blocker on? First off they are not even pop ups....your crap blocks everything and don't save user names &/or passwords when you have it checked. Also in your tutorials about solving this issue says it has the word "OPTION" .......no, it never says option to allow you to bypass it and etc. Only thing is says is "ALLOW" . That would be nice , but the problem is it will not allow it from then on. It only allows it right then and then you have to refresh...after that to open again it blocks it again.....HOW STUPID?!!!!!
    It always say that this is preventing this page from automatically redirecting to another page. THIS IS WHAT I AM TRYING TO DO...GO TO ANOTHER PAGE........I DON'T NEED YOUr BROWSERS PERMISSION TO DO THAT. THAT IS WHAT A *%#$&*(&*%$$%% BROWSER IS FOR TO GO TO OTHER PAGES......THEY ARE NOT POP UPS!!!!!
    YOU STUPID BROWSER ACTUALLY BLOCKS EVERYTHING AND THAT SUX!!!
    HELP!!

    Are you using "Clear history when Firefox closes"?
    In case you are using "Clear history when Firefox closes":
    *do not clear the Cookies
    *do not clear the Site Preferences
    *Tools > Options > Privacy > Firefox will: "Use custom settings for history": [X] "Clear history when Firefox closes" > Settings
    *https://support.mozilla.org/kb/Clear+Recent+History
    Note that clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, and passwords.
    Clearing cookies will remove all specified (selected) cookies including cookies with an allow exception that you want to keep.
    Let all cookies expire when you close Firefox.
    *Firefox/Tools > Options > Privacy > Cookies: Keep until: I close Firefox
    You can choose to keep third-party cookies from visited sites if necessary.
    Create a cookie 'allow' exception for cookies that you want to keep.
    *Firefox/Tools > Options > Privacy > Cookies: Exceptions

  • Lower case search is not working in the Web

    Hi BW Gurus ,
    when i am executing  a query i am able to search the values in the selection with f4 using smaller case as well as lower case but in the web it is taking only upper case letters search... if i am giving as lowercase it wont show any records when it is upper case its showing records. any solution for this.....
    vas

    Hi Vas,
    While searching, put a condition such that it works for both the lower case as well as uppercase.
    Regards,
    Ravi G

  • HT1338 My MacBook Pro (running Leopard 10.5.8) won't allow keyboard to type an upper case 'C' using the shift key...works fine with caps lock, or, with my Typinator workaround using double-typed lower case c (not always best). Any ideas?

    My MacBook Pro keyboard won't type an upper case 'C' using the shift key... only with caps lock. Workaround has been to use Typinator by typing a double lower case c, not always the best solution. Mac is a refurbished model, which initially was fine. Apple tech helped me correct the quirk when it first appeared, but now it has returned and refuses fixes. Any ideas?

    I'm willing to bet that this has something to do with iCloud.  I've been facing a frozen computer nearly every time I go into it. 
    In Activity Monitor I have seen two programs associate with iCloud that take up about 2.5 GB of memory (I only have 4 in the computer) -- causing everything to freeze.  One of these is called "iCloud Helper" and the other one is something like "Address Book Sync helper" -- I see parts of these names in the stuff you have posted.
    I am at my wits' end with these and have written to Apple asking them to do away with these or fix them.  To get rid of the Address book sync thing I have gone into system preferences for iCloud and unchecked Contacts -- but then spontaneously it gets rechecked.  And oftentimes after I Force Quit the iCloud helper, it spontaneously turns on again.  My conclusion --- the iCloud is basically unusable.  It turns a Mac into the most useless, clogged, sluggish PC.  If this is happening to a lot of people's computers -- and I see no reason why yours or mine should be an exception -- these programs just might destroy Apple itself. 
    So -- I'm about to completely give up on iCloud, and I suspect that others will too unless this gets fixed.
    Cheers,
    Bob

  • Warning - When Compiling .jsp pages under WEB-INF

    Created a directory jsp under WEB-INF and when i compile the jsp pages i get the following warning message
    Warning: package name web2d_inf._jsp does not match source file name C:\ProviderEnrollment\ProvEnrollView\classes\.jsps\_WEB_2d_INF\_jsp\_searchprovider.java
    Need help
    Thanks

    We have encountered this warning too.
    I'm not an Oracle employee, but it looks like there's a bug in JDev that preserves the case for the output directories but not for the package name that is supposed to correspond to the output directories.
    In any case, we haven't seen any runtime problems that seem to be related to this warning, so you may be safe to disregard it. It does foul up the build log though.
    Any JDev team members watching this topic are welcome to chime in with a confirmation and details of this apparent bug, as well as any workaround that might exist to avoid having the warning appear. Thanks!

  • Can get lower case letters when using bios

    I purchased a used macbook air.  Changed the user to me but never changed the old user password.  I recently autorize an update and I can't get in without a password.  I never changed the old user password and newer assigned a password to my name.  Now I can't get in.  I tried going to the bios but I only cant type upper case letters and no lower case letters.  Can someone help me as to how I can type lower case letters when I start the bios?

    Unfortunately this is often the case, particularly if the field is not properly identified as a password field, and is true for both Web pages as well as (poorly designed) BlackBery applications.
    I've just gotten into the habit of typing the first letter of my password, then hitting the [Del] key, then typing in my full password all the time!
    Jerry

  • BAD CLASS FILE ERROR WHEN TRYING TO CALL JAVA CLASS IN WEB-INF DIRECTORY

    I AM NEW TO THIS FORUM. PLEASE HELP ME IDENTIFY/RESOLVE THIS ERROR - bad class file: /java/tomcat/webapps/ChoiceTel/WEB-INF/classes/XYZ/SMUA.class. OTHER JSP SCRIPTS THAT CALL JAVA CLASSES DO WORK WELL.
    THE FUNNY THING ABOUT COMPILIING THIS JAVA CLASS WAS - I HAD TO A jar xvf OF activation.jar and mail.jar IN THE XYZ DIRECTORY BEFORE SUCCESSFULLY COMPILING SMUA.
    THE CALL BEING MADE FROM THE JSP SCRIPT IS AS FOLLOWS:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <HTML>
    <BODY>
    <%@ page import="XYZ.*" %>
    <%!
    %>
    <%
    SMUA sndmail = new SMUA();
    sndmail.postMail ("[email protected]","Test Subject","What Message","[email protected]");
    %>
    </BODY>
    </HTML>

    Dude. Please don't shout. If your keyboard is like mine, it can produce both upper and lower case letters. Please use them appropriately.
    Do you have the activation.jar/mail.jar available in the WEB-INF/lib directory for this application?

Maybe you are looking for