on 06-12-2009 1:03 PM
Hi,
I coded a EJB which runs as a web service. Within in the EJB, I call an RFC. I added com.sap.mw.jco from Add/Remove Additional Libraries context menu. And I added a weak reference to application-j2ee-engine.xml.
And this is the xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application-j2ee-engine SYSTEM "application-j2ee-engine.dtd">
<application-j2ee-engine>
<reference
reference-type="hard">
<reference-target
provider-name="sap.com"
target-type="library">com.sap.mw.jco</reference-target>
</reference>
<provider-name>sap.com</provider-name>
<fail-over-enable
mode="disable"/>
</application-j2ee-engine>
I tried reference-type hard and weak, it does not matter. When I call web service application server restarts.
Our system is: WEB AS : 6.20 EP 6.0
This is the log:
#1.5 #000D60EC04F5003D0000015100001C5C00046C254A3C85DE#1244807321937#com.sap.engine.services.deploy##com.sap.engine.services.deploy####n/a##5f843280574611deb71e000d60ec04f5#SAPEngine_System_Thread[impl:5]_39##0#0#Error#1#/System/Server#Plain###Error occurred while initially starting application sap.com/tc~mobile~admin~ea:Application sap.com/tc~mobile~admin~ea cannot be started. Reason: it has hard reference to resource tc_SL_SDM_Client with type library, which is not active on the server.#
#1.5 #000D60EC04F500480000000F00001C5C00046C25730BD0FB#1244808006593#System.err#sap.com/CompSifremEAR#System.err#Administrator#142##n/a##919dbff0574811dea043000d60ec04f5#SAPEngine_Application_Thread[impl:3]_22##0#0#Error##Plain###com.sap.mw.jco.JCO$Exception: (103) RFC_ERROR_LOGON_FAILURE: User CompSIFREM has no RFC authorization for function group SYST .#
#1.5 #000D60EC04F500480000001000001C5C00046C25730BDC0D#1244808006593#System.err#sap.com/CompSifremEAR#System.err#Administrator#142##n/a##919dbff0574811dea043000d60ec04f5#SAPEngine_Application_Thread[impl:3]_22##0#0#Error##Plain### at com.sap.mw.jco.MiddlewareJRfc.generateJCoException(MiddlewareJRfc.java:412)#
#1.5 #000D60EC04F500480000001100001C5C00046C25730BDD81#1244808006593#System.err#sap.com/CompSifremEAR#System.err#Administrator#142##n/a##919dbff0574811dea043000d60ec04f5#SAPEngine_Application_Thread[impl:3]_22##0#0#Error##Plain### at com.sap.mw.jco.MiddlewareJRfc$Client.connect(MiddlewareJRfc.java:944)#
#1.5 #000D60EC04F500480000001200001C5C00046C25730BDEC3#1244808006593#System.err#sap.com/CompSifremEAR#System.err#Administrator#142##n/a##919dbff0574811dea043000d60ec04f5#SAPEngine_Application_Thread[impl:3]_22##0#0#Error##Plain### at com.sap.mw.jco.JCO$Client.connect(JCO.java:3243)#
#1.5 #000D60EC04F500480000001300001C5C00046C25730BE00A#1244808006593#System.err#sap.com/CompSifremEAR#System.err#Administrator#142##n/a##919dbff0574811dea043000d60ec04f5#SAPEngine_Application_Thread[impl:3]_22##0#0#Error##Plain### at com.Comp.sifrem.util.RFCWrapper.callRFC(RFCWrapper.java:39)#
#1.5 #000D60EC04F500480000001400001C5C00046C25730BE162#1244808006593#System.err#sap.com/CompSifremEAR#System.err#Administrator#142##n/a##919dbff0574811dea043000d60ec04f5#SAPEngine_Application_Thread[impl:3]_22##0#0#Error##Plain### at com.Comp.sifrem.ejb.EmployeeWSBean.getEmployeeInfo(EmployeeWSBean.java:45)#
#1.5 #000D60EC04F500480000001500001C5C00046C25730BE2BC#1244808006593#System.err#sap.com/CompSifremEAR#System.err#Administrator#142##n/a##919dbff0574811dea043000d60ec04f5#SAPEngine_Application_Thread[impl:3]_22##0#0#Error##Plain### at com.Comp.sifrem.ejb.EmployeeWSLocalLocalObjectImpl0_0.getEmployeeInfo(EmployeeWSLocalLocalObjectImpl0_0.java:103)#
#1.5 #000D60EC04F500480000001600001C5C00046C25730BE413#1244808006593#System.err#sap.com/CompSifremEAR#System.err#Administrator#142##n/a##919dbff0574811dea043000d60ec04f5#SAPEngine_Application_Thread[impl:3]_22##0#0#Error##Plain### at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)#
#1.5 #000D60EC04F500480000001700001C5C00046C25730BE572#1244808006593#System.err#sap.com/CompSifremEAR#System.err#Administrator#142##n/a##919dbff0574811dea043000d60ec04f5#SAPEngine_Application_Thread[impl:3]_22##0#0#Error##Plain### at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)#
#1.5 #000D60EC04F500480000001800001C5C00046C25730BE6CE#1244808006593#System.err#sap.com/CompSifremEAR#System.err#Administrator#142##n/a##919dbff0574811dea043000d60ec04f5#SAPEngine_Application_Thread[impl:3]_22##0#0#Error##Plain### at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)#
#1.5 #000D60EC04F500480000001900001C5C00046C25730BE9EF#1244808006593#System.err#sap.com/CompSifremEAR#System.err#Administrator#142##n/a##919dbff0574811dea043000d60ec04f5#SAPEngine_Application_Thread[impl:3]_22##0#0#Error##Plain### at java.lang.reflect.Method.invoke(Method.java:324)#
#1.5 #000D60EC04F500480000001A00001C5C00046C25730BEB53#1244808006593#System.err#sap.com/CompSifremEAR#System.err#Administrator#142##n/a##919dbff0574811dea043000d60ec04f5#SAPEngine_Application_Thread[impl:3]_22##0#0#Error##Plain### at com.sap.engine.services.webservices.runtime.EJBImplementationContainer.invokeMethod(EJBImplementationContainer.java:126)#
#1.5 #000D60EC04F500480000001B00001C5C00046C25730BECBD#1244808006593#System.err#sap.com/CompSifremEAR#System.err#Administrator#142##n/a##919dbff0574811dea043000d60ec04f5#SAPEngine_Application_Thread[impl:3]_22##0#0#Error##Plain### at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:157)#
#1.5 #000D60EC04F500480000001C00001C5C00046C25730BEE1B#1244808006593#System.err#sap.com/CompSifremEAR#System.err#Administrator#142##n/a##919dbff0574811dea043000d60ec04f5#SAPEngine_Application_Thread[impl:3]_22##0#0#Error##Plain### at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:79)#
#1.5 #000D60EC04F500480000001D00001C5C00046C25730BEF7A#1244808006593#System.err#sap.com/CompSifremEAR#System.err#Administrator#142##n/a##919dbff0574811dea043000d60ec04f5#SAPEngine_Application_Thread[impl:3]_22##0#0#Error##Plain### at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:92)#
#1.5 #000D60EC04F500480000001E00001C5C00046C25730BF0D5#1244808006593#System.err#sap.com/CompSifremEAR#System.err#Administrator#142##n/a##919dbff0574811dea043000d60ec04f5#SAPEngine_Application_Thread[impl:3]_22##0#0#Error##Plain### at SoapServlet.doPost(SoapServlet.java:51)#
#1.5 #000D60EC04F500480000001F00001C5C00046C25730BF213#1244808006593#System.err#sap.com/CompSifremEAR#System.err#Administrator#142##n/a##919dbff0574811dea043000d60ec04f5#SAPEngine_Application_Thread[impl:3]_22##0#0#Error##Plain### at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)#
#1.5 #000D60EC04F500480000002000001C5C00046C25730BF360#1244808006593#System.err#sap.com/CompSifremEAR#System.err#Administrator#142##n/a##919dbff0574811dea043000d60ec04f5#SAPEngine_Application_Thread[impl:3]_22##0#0#Error##Plain### at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)#
#1.5 #000D60EC04F500480000002100001C5C00046C25730BF4C3#1244808006609#System.err#sap.com/CompSifremEAR#System.err#Administrator#142##n/a##919dbff0574811dea043000d60ec04f5#SAPEngine_Application_Thread[impl:3]_22##0#0#Error##Plain### at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)#
#1.5 #000D60EC04F500480000002200001C5C00046C25730BF621#1244808006609#System.err#sap.com/CompSifremEAR#System.err#Administrator#142##n/a##919dbff0574811dea043000d60ec04f5#SAPEngine_Application_Thread[impl:3]_22##0#0#Error##Plain### at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)#
#1.5 #000D60EC04F500480000002300001C5C00046C25730BF785#1244808006609#System.err#sap.com/CompSifremEAR#System.err#Administrator#142##n/a##919dbff0574811dea043000d60ec04f5#SAPEngine_Application_Thread[impl:3]_22##0#0#Error##Plain### at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)#
#1.5 #000D60EC04F500480000002400001C5C00046C25730BF8E3#1244808006609#System.err#sap.com/CompSifremEAR#System.err#Administrator#142##n/a##919dbff0574811dea043000d60ec04f5#SAPEngine_Application_Thread[impl:3]_22##0#0#Error##Plain### at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)#
#1.5 #000D60EC04F500480000002500001C5C00046C25730BFA46#1244808006609#System.err#sap.com/CompSifremEAR#System.err#Administrator#142##n/a##919dbff0574811dea043000d60ec04f5#SAPEngine_Application_Thread[impl:3]_22##0#0#Error##Plain### at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)#
#1.5 #000D60EC04F500480000002600001C5C00046C25730BFBBE#1244808006609#System.err#sap.com/CompSifremEAR#System.err#Administrator#142##n/a##919dbff0574811dea043000d60ec04f5#SAPEngine_Application_Thread[impl:3]_22##0#0#Error##Plain### at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)#
#1.5 #000D60EC04F500480000002700001C5C00046C25730BFD22#1244808006609#System.err#sap.com/CompSifremEAR#System.err#Administrator#142##n/a##919dbff0574811dea043000d60ec04f5#SAPEngine_Application_Thread[impl:3]_22##0#0#Error##Plain### at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)#
#1.5 #000D60EC04F500480000002800001C5C00046C25730BFE84#1244808006609#System.err#sap.com/CompSifremEAR#System.err#Administrator#142##n/a##919dbff0574811dea043000d60ec04f5#SAPEngine_Application_Thread[impl:3]_22##0#0#Error##Plain### at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)#
#1.5 #000D60EC04F500480000002900001C5C00046C25730BFFE7#1244808006609#System.err#sap.com/CompSifremEAR#System.err#Administrator#142##n/a##919dbff0574811dea043000d60ec04f5#SAPEngine_Application_Thread[impl:3]_22##0#0#Error##Plain### at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)#
#1.5 #000D60EC04F500480000002A00001C5C00046C25730C0158#1244808006609#System.err#sap.com/CompSifremEAR#System.err#Administrator#142##n/a##919dbff0574811dea043000d60ec04f5#SAPEngine_Application_Thread[impl:3]_22##0#0#Error##Plain### at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)#
#1.5 #000D60EC04F500480000002B00001C5C00046C25730C02C7#1244808006609#System.err#sap.com/CompSifremEAR#System.err#Administrator#142##n/a##919dbff0574811dea043000d60ec04f5#SAPEngine_Application_Thread[impl:3]_22##0#0#Error##Plain### at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)#
#1.5 #000D60EC04F500480000002C00001C5C00046C25730C0414#1244808006609#System.err#sap.com/CompSifremEAR#System.err#Administrator#142##n/a##919dbff0574811dea043000d60ec04f5#SAPEngine_Application_Thread[impl:3]_22##0#0#Error##Plain### at java.security.AccessController.doPrivileged(Native Method)#
#1.5 #000D60EC04F500480000002D00001C5C00046C25730C0549#1244808006609#System.err#sap.com/CompSifremEAR#System.err#Administrator#142##n/a##919dbff0574811dea043000d60ec04f5#SAPEngine_Application_Thread[impl:3]_22##0#0#Error##Plain### at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)#
#1.5 #000D60EC04F500480000002E00001C5C00046C25730C0674#1244808006609#System.err#sap.com/CompSifremEAR#System.err#Administrator#142##n/a##919dbff0574811dea043000d60ec04f5#SAPEngine_Application_Thread[impl:3]_22##0#0#Error##Plain### at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)#
hi
Did you solve the pblm?
I am having a similar issue.
regards
shankar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ehran!
Please first fix this problem here:
RFC_ERROR_LOGON_FAILURE: User CompSIFREM has no RFC authorization for function group SYST
Your user needs more user rights on the ABAP side. And additionally type in use user name and password explicitely in upper case characters like
User: COMPSIFREM
Password: SECRET007
And additonally surround your JCo statements with a try-catch-blick.
Regards,
Volker
Hi, I coded a EJB which runs as a web service. Within in the EJB, I call an RFC. I added com.sap.mw.jco from Add/Remove Additional Libraries context menu. And I added a weak reference to application-j2ee-engine.xml.
And this is the xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application-j2ee-engine SYSTEM "application-j2ee-engine.dtd">
<application-j2ee-engine>
<reference
reference-type="weak">
<reference-target
provider-name="sap.com"
target-type="library">com.sap.mw.jco</reference-target>
</reference>
<provider-name>sap.com</provider-name>
<fail-over-enable
mode="disable"/>
</application-j2ee-engine>
I tried reference-type hard and weak, it does not matter. When I call web service application server restarts.
Our system is: WEB AS : 6.20 EP 6.0
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.