<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Webservice Axis2 - JNI Global Section Access in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/webservice-axis2-jni-global-section-access/m-p/4711136#M19062</link>
    <description>We are trying to deploy a web service from a OpenVMS 8.4 box.&lt;BR /&gt;&lt;BR /&gt;The  desired result is to expose the results generated by legacy C and fortran code on the OpenVMS side to a web based client. The web service will use java JNI and retrieve  data from GLOBAL SECTIONS from openVMS according to inputs from the webservice client.&lt;BR /&gt;&lt;BR /&gt;The webservice is hosted on &lt;BR /&gt;OpenVMS8.4 on Alpha,&lt;BR /&gt;Apache Tomcat using AXIS 2 for OpenVMS (Axis2 Version 1.3),&lt;BR /&gt;java version "1.5.0"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The client is developed using NetBeans 6.9 on a windows platform using the WSDL file generated from AXIS2.&lt;BR /&gt;&lt;BR /&gt;What we are able to do:&lt;BR /&gt; &lt;BR /&gt;1. JNI and Global sections:&lt;BR /&gt;           We have working code in java that is successfully able to load a native library (.exe image) and access global section data and output data as desired. No issues when using System.loadLibrary at this point. The .exe image was installed and the loadLibrary used a logical name to this image.&lt;BR /&gt;&lt;BR /&gt;2. Webservices:&lt;BR /&gt;           We are able to create basic webservices hosted from openVMS which do not need to load any native libraries.&lt;BR /&gt;&lt;BR /&gt;What we need:&lt;BR /&gt; &lt;BR /&gt;1. We need to create a web service that is able to successfully load the native libraries  required by the JNI routines in order to access the global section data.&lt;BR /&gt;&lt;BR /&gt;We suspect  out webservice fails during execution of System.loadLibrary("blah");&lt;BR /&gt;What is the default library path?&lt;BR /&gt;&lt;BR /&gt;The Error we run into:&lt;BR /&gt;javax.xml.ws.soap.SOAPFaultException: no EXAMPLE1.exe in java.library.path&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2. How do we package the .aar archive?&lt;BR /&gt;    How to setup AXIS2 properties to point to java.library.path? (currently no value exists for path)&lt;BR /&gt;   Where should the native library reside?&lt;BR /&gt;    How do we link the webservice to this library? &lt;BR /&gt;    Is there anything else we need to add in the services.xml file to point to the library?&lt;BR /&gt;   &lt;BR /&gt;Shifting gears here: Not concerned with the previews issue&lt;BR /&gt;1. Is gSOAP a better solution?&lt;BR /&gt;2. Other alternative solutions to create webservices on openvms with heavy C and Fortran code that need to be accessed.</description>
    <pubDate>Tue, 09 Nov 2010 16:20:45 GMT</pubDate>
    <dc:creator>EEnhcw</dc:creator>
    <dc:date>2010-11-09T16:20:45Z</dc:date>
    <item>
      <title>Webservice Axis2 - JNI Global Section Access</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/webservice-axis2-jni-global-section-access/m-p/4711136#M19062</link>
      <description>We are trying to deploy a web service from a OpenVMS 8.4 box.&lt;BR /&gt;&lt;BR /&gt;The  desired result is to expose the results generated by legacy C and fortran code on the OpenVMS side to a web based client. The web service will use java JNI and retrieve  data from GLOBAL SECTIONS from openVMS according to inputs from the webservice client.&lt;BR /&gt;&lt;BR /&gt;The webservice is hosted on &lt;BR /&gt;OpenVMS8.4 on Alpha,&lt;BR /&gt;Apache Tomcat using AXIS 2 for OpenVMS (Axis2 Version 1.3),&lt;BR /&gt;java version "1.5.0"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The client is developed using NetBeans 6.9 on a windows platform using the WSDL file generated from AXIS2.&lt;BR /&gt;&lt;BR /&gt;What we are able to do:&lt;BR /&gt; &lt;BR /&gt;1. JNI and Global sections:&lt;BR /&gt;           We have working code in java that is successfully able to load a native library (.exe image) and access global section data and output data as desired. No issues when using System.loadLibrary at this point. The .exe image was installed and the loadLibrary used a logical name to this image.&lt;BR /&gt;&lt;BR /&gt;2. Webservices:&lt;BR /&gt;           We are able to create basic webservices hosted from openVMS which do not need to load any native libraries.&lt;BR /&gt;&lt;BR /&gt;What we need:&lt;BR /&gt; &lt;BR /&gt;1. We need to create a web service that is able to successfully load the native libraries  required by the JNI routines in order to access the global section data.&lt;BR /&gt;&lt;BR /&gt;We suspect  out webservice fails during execution of System.loadLibrary("blah");&lt;BR /&gt;What is the default library path?&lt;BR /&gt;&lt;BR /&gt;The Error we run into:&lt;BR /&gt;javax.xml.ws.soap.SOAPFaultException: no EXAMPLE1.exe in java.library.path&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2. How do we package the .aar archive?&lt;BR /&gt;    How to setup AXIS2 properties to point to java.library.path? (currently no value exists for path)&lt;BR /&gt;   Where should the native library reside?&lt;BR /&gt;    How do we link the webservice to this library? &lt;BR /&gt;    Is there anything else we need to add in the services.xml file to point to the library?&lt;BR /&gt;   &lt;BR /&gt;Shifting gears here: Not concerned with the previews issue&lt;BR /&gt;1. Is gSOAP a better solution?&lt;BR /&gt;2. Other alternative solutions to create webservices on openvms with heavy C and Fortran code that need to be accessed.</description>
      <pubDate>Tue, 09 Nov 2010 16:20:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/webservice-axis2-jni-global-section-access/m-p/4711136#M19062</guid>
      <dc:creator>EEnhcw</dc:creator>
      <dc:date>2010-11-09T16:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Webservice Axis2 - JNI Global Section Access</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/webservice-axis2-jni-global-section-access/m-p/4711137#M19063</link>
      <description>EEnhcw,&lt;BR /&gt;&lt;BR /&gt;I have no experience with Tomcat and Axis2 on VMS, but I have some experience with a similar exception when calling System.loadLibrary().&lt;BR /&gt;&lt;BR /&gt;In my case I need to add a parameter when starting Java (it was started from a C program with JNI), but I think that you can add the parameter to the java command. The parameter sets the library path and must be a UNIX name specification. So if your shareable exe resides on dev:[dir.subdir].&lt;BR /&gt;&lt;BR /&gt;-Djava.library.path=/dev/dir/subdir/&lt;BR /&gt;&lt;BR /&gt;The logical pointing to the exe was also defined.&lt;BR /&gt;&lt;BR /&gt;I have no Tomcat installed on VMS, so I have no clue where to put the parameter. Search the Tomcat startup procedure to see where Tomcat is started with the java command. Looking to the Linux startup procedure I can see that you have two symbols in which you can set aditional parameters: JAVA_OPTS and CATALINA_OPTS when starting the Tomcat main class org.apache.catalina.startup.Bootstrap.&lt;BR /&gt;&lt;BR /&gt;Hope that helps&lt;BR /&gt;&lt;BR /&gt;Bojan</description>
      <pubDate>Tue, 09 Nov 2010 18:27:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/webservice-axis2-jni-global-section-access/m-p/4711137#M19063</guid>
      <dc:creator>Bojan Nemec</dc:creator>
      <dc:date>2010-11-09T18:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Webservice Axis2 - JNI Global Section Access</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/webservice-axis2-jni-global-section-access/m-p/4711138#M19064</link>
      <description>I do not have all my documentation with me as i am on the road, but can, if necessary, dig out the necessay bits and pieces to make what you are trying to do with Tomcat and Axis.&lt;BR /&gt;However, if you do not already have a Java environment set up on VMS (and Integrity would be much better if Java is the was you wish to go), then I do suggest using gSOAP as:&lt;BR /&gt;1. it is pure C, i.e., no Java required and has plugins for Apace and WASD&lt;BR /&gt;&lt;BR /&gt;2. very fast (no, I will not say here how much faster, but it is significant)&lt;BR /&gt;&lt;BR /&gt;3. since it is native code, calling your existing modules to access the global section data will be very easy&lt;BR /&gt;&lt;A href="http://gsoaponopenvms.blogspot.com/" target="_blank"&gt;http://gsoaponopenvms.blogspot.com/&lt;/A&gt; is a place to start.&lt;BR /&gt;Should you have further questions, do send an email to the addresses given on the above URL page.</description>
      <pubDate>Wed, 10 Nov 2010 12:20:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/webservice-axis2-jni-global-section-access/m-p/4711138#M19064</guid>
      <dc:creator>John Apps</dc:creator>
      <dc:date>2010-11-10T12:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Webservice Axis2 - JNI Global Section Access</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/webservice-axis2-jni-global-section-access/m-p/4711139#M19065</link>
      <description>Bojan,&lt;BR /&gt;Thanks for the reply&lt;BR /&gt;We tried setting the library path using the format you suggested in CATALINA_OPTS, however we are still getting the same results. The library path in axis is still blank. &lt;BR /&gt;</description>
      <pubDate>Wed, 10 Nov 2010 16:09:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/webservice-axis2-jni-global-section-access/m-p/4711139#M19065</guid>
      <dc:creator>EEnhcw</dc:creator>
      <dc:date>2010-11-10T16:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Webservice Axis2 - JNI Global Section Access</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/webservice-axis2-jni-global-section-access/m-p/4711140#M19066</link>
      <description>John,&lt;BR /&gt;Thanks for the reply. &lt;BR /&gt;&lt;BR /&gt;Would you mind sending documentation for both? We actually emailed you last week about gSOAP. We currently have gSOAP installed and are in the process of getting it functional. &lt;BR /&gt;&lt;BR /&gt;Do you have any examples on how to create a web interface for the client using gSOAP?</description>
      <pubDate>Wed, 10 Nov 2010 16:09:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/webservice-axis2-jni-global-section-access/m-p/4711140#M19066</guid>
      <dc:creator>EEnhcw</dc:creator>
      <dc:date>2010-11-10T16:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Webservice Axis2 - JNI Global Section Access</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/webservice-axis2-jni-global-section-access/m-p/4711141#M19067</link>
      <description>EEnhcw,&lt;BR /&gt;&lt;BR /&gt;Prhaps you can try to change the System.loadLibrary method to the System.load() method. This method takes a complete path to the shareable image. I dont know how the path must be written (UNIX od VMS format), but you probably can put a logical name pointing to the image.&lt;BR /&gt;&lt;BR /&gt;Bojan</description>
      <pubDate>Wed, 10 Nov 2010 16:44:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/webservice-axis2-jni-global-section-access/m-p/4711141#M19067</guid>
      <dc:creator>Bojan Nemec</dc:creator>
      <dc:date>2010-11-10T16:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Webservice Axis2 - JNI Global Section Access</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/webservice-axis2-jni-global-section-access/m-p/4711142#M19068</link>
      <description>@EEnhcw &lt;BR /&gt;  Could you please send a reminder to my Gmail account on this? I am onsite with a customer and tend to forget things...I also have no idea who EEnhcw is and cannot translate into the person who requested a gSOAP kit - sorry!&lt;BR /&gt;&lt;BR /&gt;Cheers, John</description>
      <pubDate>Wed, 10 Nov 2010 23:17:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/webservice-axis2-jni-global-section-access/m-p/4711142#M19068</guid>
      <dc:creator>John Apps</dc:creator>
      <dc:date>2010-11-10T23:17:57Z</dc:date>
    </item>
  </channel>
</rss>

