[ http://issues.apache.org/jira/browse/BEEHIVE-360?page=all ]
Jeremiah Johnson updated BEEHIVE-360:
-------------------------------------
Attachment: BEEHIVE-360.txt
Here is a complete patch to make the dashboard build. This will fix the issue,
in my opinion. A couple of changes were made to petstoreWeb that should be
reviewed carefully, though.
Changes to petstoreWeb:
- I removed the ws package that was in petstore.model; attached images are now
an optional attribute on Category and Product
- the Web service was updated to remove the copying of Category to ws.Category
and Product to ws.Product
- I removed all cases that the Web methods would throw a DataStoreException
- any Web methods that didn't have a catch on Exception or Throwable, I added a
catch of Throwable and returned whatever was appropriate for an empty result -
in a couple cases a SOAP fault was appropriate, but I put in a TODO and will
issue a separate bug against the petstoreWeb to get that resolved
Changes to wsm-petstore-dashboard:
- updated for the package change noted above
- updated the list of column names - Item has changed since last time dashboard
was compiled successfully
- replaced exception in run method with a return - stack already being logged
- applied the temporary fix of beehive.home in build.properties - this
necessary until dashboard is part of dist
- fixed runtime classpath in build.xml to include classes directory (as opposed
to just build directory)
- fixed source location of runtime jars used in deploy.webservice.runtime
Note that the dashboard now runs for me, but whether I click on Store or
Product, it just says TBD. I assume that means that the functionality hasn't
been implemented. I believe that implementation of whatever functionality that
is is outside of the scope of this issue.
One other note: if you want to validate this patch, you need to do something
like the following:
1. svn up -r168071
2. patch -p0 < BEEHIVE-360.txt
3. rm -rf
samples/petstoreWeb/WEB-INF/src/org/apache/beehive/samples/petstore/model/ws
3. ant clean clean.dist deploy build.dist
4. get derby.jar, activation.jar, and mailapi.jar according to instructions on
the Web site and put them all in $BEEHIVE_HOME/samples/petstoreWeb/WEB-INF/lib
5. ant clean build war (in the $BEEHIVE_HOME/samples/pestoreWeb/WEB-INF/src
directory)
6. cp ../../../petstoreWeb.war $CATALINA_HOME/webapps
7. find the non-dist wsm-petstore-dashboard
8. put a copy of the activation.jar and mailapi.jar files that you downloaded
earlier into the lib directory
9. ant clean compile (in the wsm-petstore-dashboard directory)
You should get a successful compile. If you want to see swing run, then use
'ant clean all' or just 'ant'.
> Build failure in petstoreDashboard
> ----------------------------------
>
> Key: BEEHIVE-360
> URL: http://issues.apache.org/jira/browse/BEEHIVE-360
> Project: Beehive
> Type: Bug
> Components: Samples
> Versions: V1Beta
> Environment: Windows, Tomcat
> Reporter: Heather Stephens
> Assignee: Michael Merz
> Fix For: V1
> Attachments: BEEHIVE-360-build.xml, BEEHIVE-360.txt
>
> ant -f %BEEHIVE_HOME%\samples\PetstoreDashboard\build.xml
> (NOTE: I doubt it matters but ... petstoreWeb app was successfully built and
> deployed to Tomcat previous to running build.xml for the dashboard.)
> Build spew in shell below
> No errors in Tomcat console-->
> (Build failed: )
> D:\TEMP\TestingBeehive\Zips\apache-beehive-incubating-svn-snapshot>ant -f
> %BEEHIVE_HOME%\samples\PetstoreDashboard\build
> .xml
> Buildfile:
> D:\TEMP\TestingBeehive\Zips\apache-beehive-incubating-svn-snapshot\samples\PetstoreDashboard\build.xml
> dirs:
> genClient:
> [wsdl2java] WSDL2Java
> http://localhost:8080/petstoreWeb/PetstoreInventoryManager.jws?wsdl
> [wsdl2java] Exception in thread "Thread-0" java.lang.StackOverflowError
> [wsdl2java] at java.util.HashMap.get(HashMap.java:320)
> [wsdl2java] at
> org.apache.axis.wsdl.symbolTable.SchemaUtils.getComplexElementExtensionBase(SchemaUtils.java:961)
> [wsdl2java] at
> org.apache.axis.wsdl.symbolTable.SchemaUtils.getBaseType(SchemaUtils.java:1863)
> [wsdl2java] at
> org.apache.axis.wsdl.toJava.JavaGeneratorFactory.javifyTypeEntryName(JavaGeneratorFactory.java:532)
> <...... Repeat above line a zillion times .......>
> compile:
> [javac] Compiling 2 source files to
> D:\TEMP\TestingBeehive\Zips\apache-beehive-incubating-svn-snapshot\samples\Petst
> oreDashboard\build\classes
> [javac]
> D:\TEMP\TestingBeehive\Zips\apache-beehive-incubating-svn-snapshot\samples\PetstoreDashboard\src\ui\PetStore
> Dashboard.java:34: package org.apache.beehive.petstore does not exist
> [javac] import org.apache.beehive.petstore.PetstoreInventoryManager;
> [javac] ^
> [javac]
> D:\TEMP\TestingBeehive\Zips\apache-beehive-incubating-svn-snapshot\samples\PetstoreDashboard\src\ui\PetStore
> Dashboard.java:40: cannot find symbol
> [javac] symbol : class PetstoreInventoryManager
> [javac] location: class ui.PetStoreDashboard
> [javac] PetstoreInventoryManager store;
> [javac] ^
> [javac]
> D:\TEMP\TestingBeehive\Zips\apache-beehive-incubating-svn-snapshot\samples\PetstoreDashboard\src\ui\PetStore
> ProductView.java:51: package org.apache.beehive.petstore does not exist
> [javac] import org.apache.beehive.petstore.InvalidIdentifierException;
> [javac] ^
> [javac]
> D:\TEMP\TestingBeehive\Zips\apache-beehive-incubating-svn-snapshot\samples\PetstoreDashboard\src\ui\PetStore
> ProductView.java:52: package org.apache.beehive.petstore does not exist
> [javac] import org.apache.beehive.petstore.PetstoreInventoryManager;
> [javac] ^
> [javac]
> D:\TEMP\TestingBeehive\Zips\apache-beehive-incubating-svn-snapshot\samples\PetstoreDashboard\src\ui\PetStore
> ProductView.java:53: package org.apache.beehive.samples.petstore.model does
> not exist
> [javac] import org.apache.beehive.samples.petstore.model.Item;
> [javac] ^
> [javac]
> D:\TEMP\TestingBeehive\Zips\apache-beehive-incubating-svn-snapshot\samples\PetstoreDashboard\src\ui\PetStore
> ProductView.java:54: package org.apache.beehive.samples.petstore.model.ws
> does not exist
> [javac] import org.apache.beehive.samples.petstore.model.ws.Category;
> [javac] ^
> [javac]
> D:\TEMP\TestingBeehive\Zips\apache-beehive-incubating-svn-snapshot\samples\PetstoreDashboard\src\ui\PetStore
> ProductView.java:55: package org.apache.beehive.samples.petstore.model.ws
> does not exist
> [javac] import org.apache.beehive.samples.petstore.model.ws.Product;
> [javac] ^
> [javac]
> D:\TEMP\TestingBeehive\Zips\apache-beehive-incubating-svn-snapshot\samples\PetstoreDashboard\src\ui\PetStore
> Dashboard.java:44: cannot find symbol
> [javac] symbol : class PetstoreInventoryManager
> [javac] location: class ui.PetStoreDashboard
> [javac] public PetStoreDashboard(PetstoreInventoryManager store) {
> [javac] ^
> [javac]
> D:\TEMP\TestingBeehive\Zips\apache-beehive-incubating-svn-snapshot\samples\PetstoreDashboard\src\ui\PetStore
> ProductView.java:63: cannot find symbol
> [javac] symbol : class PetstoreInventoryManager
> [javac] location: class ui.PetStoreProductView
> [javac] PetstoreInventoryManager store;
> [javac] ^
> [javac]
> D:\TEMP\TestingBeehive\Zips\apache-beehive-incubating-svn-snapshot\samples\PetstoreDashboard\src\ui\PetStore
> ProductView.java:75: cannot find symbol
> [javac] symbol : class PetstoreInventoryManager
> [javac] location: class ui.PetStoreProductView
> [javac] public PetStoreProductView(PetstoreInventoryManager store) {
> [javac] ^
> [javac]
> D:\TEMP\TestingBeehive\Zips\apache-beehive-incubating-svn-snapshot\samples\PetstoreDashboard\src\ui\PetStore
> ProductView.java:264: cannot find symbol
> [javac] symbol : class Item
> [javac] location: class ui.PetStoreProductView.ProductDetailModel
> [javac] Item[] items = null;
> [javac] ^
> [javac]
> D:\TEMP\TestingBeehive\Zips\apache-beehive-incubating-svn-snapshot\samples\PetstoreDashboard\src\ui\PetStore
> ProductView.java:266: cannot find symbol
> [javac] symbol : class Product
> [javac] location: class ui.PetStoreProductView.ProductDetailModel
> [javac] public ProductDetailModel(Product product) throws
> RemoteException {
> [javac] ^
> [javac]
> D:\TEMP\TestingBeehive\Zips\apache-beehive-incubating-svn-snapshot\samples\PetstoreDashboard\src\ui\PetStore
> ProductView.java:239: cannot find symbol
> [javac] symbol : class Product
> [javac] location: class ui.PetStoreProductView.ProductItemView
> [javac] public void setProductItem(Product product) {
> [javac] ^
> [javac]
> D:\TEMP\TestingBeehive\Zips\apache-beehive-incubating-svn-snapshot\samples\PetstoreDashboard\src\ui\PetStore
> ProductView.java:364: cannot find symbol
> [javac] symbol : class Category
> [javac] location: class ui.PetStoreProductView.ProductCategoryInfo
> [javac] Category category;
> [javac] ^
> [javac]
> D:\TEMP\TestingBeehive\Zips\apache-beehive-incubating-svn-snapshot\samples\PetstoreDashboard\src\ui\PetStore
> ProductView.java:369: cannot find symbol
> [javac] symbol : class Category
> [javac] location: class ui.PetStoreProductView.ProductCategoryInfo
> [javac] public Category getCategory() {
> [javac] ^
> [javac]
> D:\TEMP\TestingBeehive\Zips\apache-beehive-incubating-svn-snapshot\samples\PetstoreDashboard\src\ui\PetStore
> ProductView.java:376: cannot find symbol
> [javac] symbol : class Category
> [javac] location: class ui.PetStoreProductView.ProductCategoryInfo
> [javac] public ProductCategoryInfo(Category category) {
> [javac] ^
> [javac]
> D:\TEMP\TestingBeehive\Zips\apache-beehive-incubating-svn-snapshot\samples\PetstoreDashboard\src\ui\PetStore
> ProductView.java:389: cannot find symbol
> [javac] symbol : class Product
> [javac] location: class ui.PetStoreProductView.ProductInfo
> [javac] Product product;
> [javac] ^
> [javac]
> D:\TEMP\TestingBeehive\Zips\apache-beehive-incubating-svn-snapshot\samples\PetstoreDashboard\src\ui\PetStore
> ProductView.java:394: cannot find symbol
> [javac] symbol : class Product
> [javac] location: class ui.PetStoreProductView.ProductInfo
> [javac] public Product getProduct() {
> [javac] ^
> [javac]
> D:\TEMP\TestingBeehive\Zips\apache-beehive-incubating-svn-snapshot\samples\PetstoreDashboard\src\ui\PetStore
> ProductView.java:401: cannot find symbol
> [javac] symbol : class Product
> [javac] location: class ui.PetStoreProductView.ProductInfo
> [javac] public ProductInfo(Product product) {
> [javac] ^
> [javac]
> D:\TEMP\TestingBeehive\Zips\apache-beehive-incubating-svn-snapshot\samples\PetstoreDashboard\src\ui\PetStore
> Dashboard.java:79: cannot find symbol
> [javac] symbol : class PetstoreInventoryManager
> [javac] location: class ui.PetStoreDashboard
> [javac] PetstoreInventoryManager store;
> [javac] ^
> [javac]
> D:\TEMP\TestingBeehive\Zips\apache-beehive-incubating-svn-snapshot\samples\PetstoreDashboard\src\ui\PetStore
> Dashboard.java:82: package org.apache.beehive.petstore does not exist
> [javac] store =
> (org.apache.beehive.petstore.PetstoreInventoryManagerSoapBindingStub)
> [javac] ^
> [javac]
> D:\TEMP\TestingBeehive\Zips\apache-beehive-incubating-svn-snapshot\samples\PetstoreDashboard\src\ui\PetStore
> Dashboard.java:83: package org.apache.beehive.petstore does not exist
> [javac] new
> org.apache.beehive.petstore.PetstoreInventoryManagementServiceLocator().ge
> tPetstoreInventoryManager();
> [javac] ^
> [javac]
> D:\TEMP\TestingBeehive\Zips\apache-beehive-incubating-svn-snapshot\samples\PetstoreDashboard\src\ui\PetStore
> Dashboard.java:92: package org.apache.beehive.petstore does not exist
> [javac]
> ((org.apache.beehive.petstore.PetstoreInventoryManagerSoapBindingStub)store).setTimeout(60000);
> [javac] ^
> [javac]
> D:\TEMP\TestingBeehive\Zips\apache-beehive-incubating-svn-snapshot\samples\PetstoreDashboard\src\ui\PetStore
> ProductView.java:144: cannot find symbol
> [javac] symbol : class Category
> [javac] location: class ui.PetStoreProductView
> [javac] Category[] categories = store.listCategories();
> [javac] ^
> [javac]
> D:\TEMP\TestingBeehive\Zips\apache-beehive-incubating-svn-snapshot\samples\PetstoreDashboard\src\ui\PetStore
> ProductView.java:155: cannot find symbol
> [javac] symbol : class Product
> [javac] location: class ui.PetStoreProductView
> [javac] Product[] products =
> store.listProducts(info.getCategory()
> [javac] ^
> [javac]
> D:\TEMP\TestingBeehive\Zips\apache-beehive-incubating-svn-snapshot\samples\PetstoreDashboard\src\ui\PetStore
> ProductView.java:285: cannot find symbol
> [javac] symbol : class Item
> [javac] location: class ui.PetStoreProductView.ProductDetailModel
> [javac] Item curItem = items[row];
> [javac] ^
> [javac]
> D:\TEMP\TestingBeehive\Zips\apache-beehive-incubating-svn-snapshot\samples\PetstoreDashboard\src\ui\PetStore
> ProductView.java:340: cannot find symbol
> [javac] symbol : class InvalidIdentifierException
> [javac] location: class ui.PetStoreProductView.ProductDetailModel
> [javac] } catch (InvalidIdentifierException e) {
> [javac] ^
> [javac] 27 errors
> BUILD FAILED
> D:\TEMP\TestingBeehive\Zips\apache-beehive-incubating-svn-snapshot\samples\PetstoreDashboard\build.xml:55:
> Compile faile
> d; see the compiler error output for details.
> Total time: 10 seconds
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira