How to include text file in classes directory of war file.

I have a project that uses a text file called cache.ccf (JCS configuration file) when debugging the webservices, I have to dig into the inflated war file directory and manually place the cache.ccf file in the WEB-INF/classes/ directory/
How can i have JDeveloper wrap the file up in the war file in the WEB-INF/classes directory. both for debugging and when the war file is actually built for deployment.
Thanks,
Bart

Nevermind, I figured it out using the Project Properties->Deployment and include it in the WEB-INF/classes

Similar Messages

  • Referencing utility classes from a war file

    How do you reference a utility class from a war file? I tried adding the class to the deployment plan descriptor, however I still get a ClassNotFoundException.
    Thanks,
    Will

    To use the utility classes from a war you have to place them under the web-inf/classes directory.
    webApplication(WAR directory)--->WEB-INF--> classes (put your utility classes in this directory)

  • How to include text from attachment in Me22n to smartform?

    how to include text from attachment in Me22n to smartform?

    Guys
    I thing Ur not understanding ma question
    as ur answer is right
    lemme put ma senario
    a enduser create a word file which contain tables too
    but when he enter this text in text field of PO and save it
    the tables  disappear
    The solution to this issue
    is that we added the text to attachment of PO header
    but if i want to show it in o/P form i'm not getting any text id for it
    to use in include of smartforms
    this was ma question is der any text id for it?
    as of now i hav asked ma enduser to take separte Print out of PO and attached file

  • How to include text in Adobe Form

    Hi all,
    I am using adobe designer of ABAP workbench to design PDF form. Anyone has idea of how to include text in the form as what we often do on SAPSCRIPT and smarforms?
    Thanks in advance.

    hi,
        Got exact solution from this link - http://www.sdn.sap.com/irj/scn/elearn?rid=/library/uuid/400f06f3-cc2c-2c10-77ab-a98d2cfc194c&overridelayout=true
    Regards,
    Vinod

  • Copying files from same directory as *.java files and moving to WEB-INF/classes/ package name

    In our current application we have the following source directory structure:
              src -
              - com
              - edeploy
              - subdirs ... (many directories here)
              - jsp
              -subdirs ... (many directories here)
              In com.edeploy.subdirs, there exists *.java files, and *.gxq files (query
              files). I would like to modify my build.cmd script to copy the *.gxq files
              into the same directory as the class files.
              Here's my script so far:
              @REM Create list of files to compile
              DIR /S /B /A:-D src\com\*.java >class.list
              @REM Create list of query files
              DIR /S /B /A:-D src\com\*.gxq >query.list
              @REM Compile
              javac -d stage\WEB-INF\classes @class.list
              @REM Copy query files into class directory
              .......... code needed here ......
              Can anyone help me with this?
              Thanks,
              Matt
              

    You may want to check out:
              http://jakarta.apache.org/ant/index.html
              Gary
              "Matt Raible" <[email protected]> wrote in message
              news:[email protected]..
              > In our current application we have the following source directory
              structure:
              >
              > src -
              > - com
              > - edeploy
              > - subdirs ... (many directories here)
              > - jsp
              > -subdirs ... (many directories here)
              >
              >
              > In com.edeploy.subdirs, there exists *.java files, and *.gxq files (query
              > files). I would like to modify my build.cmd script to copy the *.gxq
              files
              > into the same directory as the class files.
              >
              > Here's my script so far:
              >
              > @REM Create list of files to compile
              > DIR /S /B /A:-D src\com\*.java >class.list
              >
              > @REM Create list of query files
              > DIR /S /B /A:-D src\com\*.gxq >query.list
              >
              > @REM Compile
              > javac -d stage\WEB-INF\classes @class.list
              >
              > @REM Copy query files into class directory
              > .......... code needed here ......
              >
              > Can anyone help me with this?
              >
              > Thanks,
              >
              > Matt
              >
              >
              

  • How to INclude TEXT MOdule created in SForm?

    How to INclude TExt Module created in Samrt forms into a text node...?
    PLease explain.....ANy suggestions will be appreciated...
    REgards,
    Kittu

    Hello Netaji,
    IN general attributes, from the drop down menu. I had selected Text Module then It is asking me for the
    Name : zxxx(Name of the Text module created in SForm)
    Language : ENGLISH
    Selected the option - No error if no text exists
                         - ALways copy style from text module
    Then I had clicked on COPY button...Then it is automatically turning into Text Element
    It is showing nothing in that Text area. Am I going right?
    Please correct me....If I am wrong....I am trying to put this in Text node.
    I had created a Text module in the Smart form by selecting the Radio Button in Smart form.
    Please help....
    Regards,
    Kittu

  • How to include text as HTML elements (see DOMElement)

    I am working with Flash PRO CC v. 14.0.  to convert my Flash website to HTML5 / javascript
    I have converted a file to the HTML5 Canvas
    I am very happy that the new Flash Pro has the feature to convert to HTML5 canvas
    HOWEVER:
    In my original .FLA file project I use only one font: Copperplate Bold.  I use several sizes of that font within the project / scene
    In the original file for all text I use static text, Letter spacing, AntiAlias, AutoKern and single line (Linetype)
    - none of which the HTML5 canvas seem to allow / support?
    How do I maintain the FONT look that I have chosen in my original FLASH project, after I convert to HTML5 canvas?
    Is there a way in the HTML canvas to maintain the FONT look that I want?
    HTML5 canvas will not allow Font embedding
    The device font destroys the LOOK of my Copperplate Bold font.
    How do I include text as HTML elements (see DOMElements)?
    WARNINGS generated when I convert the original file into an HTML Canvas:
    Warnings generated while copying/importing in 140827a HTML test.fla:
    * AntiAlias is not supported in HTML5 Canvas document, and has been converted to DeviceFonts in an instance of Text.
    * AutoKern is not supported in HTML5 Canvas document, and has been removed in an instance of Text.
    * Frame Scripts have been commented
    * LetterSpacing is not supported in HTML5 Canvas document, and has been converted to 0.0 in an instance of Text.
    * LineType is not supported in HTML5 Canvas document, and has been converted to MultiLineNoWrap in an instance of Text.
    * Some artwork contains Hairline stroke, which is not supported in HTML5 Canvas document, and has been converted to Solid.
    * StaticText is not supported in HTML5 Canvas document, and has been converted to DynamicText in an instance of Text.
    New HTML Canvas Document created.
    NOTE:  So far the only way I have been able to maintain the font look is to convert the fonts to .png files
    This is painstaking work that I would like to avoid.
    Even then I still get a WARNING when I test my scene - (no doubt because I left the original FONT text  in guide layers)
    After conversion ON TEST SCENE:
    WARNINGS:
    Frame numbers in EaselJS start at 0 instead of 1. For example, this affects gotoAndStop and gotoAndPlay calls. (18)
    Only circular (not oval) radial gradients are supported. (85)
    Text support is limited. It is generally recommended to include text as HTML elements (see DOMElement). (6)
    Color effects are published as a filter and subject to the same limitations. (4)
    Filters are very expensive and are not updated once applied. Cache as bitmap is automatically enabled when a filter is applied. This can prevent animations from updating. (2)
    Content with both Bitmaps and Buttons may generate local security errors in some browsers if run from the local file system.
    HOW CAN I MAINTAIN the FONT LOOK that I have chosen for my project?
    How do I include text as HTML elements (see DOMElements)?
    ANY HELP will be appreciated
    A good, in depth, tutorial on the subject (FONTS) would be a BIG help to many using the convert to HTML5 canvas features.

    GOOGLE HAS
    https://www.google.com/fonts
    choose a font from above site
    then:
    google generates instructions on how to embed that font
    Montserrat
    3. Add this code to your website:
    <link href='http://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>
    4. Integrate the fonts into your CSS:
    The Google Fonts API will generate the necessary browser-specific CSS to use the fonts. All you need to do is add the font name to your CSS styles. For example:
    font-family: 'Source Sans Pro', sans-serif;
    font-family: 'Ubuntu', sans-serif;
    font-family: 'Montserrat Alternates', sans-serif;
    font-family: 'Montserrat', sans-serif;
    font-family: 'Open Sans', sans-serif;

  • How to include text

    hi i m working on smartform
    i want to include text
    for example
    <b>subject</b> : is text window
    i want to include text after colon in subject
    but include text is coming in new line
    now coming like below
    <b>subject:
    hi this is include txt</b>
    but i want like this
    b]subject: hi this is include txt</b>.
    so how can i do this please suggest me
    thanks in advanced.

    u can't  do that.
    only one way  also add  'subject to :' in standared text  than display standared text.
    one more way just store text in variable and  use this variable in smartforms.
    ph  'subject :' &variable&
    ph-paragraph format.
    kishan negi

  • How to include the characters " " and " " in a XML properties file.

    hi
    including the following prop entry gives me the error "Element is not closed" error message.
    <entry key="test">can't include chars < and ></entry>
    But i need to include the chars "<" and ">" in my xml properties file.
    please help.
    thanks

    Try &lt; and &gt;
    Dave Patterson

  • How to write from a servlet to it's war file?

    We need to be able to write a file from a servlet into the document root
              area to it can be accessed by a browser. Before we used war files, we
              would simply figure out the real document root directory and write the
              file somewhere under it. How would I do this when my application is
              packaged as a war? I don't see a way to write to a "xxx.war" file and
              if we run from an exploded war, how do I determine the location of the
              document root at runtime from the servlet? I don't want to have to hard
              code the path or make each installation specifiy it in a properties
              file. It seems there should be a better way to handle this. Any ideas?
              

    Thanks for your help. Not to beat this to death but say I want a response that
              includes a bunch of HTML generated by a servlet or JSP and in the middle I want
              a dynamically created image. So basically I want an <image> tag in the middle
              of the html returned. Could I dynamically generate the image and add it to the
              response in the middle of the servlet/JSP processing? I thought the only option
              would be to return an html page the referred to an image via an <image> tag.
              What do you think?
              Kirk
              Cameron Purdy wrote:
              > Hi Kirk,
              >
              > Yes, you can accomplish all of those things without writing files out.
              > Writing files will severely degrade performance in many cases, and will lead
              > to certain classes of bugs such as those caused by multiple browsers within
              > the same process or rampant use of "back" lists. (That's a long-winded way
              > of saying persistent state on the server that reflects a client's transient
              > state has a way of being wrong, sooner or later.)
              >
              > All you have to do is return a URL that includes the necessary information
              > to get the picture. You do that now by creating a random thingamabob name:
              >
              > http://www.mysite.com/myapp/thisisarandomname12345.jpg
              >
              > Instead of random, try:
              >
              > http://www.mysite.com/myapp/thisisthepictureforemployee-17.jpg
              >
              > The issues are the same (someone trying to guess URLs) but you do have the
              > problem that the URLs are easier to guess because they follow a pattern.
              > You should secure-check each request anyway. (Lots of tricks for making
              > that very efficient, but that is a book in itself.)
              >
              > So what serves up the .jpg? A Servlet!!! It gets the request, builds (or
              > reads from db or whatever) the .jpg image and streams it out. Now you get
              > 3-4 times the performance and a much more orderly arrangement of URLs etc.
              > that can now be "saved" and "bookmarked" etc. Also no congested temp dirs
              > etc.
              >
              > Peace,
              >
              > --
              > Cameron Purdy
              > Tangosol, Inc.
              > http://www.tangosol.com
              > Tangosol Server: Enabling enterprise application customization
              >
              > "Kirk Everett" <[email protected]> wrote in message
              > news:[email protected]...
              > > What I want to do is one one servlet request generate an image file in the
              > doc
              > > root and then return a page back to the browser that contains an image tag
              > > referring to the generated image file. I also want to be able to generate
              > a file
              > > of data based on a user's posted selections and then present them with a
              > link to
              > > download the file. If I don't write these to disk in the docroot how
              > would I
              > > give the user a link to them? Is there a better way? Thanks for your
              > help.
              > >
              > > Kirk
              > >
              > > Cameron Purdy wrote:
              > >
              > > > Yes, if you have to write a file (either because you expect it to be
              > used
              > > > many times or you wish to assemble a huge (>1mb) response without using
              > > > memory), then do so to a temp or working dir. There is no reason to use
              > the
              > > > doc root at all for that, other than to use FileServlet, which is eaily
              > > > replicated for your own specific purposes. For the most part, there is
              > no
              > > > reason to write the file, since you can write the response back to the
              > > > browser just as easily as to a file.
              > > >
              > > > Peace,
              > > >
              > > > --
              > > > Cameron Purdy
              > > > Tangosol, Inc.
              > > > http://www.tangosol.com
              > > > +1.617.623.5782
              > > > WebLogic Consulting Available
              > > >
              > > > "Kirk Everett" <[email protected]> wrote in message
              > > > news:[email protected]...
              > > > > I agree that in general this should be avoided but we have two cases
              > where
              > > > we
              > > > > need to write a file to the
              > > > > the document root. The first is we allow the user to generate a file
              > and
              > > > > download it to thier machine. So in
              > > > > one servlet the user selects the data and submits the form. The
              > servlet
              > > > then
              > > > > writes a file to the docroot and
              > > > > the user is then presented a link where they can download the file.
              > The
              > > > second
              > > > > is when we want to generate
              > > > > a chart image in a gif. The servlet writes the image to the docroot
              > and
              > > > another
              > > > > JSP refers to the image in an
              > > > > image tag. In both cases we are using mangled names and we clean up
              > the
              > > > files.
              > > > > Do you have a better solution?
              > > > > Thanks for your help.
              > > > >
              > > > > Cameron Purdy wrote:
              > > > >
              > > > > > Writing to a deployed application is generally a thing to be
              > avoided.
              > > > Among
              > > > > > other things, it is a potential security issue. Apps should be able
              > to
              > > > be
              > > > > > locked down (no OS write access except non-exec temp space). I
              > suggest
              > > > not
              > > > > > doing writes if at all avoidable. What are you trying to
              > accomplish?
              > > > > > Perhaps stream back a big file?
              > > > > >
              > > > > > Peace,
              > > > > >
              > > > > > --
              > > > > > Cameron Purdy
              > > > > > Tangosol, Inc.
              > > > > > http://www.tangosol.com
              > > > > > +1.617.623.5782
              > > > > > WebLogic Consulting Available
              > > > > >
              > > > > > "Kirk Everett" <[email protected]> wrote in message
              > > > > > news:[email protected]...
              > > > > > > We need to be able to write a file from a servlet into the
              > document
              > > > root
              > > > > > > area to it can be accessed by a browser. Before we used war files,
              > we
              > > > > > > would simply figure out the real document root directory and write
              > the
              > > > > > > file somewhere under it. How would I do this when my application
              > is
              > > > > > > packaged as a war? I don't see a way to write to a "xxx.war" file
              > and
              > > > > > > if we run from an exploded war, how do I determine the location of
              > the
              > > > > > > document root at runtime from the servlet? I don't want to have
              > to
              > > > hard
              > > > > > > code the path or make each installation specifiy it in a
              > properties
              > > > > > > file. It seems there should be a better way to handle this. Any
              > > > ideas?
              > > > > > >
              > > > >
              > >
              

  • ClassNotFoundException trying to load classes in a .war file inside an .ear file

    Hi. I've deployed an EJB2 enterprise app as an ear file on WebLogic 6
              without errors. The ear file contains web app and ejb components in war and
              jar files. The web component is set to be the default web app in the
              config.xml file. Everything deploys without error messages.
              My problem is that I get ClassNotFoundExceptions when I try to invoke a
              servlet (via its servlet-mapping) or do Class.forName() on any class file in
              the war file.
              I see in '.wl_temp_do_not_delete' that the ear file has been decomposed into
              the ejb jar and web war files. The war file is not 'exploded' into a
              directory structure, however (as the console.war is). Is this an error
              (should the class packages in the war file be 'exploded'?)
              I don't see a tag in the web.xml, config.xml, or application.xml that tells
              the server to explode the war file--is there one?
              Note that if I manually copy the exploded class folders into the
              '_tmp_war_myserver_myserver_<<webappname>>' directory (and not, curiously,
              into a WEB-INF/classes subdirectory of that directory), the servlets and
              other classes load correctly. Also, jsps and html files load just fine
              without exploding the war file.
              Note also that the server complains about not being able to find the
              classes, even though it reports that the decomposed war file is in the
              classpath. Is there a problem loading class files from a .war file (because
              the namespace is different, with root classes located in WEB-INF/classes
              rather than the .war file's root?)
              Also, in the application.xml file, what is the meaning of the
              <context-root></context-root> element? What should its value be? What if
              you leave it blank?
              Thanks for any help,
              Reid
              

    Is there a way to add jar libraries to the Oracle JVM CLASSPATH? Is this the same as the system's CLASSPATH env. variable?
    Thank you!
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Alex McClennan ([email protected]):
    The package prefix in the code extract was correct - i.e. "oracle.aurora.jndi". A value of "oracle.aurora.jndi.*" would be incorrect.
    The problem is that the context factory implementation specified (com.evermind.server.ApplicationClientInitialContextFactory
    ) can't be found, the mostly likely reason being that the library containing the class isn't on the classpath.
    Cheers,
    ax<HR></BLOCKQUOTE>
    null

  • Re: Using simple java class in an .war file.

    Hi All,
    I have a simple question,
    Can I access an simple java class from a jsp file that I have written by putting it in the "classes" folder?? What entry should go in the web.xml file?
    Here is my directory structure:
    sample.war
    |
    ----test.jsp <file>
    |
    ----WEB-INF <folder>
    | |
    | ----classes<folder>
    | | |
    | | ----simpleJavaClass.class<file>
    | |
    | ----lib<folder>
    | |
    | ----web.xml
    I want to access the simpleJavaClass.class from the jsp test.jsp.
    Please suggest.
    Thanks and regards
    Ayusman

    It is possible to access the class in u r classes folder from u r jsp file.
    For example
    <%@ page import="com.test.service.PricingSolution,
    com.test.core.PhoneNumber
    %>
    <% PricingSolution solution = (PricingSolution)session.getAttribute("solution"); %>
    This is a simple scriplet example. You do the same using jstl tags also.
    --Shinoy

  • Unable to load impl class error after WAR file rebuilt

    Hi
    I have the source code for a working WAR file. I wanted to make a small change to the code and rebuilt the WAR. Now the previous WAR version works but even when I rebuild the WAR from the unedited code I get the error "unable to load impl class"
    and ClassNotFoundException: Class bytes found but defineClass() failed for ...
    Does anyone know what kind of changes in my environment would cause this problem?
    Thanks
    J Armstrong

    This was caused by using jdk1.6.0_02 to compile the java files where jdk1.50_06 was required

  • Class not found in web-inf/classes folder of war file within ear file

    Hi all,
              I am using Weblogic 8.1 sp4. I have a war file within an ear file. I am trying to deploy the war file with a few classes within its web-inf/classes folder, however when the classes are in that folder I consistently get a class not found exception when trying to instantiate them. If I package the classes in a jar file and then put that jar file within the web-inf/lib folder of the war, the classes are also not found.
              If I put these two classes in the app-inf/classes folder of the ear file, everything works as expected and the classes are found.
              Any ideas of why this is happening. This seems to be a very simple thing that should work, but appears to not be working at all.
              thanks in advance for any suggestions or ideas.

    Hi,
              This is a known limitation/issue with WL. There is also no way around this.
              Regards,
              LG

  • GUI to set file, other class to read it, file null error

    Perhaps not the most informative subject for this problem. I have a GUI in which a file chooser is used to select a file to be read. Another class reads in this file, and goes on to process it. My main class sets up the GUI and then goes on to process the files in the second class.
    I am having trouble, I believe, with timing. The main class sets up the GUI, it runs perfectly, and then I catch a problem (that will evolve into an error), where the file I am supposed to process is null, because I have not had a chance to use the file chooser in the GUI. I haven't had any luck finding a solution online, although if there is one (or another tutorial I missed), please feel free to pass the link(s) along. I am posting the relevant code below.
    Thanks,
    Danielle
    public Main()
         * @param args the command line arguments
        public static void main(String[] args)
             javax.swing.SwingUtilities.invokeLater(new Runnable()
                   public void run()
                        System.out.println("About to run create GUI method");
                        MGui app = new MGui();
                        System.out.println("declared a new MGui....");
                        app.createAndShowGUI();
            /**Starting to get file choices and moving them into GPR Handler:
              GprHandler gpr = new GprHandler();
         //~ System.out.println("should be perfect????");
         //  }//end if
        }// end main(String[] args)
    }// end class MainThe GUI uses the following code for the file chooser:
    private class enterFile2Action implements ActionListener
         public void actionPerformed(ActionEvent evt)
              JFileChooser chooser = new JFileChooser();
              int rVal = chooser.showOpenDialog(enterFile1);
              if(rVal == JFileChooser.APPROVE_OPTION)
                   inputFile2 = chooser.getSelectedFile();
                   PrintWriter outputStream;
                   file2Name = inputFile2.getName();
                   enterLabel2.setText(file2Name);
    }Finally, the GprHandler class processes the file- reading it and such. The only relevant method, however is below.
       /** taking in files*/
        public boolean readFiles()
             boolean nullFiles = true;
             System.out.println("into method readFiles()");
         if (MGui.get1Name() != null)
              System.out.println("name isn't null");
              file1Name = MGui.get1Name();
              file1 = new File(file1Name);
         if (MGui.get2Name() != null)
              file2Name = MGui.get2Name();
              file2 = new File(file2Name);
              nullFiles = false;
         }//end if
         if (nullFiles)
              System.out.println("one or more files is undeclared");
              return false;
         }//end if
         else
            try{
             file1Reader = new FileReader(file1);
                file2Reader = new FileReader(file2);
         }//end try
            catch (FileNotFoundException e)
             System.out.println("file not found exception");
              return false;
            }     //end catch
         }//end else
         return true;
        }

    No, you're quite right. I want the GprHandler to
    start when I've got something there for it to start
    with. I never thought to call it from the
    actionPerformed though. I think I've been listening
    to too many lectures on some prof's definition of a
    "proper main class".
    I think I understand what you're suggesting: I
    should simply remove the GprHandler part from my main
    class and place it instead in the actionPerformed
    methods, once the files are actually named/chosen.
    Did I get that right?
    Qualified yes. Does GPRHandler implement Runnable? I mean you don't want to do the processing in the swing event thread. So what you should do is in the actionPerformed create the Handler (with the file or whatever other bits it needs) and then start it.
    Then it can process merrily along in a seperate thread.

Maybe you are looking for

  • Open field in object S_TCODE

    I've deleted a tcode from a role in menu tab. Now when I look at the object S_TCODE in the role it has an open(blank) field. I cannot delete this blank field from the object as S_TCODE shows up only in display mode though you enter the role in change

  • Can't run iTunes, Apple Application Support program missing.

    Can't run iTunes, Apple Application Support program missing.  It's a brand new computer, never had iTunes installed.  I've attempted 16 installs, each time uninstalling the previous install and verifying no Apple software installed before trying agai

  • Maxl/esscmd to get list of applications/databases that user has access to

    Is there any maxl/esscmd to get the list of applications/databases that a user has access to? I know that LISTGROUPUSERS 'groupName' -- this list all users of a group. Can anyone help please?

  • Transferring IMAGES from iPhone to PC

    I can't work out how to do this. The only instructions I can find say to "follow the instructions that came with your camera or photo application.", which isn't very helpful. My Canon camera software will recognise the Apple iPhone, but not any image

  • Preview failed because Adobe Muse could not make connection over HTTP.

    Preview failed because Adobe Muse could not make connection over HTTP. The most commons cause of this is fire wall software which prevents HTTP connections, you mai need to change Fire wall settings to allow Adobe Muse to make connections?? Fire Wall