The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

crosbyb (2) [Avatar] Offline
#1
Just started working through the book and I've hit a snag with the fancyfoods.web example. I have the WAB built as specified in Chapter 2 and it deploys successfully (as far as I can tell) but I can't access it via the browser.

The bundle is successfully importing javax.servlet/javax.servlet.http (checked via packages command). When the bundle is being installed I do see the following text in the console:

[fileinstall-./load] INFO org.ops4j.pax.web.extender.war.internal.WebXmlObserver - Using [fancyfoods.web] as web application context name
[fileinstall-./load] INFO org.ops4j.pax.web.service.internal.HttpServiceFactoryImpl - Binding bundle: [fancyfoods.web_1.0.0 [47]] to http service

So it appears to me everything is working correctly, however trying to access http://localhost:8080/fancyfoods.web/SayHello results in a 404.

Any idea what is going wrong/what I'm doing wrong?
crosbyb (2) [Avatar] Offline
#2
Re: Problem with fancyfoods.web example
PEBKAC issue. All is well.