Java App Deploy Axis in Unix/Linux OS to call an external WService

Hi!
I would really appreciate some help in this matter.
I'm developing an application in Java to call a remote .Net Web Service from probably Unix/Linux/Windows 2000/2003 Operating System.
My question for you is, what requirements do I need to install before I'm able to call a remote web service from Unix/Linux?
I would like to keep things as simple as possible. The less software I install the better.
I'm also considering in using c++ instead of Java if the solution is more simpler.
Thanks

I reply to myself, if there's someone interested....
So far, I' ve found 3 ways to approach this issue:
1) OpenSSH:
Install an OpenSSH server on WIN side.
On LINUX side, write a script that opens an OpenSSH transaction and then call the executable; this script is what I call from Runtime.getRuntime().exec()This way, the executable is executed on WIN.
2) Wine (Windows emulator for LINUX)
Install WINE on LINUX side.
Make the executable reachable from LINUX to WIN side (copy/paste or mount the folder) and call Runtime.getRuntime.exec("wine MYEXE.EXE").
This way, the executable is executed on LINUX (you need to make all DLLs reachable)
3) RMI
Write a RMI server as "exe invoker" and deploy it on WIN side.
Then, replace the portion of code that calls the executable with an RMI client that invoke the RMI server.
This way, the executable is executed on WIN.
Finally, I chose this third way.

