ruperth
02-09-2007, 04:55 PM
Hi,
this issue that i am facing is very similar to the issue raised in this post:
http://forum.springframework.net/showthread.php?t=861
but with the difference that I am using the Spring.Services.Windows.Service.Process.exe to host my dll and run it as a service.
The problem is that I would like the spring framework to use version 1.2.10.0 of log4net to avoid any conflicts with NHibernate.
So, in my Spring.Services.WindowsService.Process.exe.config file I have added the following lines:
<sectionGroup name="common">
<section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" />
</sectionGroup>
<common>
<logging>
<factoryAdapter type="Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter , Common.Logging.Log4Net">
<!-- choices are INLINE, FILE, FILE-WATCH, EXTERNAL-->
<!-- otherwise BasicConfigurer.Configure is used -->
<!-- log4net configuration file is specified with key configFile-->
<arg key="configType" value="INLINE" />
</factoryAdapter>
</logging>
</common>
the problem is that when i start the spring service, it fails due to a file not found exception. The Spring.Services.WindowsService.Process.exe is looking for a particular version of log4net and appears to be ignoring the changes i put in the config file above.
Can anybody help?!?!?!?!?
BTW - can somebody explain what the different values for configType actually mean..
Cheers,
Rupert
this issue that i am facing is very similar to the issue raised in this post:
http://forum.springframework.net/showthread.php?t=861
but with the difference that I am using the Spring.Services.Windows.Service.Process.exe to host my dll and run it as a service.
The problem is that I would like the spring framework to use version 1.2.10.0 of log4net to avoid any conflicts with NHibernate.
So, in my Spring.Services.WindowsService.Process.exe.config file I have added the following lines:
<sectionGroup name="common">
<section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" />
</sectionGroup>
<common>
<logging>
<factoryAdapter type="Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter , Common.Logging.Log4Net">
<!-- choices are INLINE, FILE, FILE-WATCH, EXTERNAL-->
<!-- otherwise BasicConfigurer.Configure is used -->
<!-- log4net configuration file is specified with key configFile-->
<arg key="configType" value="INLINE" />
</factoryAdapter>
</logging>
</common>
the problem is that when i start the spring service, it fails due to a file not found exception. The Spring.Services.WindowsService.Process.exe is looking for a particular version of log4net and appears to be ignoring the changes i put in the config file above.
Can anybody help?!?!?!?!?
BTW - can somebody explain what the different values for configType actually mean..
Cheers,
Rupert