Skip to Content
author's profile photo Former Member
Former Member

System copy - java NW2004 SR2 references wrong oslib information java error

I have performed a system copy of an ABAP+Java system. The restore was a restore and reSID plus post processing.

The ABAP stack comes up fine however the java stack doesn't.

I have checked the dev* and server.out and dispatcher.out files and have found the following...

in the dev_bootstrap, the following parameters have the old SID (DV1) versus the new SID (DV2). The java engine will not come up becuase of this discrenpancy.

JStartupReadInstanceProperties: read instance properties [/usr/sap/DV1/DVEBMGS00

/j2ee/cluster/instance.properties]

-> ms host : torigui

-> ms port : 3901

-> OS libs : /usr/sap/DV1/DVEBMGS00/j2ee/os_libs

-> Admin URL :

-> run mode : NORMAL

-> run action : NONE

-> enabled : yes

Also

-> java vm type : <default>

-> java vm cpu : ppc64

-> heap size : 384M

-> root path : /usr/sap/DV1/DVEBMGS00/j2ee/cluster

-> class path : ./bootstrap/launcher.jar

-> OS libs path : /usr/sap/DV1/DVEBMGS00/j2ee/os_libs

-> main class : com.sap.engine.offline.OfflineToolStart

-> framework class : com.sap.bc.proj.jstartup.JStartupFramework

-> registr. class : com.sap.bc.proj.jstartup.JStartupNatives

-> framework path : /usr/sap/DV2/DVEBMGS00/exe/jstartup.jar:/usr/sap/DV2/DVE

BMGS00/exe/jvmx.jar

-> parameters : com.sap.engine.bootstrap.Bootstrap ./bootstrap

-> debuggable : yes

-> debug mode : no

-> debug port : 60000

-> debuggable : yes

-> debug mode : no

-> debug port : 60000

-> shutdown timeout : 120000

**********************************************************************

[Thr 772] JLaunchIStartFunc: Thread 772 started as Java VM thread.

[Thr 772] *** ERROR => Can't change working directory [/usr/sap/DV1/DVEB

ee/cluster] (rc = 2) [jlnchxxi_mt. 378]

[Thr 772] *** ERROR => Cannot change to working directory [/usr/sap/DV1/

0/j2ee/cluster] (rc=-1) [jlnchxxi_mt. 724]

[Thr 1] Sat Nov 24 14:40:23 2007

[Thr 1] SigISetIgnoreAction : SIG_IGN for signal 20

[Thr 1] Sat Nov 24 14:40:24 2007

[Thr 1] JLaunchCloseProgram: good bye (exitcode = -1)

[Thr 1] JLaunchCloseProgram: good bye (exitcode = -1)

~

~

~

~

~

~

[Thr 772] JLaunchIStartFunc: Thread 772 started as Java VM thread.

[Thr 772] *** ERROR => Can't change working directory [/usr/sap/DV1/DVEBMGS00/j2ee/cluster]

(rc = 2) [jlnchxxi_mt. 378]

