on 08-28-2007 9:00 AM
Dear Experts!
I am developing J2EE application. I created file log-configuration.xml using SAP NetWeaver Developer Studio and put it into META-INF directory in ear file. If I use SDM to deploy ear, it displays message that deployment is successful. But Logging categories and trace locations are not created (I checked it using Visual Administrator -> Log Configurator). When I run my application it writes messages to defaultTrace instead of destination described in log-configuration.xml.
I checked logs of J2EE server and logs of SDM. No error messages.
Where is my mistake? Any ideas are welcome.
WBR,
Anton
Hi Anton,
If the setting ForceSingleTraceFile is enabled in the J2EE server, all the logs will be written to the default trace file and not to the application specific files. To enable this, launch the Visual Admin and open the Log Manager.
Change the entry ForceSingleTraceFile to NO. Save and restart the Server.
Hope this helps.
Regards,
Rekha Malavathu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I am trying to write my logging message in a separate log file not default.trc file. When I run my servlet program, the log messages are being written to the default.trc file. I have done the necessary configuration in the j2ee engine. I can see the destination in the Visual Administrator. I have also made the singleTracefile to No.
I am struck here, please guide me.
Regards,
Taru
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
---
Message was edited by:
Anton Ananich
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The problem was that I was deploying ear file not using SDM, but using special ant task.
Here it is: /people/david.beisert2/blog/2006/02/13/sdm-deployment-as-ant-task
Bea careful using it...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anton,
Last week I was trying to explore more on the Logging and Tracing concept and I followed these documents.
/people/sap.user72/blog/2004/11/10/log-configuration-for-a-web-dynpro-application
The Logging categories and trace locations are created and I was able to see the application specific logs in the specified location.
Also try to create a blank .log file on the server and then try running your application.
Regards,
Rekha Malavathu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anton,
(1) Does the log file physically exist in the server?
(2) Did you try restarting the server after setting the ForceSingleTraceFile attribute value?
(3) Login to Visual Adim and check if the NWDS config reflects in the Location and Categories section of the Log Configuration!
Regards,
Rekha Malavathu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
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.