cancel
Showing results for 
Search instead for 
Did you mean: 

Jcontrol is not starting up automatically

Former Member
0 Kudos

Hello Gurus,

Need your help with the issue am facing.

We have installed a dual-stack (NW 7.0) system using export-import method. [export from source and installed target using system copy]

Installation completed successfully, but when i check, only ABAP stack is running fine and JAVA is not up.

When i check dev_jcontrol log, it says JDK not detected. (we are using Java 1.4.2_16 b05)

So we tried to execute jcontrol manually, the Java system came up. when the minute we close that command prompt window, the java processes are stopping.

No clue what to do? Jcontrol is not starting up automatically.

We are on Windows server 2008 R2 and Oracle 11.

Any insights would be highly appreciated.

Thanks,

Ram.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi RamaKrishna,

Please check below parameter value:

rdisp/j2ee_start = 1

Thanks,

Mirza

former_member185239
Active Contributor
0 Kudos

Hi Rama Krishna,

1. Go to the below directory

usr/sap/<SID>/<instance>/DVEBMGS<XX>/j2ee/cluster 

2. Rename the file instance.properties.vmprop to instance.properties.vmprop.old

3. Then take a restart of SAP System and it will create a new instance.properties.vmprop file

4 if java is not coming , then open the  instance.properties.vmprop file and paste the value javaVMLibPath

 

With Regards

Ashutosh Chaturvedi

Former Member
0 Kudos

Hii Ashutosh,

I tried your steps. But it did not create new instance.properties.vmprop file. That means it is not at all attempting to start jcontrol. Only when i start Jcontrol manually, then it is creating nstance.properties.vmprop file. So the question here is how to get Jcontrol start up automatically.

Thanks,

Ram.

Reagan
Advisor
Advisor
0 Kudos

Have you tried updating the JVM ?

Regards

RB

Former Member
0 Kudos

Please start jcontrol manually and attach dev_bootstarp and dev_jcontrol log files.

Former Member
0 Kudos

Reagan: No, i have not updated the JVM.

Roman: I have already attached dev_bootstrap and dev_jcontrol files (please check my earler replies) after manually starting Jcontrol.

Thanks,

Ram

Former Member
0 Kudos

Please check if jvm.dll file exists in s:\j2sdk1.4.2_16-x64\jre\bin\server folder.

hemanth2
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Hope you are doing good.
Most likely the JDK details are missing in the profile files. Edit the instance profile in /usr/sap/<SID>/SYS/profile/<SID>_JC<num>_<host> and add the following line

jstartup/vm/home = <location of the new jdk>


Now restart the server and check.

Thank you and have a nice day :).

_____________

Kind Regards,

Hemanth

SAP AGS
 

Former Member
0 Kudos

Hi,

Thank all for the replies.

License is already applied and the profile "jstartup/vm/home" already exists.

Am attaching jcontrol and bootstrap logs to this message.

Please help me in resolving this.

Thanks,

Ram.

Reagan
Advisor
Advisor
0 Kudos

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

[Thr 7576] *** ERROR => DlLoadLib()==DLENOACCESS - LoadLibrary("jvm.dll")

  Error 126 = "The specified module could not be found." [dlnt.c       255]

[Thr 7576] *** ERROR => Can't load VM shared library (jvm.dll) (rc=-2) [jhvmxx.c     1692]

The issue is addressed in these SAP notes

1316652 - Analysis of startup errors for the AS Java 7.10

940893 - Analysis of errors within the startup of J2EE Engine 6.40

Regards

RB

hemanth2
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Ram,

Hope you are doing good.
Are these properties correct:
"

-> java path          : s:\j2sdk1.4.2_16-x64

-> java vm version    : 1.4.2_16-b05
"

Does the instance.properties file exist and does it have the right entries?Else recreate it with teh minimun values so that the bootstrap atleast starts:

A Missing instance.properties File (SAP Library - Administration Manual)


Now once the bootstrap starts, the jlaunch processes for server/dispatche should startup.

 

_____________

Kind Regards,

Hemanth

SAP AGS

Former Member
0 Kudos

Hi Reagan,

I have checked those notes and nothing seem to be working for me.

