on 08-19-2005 2:45 PM
Hi,
I wrote a SFSB which should connect to R/3 system (MiniSap). Within the ejbCreate the connection should be established.
Here is the relevant snippet:
// defining the Properties
Properties logonProps = new Properties();
logonProps.put("jco.client.client", "000");
logonProps.put("jco.client.user", "BCUSER");
logonProps.put("jco.client.passwd", "minisap");
logonProps.put("jco.client.ashost", "localhost");
logonProps.put("jco.client.sysnr", "00");
// creating a Connection
con = JCO.createClient(logonProps);
// connect to R/3
con.connect();
Deployment, everything goes fine aside of:
Caused by: com.sap.mw.jco.JCO$Exception: (103) RFC_ERROR_LOGON_FAILURE: You are not authorized to logon to the target system (error code 1).
at com.sap.mw.jco.MiddlewareJRfc.generateJCoException(MiddlewareJRfc.java:413)
Stunning:
If I access R/3 by small Java class, everything goes fine.
Any ideas ??
Thx in advance
M.
... just to continue it:
Deploying the bean under JBoss makes it without any error.
So the coding should be right, but what does WebAS do there ???
Regards
M.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.