aitcrajeev
New Member.
590 views

Tomcat not rolling over IDM4.6

I have installed IDM 4.6 on windows server our catalina.out file no longer rolls over on a daily basis and same for idapps and localhost_access_log aren't rolling over correctly. I have searched the forums followed the link below

https://www.netiq.com/documentation/...tml?view=print

but new error is coming

java.io.FileNotFoundException: C:\NetIQ\IdentityManager\apps\tomcat\logs\catalina .out (The process cannot access the file because it is being used by another process)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.jav a:270)
at java.io.FileOutputStream.<init>(FileOutputStream.j ava:213)
at java.io.FileOutputStream.<init>(FileOutputStream.j ava:133)
at org.apache.log4j.FileAppender.setFile(FileAppender .java:294)
at org.apache.log4j.FileAppender.activateOptions(File Appender.java:165)
at org.apache.log4j.DailyRollingFileAppender.activate Options(DailyRollingFileAppender.java:223)
at org.apache.log4j.config.PropertySetter.activate(Pr opertySetter.java:307)
at org.apache.log4j.xml.DOMConfigurator.parseAppender (DOMConfigurator.java:295)
at org.apache.log4j.xml.DOMConfigurator.findAppenderB yName(DOMConfigurator.java:176)
at org.apache.log4j.xml.DOMConfigurator.findAppenderB yReference(DOMConfigurator.java:191)
at org.apache.log4j.xml.DOMConfigurator.parseChildren OfLoggerElement(DOMConfigurator.java:523)
at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOM Configurator.java:492)
at org.apache.log4j.xml.DOMConfigurator.parse(DOMConf igurator.java:1006)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(D OMConfigurator.java:872)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(D OMConfigurator.java:778)
at org.apache.log4j.helpers.OptionConverter.selectAnd Configure(OptionConverter.java:526)
at org.apache.log4j.LogManager.<clinit>(LogManager.ja va:127)
at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jL oggerFactory.java:63)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.ja va:281)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.ja va:301)
at org.apache.activemq.jndi.JNDIReferenceFactory.<cli nit>(JNDIReferenceFactory.java:39)
at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Construc tor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at org.apache.naming.factory.FactoryBase.getObjectIns tance(FactoryBase.java:72)
at javax.naming.spi.NamingManager.getObjectInstance(N amingManager.java:321)
at org.apache.naming.NamingContext.lookup(NamingConte xt.java:839)
at org.apache.naming.NamingContext.lookup(NamingConte xt.java:159)
at org.apache.naming.NamingContextBindingsEnumeration .nextElementInternal(NamingContextBindingsEnumerat ion.java:117)
at org.apache.naming.NamingContextBindingsEnumeration .next(NamingContextBindingsEnumeration.java:71)
at org.apache.naming.NamingContextBindingsEnumeration .next(NamingContextBindingsEnumeration.java:34)
at org.apache.catalina.mbeans.GlobalResourcesLifecycl eListener.createMBeans(GlobalResourcesLifecycleLis tener.java:138)
at org.apache.catalina.mbeans.GlobalResourcesLifecycl eListener.createMBeans(GlobalResourcesLifecycleLis tener.java:145)
at org.apache.catalina.mbeans.GlobalResourcesLifecycl eListener.createMBeans(GlobalResourcesLifecycleLis tener.java:110)
at org.apache.catalina.mbeans.GlobalResourcesLifecycl eListener.lifecycleEvent(GlobalResourcesLifecycleL istener.java:82)
at org.apache.catalina.util.LifecycleBase.fireLifecyc leEvent(LifecycleBase.java:94)
at org.apache.catalina.util.LifecycleBase.setStateInt ernal(LifecycleBase.java:395)
at org.apache.catalina.util.LifecycleBase.setState(Li fecycleBase.java:339)
at org.apache.catalina.core.StandardServer.startInter nal(StandardServer.java:786)
at org.apache.catalina.util.LifecycleBase.start(Lifec ycleBase.java:150)
at org.apache.catalina.startup.Catalina.start(Catalin a.java:655)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:355)
at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:495)
log4j:ERROR Either File or DatePattern options are not set for appender [CATALINALOG].
Labels (1)
0 Likes
5 Replies
Knowledge Partner
Knowledge Partner

Re: Tomcat not rolling over IDM4.6

rajeevmca2086 wrote:

> > java.io.FileNotFoundException:
> > C:\NetIQ\IdentityManager\apps\tomcat\logs\catalina .out (The process
> > cannot access the file because it is being used by another process)


Java probably tries to be funny by throwing "file not found" just to correct
itself immediately to "file used by another process".

What does


lsof | grep catalina.out


say regarding who has it open?

--
http://www.is4it.de/en/solution/identity-access-management/

(If you find this post helpful, please click on the star below.)
______________________________________________
https://www.is4it.de/identity-access-management
0 Likes
frankabhinav Super Contributor.
Super Contributor.

Re: Tomcat not rolling over IDM4.6

For windows server that would be ?
0 Likes
Knowledge Partner
Knowledge Partner

Re: Tomcat not rolling over IDM4.6

frankabhinav wrote:

> For windows server that would be ?


Ooops, I should've looked closer and turned on my brain before posting...

On Windows I use procexp.exe from the Sysinternals Tools, see
https://docs.microsoft.com/en-us/sysinternals/downloads/process-explorer. It
has a "Find..." menu item that does a substring search for open handles by name
and lists the processes using them. You can also browse open handles per
process by enabling the lower pane in the View menu.

--
http://www.is4it.de/en/solution/identity-access-management/

(If you find this post helpful, please click on the star below.)
______________________________________________
https://www.is4it.de/identity-access-management
0 Likes
Knowledge Partner
Knowledge Partner

Re: Tomcat not rolling over IDM4.6

Maybe this TID applies here: https://www.novell.com/support/kb/doc.php?id=7017790 ?

Thomas
0 Likes
frankabhinav Super Contributor.
Super Contributor.

Re: Tomcat not rolling over IDM4.6

Thanks thsundel

But that KB is for 4.5 where as I have installed 4.6 .And the log4j jar files is not stored inside tomcat/lib/ .

The log4j files are installed in diff war files.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.