Getting error : Jre not found when using Loadjava command

Hi folks,
I am getting an error when I run the below load java command on a 9.2.0.8 database on Sun/Solaris platform.
Command:
loadjava -user user/[email protected]:1529:OLS2 -thin -force -resolve -verbose filename.jar
Error:
/olcdbt/u01/app/oracle/product/9.2.0.8/bin/loadjava: /olcdbt/u01/app/oracle/product/9.2.0.8/jdk/jre/bin/jre: not found
When I tried creating a new Jre soft link from $ORACLE_HOME/bin like : 'ln -s $ORACLE_HOME/jdk/jre/bin/java $ORACLE_HOME/jdk/jre/bin/jre' its giving a new error:
jre was not found in /olcdbt/u01/app/oracle/product/9.2.0.8/jdk/jre/bin/../bin/sparc/native_threads/jre
Strange thing here is that this was working fine in 9206 home and after upgrading to 9208 1 month back I am facing this issue. I am sure I am missing something here but not sure what.. Please help me resolve this issue.
Regards,
Raji.

Dear my collegue, the best place to ask this question is JVM forum.
Java in the Oracle Database

Similar Messages

  • Jre not found when using Loadjava command

    Hello,
    I am getting an error when I run the below load java command on a 9.2.0.8 database on Sun/Solaris platform.
    Command:
    loadjava -user user/[email protected]:1529:OLS2 -thin -force -resolve -verbose filename.jar
    Error:
    /olcdbt/u01/app/oracle/product/9.2.0.8/bin/loadjava: /olcdbt/u01/app/oracle/product/9.2.0.8/jdk/jre/bin/jre: not found
    When I tried creating a new Jre soft link from $ORACLE_HOME/bin like : 'ln -s $ORACLE_HOME/jdk/jre/bin/java $ORACLE_HOME/jdk/jre/bin/jre' its giving a new error:
    jre was not found in /olcdbt/u01/app/oracle/product/9.2.0.8/jdk/jre/bin/../bin/sparc/native_threads/jre
    Strange thing here is that this was working fine in 9206 home and after upgrading to 9208 1 month back I am facing this issue. I am sure I am missing something here but not sure what.. Please help me resolve this issue.
    Regards,
    Raji.

    Hi,
    Even though the problem manifests when using loadjava, it has noting to do with the embedded Java VM in the database; it's rather an install /upgrade problem.
    Perhaps the followinf post can help: http://64.233.167.104/search?q=cache:h3XhGo2kZaYJ:forums.oracle.com/forums/thread.jspa%3FthreadID%3D43105+site:oracle.com+%22JRE+not+found%22&hl=en&ct=clnk&cd=9&gl=us
    Kuassi http://db360.blogspot.com

  • Why does FCP error "File Not Found" when I try to open my sequences????

    I recently updated all of my software and the following day I started getting errors "file not found" when I would try to open a sequence. Now all of my sequences are being lost and I am losing time and money because I can't meet deadlines! This *****!!! With one sequence I had to reedit the entire thing from scratch and when I did for some reason the old one would then open. But the next time I opened FCP both sequences would error out. Following the "file not found" the computer responds with another error "error: out of memory" What the devil is going on with this crap?

    I seem to have figured out what my problem was. After trying to build the same project (that failed on the Mac Pro) on my laptop and encountering the same errors, I realized that the problem had to be with one or more of my assets and not my new version of FCP, since my PowerBook is running FCP 5.0.4 and my Mac Pro is running FCP 5.1.2.
    In my case the "corrupt" file was a Photoshop PSD file. In the past (FCP 4.5) I was able to use PSD files with hidden layers. I would merge the visible layers into one layer, keep the hidden layers and save the file. Once in FCP, I imported the PSD file and kept right on truckin'. I've done this for years. For some reason now with FCP 5.1.2 (and 5.0.4), that's not flying anymore. Once I "Flattened" the PSD file in Photoshop (deleting all of the hidden layers) I was able to build the project without any errors.
    Interestingly, the technique I used to figure out which file was "corrupt" also allowed me to salvage parts of some of my "lost" sequences. I saw this posted in a forum at Creative Cow (creativecow.net). Basically, I opened up the project, clicked the OK button after the File Not Found error, went into the Browser, right clicked on the offending sequence, selected "Make Offline". When I double clicked the sequence it opened in the timeline with all of my assets offline. Then in the timeline, one by one, I right clicked on each clip and selected "Reconnect Media". Once I linked up the media, if I didn't get an error message, I would save as a new project (to salvage what WAS working), and go to the next clip. I did this until I found the offending PSD files.
    I hope this helps. Now it's time to play "catch-up"
    Mac Pro 3Ghz, 1GB RAM, ATI Radeon X1900 XT   Mac OS X (10.4.8)  

  • I get Server error 404 not found when downloading OSX LIONHELP

    I get Server error 404 not found when downloading OSX LION HELP!!!

    See message 11600
    "David R. Pina" <[email protected]> wrote:
    >
    Hello everyone,
    I'm using weblogic 6.0 for AIX.
    I'm trying to setup a new web application.
    Right now, I just want to access html files, but the web server is not working
    well.
    I can access the file
    http://myhost/myapp/index.html
    but if I try to access file2.html
    http://myhost/myapp/file2.html
    file2.html is in the same directory, with the same permissions and I get
    the 404
    error message
    At the beginning, I couldn't access index.html, because I created the directory
    "myapp"
    with user "root". Later, I changed the ownership to "wlowner" for "myapp"
    directory
    and for "index.html"
    Then I created "file2.html" with user "wlowner", and provided the same permissions
    as index.html but I can't access it.
    Could someone tell what might be wrong ?
    Any clues ?
    Thanks,
    David
    Mexico City

  • Paypal link/code works in IE but getting Error 404: NOT FOUND! in FireFox

    Hi, I just got off the phone with paypal about this problem I'm having. Here is my
    site wwwdotbankruptcyrecoveryprogramdotcom. If you open it in IE and click
    on the "Click here to order now" graphic button it works and will take you to
    paypal. If you open the site in FF and do the same you will get Error 404: NOT FOUND!.
    Paypal was not much help they just said that DW is doing something to the code
    when displayed in FF.
    Any help with this would be greatly appreciated...thank you...

    Try this....find this code, and change this:
    <div style="text-align: center;"><span style="color: black;">
    <span style="color: black;"><span style="color: black;">
    <a href="&lt;form action=&quot;https://www.paypal.com/cgi-bin/webscr&quot; method=&quot;post&quot;&gt;">
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="hosted_button_id" value="74RRP9AQ95BVS">
    <input type="image" src="http://bankruptcyrecoveryprogram.com/order-button.jpg"
    border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
    <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
    </form>
    </a><br />
    </span></span></span>
    To this:
    <div style="text-align: center; color: black;">
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="hosted_button_id" value="74RRP9AQ95BVS">
    <input type="image" src="http://bankruptcyrecoveryprogram.com/order-button.jpg" border="0" name="submit"
    alt="PayPal - The safer, easier way to pay online!">
    <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
    </form>
    </div>
    <br />
    See that that does for you.
    Gary

  • Getting "Error 404--Not Found" while connecting to OLT session

    Hi all,
    I am getting "Error 404--Not Found" error while connecting to OLT session. I had tried re-starting all the services including the database services but to no avail.
    Below is the description :
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
    If anybody had faced similar issues, please do let me know the resolution for the same.
    Thanks,
    Sunny

    Is that the first time you connect to OLT?
    If yes, please check OATS release notes.
    Thx
    JB

  • Error oracle.sql.* and oracle.jdbc.driver.* not found when using oracle as a database

    I am using oracle as database and weblogic 4.5. I have copied the classes12.zip file in lib directory of weblogic. I am getting the error that oracle.sql.* and oracle.jdbc.driver.* not found when i am importing these packages in a jsp file. what i need to do to import oracle driver packages?I put it in the classpath also.
    Please Advice!
    Thanks in advance
    AnuPama

    Hi Anupama,
    First of all I would be surprised if you would not like to use the connection pooling feature of weblogic (in which case you might not be needing the import the classes directly), and would like to open direct connections to your database. Anyways for doing that I would recommend you to check out the readme doc that ships
    along with the jdbc oracle (classes12.zip etc). I am giving an excerpt over here:
    These are a few simple things that you should do in your JDBC program:
    1. Import the necessary JDBC classes in your programs that use JDBC.
    For example:
    import java.sql.*;
    import java.math.*;
    2. Register the Oracle driver before before calling other JDBC APIs.
    (This is not needed if you are using the JDBC Server-side Internal
    Driver because registration is done automatically in the server.)
    To register the Oracle driver, make sure the following statement
    is executed at least once in your Java session:
    DriverManager.registerDriver(
    new oracle.jdbc.driver.OracleDriver());
    3. Open a connection to the database with the getConnection call.
    Different connection URLs should be used for different JDBC
    drivers. The following examples demonstrate the different URLs.
    For the JDBC OCI8 Driver:
    Connection conn = DriverManager.getConnection(
    "jdbc:oracle:oci8:@<database>",
    "scott", "tiger");
    where <database> is either an entry in tnsnames.ora or a SQL*net
    name-value pair.
    For the JDBC Thin Driver, or Server-side Thin Driver:
    Connection conn = DriverManager.getConnection(
    "jdbc:oracle:thin:@<database>",
    "scott", "tiger");
    where <database> is either a string of the form
    <host>:<port>:<sid> or a SQL*net name-value pair.
    For the JDBC Server-side Internal Driver:
    Connection conn = DriverManager.getConnection(
    "jdbc:oracle:kprb:");
    Note that the trailing ':' character is necessary. When you use
    the Server-side Internal Driver, you always connect to the
    database you are executing in. You can also do this:
    Connection conn
    = new oracle.jdbc.driver.OracleDriver().defaultConnection();
    Hope this helps,
    Thanks,
    Anupama wrote:
    I am using oracle as database and weblogic 4.5. I have copied the classes12.zip file in lib directory of weblogic. I am getting the error that oracle.sql.* and oracle.jdbc.driver.* not found when i am importing these packages in a jsp file. what i need to do to import oracle driver packages?I put it in the classpath also.
    Please Advice!
    Thanks in advance
    AnuPama--
    Apurb Kumar

  • When launching firefox I get error 404 not found how do I fix that I upgraded to 3.2.20 (1)

    I upgraded to 3.6.20 (1) yesterday and it was working find. When I open firefox it automatically says "Error 404 not found" and nothing else but blank underneath. Any solutions I checked the plug in and it wants to download Quicktime 7 and it keeps referring to a MAC and I have Windows XP

    Hi jahhaas,
    Take a look at the troubleshooting steps outlined for Windlows 7 in this article:
    http://support.apple.com/kb/HT1923
    Cheers,
    GB

  • One Application deployed OK;  my app always gets error "404 Not Found"...

    I am trying deploying my application from within JDeveloper 10.1.3.4 to the standalone oc4j on the localhost, before deploying it on an application server. I am a newbie and I am doing this by following a tutorial. The tutorial application is deployed fine, but my application always gets the "404 Not Found" error after deployment.
    The standalone oc4j is set up on my Windows XP PC by running the <jdev_home>\jdev\bin\start_oc4j.bat file, and works fine because the tutorial application is deployed and runs fine.
    For the tutorial application, deployment is the last chapter (Chapter 10). I started from the nearly completed tutorial application from the end of Chapter 9, and went throug all the steps in Chapter 10 and the application is deployed and invoked successfully.
    My application starts with the login.jspx page. The applilcation runs perfectly when invoked directly within JDeveloper by right-clicking login.jspx and selecting Run. But when going through the same steps as with the tutorial application, my application always gets "404 Not Found" in the browser.
    The steps of deployment are:
    1. Right-click the ViewController project, select New and then Deployment Profiles/WAR File, to create the deployment profile. When creating this profile, I entered "ZBV" as the custom root context.
    2. Right-click the deployment profile (ZBV.deploy), and "Deploy To..." the standalone oc4j on the localhost, and accept the default configuration. The messages in the log window in JDeveloper are all clean without error.
    3. Open a browser, enter the url "http://localhost:8888/ZBV/faces/staff/login.jspx and get "404 Not Found". I have undeployed and gone through the same steps several times and always got the same error. I use /staff/login.jspx after ZBV/faces because in the Application Navigator, the login.jspx file is located in the ViewController/Web Content/staff folder.
    I wonder what could be wrong with my application. In the tutorial it is said that both an .ear file and a .war will be created but only the .war file needs to be created because of the dependency of the ViewController project on the DataModel project set in the application. My application has this dependency set therefore I went throug the same steps as with deploying the tutorial application.
    I hope the experienced and experts and gurus will shed light on me with their experience and wisdom.
    Many thanks!
    Newman

    Hi, Shay,
    You are right. I checked the log and found one notification message:
    Unable to dispatch JSP Page : Exception:java.io.FileNotFoundException: /staff/Login.jspx
    The capital L is a typo when creating the page file. During development you never need to type the file name but just click, and I always thought it was login.jspx. When that is corrected in the url string, the application is invoked and runs as it should. The one letter drove myself crazy for a whole day.
    Sorry and thanks! And to Dom too!
    Regards,
    Newman

  • [solved] 'ERROR: file not found:' when running 'mkinitcpio -p linux'

    $ sudo mkinitcpio -p linux
    ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
    -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
    ==> Starting build: 3.13.5-1-ARCH
    -> Running build hook: [systemd]
    ==> ERROR: file not found: `'
    ==> ERROR: file not found: `'
    ==> ERROR: file not found: `'
    ==> ERROR: file not found: `'
    ==> ERROR: file not found: `'
    ==> ERROR: file not found: `'
    -> Running build hook: [autodetect]
    -> Running build hook: [modconf]
    -> Running build hook: [block]
    -> Running build hook: [filesystems]
    -> Running build hook: [keyboard]
    -> Running build hook: [fsck]
    -> Running build hook: [consolefont]
    -> Running build hook: [keymap]
    ==> Generating module dependencies
    ==> Creating cat initcpio image: /boot/initramfs-linux.img
    ==> WARNING: errors were encountered during the build. The image may not be complete.
    ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
    -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
    ==> Starting build: 3.13.5-1-ARCH
    -> Running build hook: [systemd]
    ==> ERROR: file not found: `'
    ==> ERROR: file not found: `'
    ==> ERROR: file not found: `'
    ==> ERROR: file not found: `'
    ==> ERROR: file not found: `'
    ==> ERROR: file not found: `'
    -> Running build hook: [modconf]
    -> Running build hook: [block]
    ==> WARNING: Possibly missing firmware for module: aic94xx
    ==> WARNING: Possibly missing firmware for module: smsmdtv
    -> Running build hook: [filesystems]
    -> Running build hook: [keyboard]
    -> Running build hook: [fsck]
    -> Running build hook: [consolefont]
    -> Running build hook: [keymap]
    ==> Generating module dependencies
    ==> Creating cat initcpio image: /boot/initramfs-linux-fallback.img
    ==> WARNING: errors were encountered during the build. The image may not be complete.
    Things seems to work, but I'm a bit worried.
    It has just started. PS/2 atkbd stuff went fine.
    journalctl shows
    Feb 26 22:36:09 localhost systemd-udevd[62]: failed to execute '/usr/lib/udev/ata_id' 'ata_id --export /de
    Feb 26 22:36:09 localhost systemd-udevd[63]: failed to execute '/usr/lib/udev/scsi_id' 'scsi_id --export -
    Feb 26 22:36:09 localhost systemd-udevd[64]: failed to execute '/usr/lib/udev/ata_id' 'ata_id --export /de
    Feb 26 22:36:09 localhost systemd-udevd[65]: failed to execute '/usr/lib/udev/scsi_id' 'scsi_id --export -
    Feb 26 22:36:09 localhost kernel: sda: sda1 sda2 sda3 sda4
    Feb 26 22:36:09 localhost kernel: sd 0:0:0:0: [sda] Attached SCSI disk
    Feb 26 22:36:09 localhost systemd-udevd[66]: failed to execute '/usr/lib/udev/ata_id' 'ata_id --export /de
    Feb 26 22:36:09 localhost systemd-udevd[67]: failed to execute '/usr/lib/udev/scsi_id' 'scsi_id --export
    I'm using [testing] but I don't know if it matters.
    What should I post?
    Last edited by karol (2014-03-15 15:03:56)

    The systemd build hook looks like this:
    build() {
    local rules unit
    # from base
    add_binary /bin/mount
    add_binary /usr/bin/kmod /usr/bin/modprobe
    # systemd
    add_binary /usr/lib/systemd/systemd /init
    add_binary /usr/bin/systemd-tmpfiles
    # generate sysroot.mount and sysroot-usr.mount
    add_file "/usr/lib/systemd/system-generators/systemd-fstab-generator"
    # udev rules and systemd units
    map add_udev_rule "$rules" \
    50-udev-default.rules \
    60-persistent-storage.rules \
    64-btrfs.rules \
    80-drivers.rules \
    99-systemd.rules \
    map add_systemd_unit \
    ctrl-alt-del.target \
    initrd-cleanup.service \
    initrd-fs.target \
    initrd-parse-etc.service \
    initrd-root-fs.target \
    initrd-switch-root.service \
    initrd-switch-root.target \
    initrd-udevadm-cleanup-db.service \
    initrd.target \
    kmod-static-nodes.service \
    sockets.target \
    [email protected] \
    systemd-journald.service \
    systemd-tmpfiles-setup-dev.service \
    systemd-udev-trigger.service \
    systemd-udevd-control.socket \
    systemd-udevd-kernel.socket \
    systemd-udevd.service
    add_symlink "/usr/lib/systemd/system/default.target" "initrd.target"
    # libdbus needs the passwd info of the root user
    # TODO: make sure this is no longer necessary when systemctl moves to sd-bus
    add_file "/etc/nsswitch.conf"
    add_file "/etc/passwd"
    add_binary "$(readlink -f /usr/lib/libnss_files.so)"
    # udev wants /etc/group since it doesn't launch with --resolve-names=never
    add_file "/etc/group"
    Do all of those files exist on your sytemd? I'm not running testing nor systemd in my initrd, so I can't do much checking.
    Edit: You're not the only one. Bug report: https://bugs.archlinux.org/task/39059
    Last edited by Scimmia (2014-02-27 06:59:55)

  • Error 404 -- NOT FOUND when running a form in form 11g

    Hi All,
    I got this problem when I run the forms using internet explorer.
    I work on Forms 11g which uses weblogic 10.3 for web deployment of the forms.
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
    Can any one tell me where it went wrong.
    Thanks

    Let's start by clearing up some confusion.
    PORTS
    In version 11.1.1.x here are how the common ports are defined by default:
    1. HTTP Server - 8888
    2. WLS_FORMS - 9001
    3. WLS_REPORTS - 9002
    4. WLS Admin Server - 7001
    So, if you understand how ports work in general, you should see that there are two ways to run a form. You can either go through HTTP Server or call WLS_FORMS directly. This means that both of the following would work, although one would be a direct path and the other would route the request through the HTTP Server:
    <li>http://ie1fdtfc5zl1s:9001/forms/frmservlet?config=frmdemo
    <li>http://ie1fdtfc5zl1s:8888/forms/frmservlet?config=frmdemo
    Port 7001, will always be the Admin Server port by default for the Classic domain. By default, the only thing you can do from here is access EM or WLS Console.
    As for the tns issue, by default, both the Builder and runtime will expect to find tnsnames.ora in the Instance Home \config so be sure you are adding the correct entries to the correct file.
    You can hard code a path to the file which you prefer be used by setting TNS_ADMIN in default.env (e.g. TNS_ADMIN=C:\Oracle\mytnsdirectory). This will apply only to running forms and not the Builder.
    Also, here is something which often is confusing to many people.... just because you launched your form from the Builder does not mean that the running form has anything to do with the Builder at that point. In other words, when you click on the RunForm button in the builder all you are doing is passing a url to a browser. The browser and the form are not using any of the Builder's settings except those which may have been passed in the URL (e.g. username/password). ALL running forms are considered "runtime". This means all of the environment configuration information for a running form will need to be set in default.env. The Builder, on the other hand will rely on the System variable, Windows Registry (or shell if on Unix).

  • Bin/jre not found when I install 8.1.7

    Hi fellow,
    But the strange thing is, tried to install on two similar env, one can start the runInstaller but the other will warn me with "bin/jre not found" error and then exist. I found that the runInstaller should use the 8.1.7 built-in jre not the one of system. And I have confirmed that the "Disk1/stage/Component/oracle.swd.jre.../linux/bin/jre" was that can run-able. Did anyone here encountered this problem also?? Look forward for any advice! :-)
    JH

    I have the same problem If some one has the solution please email me.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by HM ([email protected]):
    Just tried the 8.1.7_01 instead. The same error. So many people has this problem but no one in Oracle know about this??<HR></BLOCKQUOTE>
    null

  • Error 48: File or folder not found when using photomerge panorama - imac photoshop elements 10

    Any help is appreciated.  Followed the photomerge panorama instructions and got error 48: file or folder not found.....line 16 ...
    using photoshop elements 10 on imac with OSX 10.8.2
    Thx

    Have you recently updated your Operating system? Please try repairing permissions for your hard disk.
    Please check the help document to know more about repairing permissions http://helpx.adobe.com/x-productkb/global/error-licensing-stopped-mac-os.html#main_Solutio n_3__Repair_Disk_Permissions

  • JAXB 1.0 Final: jaxb.properties not found when using custom classloader

    JDK 1.3.1 is being used.
    The scenario:
    1) jaxb jar files, jaxb generated files and application files loaded in default class loader works, however
    2) jaxb jar files, jaxb generated files and application files loaded in a custom class loader generate the following exception:
    javax.xml.bind.JAXBException: Unable to locate jaxb.properties for package XXX
    To demonstrate here are two sample applications: a Launcher app whose job it is to start apps and a sample App1 application who needs JAXB.
    If launch is placed into a jar file named launch.jar and App1 is placed into a jar file named app1.jar (with a JAXB generated package), and both jar files are placed in a directory containing all the JAXB 1.0 jar files (dom, sax, namespace, etc) and the system is started with the following:
    jre\bin\java -cp launch.jar; testLaunch.launch
    the exception occurs.
    By way of comparison, if App1 is started directly with the following:
    jre\bin\java -cp app1.jar;jax-qname.jar;jaxb-xjc.jar;jaxb-ri.jar;jaxb-libs.jar;jaxb-api.jar;dom.jar;sax.jar;jaxp-api.jar;xercesImpl.jar;namespace.jar;ant.jar;xalan.jar testApp.app1
    the exception does not occur.
    Any help would be greatly appreciated.
    package testLaunch;
    import java.net.*;
    import java.io.*;
    public class launch extends javax.swing.JFrame
        private static URLClassLoader app1ClassLoader_; 
        private static Class  app1EntryClass_ = null;
        private static final String app1MainClassName_ = "testApp.app1";
        private Object appObj_ = null;
         static public void main(String args[])
              try {
                System.out.println("Launch Main");               
                new launch();          
                  System.exit(0);
              catch (Throwable t) {
                   t.printStackTrace();
                   System.exit(1);
         public launch()
            if (app1ClassLoader_== null)
                loadAppClassLoader();
            try{
                if (app1EntryClass_ == null)
                    app1EntryClass_ = app1ClassLoader_.loadClass(app1MainClassName_);
                if (app1EntryClass_ == null)
                    System.out.println(app1MainClassName_ + " was not found");
                else
                    appObj_ = app1EntryClass_.newInstance();
            catch(ClassNotFoundException x){
                x.printStackTrace();
            catch(Exception x){
                x.printStackTrace();
        private static void loadAppClassLoader()
            String jarPath = jarPath = System.getProperty("user.dir");
            System.out.println("jar path is: " + jarPath);
            try{
                File jarfile1 = new File(jarPath+File.separator+"app1.jar");
                File jarfile2 = new File(jarPath+File.separator+"dom.jar");
                File jarfile3 = new File(jarPath+File.separator+"jaxp-api.jar");
                File jarfile4 = new File(jarPath+File.separator+"jaxb-api.jar");
                File jarfile5 = new File(jarPath+File.separator+"jaxb-xjc.jar");
                File jarfile6 = new File(jarPath+File.separator+"jaxb-ri.jar");
                File jarfile7 = new File(jarPath+File.separator+"jaxb-libs.jar");
                File jarfile8 = new File(jarPath+File.separator+"jax-qname.jar");
                File jarfile9 = new File(jarPath+File.separator+"sax.jar");
                File jarfile10 = new File(jarPath+File.separator+"xercesImpl.jar");
                File jarfile11 = new File(jarPath+File.separator+"namespace.jar");
                File jarfile12 = new File(jarPath+File.separator+"xalan.jar");
                File jarfile13 = new File(jarPath+File.separator+"ant.jar");
                if (!jarfile1.exists())
                    System.out.println("**ERROR " + jarfile1 + " does not exist!");
                app1ClassLoader_ = new URLClassLoader( new URL[]{jarfile1.toURL(),
                                                                jarfile2.toURL(),
                                                                jarfile3.toURL(),
                                                                jarfile4.toURL(),
                                                                jarfile5.toURL(),
                                                                jarfile6.toURL(),
                                                                jarfile7.toURL(),
                                                                jarfile8.toURL(),
                                                                jarfile9.toURL(),
                                                                jarfile10.toURL(),
                                                                jarfile11.toURL(),
                                                                jarfile12.toURL(),
                                                                jarfile13.toURL()} );
            catch(Exception x){
                x.printStackTrace();
                return;
    package testApp;
    import javax.xml.bind.*; // JAXB classes
    import myGeneratedJAXBFiles;
    public class app1 extends javax.swing.JFrame
         static public void main(String args[])
              try {
                System.out.println("App1 Main");               
                new app1();           
                  System.exit(0);
              catch (Throwable t) {
                   t.printStackTrace();
                   System.exit(1);
         public app1()
            try
                JAXBContext jc_ = JAXBContext.newInstance( "myGeneratedJAXBFiles" );
                System.out.println("Successfully loaded JAXB Context");          
            catch (JAXBException jbe)
                jbe.printStackTrace();

    I'm doing something very similar. In fact my launcher is also stored in launcher.jar. It will start any application on the classpath and load dependencies jars located in the specified directory.
    The first thing you must do is specify the classloader when constructing the jaxb context:
    JAXBContext jc = JAXBContext.newInstance(xmlPackage, getClass().getClassLoader());
    After this I was still raning into the "jaxb.properties not found" exception in some situations. Basically if the class using the jaxb files is located in the same jar as jaxb.properties everything worked fine. However if the class using the jaxb objects was located in a different jar it did not work.
    I had to add the following early in the execution of the application that load the plugins to get things working correctly:
    Thread.currentThread().setContextClassLoader(jarDirClassLoader);
    As far as I can tell JAXB using the Context class loader to find the jaxb.properties file.
    I'm using JAXB 1.1
    I hope this helps!

  • Webutil bean not found when using call_form with no_share_library_data

    Hi,
    I have two Forms modules and i navigate from Form A to Form B using a call_form.
    If i call Form B with NO_SHARE_LIBRARY_DATA param, i get a webutil error: "oracle.forms.webutil.file.filefunctions bean not found"
    If i call it with SHARE_LIBRARY_DATA, there no error and my webutil function works as expected.
    Webutil is used in our application are works well so i don't think that it's webutil config problem.
    Any idea?
    Tx

    Thanks for your answer.
    Now I'am a little bit further with my debugging but it's more strange! forget the share_library_data...
    I start a common form with webutil.pll attached and i will use the Webutil_File.File_Exists function for example
    if i call it in the WNFI or WNBI, i get the error
    if i call it via a push-button WBP for example, it works!
    below the java console ouput when i get the error and after pushing ok on the error
    Loading http://sdp6:7778/sdp-jar_dev/frmwebutil.jar from JAR cache
    Loading http://sdp6:7778/forms/java/frmall_jinit.jar from JAR cache
    RegisterWebUtil - Loading WebUtil Version 10.1.2.2
    Loading http://sdp6:7778/sdp-jar_dev/hst65.jar from JAR cache
    Loading http://sdp6:7778/sdp-jar_dev/sdpimage.jar from JAR cache
    Loading http://sdp6:7778/sdp-jar_dev/host.jar from JAR cache
    Loading http://sdp6:7778/sdp-jar_dev/jacob.jar from JAR cache
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    La version Forms Applet est : 10.1.2.2
    2008-janv.-10 18:02:24.711 WUI[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2008-janv.-10 18:02:24.727 WUI[VBeanCommon.getIPAddress()] 172.22.35.17
    2008-janv.-10 18:02:24.727 WUF[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2008-janv.-10 18:02:24.727 WUF[VBeanCommon.getIPAddress()] 172.22.35.17
    2008-janv.-10 18:02:24.743 WUH[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2008-janv.-10 18:02:24.743 WUH[VBeanCommon.getIPAddress()] 172.22.35.17
    2008-janv.-10 18:02:24.743 WUS[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2008-janv.-10 18:02:24.743 WUS[VBeanCommon.getIPAddress()] 172.22.35.17
    2008-janv.-10 18:02:24.758 WUT[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2008-janv.-10 18:02:24.758 WUT[SessionFunctions.init()] Max Transfer chunk size set to 4048
    2008-janv.-10 18:02:24.758 WUT[VBeanCommon.getIPAddress()] 172.22.35.17
    2008-janv.-10 18:02:24.977 WUO[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2008-janv.-10 18:02:24.977 WUO[VBeanCommon.getIPAddress()] 172.22.35.17
    2008-janv.-10 18:02:24.977 WUL[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2008-janv.-10 18:02:24.977 WUL[VBeanCommon.getIPAddress()] 172.22.35.17
    2008-janv.-10 18:02:24.977 WUB[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2008-janv.-10 18:02:24.977 WUB[VBeanCommon.getIPAddress()] 172.22.35.17
    AFTER PUSH OK on the error
    2008-janv.-10 18:07:12.977 WUI[getProperty()] Getting property WUC_BEAN_VERSION
    2008-janv.-10 18:07:12.977 WUI[getProperty()] Value of WUC_BEAN_VERSION=10.1.2.2
    2008-janv.-10 18:07:12.993 WUT[setProperty()] Setting property WUC_SRV_LOGGING to 0
    2008-janv.-10 18:07:12.993 WUT[setProperty()] Setting property WUC_GET_LOCAL_PROPERTY to syslib.jacob.dll
    2008-janv.-10 18:07:12.993 WUT[getProperty()] Getting property WUC_GET_LOCAL_PROPERTY
    2008-janv.-10 18:07:13.08 WUT[loadSettings()] Local properties file loaded
    2008-janv.-10 18:07:13.08 WUT[getProperty()] Value of WUC_GET_LOCAL_PROPERTY=1.0
    2008-janv.-10 18:07:13.08 WUT[setProperty()] Setting property WUC_GET_LOCAL_PROPERTY to syslib.JNIsharedstubs.dll
    2008-janv.-10 18:07:13.08 WUT[getProperty()] Getting property WUC_GET_LOCAL_PROPERTY
    2008-janv.-10 18:07:13.08 WUT[getProperty()] Value of WUC_GET_LOCAL_PROPERTY=1.0
    2008-janv.-10 18:07:13.08 WUT[setProperty()] Setting property WUC_GET_LOCAL_PROPERTY to syslib.d2kwut60.dll
    2008-janv.-10 18:07:13.08 WUT[getProperty()] Getting property WUC_GET_LOCAL_PROPERTY
    2008-janv.-10 18:07:13.08 WUT[getProperty()] Value of WUC_GET_LOCAL_PROPERTY=1.0
    2008-janv.-10 18:07:13.24 WUB[setProperty()] Setting property WUC_SRV_LOGGING to 0
    AFTER PUSH ON THE BUTTON THAT CALL THE SAME FUNCTION
    2008-janv.-10 18:07:34.758 WUF[setProperty()] Setting property WUF_FILENAME to c:\temp\1.txt
    2008-janv.-10 18:07:34.758 WUF[setProperty()] Setting property WUF_FILE_ATTRIBUTE to 1
    2008-janv.-10 18:07:34.758 WUF[getProperty()] Getting property WUF_FILE_ATTRIBUTE
    2008-janv.-10 18:07:34.758 WUF[getProperty()] Value of WUF_FILE_ATTRIBUTE=TRUE

Maybe you are looking for