Forms - Icons without jar file

Hi!
I´m trying con configure my standalone weblogic (10.3.6), running in development mode,
to find my forms 11 applications icons without use a jar file.
So, at formsweb.cfg i changed imageBase to documentBase and at Registry.dat i set
default.icons.iconpath=/img/ 
default.icons.iconextension=gif 
Now I´m trying to map /img/ to may local directory (/img/ -> C:\repo\img)
I tried to change httpd.conf and didn´t work. When I access http://localhost:7001/img/myimage.gif, it returns 404.
Alias /img/ "C:\repo\img\" 
<Directory "C:\repo\img"> 
    AllowOverride None 
    Order allow,deny 
    Allow from all 
</Directory> 
Then, i tried to change forms.conf
AliasMatch /img/(..*) "C:\repo\img\$1" 
But No change at all.
Does anyone know how to create a alias in weblogic in development mode?

If you chose the "Development" install type you will not have OHS although you might have its config file (httpd.conf).  Further, creating an Alias in WLS is a little more painful than doing it in OHS.  My recommendation is that you keep it simple for testing.  You can use an existing Alias and extend it.  For example consider the Forms \java directory (e.g.
C:\Oracle\Middleware\Oracle_FRHome1\forms\java)
Simply add a sub-directory to it and store your images there.  In the form, simply reference the complete image name without a path.  For example:  myimage.jpg.  Then in the Registry.dat include the virtual path to the images.  So, here are the steps.
1.  Create a sub-directory C:\Oracle\Middleware\Oracle_FRHome1\forms\java\images
2.  Copy your images to this directory
3.  In the form, refer to the images by name only.  If your images use a different extension from what is stored in Registry.dat, include the extension in the form.  If the extension is the same then ommit it.
4.  In Registry.dat, set default.icons.iconpath=/forms/java/images/  (be sure to include the trailing slash)
5.  On the client machine, close all open browsers and open the Java Control Panel.  Clear the jar cache ("Temporary Internet Files")
Your done.  Because the form does not have a hard coded path to the images, you can easily move the forms to production without worrying about the need to change the code to handle the image location.
Oh, one last thing.... If you are using a newer JRE version you will get a securty warning suggesting that there may be unsafe code being executed.  It will then ask if you want to Block or Don't Block.  This dialog is the result of retrieving your image from a source other than the applet jar.  You will need to select Don't Block in order for it to work correctly.  This is another reason why we (Oracle) recommend using signed jar files.
Message was edited by: Michael Ferrante (Oracle)

