Static files within a ear file     - help me if you can I am feeling down

I am using oc4j.
I have some static files (templates and configuration files for the applications) in an ear file.
These files are addressed via web.xml init param and I use relative path.
This works in my "working directory".
But when I deploy the ear file the servlet cannot access the file (io exception file test/templates/temp.txt not found).
Has anybody an idea how I must address the files in the web.xml?
How can I address the files from /test level?
Or is somthing wrong with the structur of the directory?
my "working dirctory"
appname/
META-INF/application.xml
test/
web-inf/web.xml
/classes
/lib
templates/temp.txt
init-param
<param-value>appname/test/templates/temp.txt</param-value>
init-param
<param-value>/test/templates/temp.txt</param-value>
thanks in advance
peter

If these files are only accessed from the web module, then put these files in a subdirectory of the "WEB-INF" directory of the war file.

Similar Messages

  • Mail won't open - please help me if you can I'm feeling down .... and I do

    Hello everyone - never used this before so I don't know quite where it will arrive - BUT, HELP - my Mail program just will not load - I press the icon in the sidebar and it just hops and that's it! I hold the menue open and click 'open' and the same, just one frustrating hop. I did notice yesterday something odd - some mail in had one subject, and then when I opened it, it was the content from another sender. Have updated to 10.4.8 in the last week. My summary comment as simply 'aaaaaaaaarrrrrrggggghhhhhhh!!!!!' - and I have so much in various mailboxes which I need to access on a regular basis.
    Any ideas for a new boy who is somewhat challenged tech-wise????
    Thanks
    DavidI

    Hello DavidI.
    Verify/repair the startup disk (not just permissions), as described here:
    The Repair functions of Disk Utility: what's it all about?
    After having fixed all filesystem issues, if any, proceed as follows to try to identify the problem:
    1. Open /Applications/Utilities/Console.
    2. From the File menu, choose either Open Console Log, or Open System Log, or both, so that the Console application displays the contents of both system.log and console.log.
    3. In the Finder, go to /Applications/, and try to open Mail by double-clicking on it. Look at the bottom of the Console windows for messages that might be written there as a result. They may provide some clues as to what the problem is.
    In the meanwhile, take a look at the following article, in case this is a font issue:
    Font Management in Mac OS X Tiger and Panther
    You may also want to read the following article:
    Multiple applications quit unexpectedly or fail to launch

  • I'm getting this problem when trying to update my iphone 3gs it says that the iphone software could not be contacted and I went on youtube got some advise to go into my hard drive to fix the error I have nothing in my host file please help me if you can

    I'm getting this problem when trying to update my iphone 3gs it says that the iphone software could not be contacted and I went on youtube got some advise to go into my hard drive to fix the error I have nothing in my host file please help me if you can this is all new to me.

    Read this: iOS 4: Updating your device to iOS 5 or later
    ... oh I think it is a 3gs or a 3
    This makes a difference. What does it say in Settings > General > About?

  • "Premiere Pro stores the preview files in a folder you can specify" But how?

    Specifying a Preview folder
    On page 265 of the PDF it states:
    Premiere Pro stores the preview files in a folder you can specify.
    QUES 1
    But how do you specify the folder? I just rendered a test clip and was not offered the option of specifying a folder. And there is no other mention of preview folders in the PDF.
    Preview Files for Encoding
    On the same page is:
    Note: Adobe Media Encoder does not automatically use Premiere Pro preview files for encoding. To make use of the Premiere Pro preview files, you must select the Use Previews option in Adobe Media Encoder for each encoding process.
    It is not clear from the PDF what is the quality of these preview files.
    QUES 2
    If I select the Use Previews option when exporting, aren't I degrading the quality of the export by encoding from an already encoded preview?
    QUES 3
    For the absolute best quality, should Use Previews be turned off?

    Preview File location is determined in the overall Project Settings.
    Set this location before you render any Preview Files.
    Project > Project Settings > Scratch Disks...
    Some documentation regarding the Scratch Disk location is buried here:
    Specify scratch disks to improve system performance
    QUES 2
    If I select the Use Previews option when exporting, aren't I degrading the quality of the export by encoding from an already encoded preview?
    In most (if not all) cases... yes.
    Previews are intended for real-time playback in the Timeline only.
    You should not use previews for export.*
    QUES 3
    For the absolute best quality, should Use Previews be turned off?
    Yes!
    *There are a few semi-obscure exceptions to this general rule.

  • Adobe Illustrator CS4 Error: Error 1603. Error 1305.Error reading from file C:\Program Files\Adobe\Adobe Illustrator CS4\Support Files\Required\Fonts\AdobeSongStd-Light.otf.  Verify that the file exists and that you can access it.  AdobeColorCommonSetRGB

    Iam trying to load illustator in my PC i get following error while loading Application CD 2
    Adobe Illustrator CS4
    Error:
    Error 1603. Error 1305.Error reading from file C:\Program Files\Adobe\Adobe Illustrator CS4\Support Files\Required\Fonts\AdobeSongStd-Light.otf. Verify that the file exists and that you can access it.
    AdobeColorCommonSetRGB
    Error:
    Error 2.
    My serial no. [Removed by moderator]

    Download a copy an installer for CS4 from the links on this page:
    Other downloads

  • If you upgrade or renew your storage but no longer need it, you can cancel. If you cancel your storage plan within 15 days of an upgrade or within 45 days after a yearly payment, you can contact Apple for a full refund. how do i contect apple to get refun

    If you upgrade or renew your storage but no longer need it, you can cancel. If you cancel your storage plan within 15 days of an upgrade or within 45 days after a yearly payment, you can contact Apple for a full refund.
    i upgrade a few minets ago. how can i contact apple to give me back money?

    Call the Apple online store for your country (1-800-MY-APPLE in the U.S. and Canada).

  • Firefox should display .swf and .flv files without Adobe. You can do it can't you?

    If the program, 'Media Player Classic' can play .swf and .flv files, the surely Firefox programmers can do for those what was done for .pdf files. PLEASE!

    hello, mozilla is indeed working on it, but this is not an easy task...
    https://blog.mozilla.org/research/2012/11/12/introducing-the-shumway-open-swf-runtime-project/

  • Got a problem with my Chatting-Room program, please help me if you can.

    There is one bug in the code (should be just one), but I couldn't find it, I even recoded the whole thing, after I recoded the code, the same problem seems still there. I just can't find where the problem is. So I hope someone here can help me, thank you very much.
    First, I made a Server and a Client. Server has 5 classes, and Client has 2 classes. My intention is that all the clients(running on other computers) will connect to the server (which is my laptop), and then they can communicate with each other. For example, if person A typed "Hello", person B and person C's computers will receive this message and display it.
    The problem is that several clients can connect to the server (My laptop), but if one person type something, other people won't receive the message, it's blank on their screens. Maybe there is a problem when server receiving the message. So this is the problem I want to solve.
    I have the code down there, here is a brife description what each class mainly does.
    First class of Server is for connecting client, this class is named Server. Everytime a client is connected, the Server class calls the second class to store the client's information (which is its IP address), the second class is named People.
    Third class is named Receiver, it is for receiving the massage from any one of the clients, then stores the message to a static field variable in Fourth class, fourth class is named Saying.
    Fifth class of Server is named Sender, it is for sending the massage to the client, that message is the one that stored in Saying.
    The First class of client is named Client, it prints any message that the server send to it.
    The Second class of client is named SendFromClient, it wait for user to type something, and then send the message to the server, so server's Receiver class hopefully will get it and store it to the field variable in the Saying class.
    Here is all the codes:
    Server Class:
    import java.net.*;
    import java.io.*;
    import java.util.*;
    public class Server
         public static void main(String[] args)
              /*port number*/
              final int port = 41333;
              /*welcome messages:*/
              System.out.println("This is FriendlyJ 1.0 running");
              System.out.println("Listening on ports 41333");
              try
                   /*Clear the ArrayList*/
                   People clear = new People();
                   clear.IPs.clear();
                   /*Create a server socket that will accept any connection on this port*/
                   ServerSocket ss = new ServerSocket(port);
                   /*keep getting clients*/
                   while(true)
                        /*connect with one client at a time*/
                        Socket s = ss.accept();
                        PrintWriter out = new PrintWriter(s.getOutputStream(),true);
                        Scanner in = new Scanner(s.getInputStream());
                        /*indicate one establish of connection*/
                        System.out.println("One connection estabolished!");
                        /*two classes, one foe receiving, one for sending*/
                        Receiver receive = new Receiver(in);
                        Thread ty = new Thread(receive);
                        Sender send = new Sender(out, s);
                        Thread yt = new Thread(send);
                        ty.start();
                        yt.start();
                        /*add IP to ArrayList*/
                        clear.storing(s.getInetAddress().toString());
                        out.println("There are " + clear.IPs.size() + " people online;");
                        System.out.println("Connected to " + s.getInetAddress().toString());
              catch (Exception e)
                   System.out.println("System exception");
    }People Class:
    import java.util.*;
    public class People
         ArrayList<String> IPs = new ArrayList<String>();
         /*A method for storing IPs*/
         public void storing(String IP)
              IPs.add(IP);
    }Receiver Class:
    import java.util.*;
    public class Receiver implements Runnable
         final private Scanner in;
         /*Constructor to get the scanner*/
         public Receiver(Scanner abc)
              in = abc;
         public void run()
              Saying say = new Saying();
              try
                   while(true)
                        /*waiting for input from client, then give it to Saying*/
                        say.setSaying(in.nextLine());
              catch (Exception e)
                   e.printStackTrace();
    }Saying Class:
    public class Saying
         static String saying = "";
         public void setSaying(String a)
              saying = a;
         public String getSaying()
              return saying;
         public void resetSaying()
              saying = "";
         public int getlength()
              return saying.length();
    }Sender Class:
    import java.io.*;
    import java.net.*;
    public class Sender implements Runnable
         final private PrintWriter out;
         final private Socket s;
         public Sender(PrintWriter abcd, Socket abcde)
              out = abcd;
              s = abcde;
         public void run()
              out.println("Feel free to chat.");
              int count;
              Saying says = new Saying();
              try
              while(!s.isClosed())
                   count = says.getlength();
                   if(count>0)
                        out.println(says.getSaying());
                        says.resetSaying();
              /*disconnect with the client*/
              s.close();
              System.out.println("Connection with " + s.getInetAddress().toString() + " is closed.");
              catch (IOException e)
                   System.out.println("Network error!");
    }Client Class:
    import java.util.*;
    import java.net.*;
    import java.io.*;
    public class Client
         public static void main(String[] args)
              Socket sc;
              System.out.println("Welcome to FriendlyJ IM program");
              System.out.println("Connecting to the server...");
              int port = 41333;
              /*A variable for storing IP address of Server*/
              InetAddress ip;
              try
                   ip = InetAddress.getByName("192.168.1.68");
                   sc = new Socket(ip, port);
                   System.out.println("Connected with Server");
                   Scanner in = new Scanner(sc.getInputStream());
                   PrintWriter out = new PrintWriter(sc.getOutputStream());
                   /*a thread for sending message to the server*/
                   sendFromClient sendin = new sendFromClient(out);
                   Thread sending = new Thread(sendin);
                   sending.start();
                   /*display welcome message*/
                   System.out.println(in.nextLine());
                   /*displaying how many people are online now*/
                   System.out.println(in.nextLine());
                   while(true)
                        /*print out the message sent by the server*/
                        System.out.println(in.nextLine());
              catch(UnknownHostException e)
                   System.out.println("Couldn't find the host!");
              catch(IOException e)
                   System.out.println("Network error!");
              catch (Exception e)
                   e.printStackTrace();
    }SendFromClient Class:
    import java.io.*;
    import java.util.*;
    public class sendFromClient implements Runnable
         private PrintWriter send;
         public sendFromClient(PrintWriter sendto)
              send = sendto;
         public void run()
              Scanner sc = new Scanner(System.in);
              while(true)
                   /*get a message, then send to the server*/
                   send.println(sc.nextLine());
    That's all, thank you for helping!
    Edited by: stdioJ on Oct 31, 2007 3:58 PM

    Hi pgeuens ,
    I tried it ...but it didn't work for me.
    I changed my .jsp like this
    <%@ page language="java" %>
    <%@ taglib uri="/tags/struts-html" prefix="html"%>
    <html:form action="Registration.do">
    UserName:<html:text property="username"/><br>
    enter password:<htnl:password property="password1"/><br>
    re-enter password:<html:password property="password2"/><br>
    <html:submit value="Register"/>
    </html:form>And i changed that web.xml like..
    <taglib>
        <taglib-uri>/tags/struts-html</taglib-uri>
        <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
      </taglib>Now I am getting an error like ......."File "/WEB-INF/struts-html.tld"not found.
    Hi Ashish
    I didn't find struts-form.tld in WEB-INF folder.But all the remaining file all there.
    Again I downloaded that struts1.2.9 ...in that also i couldn't find struts-form.tld file(except this remaining are there).
    Please tell me, if there any other ways....
    Thanks,
    kona.

  • PLEASE, HELP ME IF YOU CAN!!

    hi guys
    I am a window 7 user , photoshop element 9 tells me
    "Unable to continu e because of a hardware or system error. Sorry, but this error is unrecoverable! "
    I would appreciate any response or help on this problem!

    Well... what IS your hardware?
    How to ask a question http://forums.adobe.com/thread/416679
    Some specific information that is needed...
    Brand/Model Computer (or Brand/Model Motherboard if self-built)
    How much system memory you have installed, such as 2Gig or ???
    Operating System version, such as Win7 64bit Pro... or whatevevr
    -including your security settings, such as are YOU the Administrator
    -and have you tried to RIGHT click the program Icon and then select
    -the Run as Administrator option (for Windows, not sure about Mac)
    Your Firewall settings and brand of anti-virus are you running
    Brand/Model graphics card, sush as ATI "xxxx" or nVidia "xxxx"
    -or the brand/model graphics chip if on the motherboard
    -and the exact driver version for the above graphics card/chip
    -and how much video memory you have on your graphics card
    Brand/Model sound card, or sound "chip" name on Motherboard
    -and the exact driver version for the above sound card/chip
    Size(s) and configuration of your hard drive(s)... example below
    -and how much FREE space is available on each drive (in Windows
    -you RIGHT click the drive letter while using Windows Explorer
    -and then select the Properties option to see used/free space)
    While in Properties, be sure you have drive indexing set OFF
    -for the drive, and for all directories, to improve performance
    My 3 hard drives are configured as... (WD = Western Digital)
    1 - 320G WD Win7 64bit Pro and all programs
    2 - 320G WD Win7 swap file and video projects
    3 - 1T WD all video files... read and write
    Some/Much of the above are available by going to the Windows
    Control Panel and then the Hardware option (Win7 option name)
    OR Control Panel--System--Hardware Tab--Device Manager for WinXP
    And, finally, the EXACT type and size of file that is causing you problems
    -for pictures, that includes the camera used and the pixel dimensions

  • I need help please if you can aid me in my quest to write this code

    I am trying really hard to accomplish this and my head hurts from trying mulitple ideas on the right code.A lottery requires that you select six different numbers from the integers 1 to 49. Write a Java program that will do this for you and generate five sets of six numbers as a result.
    Details:
    For generating random numbers you can use the random() static method of class Math. It returns a double so you will need to cast it as an integer. If you set the range to 49, you can generate a random number between 1 and 49 through:
    number = (int) ( range * Math.random() ) + 1;
    Note that you need 5 sets of numbers and in each set you have should have six different numbers. There should not be duplicate numbers within each set. Of course the same number can occur in multiple sets, but within the same set of 6 numbers it should only occur once, if at all.
    Here is an example of a valid set of numbers: 5, 41, 3, 9, 22, 30
    Here is an example of an invalid set of numbers: 15, 8, 19, 33, 8, 21
    It is invalid because the number 8 appears twice.
    This is the dilema the code I have so far (I know it is not much) is import java.util.Scanner;
    import java.util.Random;
    public class Lottery
    public static void main(String[] args)
              int[] numbers = new int[6];
    number = (int) (range 49 Math.random() ) + 1;
    am I on the right track totally wrong or???? Please help me and god bless

    Tinkerbell... wrote:
    Navy_Coder wrote:
    Tinkerbell... wrote:
    Navy_Coder wrote:
    Yeahhhhh, don't do that...Why not?because you butchered an otherwise simple process by the whole generic list with 50 numbers and sorting mess.
    java.util.Random. <-- learn how to use it.Well, please explain how you would better do it using java.util.Random then?
    Random r = new Random();
    int[] vals = new int[6];
    for(int i = 0; i < vals.length; i++ )
        vals[i] = (r.nextInt(49) + 1);

  • For my iphone 4S, people can hear me sometimes but i can't hear them. I am having a hard time making phone calls. Please help me if you can.

    I can't hear my callers but i hear them sometimes. It makes some weird cracking sound.

    Apple just announced new products.  It is ALWAYS busy this time of year.  You just have to deal with it.
    Alternatively, you can contact Apple Support and get assistance that way.  Worst case scenario, they'll require a $19 fee to troubleshoot your device over the phone, which is refunded if it turns out you have a hardware issue.
    Try them at https://getsupport.apple.com or 1-800-MYAPPLE and see if they can help.
    But also try this:
    Basic Troubleshooting Steps when all else fails
    Quit the App by opening multi-tasking bar, holding down the icon for the App for about 3-5 seconds, and then tap the red circle with the white minus sign.
    Relaunch the App and try again.
    Restart the device. http://support.apple.com/kb/ht1430
    Reset the device. (Same article as above.)
    Restore from backup. http://support.apple.com/kb/ht1766 (If you don't have a backup, make one now, then skip to the next step.)
    Restore as new device. http://support.apple.com/kb/HT4137  For this step, do not re-download ANYTHING, and do not sign into your Apple ID.
    Test the issue after each step.  If the last one does not resolve the issue, it is likely a hardware problem.

  • A question.. help me if you can

    sorry guys can you help me?.. can i transfer my movies from my computer to my itunes library? i wanna tranfer them to my iphone..

    CineXPlayer HD
    tt2

  • I can't belive it. You have to help me.. you can. but you don't want to. i did what you said to me. I call the police. but i need to localizate with you help. PLEASE. I'M BEGGING YOU.

    This ipod means a lot to me. Not because it's an apple ipod, because my mom bought me with all her money.
    I know this is not your problem, but i NEED to find it. Only you can't help me.
    I know i'm not a important customer but at least try to do something .
    I don't know who is answering this message, i hope if someone read this message, can help.
    You CAN do it.. but you don't want to.
    I'm just telling you, to try to find it. Because the APP doesn't work to ipod's.
    at least, you should to get better your apps.
    PLEASE, HELP ME

    Sorry but the only help you have is the local police.
    Change your iTunes (Apple ID) password along with any other password that was stored in the iPod.  If any passwords are associated with credit cards, contact the CC company and get your card replaced (with a new number).  If any passwords are associated with your bank or any savings institution, contact them also and discuss approprate action with them.
    The "Find my..." function is pretty much useless if the device is in the hands of a thief.  All that is necessary is for the thief to connect to any computer with iTunes and "Restore as new."
    The only real protection you have is with the personal information on the device rather than the physical device itself.  This requires action before the device is lost/stolen.  Something as small as an iPod should have a strong 8-digit (or longer) password AND be configured for automatic wipe in the event of ten consecutive incorrect password entries.

  • HT5004 i nedd itunes 64 file i don't know what to do with my  iphone4 has all it's data in this computer and i cant sync my iphone now cuz its need the itunes64 file please help me if you can thank you

    hello sir
    my system needs itunes64 file i don't know from where i should get this file cuz my iphone 4 is all the time synced with this computer all the back up are in this computer i dont want to lose it coz i did restore once so i dont have all the data in my phone i have it in itunes please help me with itunes 64
    thank you

    Back up all data to at least two different storage devices, if you haven't already done so. One backup is not enough to be safe. The backups can be made with Time Machine or with a mirroring tool such as "Carbon Copy Cloner." Preferably both.
    Boot into Recovery mode, launch Disk Utility, and erase the startup volume with the default options. This operation will destroy all data on the volume, so you had be better be sure of your backups. Quit Disk Utility and install OS X. When you reboot, you'll be prompted to go through the initial setup process. That’s when you transfer the data from one of your backups.
    Transfer only "Users" and "Settings" – not "Applications" or "Other files." Don't transfer the Guest account, if it was enabled on the old system. Test. If the problem is still there, the cause is external to the machine, or else you're dealing with a bug or a hardware fault.
    If the problem is resolved, reinstall your third-party software cautiously. Self-contained applications that install into the Applications folder by drag-and-drop or download from the App Store are safe. Anything that comes packaged as an installer or that prompts for an administrator password is suspect, and you must test thoroughly after reinstalling each such item to make sure you haven't restored the problem.

  • Not able to open file...maybe you can help.

    Last Saturday I was recording direct to hard drive using Adobe Premiere Elements 9 and my computer shut down. I have a 41GB file saved with a .avi extension but it is not able to be opened in any program yet. From what I understand, in Adobe, once the file is saved to the timeline (which is how I had it set up) it then goes through the process of adding the appropriate data and processing the file. Since the computer shut down, that didn’t happen. When I right click on the "avi" file in Windows and select Properties>Details the only information showing is the File information. None of the other information that is normally there in video section for a video file in Window 7 is there.
    I opened the video in "GSpot" (the free app recommended by some in this forum) and clicked on the button at the bottom for “Proposed Codec Solutions and Tests.”  I’ve included a couple of screen shots of what appeared in GSpot:
    A screen shot showing the results of file that I cannot open
    A screen shot for a similar file: the video production that we did after I restarted the computer. I include this for comparison, since this file works fine.
    I don’t know enough about video to know what to look for or how it might be possible to correct the first file, but I thought having this information you might be able to point me in a direction or tell me definitively that it’s hopeless and we should move on to re-recording the session.
    Thank you in advance for any assistance you may be able to provide.

    Thanks for responding.
    The shutdown is not the problem. As you'll see from my repsonse to Bill, I went on battery to reduce the noise I was getting in the audio and was expecting to get an alert but I never saw it before the computer went into Hibernate. That is an issue, but if I choose to do that again, i can correct for that by closely monitoring the battery. I'd like to find a way to get rid of the audio noise (crackling sound and low buzz) without unplugging, but my more immediate concern is recovering the 3.5 hour video that is part of a training class that we are offering online.
    Any ideas you have about that besides what Bill suggested would be great.
    Thanks!

Maybe you are looking for

  • Error in Query

    When I ran the query I got a error is shown below Characteristic  deleted from InfoCube . Adjust the query Characteristic OCHRT is changed in the Infocube adjust the query If I adjust the query to press save button. What will be the impact ? Pls advi

  • Problem in SAP R/3 Console

    Hai to all, I have a problem in SAP R/3 Console , when i start the sap R/3 management console, it is starting from gray color to yello but it is not going to green color again it is going to gray.I did not understand the problem.... Can any one help

  • Audio start playing unexpectedly when loaded in LMS

    Hi all, this is another strange issue i encountered. I inserted a video in one of my courses. During the preview stage (and after i publish to .swf to test locally), everything played smoothly. But when I uploaded it to the LMS, the audio from the vi

  • How do i save an email document to photos

    how do i enlarge e mail message and also save it to photos

  • How do I get rid of old flagged emails (59) sitting in box?

    Problems with sending & receiving emails  messages " an error occurred while delivering this message"  " the connection to the server failed" " message has not downloaded from server" Have spent several hours trying to trace problem - still no soluti