cancel
Showing results for 
Search instead for 
Did you mean: 

How to trace a user in JAVA stack

Former Member
0 Kudos

We had Enterprise Portal ( Java stack). How can we perform user trace in Java only stacks.I did lot of googling and posted this question having not found any straight answer

Thank you

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Not very sure about SMD but in java you can check the user trace in the ume log and trace files,there is no specific trace tcode or option in java.You can view there trace and log file in the visual admin directly.

cluster>server>services-->logconfigurator

categories>root category>system>security>user management

here you can set the severity

and using the log viewer option in the visual admin which would be clear than refering in the os level.

The log file for security trace would be in cluster/serverx/log/system/security log

Regards,

Vamshi.

Answers (3)

Answers (3)

Former Member
0 Kudos

Thank you very much for your inputs.

Former Member
0 Kudos

Just a note Rajendra,

The http traces can be analyzed directly from file system (no need of SMD) from the following paths :

/cluster/dispatcher/log/services/http/req_resp.X.trc HTTP requests and responses to the clients /cluster/server*/log/defaultTrace.X.trc

the default trace file for server nodes

/cluster/server*/log/system/httpaccess/responses.X.trc

Regards,

Snehal

jochen_rundholz
Active Participant
0 Kudos

Correct http traces can be seen without SMD, but what do they show? They only show which http requests the server has got. You can't see if such a request makes a call to an LDAP and if it failed. For this you need other tools. If that high level analysis helps, perfect don't use SMD. I just have my doubts....

Former Member
0 Kudos

Hi Joachim,

It may make it easier but it is not madatory to use SMD :-). Analysis can be done completely without its usage !

Regards,

Snehal

Tech Dev Support J2EE

jochen_rundholz
Active Participant
0 Kudos

Tracing a user can mean quite a lot. Not too sure what exactly you want to do. May be have a look into DSR and JARM. You find information about it on help.sap.com. If that is not what you need, please be more specific what exactly you want to achieve.

Regards,

Jochen

Former Member
0 Kudos

i mean we had a user ..and the user is able to log in from the portal but the portal screen is not getting loaded fully. So i want to trace the user . In ABAP stack we use ST05 to do this. In the similar way if we have only Java stack ( as it is Enterprise Portal) system, how can we trace the user?

As i mentioned i did search help.sap.com. I dont say its not there but atleast i couldnot find out.

jochen_rundholz
Active Participant
0 Kudos

Hi,

for that kind of traces JARM/SAT and DSR is probably not sufficient. I guess you have to use SMD (solution manager diagnostics) for it.

Regards,

Jochen

Former Member
0 Kudos

could you please tell me how to use it?

Former Member
0 Kudos

Anybody please tell me how to trace a user in java engine

JPReyes
Active Contributor
0 Kudos

You can look into the defaulttrace to see why the request wasn't fully executed for that user.

regards

Juan

Former Member
0 Kudos

Thanks for your answer Juan but is there not any functionality like (ST05 in ABAP engine) that can trace directly by giving the user id in the J2EE engine.

JPReyes
Active Contributor
0 Kudos

As far as i know such funtionallity does not exist, that's why im suggesting the defaulttrace as all events are registered there.

Regards

Juan

Former Member
0 Kudos

Hello Rajendra,

If I understand right, you want to trace why a request from a particular user/client is failing.

You could trace a request from the particular user/client by using the http tracing functionality.

That along with defaultrace could show the entire request flow and what caused it to fail.

You could enable the HTTP Tracing on the J2EE Engine as described in SAP note 724719.

I'll paste below some explanation about the http traces :

There are already three types of traces provided in AS Java

/cluster/dispatcher/log/services/http/req_resp.X.trc HTTP requests and responses to the clients /cluster/server*/log/defaultTrace.X.trc

the default trace file for server nodes

/cluster/server*/log/system/httpaccess/responses.X.trc

client req/resp in CLF format

Here is a sample snippet of what you can see in the traces.

<req_resp.X.trc> provides timestamp, request/resp data, and client_id:

[1178178312419][May 3, 2007 9:45:12 AM ] - CLIENT: 2304, REQUEST:

^^^^

{GET /useradmin/userAdminServlet?createNewUser= HTTP/1.1

Accept: ...

You can map the client ID from the dispatcher trace to the client ID

traced into server default trace file. Also you can see:

- timestamp

- client ID

- request info (e.g. "new request initialized")

- HTTP request line ( GET POST HEAD <URI>)

<defaultTrace.X.trc>:

1178178312419 <<< timestamp match (or too little deviation)

^^^^

com.sap.engine.services.servlets_jsp.client.ServletRequest

client [2304] HttpServletRequest.init [1518ea7] in application [useradmi

^^^^

new request initialized,

^^^^^^^^^^

attributes: [com.sap.servlet.separator.zone = ~],

url: [GET /useradmin/userAdminServlet?createNewUser= HTTP/1.1]

The server also provides client IP tracing in responses.X.trc.

<responses.X.trc>:

[May 3, 2007 9:45:16 AM ] - 127.0.0.1 : <<<<< client IP

GET /useradmin/userAdminServlet?createNewUser= HTTP/1.1 200 16348

^^^^^ ^^^ ^^^

request line resp code resp length

**TO ENABLE SERVER HTTP TRACES :

You have to set the Severity to ALL for the following locations (Visual

Admin -> Server -> Services -> Log Configurator -> Locations tab):

com.sap.engine.services.servlets_jsp.client.RequestInfoClient

com.sap.engine.services.servlets_jsp.client.RequestInfoServer

com.sap.engine.services.servlets_jsp.client.ServletRequest

com.sap.engine.services.servlets_jsp.client.ServletResponse

This will enable HTTP requests processing trace on the server side.

VA -> Server -> Services -> Web Container -> Properties tab.

Set the property TraceLevel with value of 1. Save the changes.

Hope the above helps.

Regards,

Snehal

jochen_rundholz
Active Participant
0 Kudos

You can use the mentioned technologies, http trace, JARM, SAT, DSR, but I doubt that they suit you for your problem. May be they do, give it a try. The latest detail is only available via SMD. In regards to your question how to use it, sorry but that can't be answered in a forum. There are many how to guides, there are config guides and all sort of things. After you have read this and if you have a specific question post this.