This discussion is archived
1 2 Previous Next 20 Replies Latest reply: Jan 4, 2013 2:34 PM by EJP RSS

Deploying a Java CORBA application in Web Start

AnjanN Newbie
Currently Being Moderated
I am a novice to Java Web Start. I have a sample Client-Server application with CORBA as a middle ware. The front end (Client) is in Java and back end (Server) is in C++. The application is run and tested with jar and batch file. Now I want to deploy that application in Java Web Start and JNLP.
I have configured the same by creating a JNLP file and signed jars.

Now as all knows any CORBA application needs a domain file ( .cfg ) and some org.omg classes to communicate with the server by RPC.

I am stuck with how to specify these domain file name, path, CORBA classes etc in my JNLP. Not even that, I can't understand exactly what configuration will make the CORBA apps work properly in Java Web Start so that it can communicate with the server as well. All the Orbix jars's, IDL Stub jars are present and signed. I am giving my JNLP file as a reference. Actually I have tried adding these domain files and CORBA classes as parameters. But as usual it is not working and after running the JNLP the Java console suddenly gets disappeared.

CORBADemo.jnlp
--------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://172.28.1.139:8400/Test_CORBA_App" href="CORBADemo.jnlp">
<information>
     <title>CORBA Demo</title>
     <vendor>Ushacomm</vendor>
</information>

<resources>
     <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
     <jar href="lib_6.3-Signed/UI_Fall_Test63.jar" main="true" download="eager" />
     <jar href="lib_6.3-Signed/ConfigurationService.jar" download="eager" />
     <jar href="lib_6.3-Signed/IDLStub.jar" download="eager" />
     <jar href="lib_6.3-Signed/art-rt.jar" download="eager" />
     <jar href="lib_6.3-Signed/art.jar" download="eager" />
     <jar href="lib_6.3-Signed/atli2-rt.jar" download="eager" />
     <jar href="lib_6.3-Signed/atli2.jar" download="eager" />
     <jar href="lib_6.3-Signed/atli2_ip-rt.jar" download="eager" />
     <jar href="lib_6.3-Signed/atli2_ip.jar" download="eager" />
     <jar href="lib_6.3-Signed/atli2_ip_cio-rt.jar" download="eager" />
     <jar href="lib_6.3-Signed/atli2_ip_cio.jar" download="eager" />
     <jar href="lib_6.3-Signed/atli2_ip_nio-rt.jar" download="eager" />
     <jar href="lib_6.3-Signed/atli2_ip_nio.jar" download="eager" />
     <jar href="lib_6.3-Signed/atli2_tls-rt.jar" download="eager" />
     <jar href="lib_6.3-Signed/atli2_tls.jar" download="eager" />
     <jar href="lib_6.3-Signed/codeset.jar" download="eager" />
     <jar href="lib_6.3-Signed/concurrency-rt.jar" download="eager" />
     <jar href="lib_6.3-Signed/concurrency.jar" download="eager" />
     <jar href="lib_6.3-Signed/ifc-rt.jar" download="eager" />
     <jar href="lib_6.3-Signed/ifc.jar" download="eager" />
     <jar href="lib_6.3-Signed/iiop.jar" download="eager" />
     <jar href="lib_6.3-Signed/java_management_logging-rt.jar" download="eager" />
     <jar href="lib_6.3-Signed/java_mgmt_plugin-rt.jar" download="eager" />
     <jar href="lib_6.3-Signed/java_portable_interceptor-rt.jar" download="eager" />
     <jar href="lib_6.3-Signed/management-rt.jar" download="eager" />
     <jar href="lib_6.3-Signed/management.jar" download="eager" />
     <jar href="lib_6.3-Signed/mgmt.jar" download="eager" />
     <jar href="lib_6.3-Signed/omg-rt.jar" download="eager" />
     <jar href="lib_6.3-Signed/omg.jar" download="eager" />
     <jar href="lib_6.3-Signed/perf_logging.jar" download="eager" />
     <jar href="lib_6.3-Signed/portable_interceptor.jar" download="eager" />
     <property name="Dorg.omg.CORBA.ORBClass" value="com.iona.corba.art.artimpl.ORBImpl"/>
     <property name="Dorg.omg.CORBA.ORBSingletonClass" value="com.iona.corba.art.artimpl.ORBSingleton"/>
     <property name="ORBdomain_name" value="VOIAMODOMAINNEW"/>
