Unix 기반의 웹 서비스 배포시 발생하는 문제

현재 Unix에 기존 어플리케이션들을 설치하고, java와 bpel을 이용하여
통합/웹 서비스화 하는 방법을 연구하고 있는 학생입니다.
Unix에 "blast"라는 생물학에서 사용하는 툴을 설치하고 Unix 상에서 java로
blast를 실행하고 결과값을 xml 등의 파일로 생성하는데 까지는 성공했습니다.
그래서 이 java 프로그램을 웹 서비스로 deploy하여 blast를 실행해 보려고
하는데, blast의 실행 결과를 버퍼에 써서 출력하는 부분이 실행되지 않습니다.
결과 파일(xxx.xml)도 생성이 되질 않구요...
소스 프로그램은 다음과 같습니다. (ExecBlast.java)
===========================================================
import java.io.*;
public class ExecBlast {
public ExecBlast() {}
public String doBlast(String program, String database, String sequence, String output) {
try {
String command = "/export/home/bpel/tools/blast-2.2.15/bin/blastall -p ";
command = command + program + " -d ";
command = command + database + " -i ";
command = command + sequence + " -o ";
command = command + output ";
Runtime runtime = Runtime.getRuntime();
Process process = runtime.exec(command);
BufferedReader br = new BufferedReader(new InputStreamReader(process.getInputStream()));
while((inLine = br.readLine()) != null)
System.out.println(inLine);
catch(Exception e)
System.out.println(e);
===========================================================
System.out.println 으로 여기저기 다 찍어봤는데 while문이 돌아가질 않습니다.
br이 null로 나오는거 같습니다.
Unix 상에서 이 프로그램을 그냥 javac로 컴파일 해서 실행하면 잘~~돌아가는데..
jdeveloper를 이용해서 웹 서비스로 배포하면 문제가 발생합니다.
Unix에서 디렉토리 권한 문제인가 싶어서 권한도 다 줬는데 고쳐지질 않네요..
왜 그런건가요?? 도와주세요..ㅠ

Similar Messages

  • How to delete file from application server(Unix)

    Hi All,
    Using the below code downloading a file from application server(Unix) to client machine. I want to delete the file from application server once it is downloaded to client
    We work on Forms 11.1.1.4.0 and Oracle DB 10g. Client machine are Windows 7.
    BEGIN
      IF webutil_file_transfer.AS_to_Client
      (clientFile => Name_In('global.g_file_name')
      ,serverFile => ls_AppServer_Loc)THEN
      message('Data exported Successfully');
      ELSE
       message('File download from Application Server failed');
      END IF;
    EXCEPTION
      WHEN OTHERS THEN
      message('File download failed: '||SUBSTR(sqlerrm,1,200));
      END;
    I have search for solution on OTN. Few suggested to use HOST.
    Can any one help me how to use Host() built_in to delete the file.
    Thanks,
    Maddy

    Can any one help me how to use Host() built_in to delete the file.
    Host('/bin/rm <complete file path>');

  • "Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information" while attempting to open UNIX/Linux monitor

    We have upgraded our System Center to 2012 R2, and we cannot open any of the UNIX/Linux LogFile monitor property or the UNIX/Linux process monitor property for those monitors created prior to the upgrade.  Error we get is below.  Any assitance
    appreciated.
    Date: 9/30/2014 10:01:46 PM
    Application: Operations Manager
    Application Version: 7.1.10226.0
    Severity: Error
    Message:
    System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
       at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection,
    Boolean suppressSecurityChecks)
       at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection,
    Boolean suppressSecurityChecks)
       at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection,
    Boolean suppressSecurityChecks)
       at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
       at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
       at System.Reflection.Assembly.Load(String assemblyString)
       at Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.TypeContainer.get_ContainedType()
       at Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.MomExtensionsCommon.AddTemplatePages(LaunchTemplateUIData launchData, Form form)
       at Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.MomExtensionsCommon.Initialize(Object launchData, Form form)
       at Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.MomExtensionsCommon.RunPrivate(Object[] userData)
       at Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.MomExtensionsCommon.Run(Object[] userData)

    It's possible the upgrade did not update everything properly as it looks like a dll mismatch or a missing file. I'd open a support ticket with MS and have a support engineer look at the upgrade logs. What version of SCOM did you upgrade from?
    Regards,
    -Steve

  • Error while compiling forms10g in Unix with webutil features.

    Hi,
    I developed a form called test.fmb and attached webutil.pll. change all text_io to client_text_io.
    Copied the file to unix and tried to compile, it says
    CLIENT_TEXT_IO.FILE_TYPE must be declared.
    (Please note that webutil.pll has been compiled and .plx file is generated).
    Please help.
    Thanks.

    Our Forms_90 Path is
    FORMS90_PATH=/AppsTop/FRMTOP/app/9.0.4/forms90:/AppsTop/FRMTOP/app/9.0.4/pi:/AppsTop/FRMTOP/app/9.0.4/webutil:/AppsTop/FRMTOP/app/9.0.4/webutil/forms
    I just copied webutil.pll from
    :/AppsTop/FRMTOP/app/9.0.4/webutil/forms/webutil.pll to
    my local directory C:\webutil.pll
    I attached the C:\webutil.pll under Attached Libraries in test.fmb in my own PC.
    Please advice.
    Thanks,
    Mano.

  • How to find out who deleted the directory in Unix

    Hi Experts,
    In my system some body tampered the directories, and more over some body deleted the bin directory under the /usr/sap/trans in Unix operating system. now i am checking to find out who deleted and for the more logs.
    i am unable to find out the user name and deleted directory logs..i know its completely related to the unix level but mean time i am searching for the same.
    Any ideas and clues will be heighly appreciated.
    -Srini

    To know the OS would have been helpful
    First ask the people around you if anybody did it, maybe he is man enough to admit...
    Try to find out who logged at the time when the directory was deleted.
    - check the OS syslog (/var/adm/syslog/syslog.log for hp-ux, /var/log/messages for linux)
    - try the last commando to get a list of who logged on when
    - check the command histories of the sidadm, root user, use the history command, or the h alias
    - check if there are scripts running, which regularly delete files
    As the trans directory might be NFS mounted to other servers, you might need to do the checks there too.
    Best regards, Michael

  • Install Oracle 8.1.7 (TRU64 UNIX 5.1)

    Need information on how to initate the istallation of Oracle
    Software on TRU64 UNIX 5.1. Prior to 8.1.7, the "orainst" shell
    for UNIX was used from the command line. The installation
    instructions for 8.1.7 require the setting of the variable
    DISPLAY, and the execution of the script "runInstaller". For
    what I can tell, the new installation routine requires X-windows
    to run, but I cannot figure out how to set it up.
    Thank you in advance for any help on this subject.
    Eduardo Bedoya

    Dirk:
    I had the same problem, which is caused by a
    wrong version of Java. Follow the instructions
    in Denis Claric's Oracle page:
    http://staff.in2.hr/denis/oracle/
    BUT do NOT install the RPM packages from the
    RH7.1 CD-ROMs, get them from RedHat's web site instead.
    -Ramon

  • Install ORACLE 8.1.6 and 9i on HP UNIX 11.20 (11i)

    Hi,
    When I install ORACLE 8.1.6 and/or 9i on HP UNIX 11i (11.20, hardware: i2000 workstation), I got the following error message:
    Exception thrown from action: make
    Exception Name: MakefileException
    Exception String: Error in invoking target nnfgt.o of makefile
    /opt/oracle/product/8.1.6/network/lib/ins_net_client.mk
    Exception Severity: 1
    Would appreciate very much if someone can help to analyse the cause of the problem.
    Thanks.

    Hi,
    When I install ORACLE 8.1.6 and/or 9i on HP UNIX 11i (11.20, hardware: i2000 workstation), I got the following error message:
    Exception thrown from action: make
    Exception Name: MakefileException
    Exception String: Error in invoking target nnfgt.o of makefile
    /opt/oracle/product/8.1.6/network/lib/ins_net_client.mk
    Exception Severity: 1
    Would appreciate very much if someone can help to analyse the cause of the problem.
    Thanks.

  • Transfer files from SAP R/3(unix server) to windows

    Hi TechGurus,
    We have a requirement where in , we are extracting data from SAP table into a text file using OPEN DATASET in TEXT MODE.
    Then using a third party tool (Connect-direct), we are transferring text files to windows server using unix script, in binary mode.
    The problem is that that the data is being transferred in blocks,each time beginning transfer from a new line.That is, after say transferring 25KB data it transfers next 25KB data from a new line. What happens as a result is that records
    after particular amount of data is broken and remaining data transfer begins from new line.
    The file size is around 25 MB.There is no such problem while transferring file of size 10 KB.
    We are uploading the data from text file on windows server into MSAccess.
    And error occurs during this process.
    Assured points for helpful answers
    Thanks in advance!!

    Hi,
    If you want to transfer file between different SAP servers then you can use the function module EPS_FTP_PUT. You need to have a RFC destination (with sufficient authorizations for the RFC user). The meaning of the importing parameters of the function module are quite obvious. Of course, SAP offers us more than this function module:
    - EPS_FTP_GET
    - EPS_FTP_MPUT
    - EPS_FTP_MGET
    Kishi.

  • SELECt query in UNiX environment

    Iam using hp unix with oracle 11g
    when i try to spool 26 lack records it is giving me error
    " There is not enough memory available now.
    O/S Message: Broken pipe"
    is there is any other way SQL commands, we can limit the SELECT query to spool specific number of times other than using
    FOR LOOP.. with LIMIT cluase

    logdata=`${SQLPLUS} -S username/password<< EOF
                        SET ECHO OFF
                        SET LINESIZE 2000
                        SET NEWPAGE 0
                        SET SPACE 0
                        SET PAGESIZE 0
                        SET FEEDBACK OFF
                        SET HEADING OFF
                        SET TRIMSPOOL ON
                        SET TAB OFF
                        set autoprint on               
                        set serveroutput on
                        set spool on
                        spool ${SPOOL_FILE}     
                        set termout off
                   WHENEVER SQLERROR EXIT SQL.SQLCODE
                   whenever oserror exit 1;
                        $GetQuery ==> there come's the SELECT statement which spool's 25 lakh records.
                        spool off
                   EXIT
                        END`
    While spooling records it throws the error
    There is not enough memory available now.
    O/S Message: Broken pipe
    i want u use spooling instead of using util_file to write each and every rows in a file
    Edited by: user9080289 on Apr 29, 2010 5:04 AM

  • I want to execute UNIX COMMAND in ABAP

    Hi All,
    I want to execute a UNIX XOMMAND sh <scriptname> <filename> to replace divsion codes.in ABAP.
    But, I came to know that we can't (2) or try the following program but unfortunately the command CALL SYSTEM is not supported by SAP. If you are on R/3 2.1 - 2.2x you can get some idea's from the program SAPMSOS0.
    REPORT ZUNIXCOM .
    DATA: U_COMMAND(200).
    Table for system messages
    DATA: BEGIN OF RT OCCURS 100 ,
    LINE(100) ,
    END OF RT .
    START-OF-SELECTION .
    MOVE 'unix command' to U_COMMAND .
    REFRESH RT.
    CALL 'SYSTEM' ID 'COMMAND' FIELD U_COMMAND
    ID 'TAB' FIELD RT-SYS .
    LOOP AT RT.
    WRITE : / RT-LINE .
    ENDLOOP. 
    So please can u help me how to call a unix command from ABAP. it is very urgent. I want complete details and all possible solutions
    <removed_by_moderator>
    Thanks,
    gyanaraj
    Edited by: Julius Bussche on Aug 26, 2008 11:29 AM

    Selvaraj Gyanaraj wrote:>
    > So please can u help me how to call a unix command from ABAP.
    I was about to help you.
    >it is very urgent.
    I changed my mind.
    >I want complete details and all possible solutions
    I'm glad I changed my mind.
    >Points are surely rewarded.
    Too late.

  • Execute unix command in abap code

    Hi, I have a request to execute a script command in a remote unix server, should i use 'call function ...destination'?
    Thanks.
    Legend.

    Use like this :
    data: begin of t_tabl occurs 0,
    line(132),
    end of t_tabl,
    data: lc_command(100) type c.
    Get all the file name falling under specified directory...
    lc_command(3) = 'ls '.
    lc_command+3(45) = p_dir. " Directory of file path
    call 'SYSTEM' id 'COMMAND' field lc_command
    id 'TAB' field t_tabl-sys.
    Check any files exits in the directory.......................
    if t_tabl[] is initial.
    message e006 with 'No files exist in the specified directory ' p_dir.
    endif.
    Do not look for sy-subrc ,here sy-subrc will not work.
    Thanks
    Seshu

  • UNIX command in ABAP code

    Hi All,
    I need to use unix command (MOVE) in ABAP code for transfering a file from one directory to another directory.
    Can any one help with how to used unix commands in ABAP?
    Thanks in advance.
    Regards,
    Hemendra

    The recommended approach always used to be to use transaction SM69 to define a "soft" command name to the operating system command so that it could be configured to work across Windows, Unix etc.  For example:
    Command name       OS         Type             OS command                                 Parameters for operating system command 
    Z_FILE_MOVE        SunOS      Customer    mv                                                 ? ?   
    You can then call function module SXPG_COMMAND_EXECUTE (quite well documented) to actually perform the command passing in the appropriate number of parameters.
    Jonathan

  • Unable to purge cache on unix

    Hi gurus,
    I have installed OBIEE 11.1.1.5 on Red Hat Linux 5, when i try purge the cache of this obiee server from a windows system, it is working perfectly fine. But when I try to clear the cache from unix system it is throwing the following error message,
    ================================
    Oracle BI ODBC Client
    Copyright (c) 1997-2011 Oracle Corporation, All rights reserved
    Connection open with info:
    [0][State: 01000] [DataDirect][ODBC lib] Application's WCHAR type must be UTF16, because odbc driver's unicode type is UTF16
    You are not licensed to use this ODBC driver with the DataDirect ODBC Driver Manager under the license you have purchased. If you wish to purchase a license, then you may use the Driver Manager for a period of 15 days, during which time you are required to obtain a license. You can order a license by calling DataDirect Technologies at 800-876-3101 in North America and +44 (0) 1753-218 930 elsewhere. Thank you for your cooperation.
    ==========================
    This is the command I am using -
    ./nqcmd -d "AnalyticsWeb" -u biadmin -p biadmin123 -s "/usr/powercenter/OBIEE_DEV/Oracle_BI1/Purge/CachePurge.sql" -o "/usr/powercenter/OBIEE_DEV/Oracle_BI1/Purge/Cachepurge.log".
    I am sure about the user,password ,paths of the sql and log file. Has any one faced this issue and if you have any resolution please guide me.
    Thanks in Advance,
    Regards,
    Sai.

    Oups sorry. I didn't remember the begin of your post.
    Suppress your update of your LD_LIBRARY_PATH.
    In 11g, the environment variables are set with the help of the opmn.xml file:
    http://gerardnico.com/wiki/weblogic/opmn.xml
    You can check it their:
    <ias-component id="coreapplication_obis1" inherit-environment="true">
    <environment>
    <variable id="LD_LIBRARY_PATH" value="$ORACLE_HOME/common/ODBC/Merant/5.3/lib$:$ORACLE_HOME/bifoundation/server/bin$:$ORACLE_HOME/bifoundation/web/bin$:$ORACLE_HOME/clients/epm/Essbase/EssbaseRTC/bin$:$ORACLE_HOME/bifoundation/odbc/lib$:$ORACLE_INSTANCE$:$ORACLE_HOME/lib:/u01/app/oracle/product/TimesTen/tt1122/lib" append="true"/>
    </environment>In 11g, you have to run the bi-init to set your environment varaibles:
    http://gerardnico.com/wiki/dat/obiee/bi-init
    Did you do that ?

  • Data Federator on Unix - Need to connect to Informix

    Hi,
    We are planning to Deploy Data Federator in Linux - SuSE 64 bit environment. We also have a need to connect to Informix and Teradata databases.
    According to the supported platforms document, only ODBC drivers are available to connect to Informix and Teradata databases.
    Is there a driver bridge available for these ODBC connectivity only databases?
    Update: Didnt notice there were Unix ODBC drivers available. I think we should be fine.
    Will it be supported if wel use the Informix Type 4 JDBC driver (http://www-01.ibm.com/software/data/informix/tools/jdbc/) as a Generic JDBC driver? Is there any performance impact?
    Appreciate the assistance.
    Thanks,
    Thiag.
    Edited by: Thiag Loganathan on Jul 21, 2010 5:43 PM
    Edited by: Thiag Loganathan on Jul 21, 2010 8:26 PM

    How will you access your third-party module in a NT box from UNIX? If it will be over TCP/IP, you may use the UTL_TCP package.

  • Managing a remote unix box with OSX server apps...

    Aside from running an OSX server, I am in charge of maintaining an external, SUN unix server from my Mac, and I hate using line commands, esp. with how jaded I've become using the nice tools for managing the Mac server. For now I use terminal in order to change passwords, set permissions and so on as the sudo user on the unix box, and use rbrowser to edit cron jobs.
    So, my question is, is there a way to get the OSX server admin tool to think the unix box is an OSX server? And if not, is there a graphical interface to maintain the server (it's running Apache too)? Rbrowser is cool and all, but doesn't let me use sudo for making chnages.
    Thanks for any help.
    Greg

    Bummer about not having the Mac feel on SUN. Life can't always be perfect.
    As far as the Webmin, no, haven't heard of it, but it sounds cool. The trick would be getting a huge client like SD County to let us buy it, then go through all the hoops and red tape to get it installed. Most likely their answer would be "Well, what have you been using this whole time and why isn't that good enough now all of a sudden?".
    So for the time being, I'l have to be happy using RBrowser for file transfers between the test and production servers (beats the pants off of typing scp -p -i over and over again) and editing cron scripts. Too bad it doesn't provide sudo for changing passwords, groups, and so forth.
    I'm this close to having the perfect work environment (the office I work in was all Windows with Dell laptops...until now).
    Dual G5 tower   Mac OS X (10.4.6)  

  • Unix commands in ABAP

    Hi,
       I need to call the following unix command in ABAP to encrypt a file on the app server .
    crypt password <org filename> new_filename
    1 But when i run it using call 'SYSTEM' .. i get message security risk , command not executed ..
    2 I also created the command in SM69 and tries to run it but same error.
    3 I also created a shell script , but i get another message when i try to run sh ...
      Please help to find out a way to make it work ..
    Kunal

    Hi kunal,
    1. probably ur basis team might be able to help u.
    2. even if we have authorisations thru sap
       to run external os command,
       the actual OS user on application server
       must have the right for it
       and access/write/read/modify
       for the files (provided thru the command)
       in question.
    3. Due to this , the systems gives the message
       of SECURITY RISK.
    regards,
    amit m.

Maybe you are looking for

  • Macbook wont start up, stuck on grey screen

    I need some help, I woke my computer from sleep then decided to restart it because it wasnt restarted for a while and now when I try to turn it on it just loads a grey screen and nothing else. I need someone to help me asap, I have a few assignments

  • How to configure a Windows machine with any vnc server software for ARD

    I need someone to direct me in the right direction to configure and install any vnc server software so that I can control a windows machine with ARD like I control the rest of my macs in the lab. I need some suggestions as to the best and easiest sof

  • Customizing request

    Hi All, what is the difference between Parent Request and Child Request? Regards, Sasmita

  • On the search for a(nother) tiling-wm

    hi everybody. i've been using wmii for a couple of month now and i am quite happy, except for a few little things. however, these things irritated me more and more over time, so i decided to look for alternatives. i have the following requirements: -

  • After upgrading to Safari 3.1 (Tiger), application crashes on open

    I just upgraded to Safari 3.1 on a MacBook Pro (Tiger). The installer prompted me to reboot. After rebooting, clicking on the Safari icon in the dock makes it bounce once, then nothing. The browser doesn't open. The console reports the following: dyl