Error creating a new publication in lenya 2.1.x

sac sha <[email protected]> Mon, 21 Feb 2011 22:55:44 +0530
Newsgroups gmane.comp.cms.lenya.user
Message-ID <[email protected]>
Hi All

I am trying to build lenya 2.1.x checked out from VPN. Following are
the configuration I am using:

Container: Jetty (In built)
Java: 1.6
Lenya: 2.1.X (SVN)

It builds fine and throws no error. Default publication works fine as
well. The problem comes when I try to create a new publication. It
throws following error:

[object Error] (file:///home/sachin/workspace/BRANCH_2_1_X/build/lenya/webapp/lenya/modules/usecase/usecases.js#393)

Stacktrace:

org.mozilla.javascript.JavaScriptException: [object Error]
(file:///home/sachin/workspace/BRANCH_2_1_X/build/lenya/webapp/lenya/modules/usecase/usecases.js#393)
	at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:2461)
	at script.executeUsecase(file:///home/sachin/workspace/BRANCH_2_1_X/build/lenya/webapp/lenya/modules/usecase/usecases.js:393)
	at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2251)
	at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:161)
	at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:340)
	at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2758)
	at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:159)
	at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:915)
	at org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.callFunction(FOM_JavaScriptInterpreter.java:764)
	at org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(CallFunctionNode.java:139)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
	...more

Please suggest if anybody experienced this error before.

TIA

Regards
Sac