cancel
Showing results for 
Search instead for 
Did you mean: 

JAVA start up

Former Member
0 Kudos

Hi,

We have Java system which is connected to ABAP as datasource ABAP,By default ume .r3.master client is 100,now we want to change it to client 200,I have created SAPJSF user in client 200 and change the client to 200 in config tool and restarted the server,but it fails with below error,

Apr 5, 2011 12:00:59 PM ...xt.<init>(UserContextSpi, Properties) [SAPEngine_System_Thread[impl:5]_31] Fatal: Can not instantiate UserContext with given properties.

21.370: [GC 21.370: [ParNew: 202296K->39753K(261888K), 0.0387609 secs] 202296K->39753K(2009856K), 0.0388485 secs]

service security ================= ERROR =================

Core service security failed. J2EE Engine cannot be started.

com.sap.engine.services.security.exceptions.SecurityServiceException: Unexpected exception:

at com.sap.engine.services.security.SecurityServerFrame.start(SecurityServerFrame.java:183)

at com.sap.engine.core.service630.container.ServiceRunner.startApplicationServiceFrame(ServiceRunner.java:214)

at com.sap.engine.core.service630.container.ServiceRunner.run(ServiceRunner.java:144)

at com.sap.engine.frame.core.thread.Task.run(Task.java:64)

at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:83)

at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:156)

Caused by: com.sap.engine.services.security.exceptions.BaseSecurityException: No active userstore is set.

at com.sap.engine.services.security.server.UserStoreFactoryImpl.getActiveUserStore(UserStoreFactoryImpl.java:80)

at com.sap.engine.services.security.server.jaas.LoginModuleHelperImpl.update(LoginModuleHelperImpl.java:405)

at com.sap.engine.services.security.server.jaas.LoginModuleHelperImpl.<init>(LoginModuleHelperImpl.java:84)

at com.sap.engine.services.security.server.SecurityContextImpl.<init>(SecurityContextImpl.java:58)

at com.sap.engine.services.security.SecurityServerFrame.start(SecurityServerFrame.java:136)

... 5 more

com.sap.engine.services.security.exceptions.SecurityServiceException: Unexpected exception:

at com.sap.engine.services.security.SecurityServerFrame.start(SecurityServerFrame.java:183)

at com.sap.engine.core.service630.container.ServiceRunner.startApplicationServiceFrame(ServiceRunner.java:214)

at com.sap.engine.core.service630.container.ServiceRunner.run(ServiceRunner.java:144)

at com.sap.engine.frame.core.thread.Task.run(Task.java:64)

at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:83)

at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:156)

Caused by: com.sap.engine.services.security.exceptions.BaseSecurityException: No active userstore is set.

at com.sap.engine.services.security.server.UserStoreFactoryImpl.getActiveUserStore(UserStoreFactoryImpl.java:80)

at com.sap.engine.services.security.server.jaas.LoginModuleHelperImpl.update(LoginModuleHelperImpl.java:405)

at com.sap.engine.services.security.server.jaas.LoginModuleHelperImpl.<init>(LoginModuleHelperImpl.java:84)

at com.sap.engine.services.security.server.SecurityContextImpl.<init>(SecurityContextImpl.java:58)

at com.sap.engine.services.security.SecurityServerFrame.start(SecurityServerFrame.java:136)

... 5 more

[Framework -> criticalShutdown] Core service security failed. J2EE Engine cannot be started.

Apr 5, 2011 12:00:59 PM com.sap.engine.core.Framework [SAPEngine_System_Thread[impl:5]_31] Fatal: Critical shutdown was invoked. Reason is: Core service security failed. J2EE Engine cannot be started.

Regards

Uday

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Uday,

Please ensure the following users are exists in your new UME client:

J2EE_ADMIN or J2EE_ADM_<SID>

SAPJSF (you mention that you have created it)

The UME user assigned in the configuration.

J2EE_GUEST or J2EE_GST_<SID>.

Ensure all users can login to system and have appropriate role.

J2EE_ADMIN: SAP_J2EE_ADMIN

SAPJSF: SAP_BC_JSF_COMMUNICATION_RO

UME user: SAP_BC_JSF_COMMUNICATION_RO will do though you may want to put SAP_ALL to enable user administration from JAVA side.

J2EE_GUEST or J2EE_GST_<SID>: SAP_J2EE_GUEST

Then restart the JAVA Instance.

Hope this help.

Thank you

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi

Problem was with J2EE_GST_<SID> user which was not created in the client which has been pointed in Config tool,manually created the user which resolved the problem

Regards

Uday

Former Member
0 Kudos

Hi,

I have done those changes at Config tool>Global server configuration>services-->com.sap.sercurity.core.ume.service

and restarted the server

Regards

Uday

Former Member
0 Kudos

Hi,

You can just check the settings in the config tool location I told you.. Its upto u..

Rgds,

Soujanya

Former Member
0 Kudos

Hi Sunny,

std_server0.out Log

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

Apr 6, 2011 1:55:00 AM ...xt.<init>(UserContextSpi, Properties) [SAPEngine_System_Thread[impl:5]_31] Fatal: Can not instantiate UserContext with given properties.

21.268: [GC 21.268: [ParNew: 202383K->39748K(261888K), 0.0389748 secs] 202383K->39748K(2009856K), 0.0390614 secs]

service security ================= ERROR =================

Core service security failed. J2EE Engine cannot be started.

com.sap.engine.services.security.exceptions.SecurityServiceException: Unexpected exception:

at com.sap.engine.services.security.SecurityServerFrame.start(SecurityServerFrame.java:183)

