Do i have to pack all files into the war file/

Hi,
suppose a file (say bb.html, for example) within a war has a link to a document outside the war, say c:\aa.doc for example, after deploying the war into the j2ee application server, the linked file cant be found, simply because the file(aa.doc) isn't packed with bb.html. I am wondering if there is a way that I can establish the link, even they are placed in different location.
to exend the question, in my understanding, the web container within the j2ee application server is a Tomcat run evironment, do I need to connection the applicaiton server to one of web servers like appache web server, IIS etc to get better preform? if yes, how?
Can anyone give some explanation please?
Thank you very much!
Ken

No they do not have to be packed into the same War file.
The application server does have to know where they are so that it can handle requests for a given "html" file.
For example: "bb.html" was found in the war file you deployed.
it links to "aa.doc" - where is the directory or war file that contains "aa.doc"?
It too needs to be "deployed" within the server in order to be found.
I hope this helps.

Similar Messages

  • How to Combine multiple files into the one file?

    Hi all,
    How do I combine multiple canon hf10 avchd files into the one file with a new extension. No need to be compressed.
    Afterwards, I also want to split this combined file to original files.
    Need Help!

    Yes, angelanna. You can merge or split your video file via FCP sequence.
    ahaah, maybe I think angelanna would like to get the resulting file with MTS format because he mentioned “No need to be compressed”. Are you asking for this, angelanna?
    If so, a simple MTS files managing and editing tool  is needed. Maybe you can have a try the Mac version of Aunsoft Final Mate for managing HD camcorder footages. I just downloaded its free trial version and it offers a simple way of garping footages directly  from camcorder. And also it provides a attractive feature to join flawlessly and split accurately native MTS files for video file output with original MTS format.
    Maybe this is the tool cwhich an help you out, angelanna.
    Enjoy your video.

  • I have a created a directory structure ias\ias-samples\myapps\src\docroot.In docroot folder i have a single jsp.i created a war file having that jsp,and ear file having the war file

    I deployed the ear file.Now i try calling http://localhost/myapps/test.jsp ??
    i'm i doing the right thing ?

    Hi,
    This is right provided you have installed the webserver & app server
    on the same machine and the port number for the web server is 80 by
    default.
    Regards
    Raj
    Arif Khan wrote:
    I have a created a directory structure
    ias\ias-samples\myapps\src\docroot.In docroot folder i have a single
    jsp.i created a war file having that jsp,and ear file having the war
    file
    I deployed the ear file.Now i try calling
    http://localhost/myapps/test.jsp ??
    i'm i doing the right thing ?
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • I would like to know how to insure that all track from a CD I rip into i-tunes all go into the same file regardless of the artist on the CD. I was recdently importing an All Time Low CD into i-Tunes for my daughter and because one track featured a guest a

    i would like to be able to insure that when i import a CD into i-Tunes that all tracks from that CD go into a single file for that album in their proper order regardless of whether or not there is a featured artist on one or two tracks or whatever. i recentl;y imported an All Time Low CD into i-Tunes for my daughter and because one song featured a guest artist i-Tunes placed that song in a seperate folder and so when i synced my daughters i-Pod Touch that one track is not with the rest of the tracks form the album and has to be listened to seperately. The song is from the same album and should be where it belongs with the rest of that album so she can listen to the entire album with the tracks in the proper order. I am sure that this can be done i just don't know how.

    Edit the Name of the problem song to Name [Feat. Guest]
    Change the Artist of that song to All Time Low
    marley2012 wrote:
    ... and i want to make sure that from now on all songs from any CD I import into i-tunes all go into the same album file if they are on that album originally. i do not want i-tunes seperating songs from my CD's for any reason. hopefully this is more clear.
    What you want cannot be done. iTunes has its quirks, and the above is the kind of workaround needed to make the media display sensibly on any device. The article I pointed you to has others that you may find useful in future.
    tt2

  • Upload files into a .war file

    Hi,
    I`m working in a webapp that upload a file from a client browser into a
    directory inside the structure of my aplication. This looks like :
    MyApp\targetdirectory
    I`m using getServlet().getServletContext().getRealPath("/") to get the real
    path of root of MyApp and then upload the file ...
    Everything work when I`m working with the "exploded" structure but it fails
    when I deploy it in weblogic as part of a .war file.
    Tomcat seems to handle this "exploding" the .war file at deploying time ...
    does weblogic has something similar ?
    regards,
    Hans Nemarich
    ORDEN
    www.orden.cl

    This has been discussed before if you search back ... generally, you should
    NOT be doing what you described.
    Peace,
    Cameron Purdy
    Tangosol Inc.
    Tangosol Coherence: Clustered Coherent Cache for J2EE
    Information at http://www.tangosol.com/
    "Hans Nemarich" <[email protected]> wrote in message
    news:[email protected]..
    Hi,
    I`m working in a webapp that upload a file from a client browser into a
    directory inside the structure of my aplication. This looks like :
    MyApp\targetdirectory
    I`m using getServlet().getServletContext().getRealPath("/") to get thereal
    path of root of MyApp and then upload the file ...
    Everything work when I`m working with the "exploded" structure but itfails
    when I deploy it in weblogic as part of a .war file.
    Tomcat seems to handle this "exploding" the .war file at deploying time...
    does weblogic has something similar ?
    regards,
    Hans Nemarich
    ORDEN
    www.orden.cl

  • How to read a gif file into the java file?

    i want to read an image(*.gif) file into my appication. can u plz help me in this?

    Hi
    I have made a program that display images here is the code i hope it helps
    package ImageProcessing;
    import java.awt.Image;
    import java.awt.image.ImageObserver;
    import java.awt.image.RenderedImage;
    import java.io.File;
    import java.io.IOException;
    import javax.imageio.ImageIO;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    public class ImageProcessing
         public static Image imRead(String imagePath)
              Image im = null;
              try
                   File imageFile = new File(imagePath);
                   im = ImageIO.read(imageFile);
              catch(Exception e)
                   e.printStackTrace();
              return im;
         public void imWrite(Image im,String fileFormat,String imagePath) throws IOException
              File outputFile = new File(imagePath);
              ImageIO.write((RenderedImage) im, fileFormat, outputFile);
         public static void imShow(String imagePath)
              ImageObserver io = null;          
              JFrame frame = new JFrame();
              Image im = imRead(imagePath);
              ShowImage imShow = new ShowImage(im);
              frame.add(imShow);          
              frame.setVisible(true);
              frame.setTitle(imagePath);
              frame.setSize(im.getWidth(io),im.getHeight(io));
              frame.setResizable(false);
              frame.show();
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         public static void main(String[] args) throws IOException
              imShow("D:\\My Computer\\Images\\Cash2.gif");          
    package ImageProcessing;
    import java.awt.Graphics;
    import java.awt.Image;
    import java.awt.Panel;
    public class ShowImage extends Panel
           Image im;
           public ShowImage(Image inputIm)
             im = inputIm;
           public void paint(Graphics g)
             g.drawImage(im, 0, 0, null);
    }

  • .class file into the .exe file - simplest possiblity ???

    Dear All,
    I have a java program....and the compiled ".class" file for this....basically, it is a Frame..i will run this said program from my command prompt like,
    C:\java megalaunch
    ...the frame will appear now....
    what i want to know is .............Is it possible to change this said class file, in to an .exe file...so that, (instead of going for a command prompt for running the said program) i can just double click the said .exe file and start that said Frame....
    pl. post a reply,
    Sakthivel S.
    P.S: I dont want to use the batch file option for the above...

    Easier (and more reliable, smaller. etc) than creating an executable .exe file is to create a Windows (desktop) shortcut to the GUI program, or create an executable .jar that packages your GUI. Both are executable/clickable solutions.
    Use a desktop shortcut or an executable jar file:
    http://developer.java.sun.com/developer/qow/archive/21/index.html

  • FireFox will not start due to message indicating that ssl3.dll is missing and indeed it is not in the program files. But I can not seem to be able to reinstall Firefox or to copy the ssl3.dll file into the program files. Help?

    Webroot identified ssl3.dll as a threat and deleted it. Now I can not start Firefox, nor can I copy ssl3.dll into the Firefox Program file. I tried uninstalling Firefox and reinstalling it, but it always shows as an upgrade and does not seem to add ssl3.dll. HELP?

    1. Open Webroot
    2. Click on PC Security
    3. Click on the Quarantine tab
    4. Select ssl3.dd
    5. Click restore

  • Read a file in the war

    We have packaged our application into a war file. The classes in the war can read some property files which are put in the weblogic server directory. How to open and read the files if we move those property files into the war file? Where can we find some example source codes for it?thanks.
              

    Unless you have a very good reason to use disk files, you
              can package your properties files with the web app and use
              Class.getResourceAsStream() or ServletContext.getResourceAsStream()
              (if you put these into WEB-INF for example).
              YZhu <[email protected]> wrote:
              > We have packaged our application into a war file. The classes in the war can read some property files which are put in the weblogic server directory. How to open and read the files if we move those property files into the war file? Where can we find some example source codes for it?thanks.
              Dimitri
              

  • Embed an external PDF file into the XML

    Dear All,
    We have a program which creates the XML file on the Application server when we execute it.
    My requirement is to Embed an external PDF file into the XML file while generating it through
    program from SAP.
    Please let me know how this is possible.
    Thanks & Regards,
    Vinit

    Yes, you can do it. You have to use an absolute path and add it not only to the folder but to the .manifest
    I wrote a blog post explaining how to do it:
    http://www.captivatecrazy.blogspot.com/#!http://captivatecrazy.blogspot.com/2012/03/embed- pdf-in-captivate-for-lms.html

  • How can  I include my database file into my jar file?

    Hi,
    I am doing several tests for the jar command....
    I tried to put the database file into my jar file, but when the program run, it just couldn't find the database file, so how may I include the database file into the jar file? Not only that, it also can't find the policy file etc.

    sorry, I think I found the solution, I should have had read the API more carefully.

  • Class file missing from war file deployment

    I have a web application that is being deployed to a war file. I have deployed several times successfully. Then with the latest changes, there is a class file that does not get included into the war file. It does get compiled and does exist in the project directory.
    The class file is in a seperate project from the project where the war file deployment profile is; however both projects are in the same workspace.
    There are several other classes in the project that contains the missing class file that does get included in the war file. I don't see anywhere in the profile where these files are selected individually.
    I'm at a loss as to how to fix this problem other than add the file after deployment.
    Appreciate any help or ideas...
    Keith...

    Hi Keith,
    You may want to follow this thread....
    class object missing from ear file
    Brigette

  • How to deploy the war file in weblogic 6.0 with sp1?

    I write a jap and a web.xml files and also pack these files into a war file.
              When I use the console to deploy the war, the console think the war is a
              application, not web application.
              I attach the test.war.
              [test.war]
              

    change your web-inf directory name to WEB-INF. This should fix your problem.
              Kumar.
              Alex wrote:
              > I write a jap and a web.xml files and also pack these files into a war file.
              > When I use the console to deploy the war, the console think the war is a
              > application, not web application.
              > I attach the test.war.
              >
              > Name: test.war
              > test.war Type: unspecified type (application/octet-stream)
              > Encoding: x-uuencode
              

  • J2EE, possible to serve clients jsp files that are outside the war file?

    Hi, I was wondering with a J2EE webserver if it was possible to serve clients webpages from jsp files that were outside the client.
    For example say you got your war file in the auto deploy directory on the server and also on the server you got a directory full of jsp files that could be accessed by the webserver just like normal jsp files inside the war file?
    ...I want to do this because I want to be able to add jsp files without rebuilding the war file.
    ....Or is it possible to make the webserver rebuild itself, eg to add or remove files?
    Thanks

    If you are using a S1WS6.1, please try to find a line with WEBAPP in server.xml.
    You should find a line like this.
    <WEBAPP uri="/simple" path="/opt/SUNWwbsvr/https-test/webapps/https-test/simple" enabled="true"/>
    The path parameter shows the directory where the S1WS refers to when the webapplication is executed.
    You can put a jsp into the directory and modify it accordingly.
    Please refer to the following docs. They might help.
    http://docs.sun.com/source/817-6251/pwadeply.html#wp25317
    http://docs.sun.com/source/817-6251/pwadeply.html#wp25890
    thanks,
    -Yuji

  • How to cluster the war file conatining the jsp and servlet by using wl6.0sp1?

    There three wlsever6.0 sp1.
              One is admin server and doesn't join the cluster.
              Two servers are cluster server.
              I use the admin console to deploy the war file and the war file conatains
              the jsp and servlet.
              How to config the one of the clustered servers as the primary one, so that
              the client can request the jsp?
              If the one of the clustered servers is closed, can the client be redirected
              to another clustered server?
              Does the proxy server need to be exist?
              

    There three wlsever6.0 sp1.
              One is admin server and doesn't join the cluster.
              Two servers are cluster server.
              I use the admin console to deploy the war file and the war file conatains
              the jsp and servlet.
              How to config the one of the clustered servers as the primary one, so that
              the client can request the jsp?
              If the one of the clustered servers is closed, can the client be redirected
              to another clustered server?
              Does the proxy server need to be exist?
              

