cancel
Showing results for 
Search instead for 
Did you mean: 

CJS-20057 SAP J2EE Engine Fails to Start during installation of Java PlugIn

Former Member
0 Kudos

Hi,

I am trying to install SAP Netweaver XI. I sucessfully installed ABAP system but whenever I try to install the Java Plug-In.

I get the followign error:

ERROR 2007-01-05 16:06:49

CJSlibModule::writeError_impl()

CJS-20057 Starting J2EE Engine DVEBMGS00 of SAP system XI3 failed: after 22 seconds the state of the engine changed from "Stopping" to "Stopped".

or

-


changed from "Starting" to "Stopped"

I tried all the solutions suggested through the forum like :

1) Increasing the Java heap size using the Java Plugi-In from

50 MB to Unlimited.

2) Increasing the heap size through the config tool with the following entries:

Run the configtool.bat

For the instance_ID:-

Message Server and Bootstrap tab

256MB memory

no Java parameters set

Servers General Tab

Max heap size 256MB

-Xms128m

-XX:NewSize=32m

-XX:MaxNewSize=64m

-XX:NewRatio=3

-XX:+DisableExplicitGC

The DISPATCHER ID

General TAB

Ensure the max heap size is 64

-Xms64M

Bootstrap TAB

Max heap size 384

(no JAva parameters set)

the SERVER ID

General TAB

Max Heap Size 528

Java parameters as below....

-Xms528M

-XX:PermSize=192M

-XX:MaxPermSize=192M

-XX:NewSize=160M

-XX:MaxNewSize=160M

-XX:SoftRefLRUPolicyMSPerMB=1

-XX:SurvivorRatio=2

-XX:TargetSurvivorRatio=90

-verbose:gc

Bootstrap Tab

383MB

-no java parameters set

Shut down the Java stack in MMC, pressed the Retry button

3). Edited the profile parameter to include

jstartup/vm/home = <your jdsk> location

4). Retrying and resatring the server many times also was not of any use.

I am installing SAP XI on a Virtual Machine with Windows 2003 Server and 1900MB of RAM and 80 GB of HardDisk.

The VM is running on a Pentium IV 2.8 GHz system.

I request you to kindly reply to this problem ASAP as I am working on it for the last one week without any result.

Regards,

Manish

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

Could you please check the host file contain the following entry?

<IP address > <hostnmae>

Regards

Ben

Former Member
0 Kudos

The entries are already there

in the host file.

Former Member
0 Kudos

Manish,

I have the same problem and I am battling with it for last 2 days. Like you say nothing seems to work.

Also see this thread

Same problem and no conclusive answer there. Have a look, may help you.

I entried tried to remove any redundant JRE... do a java - version . Do you get atleast a "1.4.2_x" or lesser ?

Do these checks..may be yo have already gone through these notes. For me its not working, but may be you may come up with something.

Notes

943498 - J2EE engine does not start

940893 - Analysis of error within the startup of J2EE engine

741289 - Porofile parameters of the J2EE engine are lost.

891510 - SAPJUP: START_J2EE_EP fails on Oracle

723909 - Java VM settings for J2EE 6.40/7.0

764417 - Information for troubleshooting of the SAP J2EE Engine 6.40

604564 - Initial help for SAP J2EE problems in WebAS 6.20 environment

I think you are looking in the wrong place, it's not the dev_disp, you need to see, its the dev_server0.

In my case the installation aborts when jcmon reports the below.

This you get the in the programfiles\sapinst related logs. You can also see this in the jcmon.exe.log

==>

NFO 2007-01-14 14:16:16

CJSlibModule::writeInfo_impl()

Output of I:\usr\sap/VIK/DVEBMGS00/j2ee/os_libs/jcmon.exe 'pf=I:\usr\sap\VIK\SYS\profile/VIK_DVEBMGS00_VIKLAB' is written to the

logfile jcmon.exe.log.

INFO 2007-01-14 14:16:18

CJSlibModule::writeInfo_impl()

Execution of the command "I:\usr\sap/VIK/DVEBMGS00/j2ee/os_libs/jcmon.exe 'pf=I:\usr\sap\VIK\SYS\profile/VIK_DVEBMGS00_VIKLAB'"

finished with return code 0. Output: snipped

ERROR 2007-01-14 14:16:18