Similar Messages

  • Create a custom dock/application icon for .jar files built in eclipse

    I've spent the better part of the afternoon trying to figure out how to apply a custom icon to jar file that I created in eclipse. I am presently using eclipse v3.5 on Mac OS X 10.6.2 and have yet to find a way to change the java coffee cup logo in the document icon for my jar files created in eclipse. Is there some way I can call a specific Apple class in Eclipse to change the dock/application icon of my .jar file?
    I found this link that uses a class that seems to be specific to XCode to change the icon of the .jar file.
    What I mean by change the icon of the jar file, I mean change the icon used in the dock, and also the icon used when the "command+tab" switcher pops up. Presently, I have the black console icon with the text "exec" in the upperleft.
    If anyone has any good links on this topic or even better knows the code I need insert into my program I would be highly greatful.
    cheers
    -ipatch

    See http://www.centerkey.com/mac/java/

  • Forms 9.2  jar file with 9.04 forms

    hi .
    can we use forms 9 i jar file in forms 10g(9.04 )

    Hello,
    Could you, please, be more precise in your question.
    Francois

  • Deploying icons as jar file in Forms 9i

    We (Cancer Research UK) don't quite understand what is happening -
    We followed the guidelines in the white paper "Oracle 9IAs Forms Services - How to Deploy Icons"
    to deploy the images in a jar file:
    Altered the formsweb.cfg file to contain
    archive_jini=f90_jinit.jar, our_images.jar
    imagebase=codebase
    Seemed to work, jar file downloaded to browser (IE 6 ) ok , web deployed form shows toolbar icons, great..
    However, when we removed an existing entry in orion-web.xml which maps our application/icon directory
    or remove the *.gif files from this directory, our web deployed form no longer shows the icon images.
    Does it still need these to be present on the server, if we direct it to use cached images ?
    We are test running just the Application server components installed with the IDs 9.0.2 on a Windows 2000 server.

    Hi Steve,
    I have the exact same problem. The jar is downloaded and everything is 100% best practises, but there is no way I can make the damn system use the files in the JAR file. No matter if imagebase=codebase: it will only use files on the server, and if I remove the gif files they don't show up.
    I think there must be a glitch in the system somewhere. I don't completely understand this part of it: the codebase is mapped to /forms90/java - but how does that add up when you put your files in c:\my_gifs (as detailed in Best Practices section of the Deploying Icons paper). How does the server know where to look when codebase are two different places - I'm thinking it can't for some reason.
    My Apache/Apache/logs/error_log clearly states that files (real files) are not found in c:\my_gifs if I remove them from the file system. The JAR is downloaded, but the server doesn't use it.
    However, most people have all their gif files in the same folder as their images.jar file, so they don't ever discover that the server ignores the jar and uses the files instead.
    Regards,
    Jesper Vad Kristensen
    Aarhus, Denmark

  • Icons in JAR file did not appear on runing web form

    Hi
    I am testing web application built using Forms6i with path 9. I configured the form server to run as a servlet and I put all the icons used in the application in JAR file I name it ICONS.JAR, I put this file in \FORMS60\JAVA\ directory.
    I made the following configurations:
    In Apache listner configuration file httpd.conf :
    Alias /forms60java/ "D:\orant\forms60\java\/"
    In forms confuguration file formsweb.cfg:
    imageBase=CodeBase
    archive=icons.jar
    serverApp=Default
    in registry.dat file:
    default.icons.iconpath=
    default.icons.iconextension=gif
    In base HTML file:
    <PARAM NAME="imageBase" VALUE="%imageBase%">
    <PARAM NAME="serverApp" VALUE="%serverApp%">
    <PARAM NAME="CODEBASE" VALUE="/forms60java/"
    The forms are run with nao problem except that the icons do not appear. I see java console on the client machine, and I see that ICONS.JAR was downloaded and saved in jar cache.
    In Apache access log file I see that there is an attempt to load the icons from the path <server_name>/forms60java/icon_name.gif but not from the archived JAR file.
    What could be goes wrong or missing?

    Hi Amin,
    Maybe the icons.jar file doesn't contain the files (try opening it with WinZip or some other tool and verify the files are indeed there).
    Maybe some case sensitivity issues are at play?
    Or the GIF files are the wrong size so maybe you're only seeing the transparent upper left corner of alle the icons displayed on your iconic buttons or whatever.
    Just a couple of wild shots (cause it doesn't appear you're having errors - but check all your log files including error_log)
    Regards,
    Jesper

  • Form 11g and Jar file issue

    I have migrated all the forms from 10g to 11g. When i run the form 11g using my config i get the below error
    USING Java Plug-in 1.6.0_23 i get the below error
    java.lang.SecurityException: class "oracle.forms.demos.enhancedItems.InfoButton"'s signer information does not match signer information of other classes in the same package
         at java.lang.ClassLoader.checkCerts(Unknown Source)
         at java.lang.ClassLoader.preDefineClass(Unknown Source)
         at java.lang.ClassLoader.defineClassCond(Unknown Source)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.access$000(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         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 java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Unknown Source)
         at oracle.forms.handler.UICommon.instantiate(Unknown Source)
         at oracle.forms.handler.UICommon.onCreate(Unknown Source)
         at oracle.forms.handler.ButtonItem.onCreate(Unknown Source)
         at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.processEventEnd(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    I tried using the Java Plug-in 1.6.0_12
    Loaded image: jar:http://130.1.3.171:9001/forms/java/frmall.jar!/oracle/forms/icons/bgnd.gif
    Forms Session ID is formsapp.9
    The proxy host is null, and the proxy port is 0.
    Native HTTP implementation is being used for the connection.
    The connection mode is HTTP.
    Forms Applet version is 11.1.1.4
    Loaded image: jar:http://130.1.3.171:9001/forms/java/frmall.jar!/oracle/forms/icons/frame.gif
    Exception "java.lang.IllegalArgumentException: failed to parse:"while constructing DataFlavor for:
    Exception "java.lang.IllegalArgumentException: failed to parse:"while constructing DataFlavor for:
    java.lang.ClassNotFoundException: oracle.forms.demos.enhancedItems.InfoButton
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Unknown Source)
         at oracle.forms.handler.UICommon.instantiate(Unknown Source)
         at oracle.forms.handler.UICommon.onCreate(Unknown Source)
         at oracle.forms.handler.ButtonItem.onCreate(Unknown Source)
         at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.processEventEnd(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed:http://130.1.3.171:9001/forms/java/oracle/forms/demos/enhancedItems/InfoButton.class
         at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 35 more
    My config section is
    [form11g]
    jpi_download_page=http://java.sun.com/products/archive/j2se/6u12/index.html
    jpi_classid=clsid:CAFEEFAC-0016-0000-0012-ABCDEFFEDCBA
    jpi_codebase=http://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cab#Version=1,6,0,12
    jpi_mimetype=application/x-java-applet;jpi-version=1.6.0_12
    archive=frmall.jar,modcursor.jar,Images.jar,keyfilter.jar,ticker.jar,rolloverbutton.jar,activation.jar,javamailintegration.jar,mail.jar,uploadserver.jar,uploadclient.jar,infobutton.jar,hyperlink.jar,colorpicker.jar
    form=login.fmx
    pageTitle=Oracle Application
    splashScreen=No
    Previously i used to use jinitiator for 10g. Is there any configuration need to be done or should i sign the jar files.

    You might want to use google:
    http://www.google.com/#q=signer+information+does+not+match+signer+information+of+other+classes+in+the+same+package
    cheers

  • Storing Icons in JAR Files

    As per the optimization best practices for web deployed forms , Image Icons( which are GIF images) on the buttons can be placed in a JAR file so that it can be cached by the client side JVM . Can anybody help me out and tell me the steps of how to do it. Thanx in advance.

    Sorry, you're correct it does need to be on the "archive_jini=" as well!
    If your using rollover images, I found the best way to get these working was just to include them in the Rolloverbutton.jar file. I did this by loading the rolloverbutton project into JDeveloper, adding the icons into the project and re-deploying. There are some good notes at http://otn.oracle.com/formsupgrade to explain how to generate JPCs.
    If your using standard Forms Iconic buttons...
    Once your form has loaded, double click the Java Console Icon in the system tray, you should see lines that state;
    Loading http://<myserver>/forms90/java/f90all_jinit.jar
    Loading http://<myserver>/forms90/java/calendar.jar
    Loading http://<myserver>/forms90/java/rolloverbutton.jar
    Loading http://<myserver>/forms90/java/gs.jar
    If these are loading ok, in the Java console hit the 5 key. Then re-load the form so that images are reloaded and check for lines that state;
    "Loaded image" It should state "Loaded Image Jar:http://<myserver>/forms90/java/gs.jar!<image>.gif."
    If it gives a different URL, then the imagebase must be set incorrectly.

  • Icons in .jar files...

    Hi ,
    I have configured successfully and see some icons on buttons. Next day , i took the .jar file , copied it in \java folder and i have configured appropriately the formsweb.cfg file - calling this .jar file among others- according to my system (where the icons are displayed as wanted)...
    But the icons are not appeared in the 'destination' computer.....
    What may be the problem....????
    Should i have to make an archive (jar file) in the 'destination' computer ... as i have done on my own...?????
    NOTE: both computers run on Windows XP , and Dev10g have been installed....The only difference is that the one has Oracle10gXE... whereas the other Oracle10gEE
    Many thanks,
    Simon

    Note that the filenames within the JAR are case sensitive. So, if the files in the JAR have lowercase names, make sure the property in Forms also uses a lowercase name. Also remove the extension (if any) from the icon property in Forms.
    If that's all ok and it still does not work, have a look at http://www.oracle.com/technology/products/forms/pdf/webicons.pdf. Looking at your question it seems you've done what the white paper says, but you never now what you might pick up from reading it (again).

  • Iconic (gif) jar files

    Just curious, how does forms know the name of the jar file in the codebase directory to search when loading icon (gifs). Or does it search every jar file in that directory?
    thx,
    r.b.

    > how does forms know the name of the jar file in the
    codebase directory to search when loading icon (gifs).
    You add the jar file to the archive_jini parameter. The gif in the jar file has a path. (If there's no path, then it's just /.) Your serverApp file (registry.dat) has the path where the icons reside.
    So if your registry.dat file has, say, /myicons as the path, then your jar file, called appicons.jar contains the icons in the path /myicons.
    You specify appicons.jar in the archive_jini parameter. That way it gets downloaded to the client.
    Now the client has the jar, which has the icons. And client has the path. Voila!
    > and what happens when it doesn't find a specific gif
    in the jar file?
    Don't do that. :)
    Seriously, I don't know what happens. I suspect the Form runs fine but there's no image where the icon should be.
    You may get an error in the java console, I'm not sure.
    Regards
    Robin Zimmermann
    Forms Product Management

  • Loading icons from jar file

    Hello,
    i am trying to load ALL imagefiles from my jar file. i do the following:
    Class clazz = Class.forName("com.xxx.IconSelectionDialog");
    String me = clazz.getName().replace(".", "/") + ".class";
    dirURL = clazz.getClassLoader().getResource(me);
    if (dirURL.getProtocol().equals("jar")) {
    String jarPath = dirURL.getPath().substring(6, dirURL.getPath().indexOf("!")); //strip out only the JAR file
    JarFile jar = new JarFile(jarPath );
    Enumeration<JarEntry> entries = jar.entries(); //gives ALL entries in jar
    while (entries.hasMoreElements()) {
    JarEntry nextEntry = entries.nextElement();
    String jarEntryName = nextEntry.getName();
    this works fine with my debug local jws installation. when i try to run it online starting i get an error:
    java.io.FileNotFoundException: xentis.jar (Das System kann die angegebene Datei nicht finden)
         at java.util.zip.ZipFile.open(Native Method)
         at java.util.zip.ZipFile.<init>(ZipFile.java:114)
         at java.util.jar.JarFile.<init>(JarFile.java:133)
         at java.util.jar.JarFile.<init>(JarFile.java:70)
    how can i load ALL icons from a jar (without knowing the filename) ?
    is there a generic way to iterate over all entries of a jarfile ?
    thank you
    michael

    Look at "Loading Images Using getResource" on this page
    http://java.sun.com/docs/books/tutorial/uiswing/components/icon.html
    It should provide some ideas.

  • Deploy Icon Using  .Jar files?

    Hi !
    i have created the .jar file using following command..
    D:\myapp\icon> jar -cvf myappicon.jar *.gif
    then 'Copy' this myappicon.jar file to the D:\frs\forms90\java directory
    then i open formsweb.cfg and edit this as following..
    [myApp]
    …
    archive_jini=f90all_jini.jar,myAppIcons.jar
    imagebase=codebase
    Then i set icon name property some button to "save" and some button to "save.gif"
    Then i start the form by giving the following URL in the Browser
    http:\\mymachine.com:7778/forms90/f90servlet?config=myapp
    then the browser show this message
    java.lang.classNotFoundException:oracle.forms.engine.Main
    Now what i should do or what are the error or what i missed??
    Do i need to make changes in registry.dat file???
    How to define default.icons.iconpath in registry.dat file give example plz??
    Please guide me
    thanks
    Rana Adnan

    Rana,
    please - no duplicate questions. Please help to keep this forum clean.
    thanks
    Frank
    Ps.: I provided an answer in the first question I found with this topic.

  • Icons in Jar file on Web

    We have our application specific gif file in a jar file, and have placed this jar file in the virtual directory specified in our registry.dat file. The JInitiator console claims it finds the jar file and appears to be using other classes contained in the jar file but is NOT using the gifs we have included. If we unjar the gifs into the directory where the jar file resides the toolbar icons appear correctly.
    What are we doing wrong? Do we need to include the jar file location in our classpath? We are running this using 9iAS with appache as our application ser and JInit 1.1.8.10 and Headstart 6.5.
    We are running this on HP-UX B.11.00U and have managed to get the icons working under NT using appache/forms server configuration but not under unix with 9iAS. Any suggestions?

    Hi Michelle,
    when you included your gif files in the jar file, did you make sure that the gif files are not in a subdirectory. To check this open the file using winzip and see if all gif files are in the top level directory. If this is the case empty the jcache directory to make sure the jar file is indeed fetched after you changed the file.
    Also beware that the name of your button image property is case sensitive. So if you have the icon property set to MyButton the gif file should also be called MyButton.gif. This can be verified in the Java Console of the jinitiator by looking at the gif file that it tries to fetch for your iconic button.
    I hope this helps you a bit further.
    Kind Regards,
    Frank van der Borden
    Oracle Support Services
    Netherlands

  • Icon for Jar File?

    Is it possible to include an Icon in a Jar file
    that will be displayed for the jar file instead
    of a default Icon give to it by Windows 2000? If
    so, how is it done?
    Thanks

    no it's not possible as the JAR file does not know anything about the operating system. this is windows dependend. if you want a custom icon for one jar file, create a shortcut to the jar and adjust the icon of this shortcut.

  • Icons and JAR files

    How do I change the desktop icon assoicated with a JAR file?

    I would like to know it too.
    This is a way that give you almost the same thing, but you'd probably already know:
    You can click with the right on your jar File, create a shortcut to your Jar File, click with the right on the shortcut you have just created, proprieties, change icon.

  • How do I display Canvas Graphic image (Not Iconic button) from jar file

    Hi all,
    I am currently using Forms 10g.
    I have gone through the tutorials on how to add Button Icons into Jar files for web enables forms .....so far so good
    This however does not explain what I actually want to do... since "graphic images are by nature embeded in the for rather than referenced ......so here goes ..
    I have a forms 10g application where all the individual form modules/canvases display a big banner (covering top 20% of the screen). This was done by importing the image straight unto the content canvases. As you know this now becomes a "graphic Image" now embeded(& not referenced by file name) on the canvas. Also bear in mind that this is actually different from an "Image Item" which is a block object.
    I dont know if this is possible, but what steps do i follow to make the image part of a jar file as opposed to my current situation. Please let me know if possible or not so I stop waisting development time looking for answers :)
    Another question is how do i make this jar file a library object so that we can vary the image as we wish
    NB: one other trick which i can think of is to create a giant push button across the screen to display the image and then stick it in a jar file !
    Cheers
    css_jay99

    I don't know about embedded images imported in from the builder, but there is a way to use READ_IMAGE_FILE into a BLOCK.IMAGE_ITEM where the images are all in a jar file stored on the OAS.
    Metalink Note:137397.1 explains it in details.
    Tony

Maybe you are looking for