I am trying to disbale the ambient framwework and tridion content preview modules by removing below modules
<add name="Tridion.ContentDelivery.AmbientData.HttpModule"
type="Tridion.ContentDelivery.AmbientData.HttpModule" preCondition="managedHandler" />
<add name="PreviewContentModule"
type="Tridion.ContentDelivery.Preview.Web.PreviewContentModule" />
However when eevr I am doing this I am getting below error when my webpage is trying to make a broker query
Java.Lang.ClassNotFoundException: com.tridion.broker.querying.Query
However if a put the above modules back i am able to execute broker query sucessfully
I am using Tridion 2011 SP1 content delivery.