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.

349995 (2) [Avatar] Offline
I purchased the MEAP and downloaded today (Oct 10 2017). Really great info so far!! Looking forward to the rest of the book!

Per the book, I cloned I did not move to a specific commit; I just stayed at HEAD.

Then did mvn clean install tomcat7:run. (So I think I am running a version of the app as described in chapter 4.)

I was able to hit /logon per chapter 4. Cookie was stored correctly.

Then I tried to hit http://localhost:8080. Got the following error:

2017-10-09 22:50:20.232 ERROR 19160 --- [bio-8080-exec-5] : Forwarding to error page from request [/] due to exception [URI is not absolute]

java.lang.IllegalArgumentException: URI is not absolute
at ~[na:1.8.0_144]
at org.springframework.http.client.SimpleClientHttpRequestFactory.createRequest( ~[spring-web-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at ~[spring-web-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.web.client.RestTemplate.doExecute( ~[spring-web-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.web.client.RestTemplate.execute( ~[spring-web-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.web.client.RestTemplate.getForObject( ~[spring-web-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at com.corneliadavis.cloudnative.HelloController.hello( ~[classes/:na]
at com.corneliadavis.cloudnative.HelloController$$FastClassBySpringCGLIB$$14177ead.invoke(<generated>smilie ~[classes/:na]
at org.springframework.cglib.proxy.MethodProxy.invoke( ~[spring-core-4.3.6.RELEASE.jar:4.3.6.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint( ~[spring-aop-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( ~[spring-aop-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at ~[spring-aop-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at ~[spring-aop-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( ~[spring-aop-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept( ~[spring-aop-4.3.7.RELEASE.jar:4.3.7.RELEASE]
at com.corneliadavis.cloudnative.HelloController$$EnhancerBySpringCGLIB$$724d2e39.hello(<generated>smilie ~[classes/:na]

(...and so on...)
349995 (2) [Avatar] Offline
Never mind - I missed the step in chapter 4 about checking out a particular commit! I got the one indicated in the book, and now the results mimic what the book says.