Saturday, December 17, 2011

ATG - Could not create log file

Problem
    Are you getting the following error when you start your dynamo server ?

Could not create log file: .\servers\devserver\logs\dynamo.log (The system cannot find the path specified)
java.io.FileNotFoundException: .\servers\devserver\logs\dynamo.log (The system cannot find the path specified)
        at java.io.FileOutputStream.openAppend(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
        at atg.core.io.SystemOutRecorder.pushLogFileImpl(SystemOutRecorder.java:152)
        at atg.core.io.SystemOutRecorder.pushLogFile(SystemOutRecorder.java:105)
        at atg.nucleus.Nucleus.startNucleusCheckLicense(Nucleus.java:3582)
        at atg.nucleus.Nucleus.startNucleus(Nucleus.java:3464)
        at atg.nucleus.Nucleus.main(Nucleus.java:3452)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at atg.applauncher.AppLauncher.launch(AppLauncher.java:795)
        at atg.applauncher.dynamo.DynamoServerLauncher.main(DynamoServerLauncher.java:305)
Dynamo exited abnormally.  For troubleshooting information go to the URL:
  http://www.atg.com/support
Press any key to continue . . .


Solution
    I have created a new dynamo server folder by name devserver and just added localconfig and put in some component overrides inside that folder. I had to create a logs folder inside devserver to fix the issue. Make sure you create the logs folder inside dynamo_home/servers/devserver. If not just go ahead and create the directory tree and bounce the server. The error should go away.

No comments:

Post a Comment