Why does the Java method ServletContext.getResourceAsStream return null with a know good path to an xsl file?

iPLANET ISSUE
Why does the Java method ServletContext.getResourceAsStream return null with a know good path to an xsl file?
CODE
ServletContext context = mpiCfg.getServletConfig().getServletContext();
// Debugging
out.print(context.getServerInfo());     // Get server info
out.print(“getRealPath = ” + context.getRealPath("WEB-INF/xsl/RedirectToAcs.xsl"));
String strXslName = "RedirectToAcs.xsl";
InputStream is = context.getResourceAsStream("WEB-INF/xsl/"+ strXslName);
TRACE FROM THE LOG
[26/Jul/2002:08:23:15] info ( 2868): [0][][ClearCommerceCcpaMpi][]getServerInfo() = iPlanet-WebServer-Enterprise/6.0, getRealPath() = C:\iPlanet\Servers\web-apps\ccpa\WEB-INF\xsl\RedirectToAcs.xsl
[26/Jul/2002:08:23:15] info ( 2868): [0][][ClearCommerceCcpaMpi][]strXslName = RedirectToAcs.xsl, is = null
[26/Jul/2002:08:23:15] info ( 2868): [1][][ClearCommerceCcpaMpi][16]ResourceAsStream is null
[26/Jul/2002:08:23:15] info ( 2868): [1][][ClearCommerceCcpaMpi][30]Problem reading XSL file.
DIRECTORY DUMP
C:\iPlanet\Servers\web-apps\ccpa\WEB-INF\xsl>dir
Volume in drive C has no label.
Volume Serial Number is 9457-EBF4
Directory of C:\iPlanet\Servers\web-apps\ccpa\WEB-INF\xsl
07/22/2002 05:54p <DIR> .
07/22/2002 05:54p <DIR> ..
07/22/2002 05:54p 3,086 RedirectToAcs.xsl
07/22/2002 05:54p 3,088 Response.xsl
2 File(s) 6,174 bytes
2 Dir(s) 1,797,405,696 bytes free

I think there's supposed to be a forward slash before WEB-INF.
InputStream is = context.getResourceAsStream("/WEB-INF/xsl/"+ strXslName);

Similar Messages

  • Why does the Java API use int instead of short or byte?

    Why does the Java API use int if short or even byte would be sufficient?
    Example: The DAY_OF_WEEK field in Calendar uses int.

    One of the point is, on the benchmark tests on Java performance, int does far better than short and byte data types.
    Please follow the below blog talks about the same.
    Java Primative Speed
    -K

  • Why does the "Format & Strip" function not return a number in the same format as "Format String"?

    I am using the "Format and String" function in a vi with the "string" input wired to a string of type "0.9998,0.9899,1.0003,0.9995, (etc)". I have wired the "format string" input to a string constant "%1.4f". Irrespective of the format string, I always get a number out that is rounded to 2 decimal places. I have tried different number formats in the format string, and I have wired a 4d.p. floating point number to "default". I have also set the precision of the format string to 4 d.p. with no effect. Any suggestions (or is the output always rounded to 2 d.p.)?

    Hi,
    If you are looking at the result in a numeric indicator, then the default setting is 2 places of decimal, that is displayed.
    You need to right click on the indicator and select Format & Precision then change the Digits of Precision value.
    Ray.
    Regards
    Ray Farmer

  • HT1560 If diagnostics says appletv is working properly, why does the install keep getting stuck on pairing with the computer then back to select resolution over and over.

    First gen Appletv suddenly stopped working from one night to the next. This has happened in the past once and the usual restore, reboot, etc, tinkering finally snapped it back into working quite unexpectadly. The symptom is, after restore when it gets to the screen to pair with itunes by entering the numbers in itunes, the number is briefly up on the tv screen and then quickly is gone returning to the select resolution page. This happens over and over with each try while the Appletv never shows up in itunes and the number box never appears either to pair the computer with the Appletv. It does the same thing with my intel macbook so I don't think it's the Imac. I have dumped itunes 10 and reloaded itunes 9 with no change in the problem. My IP scanner picks up that the Appletv is on our network as soon as it turns on. I have used wireless, which it finds and logs into, and ethernet which also has it finding my network. I can't test whether it is actually on the network by trying to play a trailer or something because it will not go past that pairing screen in the initial setup. Are the built in diagnostics reliable when they say your appletv is working correctly. The hard drive isn't making any exceptionally loud noise as it spins up. I am stuck with this unit because I use it with a G4 Imac running Tiger 10.4 for a video/audio jukebox at the bar. New ATV won't work with the Imac unless it's running leopard I believe. The thing runs like molasses already so attempting leopard which I don't have anyway would really make it crawl. I love a good mystery/problem but this thing is driving me crazy. If I just could know for sure what component inside was shot I would replace it. Could a hard drive boot up to a degree and then get stuck at one part of the install, or would it have to be the logic board, or something else. Bad juju in the house or something

    Had same problem this finally stopped it for me.
    FINDER
    APPLICATIONS
    UTILITIES
    DISK UTILITY.app
    select your main hardrive
    REPAIR DISK PERMISSIONS
    Message said repairing estimated time 1minute, yeah okay we all know how accurate those are process took about 5 minutes with nothing showing then all of a sudden printer permission repaired notations were flying onto screen in actions box. Do restart for heck of it sign on and so far no message has apeared where it did regularly. I hope this is indeed the fix. In meantime it never hurts to fix permissions so give it a try.
    George in NY

  • Why does the same pdf sometimes open in Photoshop with a white bkgd and sometimes transparent?

    I am opening the same pdf file on two different computers with the same version of photoshop.  Why does it open with a transparent background on one computer and a white background on the other?  Is there any way to force it to open with a transparent background?  Thanks.
    Loni

    You have different versions of the shared PDF libraries on the different systems and/or different settings on PDF handling, most likely. This can affect transparency. The PDF libraries are shared between Adobe apps, so this may be dependent on anotehr program having changed something in that area...
    Mylenium

  • Why does the Java script work on my RSS feed work for Internet explorer but not for Firefox?

    I have finished building the website for my Girlfriend and the only thing left is the RSS feed. It works just fine in IE 8 but in Fire Fox 9 when the widget is clicked a bookmark box pops up and asks if I want to save it as a bookmark. I am not a Java script programer so I am hoping for some help here!! Here is the script:
    <li id="rss"><a href="http://www.susangabrielle.com/1/feed" title="RSS" alt="rss"><img src="/files/theme/rss.png"></a></li>
    The sight is http://www.susangabrielle.com

    Presumably you fixed it, the RSS seems to work for me
    * e.g. http://www.susangabrielle.com/1/post/2012/01/post-title-click-and-type-to-edit.html <br/> although I get a message about missing plugins

  • Why does the autosum feature in acrobat return an answer of NaN when customers save their pdf form?

    I have created a form with the auto-sum feature. The form has been saved as a pdf and is being sent out to customers. When I fill out the form all fields work correctly but some forms that are being returned get a value of 'NaN' in one of the auto-sum currency fields. What would be causing this on some forms and not all?

    Without seeing the form it would be pretty hard to tell beyond what was stated.
    Are any of the users using a mobile device to fill in the form?
    It is possible the non-Adobe mobile users are manually adding up the fields and entering the string currency symbols and thousand separators, either of which could cause this error.

  • Why does the new dvd superdrive keep returning disk and not reading it

    Just got this usb superdrive and everytime put a disk in it it comes back not reading anything 

    Welcome to Apple Support Communities
    Return it and get another one. The Apple USB SuperDrive sometimes doesn't work correctly, and other external disc drives work

  • Why does the Database Connectivity Toolkit not return my text fields?

    I'm running LV 8.2.1 and have the Database Connectivity Toolkit.
    My database is served by MS SQL Server 2005.  The table looks like this:
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">dbo_Test
    dbo_Test
    ID
    Text
    1
    abc
    2
    def
    3
    slkdfj
    4
    owierlkjsdf
    5
    soiwuers
    A snapshot of my vi block diagram is attached.
    A snapshot of my vi front panel is attached.
    Where is the text?
    Attachments:
    vi.jpg ‏75 KB
    vi-fp.jpg ‏53 KB

    kc64,
    I don't think I completely understand the problem.  Can you go into more details of exactly what is the issue you are experiencing?
    Mark
    LabVIEW R&D

  • Why does the App Store not work in Genius with VoiceOver switched on

    After I downloaded IOS 6 to my iPhone 4 there were a lot of things not working properly, the main things that were a problem was the App Store, to move anything with VoiceOver switched on it was touch-and then tap twice also to move the thing on the page you use three fingers swipe up or down left or right to move it. We now find that to move something in Charts you only need one finger touchon the left to move it.If Some body can  come up with thee answer it is the People that work in the Accessability side of things at Apple. So if you know in Ireland why Apple cannot put in the info for Accessability for People who are Blind like me we cannot see what is going on we do not change anyof the settings...

    Thank you very much for the reply. That certainly makes sense, as I am sure it is all the Time Machine backups I have that are at the root of the problem. How can I update all those older version Apps deeply embedded within my TM backups, or is the solution to unmount my 2TB drive that I use for TM?
    I suppose if Apple could somehow direct the App Store to disregard all those other apps in TM, the problem would be resolved.
     Nick Andriash 
    17" MacBook Pro, 2.3GHz Intel Core  i7, Memory 16 GB, OS X 10.8
    AMD Radeon HD 6750M 1024 MB
    iPad2 WiFi & 3G, 64GB
    iPhone4S 32GB

  • Why does the PC lockup when using a 6071E with an ASUS P5ND2-SLI motherboard?

    Please Help,
    Thanks,
    Brian
    Problem Summary:
    PC locks up to a point that will not allow keyboard control.  Sometimes the system reboots itself.  This code works on Win2000 systems and XP systems with a different motherboard.  I have the Hyperthreading disabled.  I have also tried switching PCI slots to use different IRQ’s.
    Code: Code crashes right after last line function: GPCTR_Control().  No errors reported.
      //Board Model = "NIDAQ PCI-6071E", device code: 223
      short sSampleTimeBase = 1;
      unsigned short usSampleInterval = 2;  //ActualSampleInterval = (1microsec) * 2 = 2.0 micro sec
      short sMode = 1;
      short sPolarity = 0;
      double dScanRate = 10; // 10Hz 
      short psBuffer[20];//double buffering at 10Hz
      unsigned long   ulBufferSize = 20;
      int iChannelCount = 1;
      short sChanList[1] = {1};//chan nums start at 1, NOT 0
      short sGainList[1] = {1};//set gain to 1
      Init_DA_Brds( m_sDeviceNumber, &sDeviceCode) ;
      AI_Configure( m_sDeviceNumber, sChanList[0], sMode, 0, sPolarity, 0 ) ;//add ONE channel
      Select_Signal(m_sDeviceNumber, ND_IN_SCAN_START, ND_RTSI_0, ND_LOW_TO_HIGH);
      Select_Signal (m_sDeviceNumber,ND_RTSI_0, ND_GPCTR0_OUTPUT,ND_DONT_CARE))//the first card is master card
      DAQ_Rate(dScanRate, 0, &sScanTimeBase, &usScanInterval);
      DAQ_DB_Config( m_sDeviceNumber, 1); //"1" enable double buffering
      SCAN_Setup( m_sDeviceNumber, (short)iChannelCount, sChanList, sGainList );
      SCAN_Start( m_sDeviceNumber, psBuffer, ulBufferSize, sSampleTimeBase, usSampleInterval,  sScanTimeBase, usScanInterval );
      GPCTR_Control(m_sDeviceNumber,ND_COUNTER_0,ND_RESET); 
      GPCTR_Set_Application(m_sDeviceNumber,ND_COUNTER_0, ND_PULSE_TRAIN_GNR); //Begin Counter Pulse Train
      GPCTR_Change_Parameter(m_sDeviceNumber, ND_COUNTER_0, ND_SOURCE, ND_INTERNAL_100_KHZ); //set internal counter
      GPCTR_Change_Parameter(m_sDeviceNumber, ND_COUNTER_0, ND_COUNT_1, 100000/(unsigned long)dScanRate/2);//set pulsewidth 1, 100kHz/ScanRate/2
      GPCTR_Change_Parameter(m_sDeviceNumber,ND_COUNTER_0, ND_COUNT_2, 100000/(unsigned long)dScanRate/2); 
      GPCTR_Control(m_sDeviceNumber,ND_COUNTER_0,ND_PROGRAM)) //program the ATMIO card
    System Info:
    Operating System(OS):  Microsoft Windows XP
    OS Version:  5.01.2600
    OS Info: Service Pack 2
    Processor:  Intel(R) Pentium(R) 4 CPU 3.40GHz / x86 Family 15 Model 4 Stepping 1 / GenuineIntel / 3400 MHz
    Number of Processors: 1
    Physical Memory: 1,048,044 KB RAM
    Drive C:\ 238,293,104 of 244,187,968 KB free
    Motherboard: Asus P5ND2-SLI
    Chipset:
    nVIDIA nForce4 SLI - Intel Edition ( Crush 19 )
    nVIDIA MCP-04

    Brian,
    This problem is a little hard to pinpoint.  When you
    say this code works on a Windows 2000 and Windows XP machine do you run it with
    the exact same card, or with another DAQ card?  From the code you provided
    it looks like you are using the device to generate a pulse train.  Are you
    able to run any other code that generates a pulse train?  You might try
    the code located here:
    http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3DFFB56A4E034080020E74861&p_node=201235
    Are you able to perform other types of operations with this device, perhaps
    analog input?  If you only use Measurement and Automation Explorer (MAX)
    to create a pulse train, does your computer freeze?  You can test the analog
    input and pulse train generation through MAX by expanding Devices and
    Interfaces >> Traditional NI-DAQ and selecting your device.  Next
    select Test Panels and either Analog Input or Counter I/O.  What version
    of Traditional DAQ are you running?  If it is an older version, does upgrading
    your driver help?
    Finally, if you still have DAQmx installed (or if you can install it) can you
    generate a pulse train in test panels?
    Regards,
    Jesse O
    Application Engineering
    National Instruments
    Jesse O. | National Instruments R&D

  • TS1398 Why does the internet connection appear to be offline with stronger WiFi signal?

    I purchased new iPAD 3 generations 32 GB last Monday so i did click iCloud on left side to open the page but it
    indicated "Verification Failed - the internet connection appears to be offline" at home while WiFi icon shows stronger
    but problem with the internet connection being offline at home
    I have no problem with my home computer and wireless printer  - both still working good but I don't understand what's problem
    with my new iPAD after creating new iCloud account   outside home such as McDonald or Starbuck - internet connection appears to be online
    I have Verzion High Speed DSL and router DLink Model DES-1105.
    Please advise.
    Janice Lemanski
    Serial DYTHPBLEDJ8R
    Model A 1416  32 GB
    I

    You may think you are connected to the internet, but maybe not. Click on Safari and see if it connects.
    Look at iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    Additional things to try.
    Try this first. Turn Off your iPad. Then turn Off (disconnect power cord) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    Change the channel on your wireless router. Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    Another thing to try - Go into your router security settings and change from WEP to WPA with AES.
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    If none of the above suggestions work, look at this link.
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130?tstart=60
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • Why does the new version of Firefox not integrate with Norton 360 Identity Safe. Problem for me because I use Norton 360 Identity Safe to manage my passwords and make it more difficult to use password protected website without that add-in.

    I use Norton 360 Identity Safe to manage my passwords and it makes it difficult to use password protected website without that add-in.

    Norton release Firefox 8 compatibility already, instruction are here
    * http://community.norton.com/t5/Norton-360/Firefox-8-Support-for-Norton-Toolbar/td-p/581640

  • Why does the new MacBook Pro 13 no longer come with a graphics card?

    Why does the new MacBook Pro no longer come with a graphics card?  Or at least make it so you can opt for one.

    I know how you feel. Your MacBook Pro has integrated graphics 384 MB or 512 MB. If you are a gamer, creative professional or just want more VRAM get a 15 inch MacBook Pro with up to 1 gig of VRAM or a windows gaming laptop with up to 16 gigs of VRAM (a ridiculous amount!). If you get a windows pc, you can always install virtual box. There is no point in buying a 13 inch MacBook Pro unless you need a lightweight laptop with all of the extra "goodies". There is also no possible way to change the graphics unless you know how to "unhook" the card from the processor and install a new one. Sorry for the inconvenience.

  • Texting on iPhone 5.  When texting to multiple people why does the contact list return to the "A"s after you select a contact and try to add the next one in order?

    Texting on iPhone 5.  When texting to multiple people why does the contact list return to the "A"s after you select a contact and try to add the next one in order?  This really slows you down when trying to contact 50 people with information.  iPhone 4 worked just fine.  Any suggestions on how to fix this?

    None of my pictures that I uploaded into iPhoto are in my Finder under Pictures.  Should I copy and paste my folders from iPhoto into here, in case something happens to my iPhoto program (in addition to backing them up onto an external hard drive like I already do)?
    No, that's just wasting space.  A back up needs to be on a different disk.
    Your photos are within the iPhoto Library.

Maybe you are looking for

  • Get rid of fringe which first appears in Adobe Camera Raw

    I use Elements 11.  I have taken a photo of a wharf and done a lot of work on it but now notice that one of the supporting columns has a turquoise fringe right down the side of it.  Looking back at the original RAW file I see that it was there in the

  • Inventory Extraction - Issues till not Resolved!!

    Hi Gurus, I have couple of questions here regarding Inventory extraction, and I will ask one by one: 1. I have a requirement to develop a report called " Stock Ledger Report " where the KPI's would be Quantity, Cost & Retail Price. The 2 KPI's Quanti

  • Custom XSLT Functions - Unable to access in Mediator ExpressionBuilder

    I have created some custom functions, I am able to access them within the xslt mapper, but when I open Mediator Expression Builder I cannot access them. Is this by design, bug, enhancement request, trick to get get it work?

  • Identify the current week using macro

    Hi all, I have to write a macro to do some calculation if we are in current week and for future weeks some different calculation. My question is how to determine the current week. Please help me on this. Prabhat

  • MMS saving pics

    Anyone else experiencing problems saving pictures from MMS messaging after upgrading to 4.1? This is pretty crummy imo. I have reset all settings and will try a restore when I get home from work, just looking to see if anyone else is experiencing the