Similar Messages

  • Running a Java App like a service in linux and not closing with window

    I know its not really a question i should ask you but thought you might have a quick answer for me, I have trying to running a small java application on one of the servers. I want it to run almost like a service, what i mean is i dont want the application to end when the terminal session is ended. So i thought i should put an entry into the /etc/rc.local file as follows (Final Line):
    cd /home/bluepoint/Teamselect_ServerApp_v1.0/bin/
    java Server
    #!/bin/sh
    # This script will be executed *after* all the other init scripts.
    # You can put your own initialization stuff in here if you don't
    # want to do the full Sys V style init stuff.
    touch /var/lock/subsys/local
    /home/bluepoint/kmyfirewall.sh
    su - bluepoint "/usr/local/tomcat/jakarta-tomcat-5.0.28/bin/startup.sh"
    cd /home/bluepoint/startme.sh
    As you will see it call a shell script which contains only the following lines (or see attached):cd /home/bluepoint/Teamselect_ServerApp_v1.0/bin/
    java Server
    but nothing happens when i restart the server. The DB, sendmail, tomcat etc start fine but not my app.
    The application works fine if i start it in a terminal window so i know it can run.
    Any ideas what im doing wrong??
    Kind Regards

    It's probably not happening because you missed the -c from the su command. However this isn't the correct approach to daemon processes on linux (which is what you're after).
    What you need to do is to place a script in the /etc/init.d directory. This script should take a single argument and start the daemon if the argument is "start", and stop it if "stop". Check out the scripts already in there to see how it's done.
    Then go to System Settings/Server settings/Services and enable the new service for the normal run level.

  • Getting java code to compile on unix/linux

    I have been using borland JBuilder to run and compile my java code. Recently i tried moving the code to a linux machine in which i have downloaded the JDK to. My classes only use standard java classes with the exception of a jbcl.jar file which has a class that one of my classes relies on. It turns out when i try to run my class i get error messages because it cant find the jar file. Where should I put this jar file? by the way in my class i use the statement: where jbcl.layout is the class i need.
    import jbcl.layout.*;

    another question. In my class I use the statement
    import jbcl.layout.*;
    so all i need to do is add the jbcl.jar to my class
    path? is my import statement correctIf it compiles in your IDE, then it's correct. You shouldn't have to change anything at all in your source code to use a different compiler or to compile on a different platform. You just have set up the proper environment and parameters--tell it which .java files to compile, which jars or directories to search for classes in (classpath), etc. For IDEs you do that with the Preferences or Options menu item. For command line compilation you do this with command line arguments, config files (a la build.xml for ant), or environment variables (although relying on the CLASSPATH env var is generally a bad idea).

  • Access a dll file for an oracle adf app deployed on weblogic on linux box

    Hi:
    My department is trying to move an oracle adf application from oracle application server to weblogic 10.3 application server. After trying for a few weeks, everything looks fine except that the application is not able to access a dll file. For this adf application we use a dll file which is a C program to allow us to grab ip address and mac address for every user's computer for security reason. On our oracle application server on a linux box, everything is fine and the application is able to use access the dll fine. Technically, it is how the dll work. In our login.jspx, we declare a object:
    <OBJECT id="objMacAddr" height="0" width="0" classid="CLSID:D69161F0-C2BB-4212-9B67-62B908A07726" codebase="RMacAddress.dll#Version=1,0,0,1">
    when the user access our web application, the browser grab the dll file from the server while loading the page and a java script function in the page uses the dll file to grab the ip address and mac address for user's computer.
    It works on oracle application server. However, it does not work on Weblogic 10.3 server. Does anyone have similar experience? We have been told by oracle support that Weblogic 10.3 server does not recognize the dll file at all. One thing I don't understand is that both our oracle application and weblogic 10.3 are on linux box. Why dll works on oralce application server but not on weblogic 10.3 server? This issue has bothered us for quite a few weeks already. I just hope that anyone on this forum gives us some kind of hint or direction.
    Thanks,
    Jack

    Also,
    I checked the "monitoring" window of my datasource on weblogic server and saw that there are no failed database connections. So, the problem of a broken database connectivity can be ruled out.
    --Vivek                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Run PHP script in Java app.

    Hi,
    I have a PHP application that opens up a template (MS Word) invoice file, inserts some information in the file (eg. today's date, customer name) and then saves it as a new Word file. My questions are as follows.
    1- How can I call this script from my Java application. Please note that I want to be able to pass parameters (eg. custome name read from a DB) from my Java app. to this script.
    2- Is it possible to print already saved MS Word documents from Java? If so, how?
    3- Is it possible to do what my PHP script is doing in pure Java? I couldn't find a simple way of doing this, that's why I used PHP but I would like to do this in Java if I can.
    thanks in advance,
    Mete

    I have a PHP application that opens up a template (MS
    Word) invoice file, inserts some information in the
    file (eg. today's date, customer name) and then saves
    it as a new Word file. My questions are as follows.
    1- How can I call this script from my Java
    application. Please note that I want to be able to
    pass parameters (eg. custome name read from a DB) from
    my Java app. to this script.You would have to call the PHP interpreter through Runtime.exec(), I believe. I haven't done anything with it, but you would have to build the command that would normally be typed on the command line as a string and pass it to Runtime.exec().
    2- Is it possible to print already saved MS Word
    documents from Java? If so, how?Try looking at the Jakarta POI project.
    3- Is it possible to do what my PHP script is doing in
    pure Java? I couldn't find a simple way of doing this,
    that's why I used PHP but I would like to do this in
    Java if I can.Same as 2.

  • Deploying Java Apps to PDAs

    Hi,
    i wanted to know how to deploy Java Apps to PocketPC and Linux-based PDAs.
    can it be done directly frm the toolkit?

    Hi,
    Check if your device supports OTA. If it is supported put your application JAD and JAR file in some webserver and hit the server from your deivce to download the app. Dont forget to set the MIME type of the server

  • Strange ZipException thrown while running JNLP app deployed on linux

    Hi,
    I am trying to deploy my app via JNLP but I run into strange errors while using linux server (Ubuntu). I am using com.sun.javaws.servlet.JnlpDownloadServlet
    to serve JNLP files. Everything works perfect when deploy app to local JBoss on Windows7, but the same code deployed on the remote Linux machine causes strange error:
    java.util.zip.ZipException: invalid entry size (expected 26915 but got 21579 bytes)
    at java.util.zip.ZipOutputStream.closeEntry(Unknown Source)
    at java.util.zip.ZipOutputStream.finish(Unknown Source)
    at java.util.zip.DeflaterOutputStream.close(Unknown Source)
    at java.util.zip.ZipOutputStream.close(Unknown Source)
    at com.sun.deploy.net.HttpDownloadHelper.download(Unknown Source)
    at com.sun.deploy.cache.Cache.downloadResourceToTempFile(Unknown Source)
    at com.sun.deploy.cache.Cache.downloadResourceToCache(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
    at com.sun.javaws.LaunchDownload.downloadJarFiles(Unknown Source)
    at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unknown Source)
    at com.sun.javaws.Launcher.downloadResources(Unknown Source)
    at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
    at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
    at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
    at com.sun.javaws.Launcher.launch(Unknown Source)
    at com.sun.javaws.Main.launchApp(Unknown Source)
    at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
    at com.sun.javaws.Main$1.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)Both machines uses JDK 6u14, all the jars have been succesfully signed.
    Any ideas? I am going insane:(

    aleksjej wrote:
    ...Also in both cases archives opens successfully in 7zip.That means nothing that is relevant to a Java application launch.
    What is relevant to a Java application launch is whether J2SE classes can open the archives. The easiest way to find out is using the Jar tool in the SDK. Java does not support all forms of compression that are possible in ZIP archives, just a limited sub-set.

  • Error when deploying EAR file: Operation failed with error: java:/app/jdbc/

    I created application using JDeveloper 11g, and have the deploy file EAR read to deploy to oracle application server 10g, but I am encouting the error of Operation failed with error: java:/app/jdbc/jdbc/HRConnDS not found
    Below is the log. What did i do wrong? I have created the datasource of HRConnDS, and it shows in EM.
    Nov 6, 2009 10:06:12 AM] Application Deployer for hra1 STARTS.
    [Nov 6, 2009 10:06:12 AM] Copy the archive to /u01/OraHome_app1/j2ee/home/applications/hra1.ear
    [Nov 6, 2009 10:06:12 AM] Initialize /u01/OraHome_app1/j2ee/home/applications/hra1.ear begins...
    [Nov 6, 2009 10:06:12 AM] Unpacking hra1.ear
    [Nov 6, 2009 10:06:12 AM] Done unpacking hra1.ear
    [Nov 6, 2009 10:06:12 AM] Unpacking webapp2.war
    [Nov 6, 2009 10:06:12 AM] Done unpacking webapp2.war
    [Nov 6, 2009 10:06:12 AM] Initialize /u01/OraHome_app1/j2ee/home/applications/hra1.ear ends...
    [Nov 6, 2009 10:06:12 AM] Starting application : hra1
    [Nov 6, 2009 10:06:12 AM] Initializing ClassLoader(s)
    [Nov 6, 2009 10:06:12 AM] Initializing EJB container
    [Nov 6, 2009 10:06:12 AM] Loading connector(s)
    [Nov 6, 2009 10:06:12 AM] Starting up resource adapters
    [Nov 6, 2009 10:06:12 AM] application : hra1 is in failed state
    [Nov 6, 2009 10:06:12 AM] Operation failed with error: java:/app/jdbc/jdbc/HRConnDS not found
    Thank you very much for your help.

    How did you create your datasource, can you post the content, without passwords of course.
    Greetings.

  • Fonts in java apps for win and linux

    Hi everyone.
    i need to build an application mult-plataform, to run in windows and linux...
    but i don�t know waht font i must use...the default font that java takes doesn�t exist in linux (dialog)...
    waht font should i use in my app??
    thanx

    For going multi-platform it is easiest to stick to the logical fonts: Fonts named "Serif", "SansSerif", "Monospaced", "Dialog", and "DialogInput".
    These fonts are guaranteed to exist on any platform, although their implementations may be different. If you use others then you'll have to figure out how to deal with cross platform issues.
    Jeff

  • Analysing SAP Java Memory Usage in Unix/Linux

    Hi,
    I need to analyze the SAP Java memory usage of Unix /Linux machine..NW 7.0
    Please guide with the commands and steps..complete prcedure.
    Based on it I should decide whether to create a new server node (or) increasing heap size
    Thanks in advance

    Hi,
    Do you have performance problems?
    How many CPU's are in the server?
    Did you check Log Configuration for delays or errors?
    Did you tune any exisiting parameters?
    You can add the nodes only if there is performance problems. You may think of adding one node to start with
    Proper number of server nodes within an instance:
    u2013 #ServerNodes = availableMemory / (JavaHeapPermSpaceStack)
    You can calculate the server nodes based on below formula
    No. of server Node = (RAM you want to assign or available RAM in GB)/2.5 ============> for 64-bit system
    No. of server Node = (RAM you want to assign or available RAM in GB)/1.5 ============> for 32-bit system
    Hence as per above discussion, we should go with 5 server nodes means,
    5 = RAM/2.5 (Assuming you are on 64-bit platform)
    i.e. RAM = 12.5 GB
    2). u2013 Configure JVM heap according to Note 723909 and Note 1008311 - Recommended Settings for NW 7.0 >= SR2 for the AIX JVM (J9)

  • PAS/AAS JAVA instances on UNIX/Linux - database component

    Hi SCN,
    Firstly consider this is all UNIX/Linux based...
    In the past when creating AS (or AAS now) SAP dialog instances for ABAP systems I rarely ran a SAPINST process. It was simpler to copy existing profiles and NFS mount the kernel. There is no database component relating to the instances so you could easily add/remove them
    However in Java it seems there is instance data inside the database Java schema, meaning that you have to install/re-install AS/AAS instances using SAPINST/SWPM to ensure these are properly created; otherwise the instance will not connect.
    Does anyone have any details on what constitutes this database component? I would like to look at it with my own eyes and see what makes it up.
    Regards all, Jamie
    AKA doonan_79

    Hi Jamie,
    In case of JAVA, there we have BOX number. If you have a logical host on top of your physical host, then you can go with over scheme. Otherwise, because of BOX number, you have to go with export/import option.
    Refer this thread: Understanding the Java Instance ID issue
    Divyanshu

  • How to execute Linux command from Java app.

    Hi all,
    Could anyone show me how to execute Linux command from Java app. For example, I have the need to execute the "ls" command from my Java app (which is running on the Linux machine), how should I write the codes?
    Thanks a lot,

    You can use "built-in" shell commands, you just need to invoke the shell and tell it to run the command. See the -c switch in the man page for your shell. But, "ls" isn't built-in anyays.
    If you use exec, you will want to set the directory with the dir argument to exec, or add it to the command or cmdarray. See the API for the variants of java.lang.Runtime.exec(). (If you're invoking it repeatedly, you can most likely modify a cmdarray more efficiently than having exec() decompose your command).
    You will also definitely want to save the returned Process and read the output from it (possibly stderr too and get an exit status). See API for java.lang.Process. Here's an example
    java.io.BufferedReader br =
    new java.io.BufferedReader(new java.io.InputStreamReader(
    Runtime.getRuntime().exec ("/sbin/ifconfig ppp0").
    getInputStream()));
    while ((s = br.readLine()) != null) {...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How do i make UNIX system calls in Java app?

    Is it possible to make UNIX system calls in a java app? I.E. perform a file copy/move to another machine within a program.
    Thanks,
    Erik

    If there is a command line tool then you use Runtime.exec() otherwise you have to use JNI.
    If you want to access shared libraries you might want to look at www.swig.org

  • Please package Java ME SDK 3.0 for Linux/Unix

    Hi Oracle guys!
    Please package Java ME SDK 3.0 for Linux/Unix soon!
    It would be of benefit both to us developers, and to Oracle.
    Thanks!

    user8771084 wrote:
    Señores Oracle si ustedes no pueden desarrollar Java ME SDK 3.0 for Linux/Unix no importa!!!, igual sabemos que no están a la altura de Sun Microsystems ni de la comunidad de Linux/GNU.
    Si ustedes se deciden lanzar la versión Java ME SDK 3.0 for Linux/Unix se lo agradeceremos, recuerde que Linux/GNU dia a dia crece mas y mas, y es un mercado que se debe cuidar.Translated to English:
    Oracle Gentlemen if you can not develop Java ME SDK 3.0 for Linux / Unix does not matter!,
    As we know are not up to Sun Microsystems or the community of Linux / GNU.
    If you decide to launch the Java ME SDK 3.0 for Linux / Unix appreciate it, remember that GNU / Linux is growing day by day more and more, and is a market that needs to be nurtured.

  • Critical: Java app Processes dying in Linux

    Hi,
    I have come across a critical error on our production system. We have some java apps running as linux background processes. We used to run these off a jdk1.3 box with no problems using
    nohup java App &
    We have upgraded to jdk1.4 but very randomly our apps are just disappearing from the background processes!
    I have using the -verbose and -Xprof options to java and found this logging information..
    Flat profile of 0.11 secs (1 total ticks): SIGHUP handler
    Thread-local ticks:
    100.0% 1 Blocked (of total)
    I don't know if this holds any clues but a SIGHUP is a hangup signal and even though we use nohup, it does seem to kill the processes.
    Would be very grateful for advice.

    Following links can explain about -Xrs and other options.
    http://java.sun.com/j2se/1.4.1/docs/tooldocs/windows/java.html
    http://java.sun.com/j2se/1.4.1/docs/tooldocs/solaris/java.html

Maybe you are looking for

  • Logical end-of-file reached during read operation

    Hi, Something strange happened to my Logic a couple of days ago - all of a sudden. When I start Logic up it gives me the following error message: *Error reading/writing file "com.apple.logic.pro.cs": Logical end-of-file reached during read operation.

  • How to get Firefox to display pdf file in browser (Win 7, FF 19.0, AA 10.1.6, IE 9)?

    After Firefox updated to version 19, when I tried to view a pdf file, the file appeared in a strange new viewer. Seemed to work OK, but I was concerned (didn't know that it is apparently a new feature of FF 19), and wanted the Adobe viewer back. Afte

  • Mail not being sent for background job spool

    Hello All, I have created a back ground job by adding a mail id in the spool receipient list. The job has finished successfully and spool is created but the mail has not been sent I have checked SOST transaction and no mail has been sent to this mail

  • Sub panel vi cannot be loaded properly when main vi is converted to exe

    Hi All, I have a main vi that uses sub panel to call another single vi during the operation. The code is working well in vi level. However, When I converted the main vi to exe file, this sub panel cannot load that single vi properly. The error shows"

  • IPod as gift

    We gave an iPod Nano as a gift. We loded it up with songs from our account, and from our cd's which we had saved into our computer's iTunes. Can the giftee transfer the iPod into their own account and still save the music that we gave them? If so...H