1st RMI implementation: where to place the security files?

Hi all!
I'm preparing my first implementation of RMI, I'm using the following example:
http://java.sun.com/docs/books/tutorial/rmi/index.html
At the moment, I have the following questions:
where I have to place the security files? (which directory with what files)
when I try "javaw rmiregistry" there is an error message (can't find main class...)I don't know why... I use the same machine for both client and server... and almoust the same path (client: "...\bin\client" and "...\bin\engine" to server)
Can you help me?
Thanks and regards! :)

1) where I have to place the security files? (which directory with what files) For the given example,
For server, filename will be = server.policy
path = should be in the classpath, for better put in folder from where you are executing.
otherwise, put the exact path in the command as (if file is in c:\:)
{noformat}java -cp c:homeannsrc;c:homeannpublic_htmlclassescompute.jar
-Djava.rmi.server.codebase=file:/c:/home/ann/public_html/classes/compute.jar
-Djava.rmi.server.hostname=zaphod.east.sun.com
-Djava.security.policy="c:\server.policy"
engine.ComputeEngineSimilary you can do for client.
{noformat}

Similar Messages

  • Where to place the class file of the java bean when using the packager

    I am using the activex bridge in j2se 1.5.0_06
    now i have created the jar file for my bean but where do i place the class file?
    i.e the bean..if i keep it in jdk\bin the packager gives me an error..i created a folder in my public jre jre\axbridge\bin and placed the class file there too but even this didnt work
    Kindly tell me what is the fully qualified package bean name if i have placed all my files under jdk\bin..

    D:\Java\jdk1.5.0_06\bin>packager -reg d:\java\jdk1.5.0_06\bin\PersonBean.jar Per
    son
    Processing D:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\\Person.idl
    Person.idl
    Processing D:\PROGRA~1\MICROS~2\VC98\INCLUDE\oaidl.idl
    oaidl.idl
    Processing D:\PROGRA~1\MICROS~2\VC98\INCLUDE\objidl.idl
    objidl.idl
    Processing D:\PROGRA~1\MICROS~2\VC98\INCLUDE\unknwn.idl
    unknwn.idl
    Processing D:\PROGRA~1\MICROS~2\VC98\INCLUDE\wtypes.idl
    wtypes.idl
    Registration failed:
    The packaged JavaBean is not located under the directory <jre_home>\axbridge\bin
    this is the error i get

  • Where is located the security file of my iphone

    I've got to reinstall the itunes and now when i try to sincronize my iphone 4 everything seems ok with all the other steps except that itunes reports that he couldn't make the copy of the security file because he thinks that it is damaged or it is not form this iphone (?). He advises to remove the copy of the security file and try again.
    My question is: where in the PC is located this security file that I should remove? I'm running Windows XP.

    A backup of a device with a newer version of iOS cannot be retored to a device with an older version.  The solution is to connect to itunes and update the new device's iOS, then perform a restore.

  • Where could i place the RTF file (locally or in server custom top)

    Hi guys,
    I am very new to xml report publisher and I completed one RTF template successfully and i am accessing oracle apps through my client instances which is in USA.
    I dont knw where to place the RTF file whether in my local system or in the custom_top.
    please reply immediately if any one knw,I hope that i will get immediately reply and its very urgent task to complete.
    Regards
    Praburam s

    Hi,
    I knw that oracle apps have separate res as XML Publisher Administrator.
    Just I want to knw in Template tab we should attach the RTF.My question is that where should i browse for that RTF(in template tab) to my local machine or server custom top)..
    Can i save my rtf file as locally or in server custom top.
    I hope that u can get my question..
    Please reply immediately.
    Regards
    Prabu

  • Where to place the third party jars on WLS 7.0SP2

    Our application use the thirdparty JDBC driver, for example, the JDBC driver for
    mySQL. I donot want my customer to modify startWeblogic.cmd or some file else
    to make the jar file available for the applicaiton.
    my question is if some directory exists under weblogic700/server where I can place
    the jar file(that is, like the installed extension of JDK or JRE).
    I try to place the jar file on server/ext, it does not work.
    Guofeng

    "Guofeng Zhang" <[email protected]> wrote in message
    news:[email protected]...
    >
    Our application use the thirdparty JDBC driver, for example, the JDBCdriver for
    mySQL. I donot want my customer to modify startWeblogic.cmd or some fileelse
    to make the jar file available for the applicaiton.
    my question is if some directory exists under weblogic700/server where Ican place
    the jar file(that is, like the installed extension of JDK or JRE).
    I try to place the jar file on server/ext, it does not work.
    GuofengDisclaimer: I am a newcomer to the world of BEA WLS,
    so try this at your own risk.
    For the 3rd party classes to be found, they have to be included somewhere
    in the CLASSPATH. The best place (IMO) for customisation of the CLASSPATH
    is in the extEnv.sh. You will not find it in a standard installation of
    WLS, but if you look in $WL_HOME/server/bin/startWLS.sh you will see this:
    PATH=".${PATHSEP}${WL_HOME}/server/bin${PATHSEP}${JAVA_HOME}/jre/bin${PATHSE
    P}${JAVA_HOME}/bin${PATHSEP}${PATH}"
    # Import extended environment
    if [ -f extEnv.sh ]; then
    . extEnv.sh
    fi
    Note the inclusion of "." at the start of PATH. This is magic that enables
    the ". extEnv.sh" command to locate the "extEnv.sh" script.
    In "extEnv.sh" you can use the EXT_PRE_CLASSPATH, EXT_POST_CLASSPATH,
    EXT_PRE_PATH, EXT_POST_PATH and LD_LIBRARY_PATH to add additional classes
    and directories to the server environment.
    For additional information, refer to the WebLogic Server Administration
    Guide (http://e-docs.bea.com/wls/docs70/adminguide/startstop.html).
    Similar, if you look in $WL_HOME/server/bin/setWLSEnv.sh you will see this:
    PATH="${WL_HOME}/server/bin${PATHSEP}${JAVA_HOME}/jre/bin${PATHSEP}${JAVA_HO
    ME}/bin${PATHSEP}${PATH}"
    export PATH
    # Import extended environment
    if [ -f extEnv.sh ]; then
    . extEnv.sh
    fi
    Note the missing "." in the PATH. This effectively means that even if
    the "extEnv.sh" script exists in the current directory, then ". extEnv.sh"
    command will only look along the PATH for the "extEnv.sh" script! To me,
    that looks like an error (probably caused by a DOS-programmer used to
    the default behavior in DOS to always look in the current directory
    regardless of the setting PATH), so as part of my localised installation
    procedure, I replace the offending part of setWLSEnv.sh with:
    # Import extended environment
    if [ -f extEnv.sh ]; then
    . ./extEnv.sh
    fi
    which forces the "." command to read the "extEnv.sh" file in the current
    directory, regardless of the setting of the PATH variable. I have
    notified BEA of this, but their responses is that it is per design!
    Regards,
    Jan Bruun Andersen

  • Not able to find out the path where i need to place the .plx file on server

    I have to make some changes in the PLL (library) file and compile it into it's .plx file and move the .plx to the server.
    I am not able to find out the path where i need to place the .plx file on the server.
    I have placed it in /iasapp01/app_name/library,but it is not taking it into effect.
    Please help,if anyone knows about this,as to how to solve this issue
    Thanks
    GAG

    Hi Andreas,
    My Forms Version is 9.0.2 and the application server is 9iAS( 9.0.2)
    The variable FORMS90_PATH in the .env file has the following entries
    FORMS90_PATH=/iasapp01/app_name/fmx:/iasapp01/app_name/library:/iaspp01/app_name/html
    and i have placed the plx in the /iasapp01/app_name/fmx path,but somehow its not referencing it.
    My Formsweb.cfg has the following entry...
    [app_name]
    pagetitle=app_name_WEB
    serverapp=/app_name/app_name
    width=800
    height=550
    colorscheme=blue
    separateframe=true
    form=log.fmx
    otherparams=REPORT_PATH=/iasapp01/app_name/html/report_files/ FILE_PATH=/iasapp01/app_name/rep/
    WEB_PATH=http://server.com:7778/app_name/
    envfile=/ias01/app/oracle/product/ias_9.0.2/forms90/server/app_name.env
    I have another question which is ..Does applciation built on Forms 9.0.2 would work on Internet Explorer 8 and Windows 8 environment using Sun JRE.
    I was going through this website
    http://nutthaphon.blogspot.com/2009/05/how-do-jinitiator-and-jpi-parameters.html
    and followed the steps as mentioned,but it did not work for me.
    Can you help me if you have any info on this?
    Thanks
    GAG

  • To Place the XML file from one folder to another folder in AL11

    Hi All,
      Here my requirement is to create the quotes using XML document. The XML document will come from the Application server. this one is fine.
    Now my prob is after processing the XML file, we have to place the XML file into another folder.
    Please let me know how to move the data inot XML file.
    Now iam reading the data into one variable V_string(it will contains the total XML file). From this variable how to move the data into APplication server.
    Please do the needful.
    Regards,
    Sreehari

    Hi,
    Use FM WS_FILE_COPY To FIrst Copy the File to some Location
    and Next Use FM TMP_GUI_DELETE_FILE To Delete the File from Old LOcation.
    Regards
    Bala.M

  • Where to retrieve the downloaded files?

    Hi All,
    I m E61i user. I have no ideas where to find the downloaded files? I m appreciate that someone from the forum help me on this matter.

    Hi deenesh,
    I assumed you are using iPlanet Application Server.You can put jsp file in
    ..war file and deployed it.
    just go thru fortune sample it will give you the better Idea.
    please get back to me if it you have any question.
    thanks
    Deepak
    deenesh wrote:
    hi everyone,
    when installing iplanet, i am not able to figure out where to put the jsp
    files such that the iplanet can recognise it. I know this may seem a sillty
    question, but i need the answer urgent.
    thanks in advance

  • Where to find the css file for logon page customization

    Hi All,
    I am doing the logon page customization but i am not finding the stylesheet to change the background colors.
    While testing it is taking the default css stylesheet.
    Can anyone suggest from where to edit the css file?
    With Regards
    Ashutosh

    Dear Ashutosh
    You can find the css folder under the logon par file.
    Please find below reference for modifying the PAR file:- http://help.sap.com/saphelp_nw04s/helpdata/en/bb/1bb8428e05c86ae10000000a155106/content.htm
    A fast and easy Portal logon page customizing
    Modifying The Logon Par(or customising the Logon Screen)
    Customizing Portal Logon Screen
    Portal Customizations Intro - Login Part 1
    Portal Customizations Intro - Login Part 2
    Hope it will helps
    Best Regards
    Arun Jaiswal

  • How and where to modify the BAI File for Electronic Bank Statement

    HI,
    Can anybody explaing me How and where to modify the BAI File for Electronic Bank Statement.
    thanks
    Sap Guru
    kischowdary--gmail.com

    Hi
    Actually there were two formats BAI & BAI2, BAI2 format is latest one.
    Please ask for the latest file from bank and try to process.
    Thanks
    Kalyan

  • I download autocad 2010 with crack, how can i install it with crack coz i can't find where to paste the crack file? not like windows just go to drive c, progarms and click the installed folder and you can copy and paste the crack file.

    i download autocad 2010 with crack, how can i install it with crack coz i can't find where to paste the crack file? not like windows just go to drive c, progarms and click the installed folder and you can copy and paste the crack file.
    please help me..
    thanks

    No one here will help you.
    You should definitely ask your question in this forum:
    http://forums.autodesk.com/t5/AutoCAD-2010/bd-p/360

  • Where Firefox stores the FLV files in windows 7

    Where Firefox stores the FLV files in windows 7
    == This happened ==
    Not sure how often
    == Where Firefox stores the FLV files in windows 7

    FLV files played by the Flash plugin are usually streamed and not saved to the hard drive.
    They may be kept in the memory cache during the playing.
    Video DownloadHelper: https://addons.mozilla.org/firefox/addon/3006

  • Where to put the .txt file in order to read it

    think ur prog can read the data.. but it said
    java:9: unreported exception java.io.FileNotFoundException; must be caught or declared to be thrown
    FileInputStream sStream = new FileInputStream("data.txt");
    so where to paste the .txt file if i want to read it
    same folder with my .java file?

    u must put the .txt file in order to read it as an
    argument to java command at runtime this code may help
    u out
    import java.io.*;
    class Demofin     
    {public static void main(String[] args) throws
    IOException
         int i;
         FileInputStream fin;
              try
                   fin=new FileInputStream(args[0]);
              catch (FileNotFoundException e)
              {System.out.println(" file not found");
              return;
              catch (ArrayIndexOutOfBoundsException e)
                   System.out.println("usage demofin filename.txt");
                   return;
              do
              {i=fin.read();
              if(i!=-1)System.out.print((char) i);
              while (i!=-1);
                   fin.close();
    }Use tags..

  • Where is the folder into which place the swf file for Illustrator Extensions

    Hi all,
    I can place swfs into Photoshop & Indesign panels folder and they appear just fine in the extension menu but wherever I place the swf into Illustrator's folders, it just appears nowhere. Can someone tell me where do I have to place them ?
    TIA Loic

    Hi Harbs,
    thx for your answer. As I don't have Extension builder installed yet, I do extensions with Flex and csaw libs, so it is easier for me to debug placing the swf directly into the folders like for Photoshop and Indesign. Of course in the end I would have set a correct extension but for now it was better for me to do this way.
    So what I understand is that there is no way to get that behaviour with Illustrator unless I do process and install a whole extension package. Annoying but well, will have to deal with it.
    Thx Loic

  • Infrastructure Help Where to Place the Cache 505

    Should I put our cache server before our Pix Firewall or in the DMZ?

    This depends on where your wccp router is located. The rule of thumb is to place the cache engine closest to the clients.If your wccp router is on the outside of the firewall and your CE is either on the inside or DMZ you would have to create a conduit for GRE and a static for translation for the CE. Keep in mind that by placing the CE on the inside or the dmz, there will be extra traffic going through the pix because of the wccp redirection.
    I hope this helps.
    Gonzalo

Maybe you are looking for

  • Is Anyone knows how to blocked My Ipad? Somebody stoled it.

    My Ipad Got stoled. How can i keep it Private?

  • Request aborted by user calling an Oracle Web Service

    Hi I'm using JDeveloper 10.1.2 to create my web services and web service stubs. I have a web application that uses the web service stubs to call the Business Logic that is exposed as Web Services. I'm getting the following intermittent error: IOExcep

  • Acrobat Pro crash

    After using 3d pdf file, Acrobat X Pro crashed and don't start anymore. Shutdown, restart I have tried already. No result. In win task manager there are only arcotray, and if I try to start program then acrobat.exe*32 appears only for 1 second inside

  • Tomcat startup problem Win98

    Hello Friends, I am trying to start up Tomcat server, but keep getting error that TOMCAT_HOME is not set. I am using Windows 98. I tried to set the Tomcat_home using SET TOMCAT_HOME = C:\Tomcat in autoexec.bat but it gives error - out of enviromental

  • Can't choose words in Custom input on OS X Mavericks

    Before I upgrade to OS X Mavericks, my custom input source works fine, I can choose the word from the list by using the numbers. However, after i upgraded to OS X Mavericks, the custom input can only use arrows to choose the specified wordings.