</resources>

<application-desc name="CORBADemo Demo Application" main-class="Launch" width="300" height="300">
</application-desc>

<update check="background"/>

<argument>1</argument>

<security>
     <all-permissions/>
</security>
</jnlp>
.
  • 1. Re: Deploying a Java CORBA application in Web Start
    EJP Guru
    Currently Being Moderated
    Now as all knows any CORBA application needs a domain file ( .cfg )
    News to me.
    and some org.omg classes to communicate with the server by RPC.
    Provided with the JDK.
    I am stuck with how to specify these domain file name, path, CORBA classes etc in my JNLP.
    The .cfg file is just a file and the classes are provided with the JDK.
    Not even that, I can't understand exactly what configuration will make the CORBA apps work properly in Java Web Start so that it can communicate with the server as well. All the Orbix jars's,
    Orbix?
    But as usual it is not working
    But as usual the actual error message, exception, stack trace, etc is not provided so we are left guessing as to what exactly you mean by 'not working'.
  • 2. Re: Deploying a Java CORBA application in Web Start
    AnjanN Newbie
    Currently Being Moderated
    Actually in my case no error message is appearing....

    Let me describe you the actual scenario so that you could understand better. My sample application is a CORBA application with java at the client tier. When I run the apps from jar file using a batch file then the application is running fine, it makes a remote server call fetches data etc etc. I wanted that application to deploy in Java Web Start. I am posting the batch file that I used earlier to run the client from batch file.

    runJar.bat
    --------------------
    C:\jdk1.6.0_14\bin\java -Xms64M -Xmx512M -Dorg.omg.CORBA.ORBClass=com.iona.corba.art.artimpl.ORBImpl -Dorg.omg.CORBA.ORBSingletonClass=com.iona.corba.art.artimpl.ORBSingleton -jar lib_6.3\UI_Fall_Test63.jar -ORBdomain_name VOIAMODOMAINNEW 1

    pause

    As you can see the following things are specified in the batch file :

    1. JDK path : ( C:\jdk1.6.0_14\bin\java )
    2. Java VM arguments for max and min memory : ( -Xms64M -Xmx512M )
    3. ORB class name: ( -Dorg.omg.CORBA.ORBClass=com.iona.corba.art.artimpl.ORBImpl )
    4. ORB singleton class name : ( -Dorg.omg.CORBA.ORBSingletonClass=com.iona.corba.art.artimpl.ORBSingleton )
    5. Jar file name to run : ( -jar lib_6.3\UI_Fall_Test63.jar )
    6. Domain Name : ( -ORBdomain_name VOIAMODOMAINNEW )
    7. Main function args : ( 1 )


    All the libraries ( Orbix jar as well as other third party libs ) are placed in my lib_6.3 folder, as you can see I specified in #Point5 the jar location directory is lib_6.3. Similarily in web start I have signed all the jars by "jarsigner" and put them in lib_6.3_Signed ( as you saw earlier in my posted JNLP file )

    My question is exactly what do I need to do parallel in JNLP to specify the arguments, domain name, CORBA classes that I specified in the batch file.

    As I have posted previously in the JNLP file, I have tried to specify these domain name, CORBA classes as property, and argument (as you can see clearly in my posted JNLP file). But the stuff is not running fine. Just after running the application the console disappears and exactly that's the problem. That's why I asked can anybody tell how to configure any such CORBA application in Web Start which requires domain file and CORBA classes during start up.
  • 3. Re: Deploying a Java CORBA application in Web Start
    EJP Guru
    Currently Being Moderated
    Your JNLP looks OK to me although I am wondering whether you really heed to use the Orbix ORB at all. the one in the JDK should work just as well. Your application is exiting for a reason. Log that reason and post it here.
  • 4. Re: Deploying a Java CORBA application in Web Start
    AnjanN Newbie
    Currently Being Moderated
    EJP wrote:
    Your JNLP looks OK to me although I am wondering whether you really heed to use the Orbix ORB at all. the one in the JDK should work just as well. Your application is exiting for a reason. Log that reason and post it here.
    After scrutinizing thoroughly I found that some error is occurring when I am loading the URL in Chrome. An error dialog is displayed and in the browser the Launch button is displayed. The error dialog and its detailed exception is below.

    ----------------------------------------------------------------------------------------------------------------------------------------
    Error Dialog

    General Exception

    Name : <applet error>
    ExitException: JNLP not an applet, nor a JavaFX application
    ----------------------------------------------------------------------------------------------------------------------------------------

    Error Details

    ExitException[ 3]JNLPException[category: Launch File Error : Exception: java.lang.Exception: JNLP not an applet, nor a JavaFX application : LaunchDesc:
    <jnlp spec="1.0+" codebase="http://172.28.1.139:8400/Test_CORBA_App" href="CORBADemo.jnlp">
      <information>
        <title>CORBA Demo</title>
        <vendor>Ushacomm</vendor>
      </information>
      <resources>
        <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
        <jar href="lib_6.3-Signed/UI_Fall_Test63.jar" main="true" download="eager"/>
        <jar href="lib_6.3-Signed/ConfigurationService.jar" download="eager"/>
        <jar href="lib_6.3-Signed/IDLStub.jar" download="eager"/>
        <jar href="lib_6.3-Signed/art-rt.jar" download="eager"/>
        <jar href="lib_6.3-Signed/art.jar" download="eager"/>
        <jar href="lib_6.3-Signed/atli2-rt.jar" download="eager"/>
        <jar href="lib_6.3-Signed/atli2.jar" download="eager"/>
        <jar href="lib_6.3-Signed/atli2_ip-rt.jar" download="eager"/>
        <jar href="lib_6.3-Signed/atli2_ip.jar" download="eager"/>
        <jar href="lib_6.3-Signed/atli2_ip_cio-rt.jar" download="eager"/>
        <jar href="lib_6.3-Signed/atli2_ip_cio.jar" download="eager"/>
        <jar href="lib_6.3-Signed/atli2_ip_nio-rt.jar" download="eager"/>
        <jar href="lib_6.3-Signed/atli2_ip_nio.jar" download="eager"/>
        <jar href="lib_6.3-Signed/atli2_tls-rt.jar" download="eager"/>
        <jar href="lib_6.3-Signed/atli2_tls.jar" download="eager"/>
        <jar href="lib_6.3-Signed/codeset.jar" download="eager"/>
        <jar href="lib_6.3-Signed/concurrency-rt.jar" download="eager"/>
        <jar href="lib_6.3-Signed/concurrency.jar" download="eager"/>
        <jar href="lib_6.3-Signed/ifc-rt.jar" download="eager"/>
        <jar href="lib_6.3-Signed/ifc.jar" download="eager"/>
        <jar href="lib_6.3-Signed/iiop.jar" download="eager"/>
        <jar href="lib_6.3-Signed/java_management_logging-rt.jar" download="eager"/>
        <jar href="lib_6.3-Signed/java_mgmt_plugin-rt.jar" download="eager"/>
        <jar href="lib_6.3-Signed/java_portable_interceptor-rt.jar" download="eager"/>
        <jar href="lib_6.3-Signed/management-rt.jar" download="eager"/>
        <jar href="lib_6.3-Signed/management.jar" download="eager"/>
        <jar href="lib_6.3-Signed/mgmt.jar" download="eager"/>
        <jar href="lib_6.3-Signed/omg-rt.jar" download="eager"/>
        <jar href="lib_6.3-Signed/omg.jar" download="eager"/>
        <jar href="lib_6.3-Signed/perf_logging.jar" download="eager"/>
        <jar href="lib_6.3-Signed/portable_interceptor.jar" download="eager"/>
        <property name="Dorg.omg.CORBA.ORBClass" value="com.iona.corba.art.artimpl.ORBImpl"/>
        <property name="Dorg.omg.CORBA.ORBSingletonClass" value="com.iona.corba.art.artimpl.ORBSingleton"/>
        <property name="ORBdomain_name" value="VOIAMODOMAINNEW"/>
      </resources>
      <application-desc name="CORBADemo Demo Application" main-class="Launch" width="300" height="300"/>
      <update check="background"/>
      <argument>1</argument>
      <security>
        <all-permissions/>
      </security>
    </jnlp> ]
         at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    ----------------------------------------------------------------------------------------------------------------------------------------

    When the "Launch" button is clicked the JNLP file is downloaded. After running the JNLP file the scenarios I described in previous posts are happening. Some of my prints (that I gave in application by 'System.out.println' ) is displayed in the console and suddenly the console gets disappeared.

    It might be so that there is some problem in the index.html file I'm using. So I am posting my index.html file.


    index.html
    ------------------
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <TITLE> New Document </TITLE>
    <META NAME="Generator" CONTENT="EditPlus">
    <META NAME="Author" CONTENT="">
    <META NAME="Keywords" CONTENT="">
    <META NAME="Description" CONTENT="">
    </HEAD>

    <BODY>
    <script src="http://www.java.com/js/deployJava.js"></script>
    <script>
    // using JavaScript to get location of JNLP file relative to HTML page
    var dir = location.href.substring(0,location.href.lastIndexOf('/')+1);
    var url = dir + "CORBADemo.jnlp";
    deployJava.createWebStartLaunchButton(url, '1.6.0');

              *var attributes = { code:'Test_CORBA_App.Launch',  width:710, height:540} ;*
              *var parameters = {jnlp_href: 'CORBADemo.jnlp'} ;*
              deployJava.runApplet(attributes, parameters, '1.6');

              deployJava.setInstallerType('kernel');
         deployJava.setAdditionalPackages('javax.swing, javax.xml'); //Include any required packages as shown below
    </script>
    </BODY>
    </HTML>
    -----------------------------------------------------------------------------------------------------------------------------------

    In the index.html the bolded lines denotes:

    1. attributes : code:'Test_CORBA_App.Launch' i.e My applications main file containing main() method
    2. parameters : jnlp_href: 'CORBADemo.jnlp' i.e My JNLP file name

    I found these code from internet where some sample was given. I don't have clear absolute understanding on these things. Pls review the stuff.


    One thing worth mentioning... Thanks a lot for quick replying....
  • 5. Re: Deploying a Java CORBA application in Web Start
    EJP Guru
    Currently Being Moderated
    As it's an application, not an applet, why are you calling runApplet()?
  • 6. Re: Deploying a Java CORBA application in Web Start
    AnjanN Newbie
    Currently Being Moderated
    So will I replace the line

    deployJava.runApplet(attributes, parameters, '1.6');
    with
    deployJava.runApplication(attributes, parameters, '1.6');

    Are the rest things all right.... Kindly post some sample code which I need to do

    Edited by: AnjanN on Jan 2, 2013 12:17 PM
  • 7. Re: Deploying a Java CORBA application in Web Start
    EJP Guru
    Currently Being Moderated
    So will I replace the line
    Do that.
    Are the rest things all right
    I've already said that they look OK but only your test will tell.
    Kindly post some sample code which I need to do
    Request denied. This is a forum, not a paid help desk.
  • 8. Re: Deploying a Java CORBA application in Web Start
    AnjanN Newbie
    Currently Being Moderated
    Ok, now I modified my index.html file like this... I took reference from the oracle documentation. It seems pretty smarter and simple.

    http://docs.oracle.com/javase/tutorial/deployment/webstart/deploying.html

    index.html

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <TITLE> New Document </TITLE>
    <META NAME="Generator" CONTENT="EditPlus">
    <META NAME="Author" CONTENT="">
    <META NAME="Keywords" CONTENT="">
    <META NAME="Description" CONTENT="">
    </HEAD>

    <BODY>
    <script src="http://www.java.com/js/deployJava.js"></script>
    <script>
              // using JavaScript to get location of JNLP file relative to HTML page
              var dir = location.href.substring(0,location.href.lastIndexOf('/')+1);
         var url = dir + "CORBADemo.jnlp";
         deployJava.createWebStartLaunchButton(url, '1.6.0');
    </script>
    </BODY>
    </HTML>

    ---------------------------------------------------------------------------------------------------


    Now the error dialog is not displaying. The launch button displayed properly. But the same problem again. After clicking the launch button jnlp downloaded in desktop. After running the jnlp, web start console disappears at a particular point.
    After investigating I found that in my application it is giving the prints before resolving the reference for CORBA Naming Service. Just while attempting to resolve "NamingService" and executing this code the problem occurs I presume.

    org.omg.CORBA.Object initNCRef = i_objORB.resolve_initial_references("NameService"); -->"i_objORB" is "org.omg.CORBA.ORB" type object.

    In the CORBA application resolving NamingService for ORB is facilitated by the following class which I used to specify in the batch file. You can see the batch file in my previous posts.

    -Dorg.omg.CORBA.ORBClass=com.iona.corba.art.artimpl.ORBImpl
  • 9. Re: Deploying a Java CORBA application in Web Start
    EJP Guru
    Currently Being Moderated
    There has to be an exception. CORBA exceptions all extend RuntimeException so you may not be catching it. Catch it, print it, log it, post it here.
  • 10. Re: Deploying a Java CORBA application in Web Start
    AnjanN Newbie
    Currently Being Moderated
    After forwarding the web start log to a log file I found some exception which I am posting here.

    --------------------------------------------------------------------------------------------------------------------------------
    <record>
    <date>2013-01-02T17:59:42</date>
    <millis>1357129782890</millis>
    <sequence>18</sequence>
    <logger>com.sun.deploy</logger>
    <level>FINE</level>
    <class>com.sun.deploy.trace.LoggerTraceListener</class>
    <method>print</method>
    <thread>10</thread>
    <message>Trying to Resolve CORBA NameService...

    </message>
    </record>
    <record>
    <date>2013-01-02T17:59:43</date>
    <millis>1357129783828</millis>
    <sequence>20</sequence>
    <logger>com.sun.deploy</logger>
    <level>FINE</level>
    <class>com.sun.deploy.trace.LoggerTraceListener</class>
    <method>print</method>
    <thread>10</thread>
    <message>Jan 2, 2013 5:59:43 PM com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl &lt;init&gt;

    WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: 172.28.1.139; port: 900"

    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
         at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(Unknown Source)
         at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(Unknown Source)
         at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.&lt;init&gt;(Unknown Source)
         at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.&lt;init&gt;(Unknown Source)
         at com.sun.corba.se.impl.transport.SocketOrChannelContactInfoImpl.createConnection(Unknown Source)
         at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(Unknown Source)
         at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.request(Unknown Source)
         at com.sun.corba.se.impl.resolver.BootstrapResolverImpl.invoke(Unknown Source)
         at com.sun.corba.se.impl.resolver.BootstrapResolverImpl.resolve(Unknown Source)
         at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(Unknown Source)
         at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(Unknown Source)
         at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(Unknown Source)
         at com.sun.corba.se.impl.orb.ORBImpl.resolve_initial_references(Unknown Source)
         at common.JCUICallMain.init(JCUICallMain.java:405)
         at common.JCUICallMain.&lt;init&gt;(JCUICallMain.java:166)
         at Launch.main(Launch.java:10)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.sun.javaws.Launcher.executeApplication(Unknown Source)
         at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
         at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

    Caused by: java.net.ConnectException: Connection refused: connect
         at sun.nio.ch.Net.connect(Native Method)
         at sun.nio.ch.SocketChannelImpl.connect(Unknown Source)
         at java.nio.channels.SocketChannel.open(Unknown Source)
         at com.sun.corba.se.impl.transport.DefaultSocketFactoryImpl.createSocket(Unknown Source)

         ... 23 more

    </message>
    </record>
    --------------------------------------------------------------------------------------------------------------------------------

    My java code is something like this.
    System.out.println("Trying to Resolve CORBA NameService...");
    org.omg.CORBA.Object initNCRef = i_objORB.resolve_initial_references(PARAM_NAMESERVICE);
    System.out.println("Resolve RootContext...");


    As you can see from the log the exception is arising after the print which I have bolded in the log.
  • 11. Re: Deploying a Java CORBA application in Web Start
    gimbal2 Guru
    Currently Being Moderated
    WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: 172.28.1.139; port: 900"
    Odd to pass that as a warning, seems like a pretty critical failure to me. "Cannot connect".

    Are you sure port 900 is correct? Firewall in the way perhaps? The server is actually running? It is allowing connections from (outside?) clients?
  • 12. Re: Deploying a Java CORBA application in Web Start
    EJP Guru
    Currently Being Moderated
    WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: 172.28.1.139; port: 900
    So the required orbd isn't running on that host:port.
  • 13. Re: Deploying a Java CORBA application in Web Start
    AnjanN Newbie
    Currently Being Moderated
    *@ gimbal2 and EJP :*

    The firewall is present and allowed to access apps. When I am running the jar of my application from batch file then everything is running fine. The CORBA Server is a remote RHEL5 (Enterprise Linux 5) machine whose 'IP' and 'Hostname' is specified in *"C:\WINDOWS\system32\drivers\etc\hosts"* file. Server is running fine and after starting the Client the Server side remote method is invoked. Data fetched properly and everything is working like a charm.

    When running from batch (.bat) file using jar My applications folder hierarchy is something like this.

    Test_CORBA_App
    ------+config ( contains resources file and domain file )
    ------+lib_6.3 ( contains all Jars)
    ------+log ( will contaiin the generated log files )
    -------runCORBA_App.bat ( the batch file I am running )

    As depicted above the folder hierarchy, my domain file resides in "config" folder. The contents of the batch file are as follows :

    runCORBA_App.bat
    -----------------------------------------------------------------------------
    C:\jdk1.6.0_14\bin\java -Xms64M -Xmx512M -Dorg.omg.CORBA.ORBClass=com.iona.corba.art.artimpl.ORBImpl -Dorg.omg.CORBA.ORBSingletonClass=com.iona.corba.art.artimpl.ORBSingleton -jar lib_6.3\UI_Fall_Test63.jar -ORBdomain_name VOIAMODOMAINNEW 1
    pause

    The following things are specified in the batch file :

    1. JDK path : ( C:\jdk1.6.0_14\bin\java )
    2. Java VM arguments for max and min memory : ( -Xms64M -Xmx512M )
    3. ORB class name: ( -Dorg.omg.CORBA.ORBClass=com.iona.corba.art.artimpl.ORBImpl )
    4. ORB singleton class name : ( -Dorg.omg.CORBA.ORBSingletonClass=com.iona.corba.art.artimpl.ORBSingleton )
    5. Jar file name to run : ( -jar lib_6.3\UI_Fall_Test63.jar )
    6. Domain Name : ( -ORBdomain_name VOIAMODOMAINNEW )
    7. Main function args : ( 1 )

    I am trying to deploy this simple CORBA application in Java Web Start and JNLP. I kept this in my tomcat server web apps. The folder hierarchy is as follows :

    tomcat
    ---+ bin
    ---+ conf
    ---+ ..
    ---+ ..
    ---+ ..
    ---_ webapps
    ----------+ host-manager
    ----------+ manager
    ----------+ ..
    ----------+ ..
    ----------_ Test_CORBA_App
    -------------------+ config
    -------------------+ lib_6.3
    -------------------+ lib_6.3-Signed
    -------------------+ log
    --------------------CORBADemo.jnlp (.jnlp file)
    --------------------index.html (.html file)

    As you can see I maintained the same folder structure as it was when running from batch file. The jars I am using is signed and kept in lib_6.3-Signed folder.

    My updated "CORBADemo.jnlp" is :

    CORBADemo.jnlp
    --------------------------------------------------------------------------------------------------------------
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="http://172.28.1.139:8400/Test_CORBA_App" href="CORBADemo.jnlp">
    <information>
         <title>CORBA Demo</title>
         <vendor>Ushacomm</vendor>
    </information>

    <resources>
         <j2se version="1.6" href="http://java.sun.com/products/autodl/j2se" java-vm-args="-Xms64M -Xmx512M 1" />
         <jar href="lib_6.3-Signed/UI_Fall_Test63.jar" main="true" download="eager" />
         <jar href="lib_6.3-Signed/ConfigurationService.jar" download="eager" />
         <jar href="lib_6.3-Signed/IDLStub.jar" download="eager" />
         <jar href="lib_6.3-Signed/art-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/art.jar" download="eager" />
         <jar href="lib_6.3-Signed/atli2-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/atli2.jar" download="eager" />
         <jar href="lib_6.3-Signed/atli2_ip-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/atli2_ip.jar" download="eager" />
         <jar href="lib_6.3-Signed/atli2_ip_cio-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/atli2_ip_cio.jar" download="eager" />
         <jar href="lib_6.3-Signed/atli2_ip_nio-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/atli2_ip_nio.jar" download="eager" />
         <jar href="lib_6.3-Signed/atli2_tls-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/atli2_tls.jar" download="eager" />
         <jar href="lib_6.3-Signed/codeset.jar" download="eager" />
         <jar href="lib_6.3-Signed/concurrency-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/concurrency.jar" download="eager" />
         <jar href="lib_6.3-Signed/ifc-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/ifc.jar" download="eager" />
         <jar href="lib_6.3-Signed/iiop.jar" download="eager" />
         <jar href="lib_6.3-Signed/java_management_logging-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/java_mgmt_plugin-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/java_portable_interceptor-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/management-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/management.jar" download="eager" />
         <jar href="lib_6.3-Signed/mgmt.jar" download="eager" />
         <jar href="lib_6.3-Signed/omg-rt.jar" download="eager" />
         <jar href="lib_6.3-Signed/omg.jar" download="eager" />
         <jar href="lib_6.3-Signed/perf_logging.jar" download="eager" />
         <jar href="lib_6.3-Signed/portable_interceptor.jar" download="eager" />
         <property name="Dorg.omg.CORBA.ORBClass" value="com.iona.corba.art.artimpl.ORBImpl"/>
         <property name="Dorg.omg.CORBA.ORBSingletonClass" value="com.iona.corba.art.artimpl.ORBSingleton"/>
         <property name="ORBdomain_name" value="VOIAMODOMAINNEW"/>
    </resources>

    <application-desc name="CORBADemo Demo Application" main-class="Launch" width="300" height="300">
    </application-desc>

    <update check="background"/>

    <argument>1</argument>

    <security>
         <all-permissions/>
    </security>
    </jnlp>
    ----------------------------------------------------------------------------------------------------------------------------------

    N.B
    *1. I am running the Tomcat server in my own machine on port 8400 ( for sure, as I have deployed many .war files using this tomcat and all worked ). And using the URL below running the WebStart application.*
    *2. I am running the JNLP from my own machine.*
    *3. CORBA server is running on a remote RHEL 5 machine as I mentioned before also.*

    URL : http://<My Machine IP>:8400/Test_CORBA_App/

    As desired the Web Start application will make a call to the remote CORBA server on RHEL5 machine by initializing the ORB and resolving the CORBA NamingService. But exception is occurring as I posted in previous post i.e exception while resolving NamingService.

    Now my query is whether the domain file ( DOMAIN.cfg ) is reading/ accessing properly from my machine while running the JNLP or not. Because I presume in Java Web Start special attention is required to read any .cfg file. If everything is fine why the error is occurring.

    *@ EJP :* The ORB is desired to run and running on the CORBA Server remote macine i.e RHEL5 machine, because from batch file it is working fine.

    Is it so that I need to run the Tomcat Web Server and CORBA Server from the same machine.
  • 14. Re: Deploying a Java CORBA application in Web Start
    AnjanN Newbie
    Currently Being Moderated
    I think the remote server is not detected when accessing through JNLP. Thats why it is thinking the ORB is not running. Is there any way out so that I can specify the remote server's IP and Hostname in the JNLP file as a property.

    Somehow Like :
    *<property name="remoteIP" value="172.58.198.117"/>*
    *<property name="hostname" value="rhel5"/>*
1 2 Previous Next

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points