cancel
Showing results for 
Search instead for 
Did you mean: 

Log-configuration.xml config does not show up in Visual Admin

maniksaha
Explorer
0 Kudos

I have the following log-configuration.xml file created for a EAR project. When I deploy the file I cannot see the formatters/destinations/controllers in the log configurator.

Please help.. thanks in advance



<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log-configuration SYSTEM "log-configuration.dtd">
<log-configuration>
	<log-formatters>
		<log-formatter 
			name="XBTR_SERVICE_EJB_Formatter" 
			pattern="[%s] %24d [%t] %l  %m" 
			type="TraceFormatter"/>
	</log-formatters>
	<log-destinations>
		<log-destination 
			count="1" 
			effective-severity="ALL" 
			limit="1000000" 
			name="XBTR_SERVICE_EJB_Destination" 
			pattern="./logs/applications/java/ejb/xBTRservice.log" 
			type="FileLog">
			<formatter-ref 
				name="XBTR_SERVICE_EJB_Formatter"/>
		</log-destination>
	</log-destinations>
	<log-controllers>
		<log-controller 
			effective-severity="ALL" 
			maximum-severity="ALL" 
			minimum-severity="ALL" 
			name="XBTRService_Log_Controller">
			<associated-destinations>
				<destination-ref 
					association-type="LOG" 
					name="XBTR_SERVICE_EJB_Destination"/>
			</associated-destinations>
		</log-controller>
	</log-controllers>
</log-configuration>

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello

where can I find the officel dokumentation of log-configuration.xml and "log-configuration.dtd" for CE7.2

Thanx in Advance

Former Member
0 Kudos

Hi

Could you please check whether you Og configuartion has been deployed successfully in the deploy node of the visual Node and check for the Log Configuratior Node and check for your deployed application

Hope this helps , please mark points for suitable answers

regards

rajeshkr

Former Member
0 Kudos

Hi Rajeshkr,

Sorry, i am kinda new to web dynpro and sap in general so i may need you to be more explicit

I am not quite sure what this part means or how to check "...has been deployed successfully in the deploy node of the visual Node and check for the Log Configuratior Node and check for your deployed application...."

What i did do is go to the server to and search the entire directory structure for the log-configuration.xml but could not find it. Also, the config cannot be seen via the log-configurator in visual administration engine which its supposed too i think. and lastly the behavoiur i set in the log-configuration.xml is not reflected in the defaultTrace

Then i saw this post so i went to check the EAR file in my workspace and found that it was just like Manik described.

Maybe u could check this link where i posted more about my problem

I would love to award points if it helps

Former Member
0 Kudos

Hi again,

I have the same problem on 6.40 SP16. I added the file 'log-configuration.xml' to the directory 'META-INF' of my EAR file, but the log controllers and locations I defined do not show up in visual administrator.

I don't see any bad messages in the deployment log in NWDS.

Has anybody an idea what the problem could be? Do I have to add references to libraries or something like this?

Thanks,

Matthias

Former Member
0 Kudos

There seems to be a problem deploying an EAR file straight from NWDS. Try to use the Visual Admin instead to deploy your EAR file and you should see your log information in Visual Admin/Log Configurator. Also make sure the Log-congiguration.xml file ends up in the meta-inf directory - when developing WebDynPro applications the Log-configuration.xml file ends up in the root.

Former Member
0 Kudos

I had the same issue. What I tried is to undeploy my application completely and then redeployed it. And it started working. There seems to be an issue with redeploying an existing application, the log config is not picked up by the WAS server.

Former Member
0 Kudos

Hi,

can it be that your problem is described in thread? Just check it the log-configuration.xml is in the META-INF folder, not the EAR's root.

maniksaha
Explorer
0 Kudos

It is in the META-INF dir.. I unjar'd it and checked.


C:temp>jar -tvf xBtrService.ear
   170 Thu Jul 07 17:07:28 SGT 2005 META-INF/MANIFEST.MF
     0 Tue Jan 01 00:00:00 SGT 1980 META-INF/
   525 Thu Jul 07 17:07:28 SGT 2005 META-INF/SAP_MANIFEST.MF
   600 Thu Jul 07 17:07:26 SGT 2005 META-INF/sda-dd.xml
255237 Tue Mar 08 07:14:44 SGT 2005 logging.jar
  1275 Thu Jul 07 00:04:00 SGT 2005 META-INF/application-j2ee-engine.xml
   381 Thu Jul 07 00:00:42 SGT 2005 META-INF/application.xml
  1005 Thu Jul 07 13:16:12 SGT 2005 META-INF/log-configuration.xml
   577 Thu Jul 07 00:04:22 SGT 2005 META-INF/sap.application.global.properties
679145 Thu Jul 07 17:07:26 SGT 2005 xBTRejb.jar

Former Member
0 Kudos

Does anyone know the solution for this problem? I am facing the same problem...

Moreover, I DO get it right on 6.30 SP7 but not on 6.40.

I hope someone knows this one.

Nir

Former Member
0 Kudos

I have this problem too! When i check the ear file in my workspace, i found that the log-configuration.xml file is NOT in the meta-inf but in the root. Is this a bug? I am on 6.40 as well