Unwanted faces-config getting loaded from jars in classpath

In our application, we have some 3rd party jars containing faces-config xml's. These get merged with our main faces configs. Is there a way to tell the loader to exclude faces-config from some jars. Of course, cleaning these jars of faces config is a way, but we want to keep it as last resort only.

In our application, we have some 3rd party jars containing faces-config xml's. These get merged with our main faces configs. Is there a way to tell the loader to exclude faces-config from some jars. Of course, cleaning these jars of faces config is a way, but we want to keep it as last resort only.

Similar Messages

  • Get Images from jar. getResource() not working

    I've read some of the posts in the forum and I've tried the solutions but still cant get the images in my program.
    I'll write all the things I've tried (All of them works fine when I run them from bluej):
    1- The code used in the jar files in demo folder of jdk:
    /** Inside the main class: */
    private static ResourceBundle resources;  
        static {
            try {
                resources = ResourceBundle.getBundle("resources.Recursos", Locale.getDefault());
            } catch (MissingResourceException mre) {
                JOptionPane.showMessageDialog(new JFrame(), "ResourceBundle not found","Error",JOptionPane.ERROR_MESSAGE);
                System.exit(1);
    public String getResourceString(String nm)
            String str;
            try {       
                str = resources.getString(nm);   
                  } catch (MissingResourceException mre) {       
                str = null;
            return str;
        public URL getResource(String key)
            String name = getResourceString(key);
            if (name != null)
                URL url = getClass().getResource(name); //  Here is the exception
                return url;  
            return null;
        public ImageIcon loadImage(String image_name)
            URL image_url = null;    
            try
                image_url = getResource(image_name);             
                if (image_url != null)
                    return new ImageIcon(image_url);
                else
                return null;                  
            }catch(Exception e)
                JOptionPane.showMessageDialog(new JFrame(), e.getMessage() + "In load Image","Error",JOptionPane.ERROR_MESSAGE);
                return null;
    /** Inside the constructor */
    abrirButton = new JButton(loadImage("open"));
    }//End of the class}
    The ResourceBundle is a file named: Recursos.properties and it's in a folder inside the folder of my *.class and *.java And have this information:
    Title=Recursos
    ElementTreeFrameTitle=Elements
    ViewportBackingStore=false
    open=resources/open24.gif
    save=resources/saveAs24.gif
    cut=resources/cut24.gif
    copy=resources/copy24.gif
    paste=resources/paste24.gif
    analisis=resources/bean24.gif
    This one, runs with the jar, but the images are not in the buttons and I get the Dialog message telling me that there was an error in loadImage. Check that method. I used this dialogs to track the error and the exception it's generated by:
    URL url = getClass().getResource(name);
    in public URL getResource(String key) method.
    2- I also tried to follow the instructions of this article that describes how to get resources from jars:
    http://www.javaworld.com/javaworld/jw-07-1998/jw-07-jar-p2.html
    This is the first page of the article:
    http://www.javaworld.com/javaworld/jw-07-1998/jw-07-jar.html
    And I did something like this:
    /** Inside constructor */
    abrirButton = new JButton(new ImageIcon(getImageFromJAR("Imagenes/open24.gif")));
    /** Inside of my main class */
    public Image getImageFromJAR(String fileName)
               try{
               if( fileName == null ) return null;          
               Image image = null;
               Toolkit toolkit = Toolkit.getDefaultToolkit();          
                image = toolkit.getImage( getClass().getResource(fileName) );           
                return image;
                }catch(Exception exc){
                    JOptionPane.showMessageDialog(new JFrame(), "Exception loading the image","Error",JOptionPane.ERROR_MESSAGE);
                    return null;
    ...The images in this one are in the folder Imagenes inside the folder of my *.class and *.java
    This one work fine in bluej too, but the jar... It doesn't even start.
    3- And the last one.
    abrirButton = new JButton(new ImageIcon(getClass().getResource("Imagenes/open24.gif"));Works fine in bluej, not running in jar.
    Am I doing something wrong? Please somebody help me.
    thanks in advance

    Are you putting the image files inside the jar? If you are, then use "jar tf jarfile.jar" to display the contents of the jar and make sure the files are there and inside the right directory. If you are not, then you can not use getClass().getResource() from a jar file because it will look inside the jar file.
    If you are getting an error message, please post it.

  • Reference faces-config.xml file from java code.

    I would like to reference the navigation rules I have set up in my faces-config.xml file from inside my source code.
    For example:
    Navigation Rule:
    <navigation-rule>
    <from-view-id>*</from-view-id>
    <navigation-case>
    <from-outcome>pricingEngine</from-outcome>
    <to-view-id>/faces/template/t_pricing_engine.jsf</to-view-id>
    <redirect/>
    </navigation-case>
    </navigation-rule>
    I would like do some sort of lookup by 'pricingEngine' and get '/faces/template/t_pricing_engine.jsf' back.
    Any ideas?

    I would like to reference the navigation rules I have set up in my faces-config.xml file from inside my source code.
    For example:
    Navigation Rule:
    <navigation-rule>
    <from-view-id>*</from-view-id>
    <navigation-case>
    <from-outcome>pricingEngine</from-outcome>
    <to-view-id>/faces/template/t_pricing_engine.jsf</to-view-id>
    <redirect/>
    </navigation-case>
    </navigation-rule>
    I would like do some sort of lookup by 'pricingEngine' and get '/faces/template/t_pricing_engine.jsf' back.
    Any ideas?

  • Where do Pipeline Component classes get loaded from?

    Can someone please point me to some documentation that describes where my Pipeline
    Component classes get loaded from?
    I have just wasted hours on this - to find that they are not loaded from WEB-INF/classes
    - but instead they must be available to the EJB classloader. The sampleportal
    is completely misleading in putting the classes in WEB-INF/classes - because they
    are in fact loaded from the sampleportal EJB jar!
    Did I miss something obvious?
    regards,
    Nick

    Nick
    Refer to this portal doc on dev2dev
    ftp://edownload:[email protected]/pub/downloads/webflow.doc
    -tulan
    "Nick Minutello" <[email protected]> wrote
    in message news:[email protected]..
    >
    >
    Can someone please point me to some documentation that describes where myPipeline
    Component classes get loaded from?
    I have just wasted hours on this - to find that they are not loaded fromWEB-INF/classes
    - but instead they must be available to the EJB classloader. Thesampleportal
    is completely misleading in putting the classes in WEB-INF/classes -because they
    are in fact loaded from the sampleportal EJB jar!
    Did I miss something obvious?
    regards,
    Nick

  • Single EAR multiple WAR model - faces-config not loading

    Hi
    I am deploying my application on weblogic 10.3 My application is in form of a Single-EAR-Multiple-WAR model. The application starts up correctly but when i bavigate from one module (WAR) to another (WAR), it doesnt initializes the managed beans. It is not able to load the faces-config from the second WAR.
    can anyone please let me know ehat am i missing?
    Thanks a lot
    -Ankur

    Hi,
    This is not an issue caused by having multiple wars inside same ear.
    This looks like a runtime exception when trying to render the jsp (The jsp is compiled to a sevlet and the inside the service method of the servlet you are getting this exception). Double check you jsp for the possible cause of this exception.
    Thanks,
    Gopinath Ramasamy

  • How to get resources from jar-files

    Hi
    in my app I load an image via the Toolkit.getImage() method.
    Works fine if the app and the image are in folders on disk.
    It fails to load the image, if the app (and the image) is packed in a jar file.
    How can I get the image from there?
    I try to get the image as follows:
    String s = getClass().getResource("MyApp.class").getFile();
    AppPath = s.substring(0,s.lastIndexOf("/"));
    String PathToImages = "/images";
    MyImage = (Image)Toolkit.getDefaultToolkit().getImage(AppPath+PathToImages+"/logo32.gif");The App starts and works, it just fails to load the images.
    Any solutions??
    thanx in advance
    Herby

    This is actually pretty easy. First a little background.
    A Jar file is just a Zip file, with a few constructs for Java.
    The getResource() method is used to create a mapping to data within the Jar file, but is actually not necessary after you know how the mapping works.
    Just to give you an example of getResource:
    // returned is a url to the resource you want from your Jar file.
    URL myURL = MyClass.class.getResource("images/myimgage.gif");
    // then you can use this URL to load the resource
    Image img = getImage(myURL);If you were you look at the value of myURL you would see something similar to the followiing.
    jar:http://www.mywebsite.com/mydir/myjarfile.jar!/images/myimage.gifJust to break it down for you.
    The line always starts with the word jar:
    Followed by the path to your jar file.
    A sepearator !/
    Then the file you are loading from the Jar file.
    jar:     path_to_jar_file     !/     path_to_resource_in_jar_fileSo if you'd like, you could just create a URL object, and define the path to the object using the above method rather than using getResource.
    Anyway, back to your code. What I would do is print out what you get for:AppPath+PathToImages+"/logo32.gif"I'm thinking you might be getting 2 "/" in your path because I think:AppPath = s.substring(0,s.lastIndexOf("/"));will leave the "/" at the end and the next line you add the "/" in front of the image directory name. So you my have the following for your image path.mypath//images

  • Java applet won't load from Jar file

    Hi all,
    I have a problem which I didn't used to have. I have written an applet which used certain classes stored in directories. It used to work just fine. I recently updated the main class from which the applet starts and since then I get error messages:
    Java Plug-in 1.6.0_26
    Using JRE version 1.6.0_26-b03-384-10M3425 Java HotSpot(TM) 64-Bit Server VM
    User home directory = /Users/benoize
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    load: class WiaRekenToolHC.class not found.
    java.lang.ClassNotFoundException: WiaRekenToolHC.class
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Applet2ClassLoader.java:252)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Plugin2ClassLoader.java:250)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Plugin2ClassLoader.java:180)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Plugin2ClassLoader.java:161)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Plugin2ClassLoader.java:687)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Plugin2Manager.java:3046)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Plugin2Manager.java:1498)
         at java.lang.Thread.run(Thread.java:680)
    Exception: java.lang.ClassNotFoundException: WiaRekenToolHC.class
    As you can see it says that it can't find the class WiaRekenToolHC, but it's there in the jar files.
    Here is the link where you can see it:
    www.creativemathsolutions.nl/demo/HC/demo.html
    The jar files are in the directory HC and Generic.
    If you need more info then let me know!
    Regards, Benoit

    <applet
      codebase="http://www.creativemathsolutions.nl/demo/HC"
      code="WiaRekenToolHC.class"
      ARCHIVE="HC/wia_hc_archive_v0_3.jar, Generic/wia_archive_v0_3.jar"
      width=900 height=600>The code-base combined with archive href for the first Jar mean the JRE will look for it at:
    http://www.creativemathsolutions.nl/demo/HC/HC/wia_hc_archive_v0_3.jar
    It is not there. The other Jar is also missing from the stated location.

  • GIF files not loading from jar in Netscape

    Hi,
    I have a jar file that contains my applet code(class files) and a bunch of gif files. I load the image using the URL returned from getCodeBase() method. The images load fine in Explorer but they do not show up in Netscape. The class files and gif files are not in separate directories and getCodeBase is returning the correct URL of my server(Example: http://www.myserver.com). Does anyone know how to fix this? I also noticed that download time did not improve on either browser when I bundled all the gif file in the jar rather than place them outside the jar file. Isn't bundling them in the jar supposed to save multiple requests back to the server to get the gifs and thus reduce download time? Thanks in advance.

    There the sample from Netscape: http://developer.netscape.com/docs/technote/java/getresource/getresource.html#classloader

  • Need help getting icons from jar

    I switched to the latest java plugin, 1.4.2 and now I can't get the applet to retrieve the GIF image within its jarfile. The class files and imagery are all located in the same jarfile. If I use the following code:
    ivjJToggleButton20.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/MoveVertex2.gif")));
    The jarfile is downloaded again and the image is retrieved from the downloaded jarfile instead of the jar currently displayed in the browser.
    any help or ideas are greatly appreciated!

    I usually do something like this to load an icon from a JAR:
    java.net.URL iconURL = getClass().getResource("/yourImageFile.gif");
    if (iconURL != null) icon = new javax.swing.ImageIcon(iconURL);
    JButton.setIcon(icon);
    This should work.

  • ImageIcon not loading from Jar file

    Hi,
    I'm developing an application that uses ImageIcons in JButtons.
    The images are stored in the following relative dir:
    images/<filename>.jpg
    They load fine when I run the application from class files in the appropriate directory.
    However when I jar everything, my ImageIcons don't load.
    I know that my jar file is in the classpath, because other items in the jar file load successfully.
    I've tried everything the related threads recommend, but still nothing.
    When I try to launch from the jar file, the ClassLoader.getResource("filepath"); returns null.
    Whereas when I launch the class files, it returns the correct URL for the image.
    What am I missing? Is this jar file security-related? Do I need to sign the jar file with all-permissions?
    Any suggestions would be gratefully appreciated.
    I'm using java 1.4.2_01-b06
    Much thanks,
    -Jeroen

    Here is a little load program that you can use.
    import java.io.*;
    import java.util.*;
    import java.util.zip.*;
    * <p>Resources extracts all the resources from a jar file into binary large
    * objects. These objects can be used to create images or read as streams.
    * This class is implemented as a singleton model.</p>
    * <p>An attempt is made to find the path to the jar file in
    * if this file is not found no resources are
    * loaded.
    * @author Michael Couck
    * @version 1.00, 16/01/2004
    public final class Resources extends Constants {
          * The only instance of this class
         private static Resources resources;
          * Hashtables for the sizes of the entries in the jar
         private static Hashtable sizes= new Hashtable();
          * Hashtable for each entry in the jar as a blob
         private static Hashtable contents= new Hashtable();
          * Flag to test if the resources were loaded correctly
         private static boolean resourcesLoaded= false;
          * Initilises the <code>static</code> instance of the
          * <code>Resources</code> instance.
         public static void initiliseResources() {
              if (resources == null)
                   resources= new Resources();
          * Instanciates a <code>Resources</code> object.
         private Resources() {
              init();
          * Returns a resource as a <code>byte</code> array, which can then be used
          * as a <code>ByteArrayInputStream</code> to instanciate among other things
          * images and property files.
          * @param name a resource name. This is the path to the recource from the
          *         root of the jar file.
         public static byte[] getResourceAsByteArray(String name) {
              if (resources == null)
                   resources= new Resources();
              return (byte[]) Resources.contents.get(name);
          * Returns true if the resources were correctly loaded
         public static boolean resourcesLoaded() {
              return resourcesLoaded;
          * Reads the jar file and inserts the contents
          * into the Hashtables.
         public void init() {
              try {
                   //Sizes into the table     
                                                                    File jar= new File("[path to]/yourjar.jar");
                   if (jar != null && jar.exists()) {
                        //Found the path to this jar file
                        ZipFile zipFile= new ZipFile(jar);
                        Enumeration enum= zipFile.entries();
                        while (enum.hasMoreElements()) {
                             ZipEntry zipEntry= (ZipEntry) enum.nextElement();
                             sizes.put(
                                  zipEntry.getName(),
                                  new Integer((int) zipEntry.getSize()));
                        zipFile.close();
                        //Contents into the table
                        FileInputStream fis= new FileInputStream(jar);
                        BufferedInputStream bis= new BufferedInputStream(fis);
                        ZipInputStream zis= new ZipInputStream(bis);
                        ZipEntry zipEntry= null;
                        while ((zipEntry= zis.getNextEntry()) != null) {
                             if (zipEntry.isDirectory()) {
                                  continue;
                             int size= (int) zipEntry.getSize();
                             // -1 means unknown size.
                             if (size == -1) {
                                  size=
                                       ((Integer) sizes.get(zipEntry.getName()))
                                            .intValue();
                             byte[] blob= new byte[(int) size];
                             int readBuffer= 0;
                             int buffer= 0;
                             while (((int) size - readBuffer) > 0) {
                                  buffer=
                                       zis.read(blob, readBuffer, (int) size - readBuffer);
                                  if (buffer == -1) {
                                       break;
                                  readBuffer += buffer;
                             contents.put(zipEntry.getName(), blob);
                        resourcesLoaded= true;
              } catch (NullPointerException e) {
                   Constants.logger.severe(e.getMessage());
                   StackTraceElement[] stackTrace= e.getStackTrace();
                   for (int i= 0; i < stackTrace.length; i++) {
                        Constants.logger.severe(stackTrace.toString());
                   resourcesLoaded= false;
              } catch (FileNotFoundException e) {
                   Constants.logger.severe(e.getMessage());
                   StackTraceElement[] stackTrace= e.getStackTrace();
                   for (int i= 0; i < stackTrace.length; i++) {
                        Constants.logger.severe(stackTrace[i].toString());
                   resourcesLoaded= false;
              } catch (IOException e) {
                   Constants.logger.severe(e.getMessage());
                   StackTraceElement[] stackTrace= e.getStackTrace();
                   for (int i= 0; i < stackTrace.length; i++) {
                        Constants.logger.severe(stackTrace[i].toString());
                   resourcesLoaded= false;
    } //End Resources
    You can get the icons with "new ImageIcon(new ByteArrayResources.getResourceAsByteArray(String name));
    See ya
    Michael

  • Can't get ResourceBundle from jar.

    Dear all,
    I have problem in geting properties from file included in jar file. I try to do it by calling mthod ResourceBundle.getBundle("bundle"), where bundle.properies is the file in jar. When I run the programm by calling :
    java -jar dist/properties.jar
    I have the following rsult on the console:
    Exception in thread "main" java.util.MissingResourceException: Can't find bundle
    for base name bundle, locale pl_PL
    at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:712)
    at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:683)
    at java.util.ResourceBundle.getBundle(ResourceBundle.java:546)
    In case I run this program, using not jar'ed classes everything is ok.
    P.S. the manifest file of the jar is:
    Manifest-Version: 1.0
    Created-By: Apache Ant 1.5.1
    Main-Class: PropertiesLoader
    Thanks in advance for all answers.
    Daniel Kwieci&#324;&#347;ki

    According to ResourceBundleAPI:
    Calling this method is equivalent to calling
        getBundle(baseName, locale, this.getClass().getClassLoader()),
    except that getClassLoader() is run with the security privileges of ResourceBundleTry this code, it will obtain the application's ClassLoader and will enable the location of the properties file in all the classpath defined for it.
            ClassLoader loader = Thread.currentThread().getContextClassLoader();
            resources = ResourceBundle.getBundle(BUNDLE_BASENAME, locale, loader);Good Luck!

  • Dynamic class loading from JARs in web application

    Hello,
    I'm working on a web project in which we would like to dynamically load plugins without server restart.
    We have developed our own ClassLoader in order to load the plugins from a path or with a user interface upload function.
    The class loader hierarchy should be something like this:
          Bootstrap
              |
           System
              |
           Common
    Catalina   Shared
            Webapp1  OurSystem
                       PluginClassLoaderThe all works fine within the classes loaded in the PluginClassLoader, but classes loaded in OurSystems class loader cannot access classes loaded in PluginClassLoader. For example when Hibernate tries to load classes definied in mapping files we got a java.lang.ClassNotFoundException.
    Is there a way to load classes dynamically to OurSystems class loader or notify it about PluginClassLoaders classes?
    Or is this a bad way to do it?
    Best regards,
    Kristoffer Renholm

    Hi,
    Sounds like a classpath problem that the folks in the workshop newsgroup
    could help with. Try asking your question in:
    http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=xover&group=weblogic.developer.interest.workshop&utag=
    Bruce
    Graeme Dougal wrote:
    >
    Hi, I am developing a web service with weblogic workshop. The JWS file references
    other classes one of which is a factory for distributing various implementations
    of an interface. I am trying to dynamically load the relevant class to be distributed
    from the factory via its name, e.g. Class c = Class.forName(className)
    However I keep getting a classNotFoundException.
    Any ideas ??

  • Applet not loading from JAR?

    Well, I've been having a bit of a problem with embedding my applet into a webpage. My applet tag looks like this:
    <applet archive="poke.jar" code="a.class" width=550 height=600>
    <param name=cachelistsrcdir value="http://io9labs.com/poke/cache">
    </applet>and when I access the page, I set the trace level to 5 in the Java Console, and look into it and see the following:
    basic: Stopping applet ...
    basic: Removed progress listener: sun.plugin.util.GrayBoxPainter@61db2b
    basic: Finding information ...
    basic: Releasing classloader: sun.plugin.ClassLoaderInfo@1df377e, refcount=0
    basic: Caching classloader: sun.plugin.ClassLoaderInfo@1df377e
    basic: Current classloader cache size: 3
    basic: Done ...
    basic: Joining applet thread ...
    basic: Destroying applet ...
    basic: Disposing applet ...
    basic: Quiting applet ...
    basic: Joined applet thread ...
    basic: Referencing classloader: sun.plugin.ClassLoaderInfo@1df377e, refcount=1
    basic: Added progress listener: sun.plugin.util.GrayBoxPainter@c710ba
    basic: Loading applet ...
    basic: Initializing applet ...
    basic: Starting applet ...
    basic: completed perf rollup
    network: Cache entry not found [url: http://io9labs.com/poke/a.class, version: null]
    network: Connecting http://io9labs.com/poke/a.class with proxy=DIRECT
    network: Connecting http://io9labs.com/poke/a.class with cookie "PHPSESSID=831a2067577cfe38db085b2566c36631"
    network: Cache entry not found [url: http://io9labs.com/poke/a/class.class, version: null]
    network: Connecting http://io9labs.com/poke/a/class.class with proxy=DIRECT
    network: Connecting http://io9labs.com/poke/a/class.class with cookie "PHPSESSID=831a2067577cfe38db085b2566c36631"
    load: class a.class not found.
    java.lang.ClassNotFoundException: a.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more
    basic: Exception: java.lang.ClassNotFoundException: a.classIt seems as though it's trying to load the applet from the actual directory, instead of the JAR. Any ideas on why this is happening? Thanks in advance for your help.
    Also, the applet is located at http://io9labs.com/poke/

    I'm using Mozilla Firefox 3.0.1 on Windows XP with SP2. I tried running it with IE7 and it gives me the same exact problem. It can't be my browser because it loads JAR'ed applets on any other webpage just fine.
    I tried it with a non-obfuscated JAR, and it STILL gives me the same error. Do you have any ideas as to why it would choose to ignore the archive attribute?
    EDIT: I think it might be because I signed it improperly, lemme try that.
    EDIT2: Nope, still doesnt work
    EDIT3: Problem solved, it was because the JAR needed a unique name, and i already had a jar of the same name in my cache.
    Edited by: io9_ on Aug 20, 2008 11:17 AM

  • Detecting if class is loaded from jar?

    is this possible?

    because my current app, stupid or not, tries to save a
    file in the directory where the class is located. But
    if its a jar, it cant save it there!?No, you cannot write something into a jar file. To do that you have to create a new version of the jar file, copy all the jar entries from the old version, and add a new jar entry for the new something you want to add, then delete the old version and rename the new version back. Apart from being cumbersome, this will probably not work in your case because the JVM will have a lock on the jar file containing your classes. So if you have a configuration file that can be changed by the program, you don't want to store it in a jar file.

  • Warnings from faces-config

    Whenever I deploy an jsf application i get some warning, but application is running fine. the warnings are for the rules which are defined in faces-config.xml file.
    14:24:28,002 WARN [Digester] [NavigationRuleRule]{faces-config/navigation-rule} Merge(/pages/inputname.jsp)
    14:24:28,004 WARN [Digester] [NavigationRuleRule]{faces-config/navigation-rule} Merge(*)
    14:24:28,005 WARN [Digester] [ManagedBeanRule]{faces-config/managed-bean} Merge(numberBean)
    here i have defined three rules and i am geeting these warnings

    madhavarvr wrote:
    but i am unable to load the pages also.You probably should have mentioned this to begin with.
    i am getting
    Jun 23, 2008 9:37:31 AM com.sun.faces.config.rules.NavigationRuleRule end
    WARNING: [NavigationRuleRule]{faces-config/navigation-rule} Merge(/pages/inputname.jsp)
    Jun 23, 2008 9:37:31 AM com.sun.faces.config.rules.ManagedBeanRule end
    WARNING: [ManagedBeanRule]{faces-config/managed-bean} Merge(person)
    Ignore these.
    error and the pages also not displaying. Please describe what you are doing, what actually happens and what you expected to happen. You might benefit from reading the following:
    http://www.catb.org/~esr/faqs/smart-questions.html
    >
    my faces-config.xm is:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN" "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config >
         <navigation-rule>
              <from-view-id>/pages/inputname.jsp</from-view-id>
              <navigation-case>
                   <from-outcome>greeting</from-outcome>
                   <to-view-id>/pages/Greeting.jsp</to-view-id>
              </navigation-case>
         </navigation-rule>
         <managed-bean>
              <managed-bean-name>person</managed-bean-name>
              <managed-bean-class>com.madhu.PersonBean</managed-bean-class>
              <managed-bean-scope>session</managed-bean-scope>
         </managed-bean>
    </faces-config>

Maybe you are looking for

  • It won't let me install Photoshop CS5.1 Extended Edition, but it says it has

    I bought the student edition of Photoshop CS5.1 online maybe a month ago and I still can't actually use the program. I run the intstallation program and it notes that it has already been installed because I've been through this quite a few times but

  • Target system(Destination) for RFC call ?

    Need some help in calling an RFC for xi interface. For triggering the data in to xi , RFC needs to be called. This RFC can be called using an ABAP Program / report . BUT inorder to call that RFC a Destination / Target system needs to be defined . Eve

  • Admin console doesn't load

    Hi all, I'm having some problems after logging into the admin console. For some reason unknown to me the side nav bar loads but the main frame doesn't load and just times out. This is the error i get after waiting for a few mins. exception javax.serv

  • Java Transactions WITHOUT JTS

    Hi All: I am working on a project where the user can create 3d components. In our code we do this: - Create an object from a java class that represents the component - Add the object to the component collection (data model) - Create the 3d component

  • How can we restrict Column length in ALV using POWL.

    Hello, I have a new assignment o ABAP Web Dynpro, data displaying ALV by using POWL is a part of that assignment. Everything went fine and at last moment I was stuck with a small issue. In my application I am displaying first ALV by using POWL concep