Maybe you are looking for

  • Weblogic.server.ServiceFailureException:com- embedded LDAP error

    Hi While starting teh weblogic server, I am getting error as weblogic.server.ServiceFailureException: Error initialisng embedded LDAP server - with nested exception java.lang.ClassCastException:com.octetstring.vde.backend.BackendRoot the server is no

  • Find latest value based on defined date

    Hi all, In my below example, I want to find the latest symptom and name which has been added after 24-mar-2012 (not before that) .Not getting proper output with xx as (select 101 as ID, 'A01' as name, '03/24/2012' as create_date from dual union all s

  • Does LR5 support Sony RX100 raw files?

    I'm currently using LR3 and I will upgrade to 5 if it supports the RAW files. I want to try to avoid using the Sony raw file converter if possible. Thank you!

  • WIN 8 Flash Player Installed but not Working

    Hello, I cannot get any videos to play on my windows 8.  It says that I need flash player, but flash player is installed and it won't let me download.  I have tried many troubleshooting steps on the checklist with no joy.  Please help.  HIckory

  • Copy/paste and keyboard question...

    1)  Is there a way to adjust my imac so that when I copy/paste something it stays where the cursor is? I do a lot of copying and I use a colon, then skip two spaces and when I paste my selection, it skips back those two spaces after the colon.  It's