CJSlibModule::writeError_impl()

CJS-20057 Starting J2EE Engine DVEBMGS00 of SAP system VIK failed: after 21 seconds the state of the engine changed from

"Stopping" to "Stopped".

<==

I went to the command prompt and gave the below command after going to the appropriate path,

jcmon.exe pf=I:\usr\sap\VIK\SYS\profile\VIK_DVEBMGS00_VIKLAB

You will find the below, see the server0 is stopped. Thats what is not starting in our case, and that is the j2ee engine I suppose. Because the dispatcher and the SDM starts as can be seen. If you attempt to restart the process from the jcom administration menu, it wont because if it did then we would not have this problem in the first place. The sapinst tool is calling this.

============================================================

JControl Monitor Program - Main Menue

============================================================

0 : exit

-


10 : Cluster Administration Menue

-


20 : Local Administration Menue

-


command =>

-


SAP System Name : VIK

SAP System : 00

MS Host : VIKLAB

MS Port : 3601

Process Count : 3

PID of JControl : 1116

State of JControl : Some processes running

State inside MS : Some processes running

Run Mode : Normal Mode

Admin URL :

-


Idx

Name

PID

State

Error

Restart

---






0

dispatcher

3948

Running

0

yes

1

server0

0

Stopped

4

no

2

SDM

4564

Running

0

yes

So the problem for us is why does the server0 process not start ? Since it does not start jcmon cant find it and reports it as down, which what we see in the sapinst message.

Also if you see the dev_server0 in the usr\sap\<SID>\SYS\DEVEBMGS00\work you find .

==>

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

[Thr 3140] JHVM_LoadJavaVM: Java VM created OK.

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

JHVM_BuildArgumentList: main method arguments of node [server0]

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

[Thr 4888] Tue Jan 16 22:38:14 2007

[Thr 4888] JHVM_RegisterNatives: registering methods in com.sap.bc.proj.jstartup.JStartupFramework

[Thr 4888] JLaunchISetClusterId: set cluster id 1685750

[Thr 4888] JLaunchISetState: change state from [Initial (0)] to [Waiting for start (1)]

[Thr 4888] JLaunchISetState: change state from [Waiting for start (1)] to [Starting (2)]

[Thr 4928] Tue Jan 16 22:38:17 2007

[Thr 4928] JLaunchIExitJava: exit hook is called (rc=-11113)

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

<==

This is what we need to concentrate on. Why the server process does not start. I am in the same hole for last 2 days. If you find something which helps let me. I will do the same.

regards, Vikram

Former Member
0 Kudos

Mate,

Some prob with ur Java version. Check it and confirm and if possible upgrade to the recommeded version. The java is not supportig ur system,

Cheers

Arun

madasamy_arunachalam
Active Participant
0 Kudos

Hi All

OSS Note 716604, says about whcih version of Java to be used ...as below;

>>>>

Access to appropriate Sun J2SE Version:

Please use Sun J2SE 1.4.2_11 SDK (or higher 1.4.2 versions after they

will become available). It is not recommended to use versions lower than 1.4.2_11. Please also do not use J2SE 5.0

>>>>

regards

Madasamy

Former Member
0 Kudos

the below note gives info on JAVA version to be used

941595 - java info

Cheers

Arun

Former Member
0 Kudos

Thanks Arun Kumar. Shall reward you if this works out. Will try with JDK 1.4.2_11 today and get back. While searching more on SDN I found the below thread

"SAP J2EE-DEP 6.40 certification - JDK requirements "

which says that installation has problems with JDK 1.4.2_10, that's why we have to have a version greater than JDK 1.4.2_10.

The link for this thread is

==>

So please adhere to the following:

Linux 32 Bit + 64 Bit (Itanium)

Windows 32 Bit + 64 Bit (Itanium)

Access to appropriate Sun J2SE Version:

Please use Sun J2SE 1.4.2_09 SDK (or higher 1.4.2 versions after they will become available).

It is not recommended to use versions lower than 1.4.2_09.

Please also do not use J2SE 5.0.

In contrast to the recommendation above please do not use J2SE 1.4.2_10 as it has problems during installation. The problem is under investigation.

The J2SE 1.4.2 SDK is available from

http://java.sun.com .

<==

regads, Vikram

