Chapter 5 code building

36 views
Skip to first unread message

Mariano Burgos

unread,
Feb 11, 2016, 2:49:20 PM2/11/16
to restinpractice
I'm trying to build the code from chapter 5 with ant and I have no problems with the Service, but when I build the Client I get errors like this one and many more of missing domain, activity, etc. classes

java:11: error: package com.restbucks.ordering.domain does not exist

Any ideas of why this could be happening?

Thanks in advance.

Jim Webber

unread,
Feb 11, 2016, 2:58:10 PM2/11/16
to restinp...@googlegroups.com
Hi Mariano,

Could you give us the full output?

Jim
> --
> You received this message because you are subscribed to the Google Groups "restinpractice" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to restinpractic...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Mariano Burgos

unread,
Feb 11, 2016, 3:26:29 PM2/11/16
to restinpractice
This is it.
 
mariano@pcdemarianoB:~/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient$ sudo ant
[sudo] password for mariano: 
Buildfile: /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/build.xml
  [taskdef] Could not load definitions from resource org/apache/ivy/ant/antlib.xml. It could not be found.
  [taskdef] Could not load definitions from resource net/sf/antcontrib/antcontrib.properties. It could not be found.

clean:
   [delete] Deleting directory /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/target

download-ivy:
      [get] Getting: http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.2.0/ivy-2.2.0.jar
      [get] To: /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/.ivy/ivy.jar
      [get] Not modified - so not downloaded

install-ivy:

lib.retrieve:
[ivy:resolve] :: Ivy 2.2.0 - 20100923230623 :: http://ant.apache.org/ivy/ ::
[ivy:resolve] :: loading settings :: file = /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/settings/ivysettings.xml
[ivy:resolve] :: resolving dependencies :: com.restbucks#hypermedia;working@pcdemarianoB
[ivy:resolve] confs: [default]
[ivy:resolve] found junit#junit;4.6 in chained
[ivy:resolve] found org.mockito#mockito-all;1.7 in chained
[ivy:resolve] found org.hamcrest#hamcrest-all;1.2-dev1 in chained
[ivy:resolve] found com.sun.grizzly#grizzly-servlet-webserver;1.8.3 in chained
[ivy:resolve] found com.sun.grizzly#grizzly-http;1.8.3 in chained
[ivy:resolve] found com.sun.grizzly#grizzly-framework;1.8.3 in chained
[ivy:resolve] found com.sun.grizzly#grizzly-http-utils;1.8.3 in chained
[ivy:resolve] found com.sun.grizzly#grizzly-rcm;1.8.3 in chained
[ivy:resolve] found com.sun.grizzly#grizzly-portunif;1.8.3 in chained
[ivy:resolve] found com.sun.grizzly#grizzly-http-servlet;1.8.3 in chained
[ivy:resolve] found javax.servlet#servlet-api;2.5 in chained
[ivy:resolve] found com.sun.jersey#jersey-server;1.0 in chained
[ivy:resolve] found com.sun.jersey#jersey-core;1.0 in chained
[ivy:resolve] found javax.ws.rs#jsr311-api;1.0 in chained
[ivy:resolve] found javax.mail#mail;1.4 in chained
[ivy:resolve] found javax.activation#activation;1.1 in chained
[ivy:resolve] found javax.xml.bind#jaxb-api;2.1 in chained
[ivy:resolve] found javax.xml.stream#stax-api;1.0-2 in chained
[ivy:resolve] found asm#asm;3.1 in chained
[ivy:resolve] found javax.persistence#persistence-api;1.0.2 in chained
[ivy:resolve] found javax.servlet#jsp-api;2.0 in chained
[ivy:resolve] found ant#ant;1.6.5 in chained
[ivy:resolve] found com.sun.grizzly#grizzly-servlet-webserver;1.8.6 in chained
[ivy:resolve] found com.sun.grizzly#grizzly-http;1.8.6 in chained
[ivy:resolve] found com.sun.grizzly#grizzly-framework;1.8.6 in chained
[ivy:resolve] found com.sun.grizzly#grizzly-http-utils;1.8.6 in chained
[ivy:resolve] found com.sun.grizzly#grizzly-rcm;1.8.6 in chained
[ivy:resolve] found com.sun.grizzly#grizzly-portunif;1.8.6 in chained
[ivy:resolve] found com.sun.grizzly#grizzly-http-servlet;1.8.6 in chained
[ivy:resolve] found com.sun.net.httpserver#http;20070405 in chained
[ivy:resolve] found com.sun.jersey#jersey-client;1.0 in chained
[ivy:resolve] found joda-time#joda-time;1.6 in chained
[ivy:resolve] found asm#asm-all;3.1 in chained
[ivy:resolve] :: resolution report :: resolve 628ms :: artifacts dl 21ms
[ivy:resolve] :: evicted modules:
[ivy:resolve] com.sun.grizzly#grizzly-servlet-webserver;1.8.3 by [com.sun.grizzly#grizzly-servlet-webserver;1.8.6] in [default]
[ivy:resolve] com.sun.grizzly#grizzly-http;1.8.3 by [com.sun.grizzly#grizzly-http;1.8.6] in [default]
[ivy:resolve] com.sun.grizzly#grizzly-framework;1.8.3 by [com.sun.grizzly#grizzly-framework;1.8.6] in [default]
[ivy:resolve] com.sun.grizzly#grizzly-http-utils;1.8.3 by [com.sun.grizzly#grizzly-http-utils;1.8.6] in [default]
[ivy:resolve] com.sun.grizzly#grizzly-rcm;1.8.3 by [com.sun.grizzly#grizzly-rcm;1.8.6] in [default]
[ivy:resolve] com.sun.grizzly#grizzly-portunif;1.8.3 by [com.sun.grizzly#grizzly-portunif;1.8.6] in [default]
[ivy:resolve] com.sun.grizzly#grizzly-http-servlet;1.8.3 by [com.sun.grizzly#grizzly-http-servlet;1.8.6] in [default]
[ivy:resolve] javax.servlet#servlet-api;2.4 by [javax.servlet#servlet-api;2.5] in [default]
---------------------------------------------------------------------
|                  |            modules            ||   artifacts   |
|       conf       | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
|      default     |   34  |   0   |   0   |   8   ||   38  |   0   |
---------------------------------------------------------------------
[ivy:retrieve] :: retrieving :: com.restbucks#hypermedia
[ivy:retrieve] confs: [default]
[ivy:retrieve] 0 artifacts copied, 38 already retrieved (0kB/14ms)

