Hi,

It sounds like velocity is trying to create the log file "velocity.log" in a
directory where it does not have write access to.

You might try Velocity 1.5.   Earlier versions created "velocity.log",
sometimes in unexpected places, as the default if no logger was configured.
Velocity 1.5 only creates the log file if you tell it to do so.

WILL

On Dec 5, 2007 3:36 AM, Chetan Patil <[EMAIL PROTECTED]> wrote:

> Hi ,
>
> I am getting error in verlocity jar version 1.4 after some time.
>
> Following code I am using ::
>
>  public  String mergeTemplate(Object input, Reader template){
>
>   VelocityEngine ve=new VelocityEngine();
>   ve.init();
>   VelocityContext context = new VelocityContext();
>   context.put("hash", input);
>   StringWriter sw = new StringWriter();
>   ve.evaluate(context,sw,"VelocityInfo",template);
>   sReturn = sw.toString().trim();
>   template.close();
>   template = null;
> }
>
> Please help out.
>
> PANIC : Error configuring AvalonLogSystem : java.io.IOException: Cannot
> create a file when that file already exists
> PANIC : Error configuring AvalonLogSystem : java.io.IOException: Cannot
> create a file when that file already exists
> java.lang.Exception: Unable to configure AvalonLogSystem :
> java.io.IOException: Cannot create a file when that file already exists
>  at
> org.apache.velocity.runtime.log.AvalonLogSystem.init(AvalonLogSystem.java
> :92
> )
>  at
> org.apache.velocity.runtime.log.LogManager.createLogSystem(LogManager.java
> :1
> 27)
>  at
> org.apache.velocity.runtime.RuntimeInstance.initializeLogger
> (RuntimeInstance
> .java:553)
>  at
> org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:226)
>  at org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:80)
>
>
> Thanks and Regards,
>
> Chetan
>
> ============================================================================
> ===============================
> "This transmission may contain legally privileged information and/or is
> confidential and intended only for the use of the addressees named above.
>
> Any review, retransmission, dissemination or other use of, or taking of
> any
> action by persons or entities other than the intended recipient
>
> is prohibited. If you have received this communication in error, please
> immediately notify the sender and destroy the communication.
>
> Any wrongful interception of this transmission is prohibited and
> punishable
> under federal law."
>
> ============================================================================
> ===============================
>



-- 
Forio Business Simulations

Will Glass-Husain
[EMAIL PROTECTED]
www.forio.com

Reply via email to