Former Member
0 Kudos

Thanks Madasamy

Former Member
0 Kudos

Hi all,

I got this problem of mine resolved resolved working with colleague and sdn buddy madasamy and we have been at it for 3 days now.

What we did to resolve the problem.

What we did was

1) We de-installed the JDK 1.4.2_10 and reinstalled 1.4.2_11. If you are installing on windows 32 bit, you need JDK 1.4.2_11

2) Check via java - version that the java version for JDK 1.4.2_11 is being used

If not edit your 'path' system environment variable. Also change the vm home parameter found in the ABAP instance profile and give it the correct path

3) If you already have the right JDK, then the most important step is next.

When you can see sapinst retrying saying trying to start j2ee, then it reports 'stopping', then again trying to start. When this is happening, go to your MMC and just stop the SCS (Central services Instance) and start it back up. DO NOT STOP the abap instance, only stop the SCS and start the SCS immediately. In our case when we did this, immediately to our delight we saw the sapinst progressed and the J2EE engine started and went on the post steps and finally the 'successful insallation' scree, Phew !!!. I guess the sapinst requires the SCS services to be down momentarily when the it tries to bring up the the J2EE engine (java server process).

regards, Vikram

Former Member
0 Kudos

Hello Vikram,,

Thanks alot Your post helped me in java add in instllation.

Vijay

Former Member
0 Kudos

Hi,

I think it is trying to look J2EE engine status.

1.) have done the post installation steps on ABAP (like transport, import profiles)

2.) check instance profile parameters (check if any J2ee engine related parameters)

Could you please try to restart ABAP instance ..

what is ABAP instance number?

what did you gave SCS instance parameter ?

Regards

Ben

Former Member
0 Kudos

Hi,

You have to select Installation option "JAVA system finalization"

Regards

Ben

Former Member
0 Kudos

Hi,

I am doing the same.

Regards,

Manish

Former Member
0 Kudos

HI,

Please find below the Developer trace for the above mentioned problem:

-


trc file: "dev_disp", trc level: 1, release: "640"

-


Fri Jan 05 18:11:17 2007