compile:
    [mkdir] Created dir: /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/target/main/classes
    [javac] Compiling 20 source files to /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/target/main/classes
    [javac] 
    [javac]           WARNING
    [javac] 
    [javac] The -source switch defaults to 1.8 in JDK 1.8.
    [javac] If you specify -target 1.6 you now must also specify -source 1.6.
    [javac] Ant will implicitly add -source 1.6 for you.  Please change your build file.
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/ClientOrder.java:11: error: package com.restbucks.ordering.domain does not exist
    [javac] import com.restbucks.ordering.domain.Item;
    [javac]                                     ^
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/ClientOrder.java:12: error: package com.restbucks.ordering.domain does not exist
    [javac] import com.restbucks.ordering.domain.Location;
    [javac]                                     ^
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/ClientOrder.java:13: error: package com.restbucks.ordering.domain does not exist
    [javac] import com.restbucks.ordering.domain.Order;
    [javac]                                     ^
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/ClientOrder.java:14: error: package com.restbucks.ordering.domain does not exist
    [javac] import com.restbucks.ordering.domain.OrderStatus;
    [javac]                                     ^
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/ClientOrder.java:15: error: package com.restbucks.ordering.representations does not exist
    [javac] import com.restbucks.ordering.representations.Representation;
    [javac]                                              ^
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/ClientOrder.java:21: error: cannot find symbol
    [javac]     private List<Item> items;
    [javac]                  ^
    [javac]   symbol:   class Item
    [javac]   location: class ClientOrder
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/ClientOrder.java:23: error: cannot find symbol
    [javac]     private Location location;
    [javac]             ^
    [javac]   symbol:   class Location
    [javac]   location: class ClientOrder
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/ClientOrder.java:25: error: cannot find symbol
    [javac]     private OrderStatus status;
    [javac]             ^
    [javac]   symbol:   class OrderStatus
    [javac]   location: class ClientOrder
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/ClientOrder.java:29: error: cannot find symbol
    [javac]     public ClientOrder(Order order) {
    [javac]                        ^
    [javac]   symbol:   class Order
    [javac]   location: class ClientOrder
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/ClientOrder.java:34: error: cannot find symbol
    [javac]     public Order getOrder() {
    [javac]            ^
    [javac]   symbol:   class Order
    [javac]   location: class ClientOrder
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/ClientOrder.java:38: error: cannot find symbol
    [javac]     public Location getLocation() {
    [javac]            ^
    [javac]   symbol:   class Location
    [javac]   location: class ClientOrder
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/ClientOrder.java:42: error: cannot find symbol
    [javac]     public List<Item> getItems() {
    [javac]                 ^
    [javac]   symbol:   class Item
    [javac]   location: class ClientOrder
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/ClientOrder.java:60: error: cannot find symbol
    [javac]     public OrderStatus getStatus() {
    [javac]            ^
    [javac]   symbol:   class OrderStatus
    [javac]   location: class ClientOrder
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:3: error: package com.restbucks.ordering.domain does not exist
    [javac] import static com.restbucks.ordering.domain.OrderBuilder.order;
    [javac]                                            ^
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:3: error: static import only from classes and interfaces
    [javac] import static com.restbucks.ordering.domain.OrderBuilder.order;
    [javac] ^
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:14: error: package com.restbucks.ordering.domain does not exist
    [javac] import com.restbucks.ordering.domain.Order;
    [javac]                                     ^
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:15: error: package com.restbucks.ordering.domain does not exist
    [javac] import com.restbucks.ordering.domain.OrderStatus;
    [javac]                                     ^
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:16: error: package com.restbucks.ordering.domain does not exist
    [javac] import com.restbucks.ordering.domain.Payment;
    [javac]                                     ^
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:17: error: package com.restbucks.ordering.representations does not exist
    [javac] import com.restbucks.ordering.representations.Link;
    [javac]                                              ^
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:18: error: package com.restbucks.ordering.representations does not exist
    [javac] import com.restbucks.ordering.representations.OrderRepresentation;
    [javac]                                              ^
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:19: error: package com.restbucks.ordering.representations does not exist
    [javac] import com.restbucks.ordering.representations.PaymentRepresentation;
    [javac]                                              ^
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:20: error: package com.restbucks.ordering.representations does not exist
    [javac] import com.restbucks.ordering.representations.ReceiptRepresentation;
    [javac]                                              ^
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:21: error: package com.restbucks.ordering.representations does not exist
    [javac] import com.restbucks.ordering.representations.RestbucksUri;
    [javac]                                              ^
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:86: error: cannot find symbol
    [javac]     private static void fileReceipt(ReceiptRepresentation receipt) {
    [javac]                                     ^
    [javac]   symbol:   class ReceiptRepresentation
    [javac]   location: class Main
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/network/HttpBinding.java:12: error: package com.restbucks.ordering.domain does not exist
    [javac] import com.restbucks.ordering.domain.Order;
    [javac]                                     ^
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/network/HttpBinding.java:13: error: package com.restbucks.ordering.domain does not exist
    [javac] import com.restbucks.ordering.domain.Payment;
    [javac]                                     ^
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/network/HttpBinding.java:14: error: package com.restbucks.ordering.representations does not exist
    [javac] import com.restbucks.ordering.representations.OrderRepresentation;
    [javac]                                              ^
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/network/HttpBinding.java:15: error: package com.restbucks.ordering.representations does not exist
    [javac] import com.restbucks.ordering.representations.PaymentRepresentation;
    [javac]                                              ^
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/network/HttpBinding.java:16: error: package com.restbucks.ordering.representations does not exist
    [javac] import com.restbucks.ordering.representations.ReceiptRepresentation;
    [javac]                                              ^
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/network/HttpBinding.java:24: error: cannot find symbol
    [javac]     public OrderRepresentation createOrder(Order order, URI orderUri) throws MalformedOrderException, ServiceFailureException {
    [javac]                                            ^
    [javac]   symbol:   class Order
    [javac]   location: class HttpBinding
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/network/HttpBinding.java:24: error: cannot find symbol
    [javac]     public OrderRepresentation createOrder(Order order, URI orderUri) throws MalformedOrderException, ServiceFailureException {
    [javac]            ^
    [javac]   symbol:   class OrderRepresentation
    [javac]   location: class HttpBinding
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/network/HttpBinding.java:41: error: cannot find symbol
    [javac]     public OrderRepresentation retrieveOrder(URI orderUri) throws NotFoundException, ServiceFailureException {
    [javac]            ^
    [javac]   symbol:   class OrderRepresentation
    [javac]   location: class HttpBinding
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/network/HttpBinding.java:58: error: cannot find symbol
    [javac]     public OrderRepresentation updateOrder(Order order, URI orderUri) throws MalformedOrderException, ServiceFailureException, NotFoundException,
    [javac]                                            ^
    [javac]   symbol:   class Order
    [javac]   location: class HttpBinding
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/network/HttpBinding.java:58: error: cannot find symbol
    [javac]     public OrderRepresentation updateOrder(Order order, URI orderUri) throws MalformedOrderException, ServiceFailureException, NotFoundException,
    [javac]            ^
    [javac]   symbol:   class OrderRepresentation
    [javac]   location: class HttpBinding
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/network/HttpBinding.java:80: error: cannot find symbol
    [javac]     public OrderRepresentation deleteOrder(URI orderUri) throws ServiceFailureException, CannotCancelException, NotFoundException {
    [javac]            ^
    [javac]   symbol:   class OrderRepresentation
    [javac]   location: class HttpBinding
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/network/HttpBinding.java:98: error: cannot find symbol
    [javac]     public PaymentRepresentation makePayment(Payment payment, URI paymentUri) throws InvalidPaymentException, NotFoundException, DuplicatePaymentException,
    [javac]                                              ^
    [javac]   symbol:   class Payment
    [javac]   location: class HttpBinding
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/network/HttpBinding.java:98: error: cannot find symbol
    [javac]     public PaymentRepresentation makePayment(Payment payment, URI paymentUri) throws InvalidPaymentException, NotFoundException, DuplicatePaymentException,
    [javac]            ^
    [javac]   symbol:   class PaymentRepresentation
    [javac]   location: class HttpBinding
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/network/HttpBinding.java:119: error: cannot find symbol
    [javac]     public ReceiptRepresentation retrieveReceipt(URI receiptUri) throws NotFoundException, ServiceFailureException {
    [javac]            ^
    [javac]   symbol:   class ReceiptRepresentation
    [javac]   location: class HttpBinding
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/activities/GetReceiptActivity.java:5: error: package com.restbucks.ordering.representations does not exist
    [javac] import com.restbucks.ordering.representations.ReceiptRepresentation;
    [javac]                                              ^
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/activities/GetReceiptActivity.java:9: error: cannot find symbol
    [javac]     private ReceiptRepresentation representation;
    [javac]             ^
    [javac]   symbol:   class ReceiptRepresentation
    [javac]   location: class GetReceiptActivity
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/activities/GetReceiptActivity.java:31: error: cannot find symbol
    [javac]     public ReceiptRepresentation getReceipt() {
    [javac]            ^
    [javac]   symbol:   class ReceiptRepresentation
    [javac]   location: class GetReceiptActivity
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/activities/PaymentActivity.java:5: error: package com.restbucks.ordering.domain does not exist
    [javac] import com.restbucks.ordering.domain.Payment;
    [javac]                                     ^
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/activities/PaymentActivity.java:6: error: package com.restbucks.ordering.representations does not exist
    [javac] import com.restbucks.ordering.representations.PaymentRepresentation;
    [javac]                                              ^
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/activities/PaymentActivity.java:11: error: cannot find symbol
    [javac]     private Payment payment;
    [javac]             ^
    [javac]   symbol:   class Payment
    [javac]   location: class PaymentActivity
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/activities/PaymentActivity.java:17: error: cannot find symbol
    [javac]     public void payForOrder(Payment payment) {        
    [javac]                             ^
    [javac]   symbol:   class Payment
    [javac]   location: class PaymentActivity
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/activities/PaymentActivity.java:33: error: cannot find symbol
    [javac]     public Payment getPayment() {
    [javac]            ^
    [javac]   symbol:   class Payment
    [javac]   location: class PaymentActivity
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/activities/PlaceOrderActivity.java:6: error: package com.restbucks.ordering.domain does not exist
    [javac] import com.restbucks.ordering.domain.Order;
    [javac]                                     ^
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/activities/PlaceOrderActivity.java:7: error: package com.restbucks.ordering.representations does not exist
    [javac] import com.restbucks.ordering.representations.OrderRepresentation;
    [javac]                                              ^
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/activities/PlaceOrderActivity.java:11: error: cannot find symbol
    [javac]     private Order order;
    [javac]             ^
    [javac]   symbol:   class Order
    [javac]   location: class PlaceOrderActivity
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/activities/PlaceOrderActivity.java:13: error: cannot find symbol
    [javac]     public void placeOrder(Order order, URI orderingUri) {
    [javac]                            ^
    [javac]   symbol:   class Order
    [javac]   location: class PlaceOrderActivity
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/activities/ReadOrderActivity.java:6: error: package com.restbucks.ordering.representations does not exist
    [javac] import com.restbucks.ordering.representations.OrderRepresentation;
    [javac]                                              ^
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/activities/ReadOrderActivity.java:11: error: cannot find symbol
    [javac]     private OrderRepresentation currentOrderRepresentation;
    [javac]             ^
    [javac]   symbol:   class OrderRepresentation
    [javac]   location: class ReadOrderActivity
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/activities/RepresentationHypermediaProcessor.java:3: error: package com.restbucks.ordering.representations does not exist
    [javac] import com.restbucks.ordering.representations.OrderRepresentation;
    [javac]                                              ^
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/activities/RepresentationHypermediaProcessor.java:4: error: package com.restbucks.ordering.representations does not exist
    [javac] import com.restbucks.ordering.representations.PaymentRepresentation;
    [javac]                                              ^
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/activities/RepresentationHypermediaProcessor.java:8: error: cannot find symbol
    [javac]     Actions extractNextActionsFromOrderRepresentation(OrderRepresentation representation) {
    [javac]                                                       ^
    [javac]   symbol:   class OrderRepresentation
    [javac]   location: class RepresentationHypermediaProcessor
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/activities/RepresentationHypermediaProcessor.java:33: error: cannot find symbol
    [javac]     public Actions extractNextActionsFromPaymentRepresentation(PaymentRepresentation representation) {
    [javac]                                                                ^
    [javac]   symbol:   class PaymentRepresentation
    [javac]   location: class RepresentationHypermediaProcessor
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/activities/UpdateOrderActivity.java:6: error: package com.restbucks.ordering.domain does not exist
    [javac] import com.restbucks.ordering.domain.Order;
    [javac]                                     ^
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/activities/UpdateOrderActivity.java:7: error: package com.restbucks.ordering.representations does not exist
    [javac] import com.restbucks.ordering.representations.OrderRepresentation;
    [javac]                                              ^
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/activities/UpdateOrderActivity.java:12: error: cannot find symbol
    [javac]     private OrderRepresentation updatedOrderRepresentation;
    [javac]             ^
    [javac]   symbol:   class OrderRepresentation
    [javac]   location: class UpdateOrderActivity
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/activities/UpdateOrderActivity.java:18: error: cannot find symbol
    [javac]     public void updateOrder(Order order) {
    [javac]                             ^
    [javac]   symbol:   class Order
    [javac]   location: class UpdateOrderActivity
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/ClientOrder.java:17: error: cannot find symbol
    [javac] @XmlRootElement(name = "order", namespace = Representation.RESTBUCKS_NAMESPACE)
    [javac]                                             ^
    [javac]   symbol: variable Representation
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/ClientOrder.java:20: error: cannot find symbol
    [javac]     @XmlElement(name = "item", namespace = Representation.RESTBUCKS_NAMESPACE)
    [javac]                                            ^
    [javac]   symbol:   variable Representation
    [javac]   location: class ClientOrder
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/ClientOrder.java:22: error: cannot find symbol
    [javac]     @XmlElement(name = "location", namespace = Representation.RESTBUCKS_NAMESPACE)
    [javac]                                                ^
    [javac]   symbol:   variable Representation
    [javac]   location: class ClientOrder
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/ClientOrder.java:24: error: cannot find symbol
    [javac]     @XmlElement(name = "status", namespace = Representation.RESTBUCKS_NAMESPACE)
    [javac]                                              ^
    [javac]   symbol:   variable Representation
    [javac]   location: class ClientOrder
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/ClientOrder.java:35: error: cannot find symbol
    [javac]         return new Order(location, status, items);
    [javac]                    ^
    [javac]   symbol:   class Order
    [javac]   location: class ClientOrder
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/ClientOrder.java:67: error: cannot find symbol
    [javac]             for (Item item : items) {
    [javac]                  ^
    [javac]   symbol:   class Item
    [javac]   location: class ClientOrder
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:36: error: cannot find symbol
    [javac]         Order order = order().withRandomItems().build();
    [javac]         ^
    [javac]   symbol:   class Order
    [javac]   location: class Main
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:36: error: cannot find symbol
    [javac]         Order order = order().withRandomItems().build();
    [javac]                       ^
    [javac]   symbol:   method order()
    [javac]   location: class Main
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:46: error: cannot find symbol
    [javac]             createdOrder = new ClientOrder(order().withRandomItems().build());
    [javac]                                            ^
    [javac]   symbol:   method order()
    [javac]   location: class Main
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:54: error: cannot find symbol
    [javac]             paymentActivity.payForOrder(new Payment(createdOrder.getCost(), "Martin Fowler", "1234567890", 12, 2121));
    [javac]                                             ^
    [javac]   symbol:   class Payment
    [javac]   location: class Main
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:70: error: cannot find symbol
    [javac]             while(baristaOrder.getStatus() != OrderStatus.READY) {
    [javac]                                               ^
    [javac]   symbol:   variable OrderStatus
    [javac]   location: class Main
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:93: error: cannot find symbol
    [javac]         Order order = order().withRandomItems().build();
    [javac]         ^
    [javac]   symbol:   class Order
    [javac]   location: class Main
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:93: error: cannot find symbol
    [javac]         Order order = order().withRandomItems().build();
    [javac]                       ^
    [javac]   symbol:   method order()
    [javac]   location: class Main
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:95: error: cannot find symbol
    [javac]         OrderRepresentation orderRepresentation = client.resource(serviceUri).accept(RESTBUCKS_MEDIA_TYPE).type(RESTBUCKS_MEDIA_TYPE).post(OrderRepresentation.class, new ClientOrder(order));
    [javac]         ^
    [javac]   symbol:   class OrderRepresentation
    [javac]   location: class Main
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:95: error: cannot find symbol
    [javac]         OrderRepresentation orderRepresentation = client.resource(serviceUri).accept(RESTBUCKS_MEDIA_TYPE).type(RESTBUCKS_MEDIA_TYPE).post(OrderRepresentation.class, new ClientOrder(order));
    [javac]                                                                                                                                            ^
    [javac]   symbol:   class OrderRepresentation
    [javac]   location: class Main
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:100: error: cannot find symbol
    [javac]         order = order().withRandomItems().build();
    [javac]                 ^
    [javac]   symbol:   method order()
    [javac]   location: class Main
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:101: error: cannot find symbol
    [javac]         Link badLink = new Link("bad", new RestbucksUri(orderRepresentation.getSelfLink().getUri().toString() + "/bad-uri"), RESTBUCKS_MEDIA_TYPE);
    [javac]         ^
    [javac]   symbol:   class Link
    [javac]   location: class Main
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:101: error: cannot find symbol
    [javac]         Link badLink = new Link("bad", new RestbucksUri(orderRepresentation.getSelfLink().getUri().toString() + "/bad-uri"), RESTBUCKS_MEDIA_TYPE);
    [javac]                            ^
    [javac]   symbol:   class Link
    [javac]   location: class Main
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:101: error: cannot find symbol
    [javac]         Link badLink = new Link("bad", new RestbucksUri(orderRepresentation.getSelfLink().getUri().toString() + "/bad-uri"), RESTBUCKS_MEDIA_TYPE);
    [javac]                                            ^
    [javac]   symbol:   class RestbucksUri
    [javac]   location: class Main
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:102: error: cannot find symbol
    [javac]         ClientResponse badUpdateResponse = client.resource(badLink.getUri()).accept(badLink.getMediaType()).type(badLink.getMediaType()).post(ClientResponse.class, new OrderRepresentation(order));
    [javac]                                                                                                                                                                         ^
    [javac]   symbol:   class OrderRepresentation
    [javac]   location: class Main
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:107: error: cannot find symbol
    [javac]         order = order().withRandomItems().build();
    [javac]                 ^
    [javac]   symbol:   method order()
    [javac]   location: class Main
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:108: error: cannot find symbol
    [javac]         Link updateLink = orderRepresentation.getUpdateLink();
    [javac]         ^
    [javac]   symbol:   class Link
    [javac]   location: class Main
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:109: error: cannot find symbol
    [javac]         OrderRepresentation updatedRepresentation = client.resource(updateLink.getUri()).accept(updateLink.getMediaType()).type(updateLink.getMediaType()).post(OrderRepresentation.class, new OrderRepresentation(order));
    [javac]         ^
    [javac]   symbol:   class OrderRepresentation
    [javac]   location: class Main
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:109: error: cannot find symbol
    [javac]         OrderRepresentation updatedRepresentation = client.resource(updateLink.getUri()).accept(updateLink.getMediaType()).type(updateLink.getMediaType()).post(OrderRepresentation.class, new OrderRepresentation(order));
    [javac]                                                                                                                                                                 ^
    [javac]   symbol:   class OrderRepresentation
    [javac]   location: class Main
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:109: error: cannot find symbol
    [javac]         OrderRepresentation updatedRepresentation = client.resource(updateLink.getUri()).accept(updateLink.getMediaType()).type(updateLink.getMediaType()).post(OrderRepresentation.class, new OrderRepresentation(order));
    [javac]                                                                                                                                                                                                ^
    [javac]   symbol:   class OrderRepresentation
    [javac]   location: class Main
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:114: error: cannot find symbol
    [javac]         Link paymentLink = updatedRepresentation.getPaymentLink();
    [javac]         ^
    [javac]   symbol:   class Link
    [javac]   location: class Main
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:115: error: cannot find symbol
    [javac]         Payment payment = new Payment(updatedRepresentation.getCost(), "A.N. Other", "12345677878", 12, 2999);
    [javac]         ^
    [javac]   symbol:   class Payment
    [javac]   location: class Main
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:115: error: cannot find symbol
    [javac]         Payment payment = new Payment(updatedRepresentation.getCost(), "A.N. Other", "12345677878", 12, 2999);
    [javac]                               ^
    [javac]   symbol:   class Payment
    [javac]   location: class Main
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:116: error: cannot find symbol
    [javac]         PaymentRepresentation  paymentRepresentation = client.resource(paymentLink.getUri()).accept(paymentLink.getMediaType()).type(paymentLink.getMediaType()).put(PaymentRepresentation.class, new PaymentRepresentation(payment));
    [javac]         ^
    [javac]   symbol:   class PaymentRepresentation
    [javac]   location: class Main
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:116: error: cannot find symbol
    [javac]         PaymentRepresentation  paymentRepresentation = client.resource(paymentLink.getUri()).accept(paymentLink.getMediaType()).type(paymentLink.getMediaType()).put(PaymentRepresentation.class, new PaymentRepresentation(payment));
    [javac]                                                                                                                                                                      ^
    [javac]   symbol:   class PaymentRepresentation
    [javac]   location: class Main
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:116: error: cannot find symbol
    [javac]         PaymentRepresentation  paymentRepresentation = client.resource(paymentLink.getUri()).accept(paymentLink.getMediaType()).type(paymentLink.getMediaType()).put(PaymentRepresentation.class, new PaymentRepresentation(payment));
    [javac]                                                                                                                                                                                                       ^
    [javac]   symbol:   class PaymentRepresentation
    [javac]   location: class Main
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:121: error: cannot find symbol
    [javac]         Link receiptLink = paymentRepresentation.getReceiptLink();
    [javac]         ^
    [javac]   symbol:   class Link
    [javac]   location: class Main
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:122: error: cannot find symbol
    [javac]         ReceiptRepresentation receiptRepresentation = client.resource(receiptLink.getUri()).get(ReceiptRepresentation.class);
    [javac]         ^
    [javac]   symbol:   class ReceiptRepresentation
    [javac]   location: class Main
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:122: error: cannot find symbol
    [javac]         ReceiptRepresentation receiptRepresentation = client.resource(receiptLink.getUri()).get(ReceiptRepresentation.class);
    [javac]                                                                                                 ^
    [javac]   symbol:   class ReceiptRepresentation
    [javac]   location: class Main
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:127: error: cannot find symbol
    [javac]         Link orderLink = receiptRepresentation.getOrderLink();
    [javac]         ^
    [javac]   symbol:   class Link
    [javac]   location: class Main
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:128: error: cannot find symbol
    [javac]         OrderRepresentation finalOrderRepresentation = client.resource(orderLink.getUri()).accept(RESTBUCKS_MEDIA_TYPE).get(OrderRepresentation.class);
    [javac]         ^
    [javac]   symbol:   class OrderRepresentation
    [javac]   location: class Main
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:128: error: cannot find symbol
    [javac]         OrderRepresentation finalOrderRepresentation = client.resource(orderLink.getUri()).accept(RESTBUCKS_MEDIA_TYPE).get(OrderRepresentation.class);
    [javac]                                                                                                                             ^
    [javac]   symbol:   class OrderRepresentation
    [javac]   location: class Main
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:140: error: cannot find symbol
    [javac]             System.out.println(String.format("Order status [%s], enjoy your drink", finalResponse.getEntity(OrderRepresentation.class).getStatus()));
    [javac]                                                                                                             ^
    [javac]   symbol:   class OrderRepresentation
    [javac]   location: class Main
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/network/HttpBinding.java:26: error: cannot find symbol
    [javac]         ClientResponse response = client.resource(orderUri).accept(RESTBUCKS_MEDIA_TYPE).type(RESTBUCKS_MEDIA_TYPE).post(ClientResponse.class, new OrderRepresentation(order));
    [javac]                                                                                                                                                    ^
    [javac]   symbol:   class OrderRepresentation
    [javac]   location: class HttpBinding
    [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/network/HttpBinding.java:35: error: cannot find symbol
    [javac]             return response.getEntity(OrderRepresentation.class);
    [javac]                                       ^
    [javac]   symbol:   class OrderRepresentation
    [javac]   location: class HttpBinding
    [javac] Note: /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/activities/Actions.java uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 100 errors
    [javac] 1 warning

BUILD FAILED
/home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/build.xml:36: Compile failed; see the compiler error output for details.

Total time: 2 seconds

Jim Webber

unread,
Feb 11, 2016, 4:08:52 PM2/11/16
to restinp...@googlegroups.com
Hello Mariano,

I just downloaded the zipped source from the website and unzipped it.

I did:

cd RestbucksOrderingService
ant
cd ../RestbucksOrderingClient
ant

And it just worked.

Can you confirm you did the same?

Jim

Mariano Burgos

unread,
Feb 12, 2016, 9:58:55 AM2/12/16
to restinpractice
Yes, that is what I did. Just unzipped the files, then I ran ant in each build.xml folder, starting with the Service one.
>     [javac]   symbol:   met...

Mariano Burgos

unread,
Feb 12, 2016, 2:12:28 PM2/12/16
to restinpractice
I tryed many times with the same result until I renamed the original folders to joS for Service and joC for Client and it worked. It was probably something to do with the dash in the folder's name. 
Thanks.
...

Sriram Varadharajan

unread,
Jun 26, 2018, 12:14:12 PM6/26/18
to restinpractice
Hello - I am at the exact situation as Mariano except that i am using eclipse to bring the code over as eclipse projects and all is well with the server project. When it comes to client project i feel there are missing files one such being OrderRepresentation. My package explorer view for the client project attached. My understanding we need representation classes on both the ends of the pipe and we are currently having it only on the server end. I would like to compile and run the projects from with in eclipse and not command line.

>     [javac] /home/mariano/workspaces/workspaceEEMars2016/Chapter5-JavaOrderingClient/RestbucksOrderingClient/src/main/java/com/restbucks/ordering/client/Main.java:122: error: cannot find symbol...
RestinPracticeEclipseBug.png

Jim Webber

unread,
Jun 28, 2018, 5:45:28 AM6/28/18
to restinp...@googlegroups.com
Hi Sriram,

On the client side the representation is called “ClientOrder” and on the server implementation it is called “OrderRepresentation”.

Jim
> --
> You received this message because you are subscribed to the Google Groups "restinpractice" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to restinpractic...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
> <RestinPracticeEclipseBug.png>

Josh Graham

unread,
Jun 28, 2018, 8:11:14 PM6/28/18
to restinp...@googlegroups.com
No, you did `sudo ant`.

This means it is running with different effective user and group ids.


----------------------------------
From the phone
--
Reply all
Reply to author
Forward
0 new messages