Hi You write it works when you directly call the servlet. So the problem is probably the jquery. I'm not a gui expert so I can't help you too much. There are some errors in the log file. Do you see any stacktrace there?
Regards Krzysztof On 02.04.2015 17:50, ridhi wrote: > Hi, > > Thanks for the response! > The only thing I am doing differently than from the pax sample is I am > calling my servlet from jsp's jquery function and in my servlet i am doing > some processing and forwarding to jsp. In my other bundles i am using Camel > routing for my cxf REST services. So, without the installation of > camel-servlet feature I was not able to access my web application. So I > installed that, after that I am able to access my web application and from > my jsp it is going to the servlet and doing processing. But it is not > forwarding to the jsp, it is staying in the same jsp. There are no scripting > errors. And one more thing from jquery jsp forwarding is working fine( the > same thing which I wanted to achieve from my servlet using > RequestDispatcher). Here is my jquery function. > > *function perform(operation) { > $.ajax({ > url : "jsp", > headers : { > "Content-type" : 'application/json' > }, > type : 'GET'/* , > success : function(responseText) { > if (op == 2) > window.location = > 'getUserDetails.jsp'; > else > window.location = 'success.jsp'; > }, > error : function(responseText) { > window.location = 'error.jsp'; > } */ > }); > > }* > > If I directly access the servlet instead from jsp, the > forward is working fine. For now, I am managing with the jquery's jsp > forward. > > I saw below errors in the log, then i checked for those > bundles they are active. I tried importing those packages but no luck. > Please suggest me what needs to be done here. > > *ERROR | pool-10-thread-1 | ClassPathUtil | 128 - > org.ops4j.pax.web.pax-web-api - 3.1.2 | BundleWiring is null for: > AdminServices [303] > 2015-04-01 16:00:23,266 | ERROR | pool-10-thread-1 | ClassPathUtil > > | 128 - org.ops4j.pax.web.pax-web-api - 3.1.2 | BundleWiring is null for: > AdminServices [303]* > > > > > > > -- > View this message in context: > http://servicemix.396122.n5.nabble.com/Jsp-Forward-not-working-in-the-Servlet-Deployed-in-Servicemix-tp5722427p5722446.html > Sent from the ServiceMix - User mailing list archive at Nabble.com. -- Krzysztof Sobkowiak JEE & OSS Architect Apache Software Foundation Member Apache ServiceMix <http://servicemix.apache.org/> Committer & PMC chair Senior Solution Architect @ Capgemini SSC <http://www.pl.capgemini-sdm.com/en/>