cancel
Showing results for 
Search instead for 
Did you mean: 

CJS-20057:Starting J2EE Engine JC00 of SAP system J2E failed: after 1317 se

Former Member
0 Kudos

Hi,

This error message stopped my installation during the phrase of "Start J2EE Engine". Here is the log-

INFO 2005-04-06 09:42:19 [synxccuren.cpp:716]

CSyCurrentProcessEnvironmentImpl::setUser()

Switched to user: j2eadm.

INFO 2005-04-06 09:42:20 [syxxccuren.hpp:347]

CSyCurrentProcessEnvironmentImpl::setWorkingDirectory(iastring)

Working directory changed to C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\CENTRAL\ONE_HOST.

INFO 2005-04-06 09:42:20

CJSlibModule::writeInfo_impl()

Output of C:\usr\sap/J2E/JC00/j2ee/os_libs/jcmon.exe 'pf=C:\usr\sap\J2E\SYS\profile/J2E_JC00_localhost' is written to the logfile jcmon.exe.log.

INFO 2005-04-06 09:42:21

CJSlibModule::writeInfo_impl()

Execution of the command "C:\usr\sap/J2E/JC00/j2ee/os_libs/jcmon.exe 'pf=C:\usr\sap\J2E\SYS\profile/J2E_JC00_localhost'" finished with return code 0. Output: snipped

INFO 2005-04-06 09:42:21

CJSlibModule::writeInfo_impl()

J2EE Engine JC00 of SAP system J2E did not come up after 1291 seconds: waiting for another 20 seconds.

INFO 2005-04-06 09:42:41 [synxccuren.cpp:716]

CSyCurrentProcessEnvironmentImpl::setUser()

Switched to user: j2eadm.

INFO 2005-04-06 09:42:41 [synxccuren.cpp:716]

CSyCurrentProcessEnvironmentImpl::setUser()

Switched to user: j2eadm.

INFO 2005-04-06 09:42:44 [syxxccuren.hpp:347]

CSyCurrentProcessEnvironmentImpl::setWorkingDirectory(iastring)

Working directory changed to C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\CENTRAL\ONE_HOST.

INFO 2005-04-06 09:42:44

CJSlibModule::writeInfo_impl()

Output of C:\usr\sap/J2E/JC00/j2ee/os_libs/jcmon.exe 'pf=C:\usr\sap\J2E\SYS\profile/J2E_JC00_localhost' is written to the logfile jcmon.exe.log.

INFO 2005-04-06 09:42:47

CJSlibModule::writeInfo_impl()

Execution of the command "C:\usr\sap/J2E/JC00/j2ee/os_libs/jcmon.exe 'pf=C:\usr\sap\J2E\SYS\profile/J2E_JC00_localhost'" finished with return code 0. Output: snipped

ERROR 2005-04-06 09:42:47

CJSlibModule::writeError_impl()

CJS-20057 Starting J2EE Engine JC00 of SAP system J2E failed: after 1317 seconds the state of the engine changed from "Starting" to "Stopped".

I downloaded the zip file and unzipped it in E drive. But I placed everything(default) in C drive. Could it be the reason?

I will be grateful for any idea. Thank you very much

Accepted Solutions (0)

Answers (9)

Answers (9)

Former Member
0 Kudos

Hi Szu-Fen Hsing,

Were you able to solve the problem you have listed below.I am facing the same problem and with one of the solution below I am not able to solve it.

Former Member
0 Kudos

This may only be helpful for aix....

Need to remove shared memory...

run ipcs

and then ipcrm to remove unwanted attached memory.

rgds

Jim

Former Member
0 Kudos

Hi,

I am having the same problem when installing Netweaver on Solaris 8.

Does anybody have a solution to this problem ?

Matthew

Former Member
0 Kudos

Not sure if this will help but..

All of my issues resolved around the Java engine (HEAP) not being able to reserve enough memory. Also, I found some of the default parameters in the config tool to be slightly incorrect.

So, I patched to the Java version C:\j2sdk1.4.2_08..I assume you have edited the profile parameter to include

jstartup/vm/home = <your jdsk> location

During the java install, failed at the IGS step (due to IGS running on the Abap stack), had to kill this process with

qprocess sapservice<SID> (look for the IGS processes)

sapntkill -INT pid pid pid (yes, I'm running Windows)

Then, the failure at the Java startup time. Numerous error messages like cj2-20057, or server0 would not start etc. I tried numerous attempts, eventually identifing that the Java parameters were not correct.

So...

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, and all was fine.

Hope this helps.

Evan

Former Member
0 Kudos

Hi Evan,

great thing it works... if you would get the 10 SDN points for the solution, please go to and make a post under my topic...

Thanks again,

Fabian

jani_bajec
Explorer
0 Kudos

ty Evan Jean, this helped me too (on w2k3 2g ram). Looks like memory stuff were main issues for java not starting.

I just did most corretions u made here and it started. I hope EP will work on top of this though.

Former Member
0 Kudos

Hi,

I encountered the same error when installing Java in HP-UX OS. In my case this was due to the support packs on ABAP stack. I installed ABAP and applied recent support packs as part of post-install steps and then started the Java Add-in.

I re-installed ABAP Central Instance, Database Finalization and created and performed client copy. Thereafter, started Java Add-In. This time, the Java install completed successfully without the CJS-20057 error.

I hope this approach helps you too!

Regards

Raghu Balasubramanian

Former Member
0 Kudos

Hi Evan,

The post was awsome..It really worked out for me..Thanks for the soln..Tell me how to give points to you

reg

Umesh K

Former Member
0 Kudos

Evan you have been outstanding...

Your help is highly appreciated..

Thanks a bunch!!!

Former Member
0 Kudos

Hello All

Let me know if this is still an issue. I eventually worked out my problem after many days of pain..Happy to share my findings if anyone is interested..

Former Member
0 Kudos

Hi Evan,

we have also problems with the J2EE. How you solved your issue? An error description of our problem you can find in the topic I've oppend (J2EE Visual Administrator Login Failuer).

Thanks in advance,

Fabian

Former Member
0 Kudos

Hi,

Can you paste jcmon.exe.log.

regards

Anand.M

Former Member
0 Kudos

Hello,

I'm having a similar issue. Anyone have an idea how to resolve the issue?

-Jeff

Former Member
0 Kudos

I am in a similar situation. Did you get a solution???

Any suggestions???????

Cheers,

Jeetu

Former Member
0 Kudos

Hi Guenther Schober ,

Please Check to start the J2EE Manually using SAPMMC.

It it starts, after press <b>RETRY</b> or restart the old installation.

This should work.

regards

Anand.M

Former Member
0 Kudos

Thanks Anand!

Nope, no luck... When I check the Java stack in MMC, the J2EE engine is already up (green). I tried to stop the installation, reboot, restart manually via SAPMMC, max. heap 1024, max. heap 128 etc. but it still didn't fix the issue.

Could it be that there is something on the ABAP stack side that has to be maintained?

Cheers,

Guenther

Former Member
0 Kudos

Hi,

Can you paste the log file.

regards

Anand.M

Former Member
0 Kudos

Hi Szu-Fen,

I am having the same issue and found some posts that suggest to decrease the max. heap size during the installation.

Unfortunately this did not fix the problem.

Did you have any luck?

Thanks,

Guenther

Message was edited by: Guenther Schober