at com.sap.engine.core.service630.container.ServiceRunner.startApplicationServiceFrame(ServiceRunner.java:214)

at com.sap.engine.core.service630.container.ServiceRunner.run(ServiceRunner.java:144)

at com.sap.engine.frame.core.thread.Task.run(Task.java:64)

at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:83)

at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:156)

Caused by: com.sap.engine.services.security.exceptions.BaseSecurityException: No active userstore is set.

at com.sap.engine.services.security.server.UserStoreFactoryImpl.getActiveUserStore(UserStoreFactoryImpl.java:80)

at com.sap.engine.services.security.server.jaas.LoginModuleHelperImpl.update(LoginModuleHelperImpl.java:405)

at com.sap.engine.services.security.server.jaas.LoginModuleHelperImpl.<init>(LoginModuleHelperImpl.java:84)

at com.sap.engine.services.security.server.SecurityContextImpl.<init>(SecurityContextImpl.java:58)

at com.sap.engine.services.security.SecurityServerFrame.start(SecurityServerFrame.java:136)

... 5 more

com.sap.engine.services.security.exceptions.SecurityServiceException: Unexpected exception:

at com.sap.engine.services.security.SecurityServerFrame.start(SecurityServerFrame.java:183)

at com.sap.engine.core.service630.container.ServiceRunner.startApplicationServiceFrame(ServiceRunner.java:214)

at com.sap.engine.core.service630.container.ServiceRunner.run(ServiceRunner.java:144)

at com.sap.engine.frame.core.thread.Task.run(Task.java:64)

at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:83)

at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:156)

Caused by: com.sap.engine.services.security.exceptions.BaseSecurityException: No active userstore is set.

at com.sap.engine.services.security.server.UserStoreFactoryImpl.getActiveUserStore(UserStoreFactoryImpl.java:80)

at com.sap.engine.services.security.server.jaas.LoginModuleHelperImpl.update(LoginModuleHelperImpl.java:405)

at com.sap.engine.services.security.server.jaas.LoginModuleHelperImpl.<init>(LoginModuleHelperImpl.java:84)

at com.sap.engine.services.security.server.SecurityContextImpl.<init>(SecurityContextImpl.java:58)

at com.sap.engine.services.security.SecurityServerFrame.start(SecurityServerFrame.java:136)

... 5 more

[Framework -> criticalShutdown] Core service security failed. J2EE Engine cannot be started.

Apr 6, 2011 1:55:00 AM com.sap.engine.core.Framework [SAPEngine_System_Thread[impl:5]_31] Fatal: Critical shutdown was invoked. Reason is: Core service security failed. J2EE Engine cannot be started.

dev_server0

==========

[Thr 7904] Wed Apr 06 01:54:59 2011

[Thr 7904] JHVM_RegisterNatives: registering methods in com.sap.mw.rfc.driver.CpicDriver

[Thr 7904] JHVM_RegisterNatives: registering methods in com.sap.i18n.cp.ConverterJNI

[Thr 7904] JHVM_RegisterNatives: registering methods in com.sap.mw.rfc.engine.Compress

Wed Apr 06 01:55:00 2011

21.268: [GC 21.268: [ParNew: 202383K->39748K(261888K), 0.0389748 secs] 202383K->39748K(2009856K), 0.0390614 secs]

[Thr 1132] Wed Apr 06 01:55:01 2011

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

[Thr 1132] **********************************************************************

      • ERROR => The Java VM terminated with a non-zero exit code.

      • Please see SAP Note 943602 , section 'J2EE Engine exit codes'

      • for additional information and trouble shooting.

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

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

Regards

Uday

Former Member
0 Kudos

Hi Uday,

In the config tool, did you make the changes in the "offline config tool" editor? If no, then start configtool. bat, goto Offline config tool editor from the top right hand corner... Navigate to the property sheet -> com.sap.core.ume.service and make the changes here. The settings will be reflected globally. Restart your system after this.

Hope it helps.

Rgds,

Soujanya

Former Member
0 Kudos

Hi Sunny,

I edited below ume properites as per the link,

○ To connect to an AS ABAP system, you must edit the following UME properties:

■ ume.r3.connection.master.ashost

■ ume.r3.connection.master.sysnr

■ ume.r3.connection.master.client

■ ume.r3.connection.master.user

■ ume.r3.connection.master.passwd

I have changed client number and master password to reflect the new changes and created SAPJSF in new client with communication user and updated the same password as master password,but still things are not working.

Not sure what Iam missing,If i change back to old client it starts working,but not for new client

Regards

Uday

sunny_pahuja2
Active Contributor
0 Kudos

Could you please paste logs from default trace ?

Thanks

Sunny

MarceloPinheiro
Advisor
Advisor
0 Kudos

From your message I noted the following:

Caused by:

com.sap.engine.services.security.exceptions.BaseSecurityException: No active userstore is set

Please note: 718383: NetWeaver: Supported UME Data Sources and Change

Please check that the appropriate settings are in place for the R3 in the propertysheet com.sap.security.core.ume.service

and also in the Secure Store area of the ConfigTool.

Also, check the link posted in previous message.

Marcelo Pinheiro

Edited by: Marcelo Pinheiro on Apr 5, 2011 3:06 PM

sunny_pahuja2
Active Contributor
0 Kudos

Hi,

Please make sure that you should have done changes as per below link:

http://help.sap.com/saphelp_nw70ehp2/helpdata/EN/db/8b9b801df84aaaa76bdbcbc0b9725f/content.htm

Thanks

Sunny