kernel runs with dp version 128000(ext=102000) (@(#) DPLIB-INT-VERSION-128000-UC)

length of sys_adm_ext is 524 bytes

systemid 560 (PC with Windows NT)

relno 6400

patchlevel 0

patchno 43

intno 20020600

make: multithreaded, Unicode

pid 4028

***LOG Q00=> DpSapEnvInit, DPStart (00 4028) [dpxxdisp.c 1100]

shared lib "dw_xml.dll" version 43 successfully loaded

shared lib "dw_xtc.dll" version 43 successfully loaded

shared lib "dw_stl.dll" version 43 successfully loaded

shared lib "dw_gui.dll" version 43 successfully loaded

Fri Jan 05 18:11:22 2007

      • WARNING => DpNetCheck: NiAddrToHost(1.0.0.0) took 5 seconds

***LOG GZZ=> 1 possible network problems detected - check tracefile and adjust the DNS settings [dpxxtool2.c 3886]

MtxInit: -2 0 0

DpSysAdmExtInit: ABAP is active

DpSysAdmExtInit: JAVA is not active

DpShMCreate: sizeof(wp_adm) 10528 (1316)

DpShMCreate: sizeof(tm_adm) 2780232 (13832)

DpShMCreate: sizeof(wp_ca_adm) 24000 (80)

DpShMCreate: sizeof(appc_ca_adm) 8000 (80)

DpShMCreate: sizeof(comm_adm) 290000 (580)

DpShMCreate: sizeof(vmc_adm) 0 (372)

DpShMCreate: sizeof(wall_adm) (38456/34360/64/184)

DpShMCreate: SHM_DP_ADM_KEY (addr: 04410040, size: 3192688)

DpShMCreate: allocated sys_adm at 04410040

DpShMCreate: allocated wp_adm at 04411B58

DpShMCreate: allocated tm_adm_list at 04414478

DpShMCreate: allocated tm_adm at 044144A0

DpShMCreate: allocated wp_ca_adm at 046BB0E8

DpShMCreate: allocated appc_ca_adm at 046C0EA8

DpShMCreate: allocated comm_adm_list at 046C2DE8

DpShMCreate: allocated comm_adm at 046C2E00

DpShMCreate: allocated vmc_adm_list at 04709AD0

DpShMCreate: system runs without vmc_adm

DpShMCreate: allocated ca_info at 04709AF8

DpShMCreate: allocated wall_adm at 04709B00

MBUF state OFF

EmInit: MmSetImplementation( 2 ).

<ES> client 0 initializing ....

<ES> InitFreeList

<ES> block size is 1024 kByte.

Using implementation flat

<EsNT> Memory Reset disabled as NT default

<ES> 658 blocks reserved for free list.

ES initialized.

J2EE server info

start = TRUE

state = STARTED

pid = 1240

argv[0] = E:\usr\sap\XI3\DVEBMGS00/j2ee/os_libs/jcontrol.exe

argv[1] = E:\usr\sap\XI3\DVEBMGS00/j2ee/os_libs/jcontrol.exe

argv[2] = pf=E:\usr\sap\XI3\SYS\profile\XI3_DVEBMGS00_cobra40

argv[3] = -DSAPSTART=1

argv[4] = -DCONNECT_PORT=2118

argv[5] = -DLISTEN_PORT=2119

argv[6] = -DSAPSYSTEM=00

argv[7] = -DSAPSYSTEMNAME=XI3

argv[8] = -DSAPMYNAME=cobra40_XI3_00

argv[9] = -DSAPPROFILE=E:\usr\sap\XI3\SYS\profile\XI3_DVEBMGS00_cobra40

argv[10] = -DFRFC_FALLBACK=ON

argv[11] = -DFRFC_FALLBACK_HOST=localhost

start_lazy = 0

start_control = SAP J2EE startup framework

DpJ2eeStart: j2ee state = STARTED

rdisp/http_min_wait_dia_wp : 1 -> 1

***LOG CPS=> DpLoopInit, ICU ( 2.6.1 2.6 4.0) [dpxxdisp.c 1462]

***LOG Q0K=> DpMsAttach, mscon ( cobra40) [dpxxdisp.c 9736]

CCMS: Initalizing shared memory of size 60000000 for monitoring segment.

Fri Jan 05 18:11:26 2007

CCMS: start to initalize 3.X shared alert area (first segment).

DpMsgAdmin: Set release to 6400, patchlevel 0

DpJ2eeLogin: j2ee state = CONNECTED

MBUF state PREPARED

MBUF component UP

DpMBufHwIdSet: set Hardware-ID

***LOG Q1C=> DpMBufHwIdSet [dpxxmbuf.c 1025]

DpMsgAdmin: Set patchno for this platform to 43

Release check o.K.

Fri Jan 05 18:13:50 2007

***LOG Q0I=> NiPRead: recv (10054: WSAECONNRESET: Connection reset by peer) [ninti.c 777]

      • ERROR => DpIcmMsgProcess: IcmRecMsg (rc=-8,-6) [dpxxdisp.c 15220]

Fri Jan 05 18:13:51 2007

      • ERROR => Internet Communication Manager (pid 544) died [dpxxdisp.c 13280]

Fri Jan 05 18:14:02 2007

      • ERROR => W0 (pid 3352) died [dpxxdisp.c 12187]

      • ERROR => W4 (pid 3300) died [dpxxdisp.c 12187]

      • ERROR => W5 (pid 3160) died [dpxxdisp.c 12187]

my types changed after wp death/restart 0xbf --> 0xb7

      • ERROR => W6 (pid 2484) died [dpxxdisp.c 12187]

my types changed after wp death/restart 0xb7 --> 0xa7

      • ERROR => W7 (pid 3112) died [dpxxdisp.c 12187]

my types changed after wp death/restart 0xa7 --> 0x87

Please reply ASAP.

Regards,

Manish

Former Member
0 Kudos

Hi,

I couldn't understand your problem.

If I am not wrong.

Are you trying to install JAVA stack?

You have two options to in install J2EE engine

1.) you can install (ABAP+J2EE) (It will use same database for ABAP and JAVA)

2.) separate J2EE engine. (you need separate database)

Regards

Ben

Former Member
0 Kudos

Hi Ben,

Thanks for the info.

Yes, i did installed ABAP engine and now iam trying to add on JAVA J2EE engine to that stack.

and now when i am doing this, i am getting the above said error.

hope i am clear this time.

Manish