[Thr 772] *** ERROR => Cannot change to working directory [/usr/sap/DV1/DVEBMGS00/j2ee/clust

Can anyone tell me where I can adjust the oslib para

Thanks Mikie

Add a comment
10|10000 characters needed characters exceeded

Related questions

11 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 03:15 PM

    David,

    I did a restore using brtools for the DB. I did an offline backup brtools and then a restore to another server (with ReSID option). That works well for only ABAP stacks.

    I think if it is a dual stack or a java stack, then sapinst MUST be used...is this a correct assumption?

    So I wonder if doing the ABAP restore and then the java export using sapinst and an import using sapinst would work?

    So based on experience is it a requirement to use sapinst (R3Load and Jload) to copy systems?

    Thanks,

    Mikie

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi!

      Basically you can use any method for the restore that you feel comfortable with. If you use the option 'Use Database Tools' (or something like it) there is no Load-process involved. All you do is restore/recover the DB and tell sapinst where the export from SDM is to be found. Sapinst takes care of the rest.

      The Load-method is only required for Heterogeneous System copies as far as I know. Of course you CAN use it in your case as well.

      Regards,

      Jörg

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 02:34 AM

    Joerg,

    So I can export via SDM the java instance and reimport it? Do you have the procedure for this? I can't seem to find this documented in any of the system copy manuals

    Thanks

    Mikie

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Mike,

      That is not correct. You must use sapinst to export the SDM (Which is part of the Java Stack). You do not export the Java Stack with SDM. IN the Dialog input phase of sapinst you indicate that you are using db specific tools to copy your database. This means that sapisnt will archive only the part of your java stack whihc exists in the file system.

      Kind Regards,

      David

  • author's profile photo Former Member
    Former Member
    Posted on Nov 26, 2007 at 07:06 AM

    Mike,

    Can u please paste the contents of dev_jcontrol and instance.properties of DV2.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 26, 2007 at 03:22 PM

    Hi Mike,

    Looks like a permission issue.

    Check if user <sid>adm is able to access the following directory:

    /usr/sap/DV1/DVEBMGS00/j2ee/cluster

    do a the following:

    Login as <sid>adm

    and run the command:

    ls -ltr /usr/sap/DV1/DVEBMGS00/j2ee/

    and check if the cluster directory exists and if it does, what its permissions are.

    Regards,

    Siddhesh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 27, 2007 at 12:08 AM

    Hi Mike,

    Looks like you still have traces of your old SID in Java config files. To fix the issue, open ConfigTool and switch to Configurator Editor. Once there navigate to cluster_data and open instance properties file. Locate the property named "instance.OsLibsPath" and replace old SID with the new one. Verify all other properties as well.

    Regards,

    Mike

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 27, 2007 at 04:15 AM

    Mike,

    Thanks, that has worked however the IDXXXXXXX is still based on the source system. I tried to edit the cluster number but it is greyed out.

    Mikie

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 28, 2007 at 12:47 PM

    Hi!

    Did you do the System Copy with sapinst or like ABAP-Only? Did you export the SDM-Info on the source side and import it on the target side successfully?

    Regards,

    Jörg

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 28, 2007 at 07:29 PM

    I use Oracle DB restore and reSID process. I read the sys copy Nw2004s and it looks like this is ok to use this option. Do you know otherwise?

    The instance.properties has the correct SID and clusterIDs but the configtool shows a different number?

    Thanks

    Mikie

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 28, 2007 at 07:52 PM

    I pull up configtool and I cannot edit ID_XXXXXX entries. I can change paramters but I cannot change the clusterID reference.

    I go to configuration editor-cluster data and propertyshhet and view property entry, I can edit the valus forjlaunch params class paths but I cannot change the name:

    IDXXXXX.ClassPath...

    for instance, the configtool chow ID6555200.ClassPath which is from the source DB copy and in the target this should be ID1888100.ClassPath.

    So where can I change this or do I really truly have to to a refresh of a ABAP+java instance using only Sapinst and no other means such as oracle will not work?

    Thanks

    Mikie

    My jcontrol file shows this:

    torigai:DV2adm 55> view dev_jcontrol

    "dev_jcontrol" [Read only] 138 lines, 7104 characters

    -


    trc file: "/usr/sap/DV2/DVEBMGS00/work/dev_jcontrol", trc level: 1, release: "70

    0"

    -


    node name : jcontrol

    pid : 606376

    system name : DV2

    system nr. : 00

    started at : Wed Nov 28 13:18:20 2007

    arguments :

    arg[00] : jcontrol

    arg[01] : pf=/usr/sap/DV2/SYS/profile/DV2_DVEBMGS00_torigai

    arg[02] : -DSAPSTART=1

    arg[03] : -DCONNECT_PORT=37285

    arg[04] : -DSAPSYSTEM=00

    arg[05] : -DSAPSYSTEMNAME=DV2

    arg[06] : -DSAPMYNAME=torigai_DV2_00

    arg[07] : -DSAPPROFILE=/usr/sap/DV2/SYS/profile/DV2_DVEBMGS00_torigai

    arg[08] : -DFRFC_FALLBACK=ON

    arg[09] : -DFRFC_FALLBACK_HOST=localhost

    [Thr 1] Wed Nov 28 13:18:20 2007

    [Thr 1] *** WARNING => INFO: Unknown property [instance.box.number=DV2DVEBMGS00

    torigai] [jstartxx_mt. 841]

    [Thr 1] *** WARNING => INFO: Unknown property [instance.en.host=torigai] [jsta

    rtxx_mt. 841]

    [Thr 1] *** WARNING => INFO: Unknown property [instance.en.port=3201] [jstartxx

    _mt. 841]

    [Thr 1] *** WARNING => INFO: Unknown property [instance.system.id=0] [jstartxx_

    mt. 841]

    **********************************************************************

    JStartupReadInstanceProperties: read instance properties [/usr/sap/DV2/DVEBMGS00

    /j2ee/cluster/instance.properties:/usr/sap/DV2/DVEBMGS00/SDM/program/config/sdm_

    jstartup.properties]

    -> ms host : torigai

    -> ms port : 3901

    -> OS libs : /usr/sap/DV2/DVEBMGS00/j2ee/os_libs

    -> Admin URL :

    -> run mode : NORMAL

    -> run action : NONE

    -> enabled : yes

    **********************************************************************

    **********************************************************************

    Used property files

    -> files [00] : /usr/sap/DV2/DVEBMGS00/j2ee/cluster/instance.properties

    -> files [01] : /usr/sap/DV2/DVEBMGS00/SDM/program/config/sdm_jstartup.propertie

    s

    **********************************************************************

    **********************************************************************

    Instance properties

    -> ms host : torigai

    -> ms port : 3901

    -> os libs : /usr/sap/DV2/DVEBMGS00/j2ee/os_libs

    -> admin URL :

    -> run mode : NORMAL

    -> run action : NONE

    -> enabled : yes

    **********************************************************************

    **********************************************************************

    Bootstrap nodes

    -> [00] bootstrap : /usr/sap/DV2/DVEBMGS00/j2ee/cluster/instance.prop

    erties

    -> [01] bootstrap_ID1888100 : /usr/sap/DV2/DVEBMGS00/j2ee/cluster/instance.prop

    erties

    -> [02] bootstrap_ID1888150 : /usr/sap/DV2/DVEBMGS00/j2ee/cluster/instance.prop

    erties

    **********************************************************************

    **********************************************************************

    **********************************************************************

    Worker nodes

    -> [00] ID1888100 : /usr/sap/DV2/DVEBMGS00/j2ee/cluster/instance.prop

    erties

    -> [01] ID1888150 : /usr/sap/DV2/DVEBMGS00/j2ee/cluster/instance.prop

    erties

    -> [02] sdm : /usr/sap/DV2/DVEBMGS00/SDM/program/config/sdm_jst

    artup.properties

    **********************************************************************

    [Thr 1] SigISetDefaultAction : default handling for signal 20

    [Thr 1] JControlExecuteBootstrap: execute bootstrap process [bootstrap]

    [Thr 258] JControlDPMessageFunc: Thread 258 started as handler thread for R/3 di

    spatcher messages.

    [Thr 1] [Node: bootstrap] java home is set by profile parameter

    Java Home: /usr/java14_64

    [Thr 1] JStartupICheckFrameworkPackage: can't find framework package /usr/sap/X

    S5/SYS/exe/run/jvmx.jar

    **********************************************************************

    JStartupIReadSection: read node properties [bootstrap]

    -> node name : bootstrap

    JStartupIReadSection: read node properties [bootstrap]

    -> node name : bootstrap

    -> node type : bootstrap

    -> node execute : yes

    -> java path : /usr/java14_64

    -> java parameters : -Djco.jarm=1 -Xj9

    -> java vm version : J2RE 1.4.2 IBM J9 2.3 AIX ppc64-64 j9ap64142ifx-20061222

    (JIT enabled)

    -> java vm vendor : IBM J9 VM (IBM Corporation)

    -> java vm type : server

    -> java vm cpu : ppc64

    -> heap size : 256M

    -> root path : /usr/sap/DV2/DVEBMGS00/j2ee/cluster

    -> class path : ./bootstrap/launcher.jar

    -> OS libs path : /usr/sap/DV2/DVEBMGS00/j2ee/os_libs

    -> main class : com.sap.engine.offline.OfflineToolStart

    -> framework class : com.sap.bc.proj.jstartup.JStartupFramework

    -> registr. class : com.sap.bc.proj.jstartup.JStartupNatives

    -> framework path : /usr/sap/DV2/SYS/exe/run/jstartup.jar:/usr/sap/DV2/SYS/e

    xe/run/jvmx.jar

    -> parameters : com.sap.engine.bootstrap.Bootstrap ./bootstrap ID1888150

    -> debuggable : yes

    -> debug mode : no

    -> debuggable : yes

    -> debug mode : no

    -> debug port : 60000

    -> shutdown timeout : 120000

    **********************************************************************

    **********************************************************************

    JControlStartJLaunch: program = /usr/sap/DV2/DVEBMGS00/exe/jlaunch

    -> arg[00] = /usr/sap/DV2/DVEBMGS00/exe/jlaunch

    -> arg[01] = pf=/usr/sap/DV2/SYS/profile/DV2_DVEBMGS00_torigai

    -> arg[02] = -DSAPINFO=DV2_00_bootstrap

    -> arg[03] = -nodeId=-1

    -> arg[04] = -file=/usr/sap/DV2/DVEBMGS00/j2ee/cluster/instance.properties

    -> arg[05] = -syncSem=10485897

    -> arg[06] = -nodeName=bootstrap

    -> arg[07] = -jvmOutFile=/usr/sap/DV2/DVEBMGS00/work/jvm_bootstrap.out

    -> arg[08] = -stdOutFile=/usr/sap/DV2/DVEBMGS00/work/std_bootstrap.out

    -> arg[09] = -locOutFile=/usr/sap/DV2/DVEBMGS00/work/dev_bootstrap

    -> arg[10] = -mode=BOOTSTRAP

    -> arg[11] = pf=/usr/sap/DV2/SYS/profile/DV2_DVEBMGS00_torigai

    -> arg[12] = -DSAPSTART=1

    -> arg[13] = -DCONNECT_PORT=37286

    -> arg[12] = -DSAPSTART=1

    -> arg[13] = -DCONNECT_PORT=37286

    -> arg[14] = -DSAPSYSTEM=00

    -> arg[15] = -DSAPSYSTEMNAME=DV2

    -> arg[16] = -DSAPMYNAME=torigai_DV2_00

    -> arg[17] = -DSAPPROFILE=/usr/sap/DV2/SYS/profile/DV2_DVEBMGS00_torigai

    -> arg[18] = -DFRFC_FALLBACK=ON

    -> arg[19] = -DFRFC_FALLBACK_HOST=localhost

    -> lib path = LIBPATH=/usr/java14_64/jre/bin:/usr/java14_64/jre/bin:/usr/java14_

    64/jre/bin/classic:/usr/java14_64/jre/bin:/usr/sap/DV2/DVEBMGS00/exe:/usr/sap/XS

    5/DVEBMGS00/exe:/usr/sap/DV2/DVEBMGS00/exe:/usr/sap/DV2/SYS/exe/run:/oracle/clie

    nt/10x_64/instantclient:/usr/sap/DV2/DVEBMGS00/exe::/usr/lib:/usr/sap/DV2/DVEBMG

    S00/j2ee/os_libs:/usr/sap/DV2/DVEBMGS00/exe:/usr/sap/DV2/DVEBMGS00/exe:/usr/sap/

    DV2/DVEBMGS00/exe:/usr/lib:/lib:/usr/sap/DV2/SYS/exe/run:/oracle/client/10x_64/i

    nstantclient

    -> exe path = PATH=/usr/java14_64/bin:/usr/sap/DV2/DVEBMGS00/j2ee/os_libs:/oracl

    e/DV2/102_64/bin:/usr/java14_64/bin:/home/DV2adm:/usr/sap/DV2/SYS/exe/run:/usr/b

    in:/etc:/usr/sbin:/usr/ucb:/home/DV2adm/bin:/usr/bin/X11:/sbin:.

    **********************************************************************

    [Thr 1] JStartupICreateProcess: fork process (pid 901158)

    [Thr 1] Wed Nov 28 13:18:27 2007

    [Thr 1] Wed Nov 28 13:18:27 2007

    [Thr 1] *** ERROR => invalid return code of process [bootstrap] (exitcode = 66)

    [jstartxx_mt. 1642]

    [Thr 1] JControlExecuteBootstrap: error executing bootstrap node [bootstrap] (r

    c = 66)

    [Thr 1] JControlCloseProgram: started (exitcode = 66)

    [Thr 1] JControlCloseProgram: good bye... (exitcode = 66)

    ~

    ~

    ~

    ~

    ~

    ~

    ~

    ~

    ~

    ~

    ~

    ~

    ~

    ~

    ~

    -> debug port : 60000

    -> shutdown timeout : 120000

    **********************************************************************

    **********************************************************************

    JControlStartJLaunch: program = /usr/sap/DV2/DVEBMGS00/exe/jlaunch

    -> arg[00] = /usr/sap/DV2/DVEBMGS00/exe/jlaunch

    -> arg[01] = pf=/usr/sap/DV2/SYS/profile/DV2_DVEBMGS00_torigai

    -> arg[02] = -DSAPINFO=DV2_00_bootstrap

    -> arg[03] = -nodeId=-1

    -> arg[04] = -file=/usr/sap/DV2/DVEBMGS00/j2ee/cluster/instance.properties

    -> arg[05] = -syncSem=10485897

    -> arg[06] = -nodeName=bootstrap

    -> arg[07] = -jvmOutFile=/usr/sap/DV2/DVEBMGS00/work/jvm_bootstrap.out

    -> arg[08] = -stdOutFile=/usr/sap/DV2/DVEBMGS00/work/std_bootstrap.out

    -> arg[09] = -locOutFile=/usr/sap/DV2/DVEBMGS00/work/dev_bootstrap

    -> arg[10] = -mode=BOOTSTRAP

    -> arg[11] = pf=/usr/sap/DV2/SYS/profile/DV2_DVEBMGS00_torigai

    -> arg[12] = -DSAPSTART=1

    -> arg[13] = -DCONNECT_PORT=37286

    -> arg[14] = -DSAPSYSTEM=00

    -> arg[15] = -DSAPSYSTEMNAME=DV2

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 28, 2007 at 07:53 PM

    Hi Mike,

    It sounds like you did not take an export of your Java Stack. For a dual stack system a larget part of your java stack exists outside of the database, and this must be exported seperately using sapinst.

    On the target system sapinst must be used again to install the system, and a migration controller is run which converts the java stact to run on the new system.

    Have you copied your system in this manner?

    Regards,

    David

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.