I'm really grateful to you, your little hack saved my day :-)
Thanks a lot, and hopefully Berin gonna catch with the proper way of doing it.
Thanks again.
Ramy
Tim Myers wrote:
Ramy,
I sure hope Berin has something better than this on his hard disk. If you are still awake must see the samples run this will do it.
Tim
On Thu, Mar 13, 2003 at 04:01:20AM +0200, Ramy Mamdouh wrote:
<snip content="exception"/>
------------------------------------------------------------------------
Index: CocoonServlet.java =================================================================== RCS file: /home/cvspublic/cocoon-2.1/src/java/org/apache/cocoon/servlet/CocoonServlet.java,v retrieving revision 1.1 diff -u -r1.1 CocoonServlet.java --- CocoonServlet.java 9 Mar 2003 00:09:37 -0000 1.1 +++ CocoonServlet.java 13 Mar 2003 03:15:32 -0000 @@ -52,6 +52,8 @@
import org.apache.avalon.excalibur.logger.DefaultLogKitManager; import org.apache.avalon.excalibur.logger.LogKitManager; +import org.apache.excalibur.event.Queue; +import org.apache.excalibur.event.impl.DefaultQueue; import org.apache.avalon.framework.activity.Initializable; import org.apache.avalon.framework.component.ComponentManager; import org.apache.avalon.framework.configuration.Configuration; @@ -251,6 +253,7 @@
this.servletContext = conf.getServletContext(); this.appContext.put(Constants.CONTEXT_ENVIRONMENT_CONTEXT, new HttpContext(this.servletContext)); + this.appContext.put(Queue.ROLE, new DefaultQueue()); this.servletContextPath = this.servletContext.getRealPath("/");
// first init the work-directory for the logger.