The fact is, when i start jcontrol manually from command prompt, it is starting fine and JAVA is coming up. But when i close the command prompt, the services are going down. The Java is not getting started automatically..

Thanks,

Ram

Reagan
Advisor
Advisor
0 Kudos

Connect as bwqadm and open a command prompt and type

echo %JAVA_HOME%

cd %JAVA_HOME%

cd bin

java -version

Check whether this is the one mainatained in the configtool.

Regards

RB

hemanth2
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi RB,

This need not be true at all times. You may have a different JVM/JDK defined in the environment variabes, but the one that is used by the j2ee server is the one mentioned in the instance profile.
For eg: the customer may have SUN JDK as the environment variable for other applications, but SAPJVM maybe used for the SAP instance.

Kind Regards,

Hemanth

Reagan
Advisor
Advisor
0 Kudos

Hello Hemanth

Agreed. For me it looks like the JAVA_HOME is not set properly and the one used by the Java stack is Sun JVM.


s:\j2sdk1.4.2_16-x64

I believe it should be on the C drive instead of the S drive (Just guessing).

I suggested to check whether the value for JAVA_HOME is same and if only the drive letter is different.

If it is C drive then change it to C and restart SAP and see if that works.

On the systems I have the JRE is installed on the C drive.

Regards

RB

hemanth2
Product and Topic Expert
Product and Topic Expert
0 Kudos

Yes that is a good catch Reagan

Former Member
0 Kudos

Hi,

Yes the instance properties are correct and JAVA_HOME is set correctly.

s:\j2sdk1.4.2_16-x64 - is correct and used by SAP and it is installed on S: and not on C:


Any other insights.


Thanks,

Ram

Reagan
Advisor
Advisor
0 Kudos

Update the JVM on the server and adapt the configuration and restart SAP.

Instead of Sun JVM use SAP JVM.

Regards

RB

hemanth2
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi ram,

Just set the below in the instance.properties (remove all other properties, take a backup):

bootstrap.ClassPath=./bootstrap/launcher.jar

bootstrap.JavaParameters=-Djco.jarm=1

bootstrap.JavaPath=s:\j2sdk1.4.2_16-x64

bootstrap.MainClass=com.sap.engine.offline.OfflineToolStart

bootstrap.MaxHeapSize=128

bootstrap.Name=bootstrap

bootstrap.Parameters=com.sap.engine.bootstrap.Bootstrap ./bootstrap ID0098278  (check your ID from configtool)

bootstrap.RootPath=C:/usr/sap/J2E/JC00/j2ee/cluster 9check your FS)

bootstrap.Type=bootstrap

Now also set element.sync=force as per SAP note 710663. Start the server and check.

regards,
hemanth

Former Member
0 Kudos

Hi Hemanth,

I don't think the parameters you have listed would apply in my case, because the parameters you have given are for a stand-alone JAVA system, whereas my installation is dual-stack system (ABAP+JAVA). So i think there will be differences.

let me know if my thinking is correct.

Thanks,

Ram.

Former Member
0 Kudos

Hi All,

I have small idea here:

Actually jcontrol is getting started and JAVA is coming up, when i start the jcontrol manually (jcontrol pf=<instance profile>).  But the moment i close the command prompt using which i started jcontrol, the JAVA processes are getting stopped. So if the jcontrol.exe stays as running, then there is no issue. So i wanted to create this jcontrol as a service (in windows) to start so that it stays running. I tried it using "sc create" command. Service got created, but its not working. Any ideas?

Thanks,

Ram.

Former Member
0 Kudos

You can't set any program as service. It must conform to some rules to be managed as a service.

hemanth2
Product and Topic Expert
Product and Topic Expert
0 Kudos

It does not matter whether it is a abap+java or a standalone engine; the bootstrap service is a java only one.
Can you please try it (take a backup of the instance.properties first).

Reagan
Advisor
Advisor
0 Kudos

Start with this SAP note

1027447 - jcontrol: startup framework JDK detection

Regards

RB

former_member188883
Active Contributor
0 Kudos

Hi Rama,

Is the license installed for abap+java system ?

Please attached bootstrap.log, jcontrol.log

Regards,

Deepak Kori