0 Replies Latest reply: Oct 14, 2008 4:21 PM by 843833 RSS

    2 Questions about petstore 2.0

    843833
      1.
      I have played around petstore 2.0. After I added a JAX-WS Web service and modified
      CatalogFacade to call the web service, I am getting the following strange compilation error
      even after I remove the web service client code from CatalogFacade:

      init:
      deps-module-jar:
      deps-ear-jar:
      deps-jar:
      library-inclusion-in-archive:
      library-inclusion-in-manifest:
      Compiling 5 source files to D:\projects\IOD2008\javapetstore-2.0-ea5\build\web\WEB-INF\classes
      D:\projects\IOD2008\javapetstore-2.0-ea5\src\java\com\sun\javaee\blueprints\petstore\model\CatalogFacade.java:394: cannot find symbol
      symbol : method containsTag(java.lang.String)
      location: class com.sun.javaee.blueprints.petstore.model.Item
      if(!item.containsTag(tagx)) {
      D:\projects\IOD2008\javapetstore-2.0-ea5\src\java\com\sun\javaee\blueprints\petstore\model\CatalogFacade.java:417: cannot find symbol
      symbol : method tagsAsString()
      location: class com.sun.javaee.blueprints.petstore.model.Item
      update.updateDocTag(PetstoreConstants.PETSTORE_INDEX_DIRECTORY, "tag" , item.tagsAsString(), item.getItemID(), UpdateIndex.REPLACE_FIELD);
      2 errors
      D:\projects\IOD2008\javapetstore-2.0-ea5\nbproject\build-impl.xml:393: The following error occurred while executing this line:
      D:\projects\IOD2008\javapetstore-2.0-ea5\nbproject\build-impl.xml:214: Compile failed; see the compiler error output for details.
      BUILD FAILED (total time: 0 seconds)

      Could someone please shed a light on this problem?

      2. Which operations in Petstore's web interface invokes getItem(String itemID) and getProducts(String categID) in CatalogFacade?

      Thanks!

      Peter