According to the exception, wsdl2java is having problems with the awt.Java Image reference in the WSDL. From looking around the Axis mailing lists, this seems like it could be a namespace issue (http://marc.theaimsgroup.com/?l=axis-user&m=107971447430688&w=2).
Bryan
Michael Merz wrote:
Bryan,
I cannot reproduce that error. You have to have a running Tomcat server (at port 8080 with petstoreWeb deployed at petstoreWeb) when you try to run the client. (If you have any different settings, make sure to modify the build.xml in PetstoreDashboard accordingly.)
You can check if everything is working fine by pointing your browser to http://localhost:8080/petstoreWeb/PetstoreInventoryManager.jws?wsdl -- you should see the WSDL for the petstoreWeb Web service. If you get an error there, undeploy your petstoreWeb (and all related apps). Run the following: 1) Modify your beehiveUser.sh | bat (set BEEHIVE_HOME to your dist-base-dir -- not SVN!) 2) Start Tomcat (at localhost, port 8080) 3) Copy activation.jar and mailapi.jar into WEB-INF/lib 4) Run "ant -Dwebapp.dir=<BEEHIVE_HOME>/samples/petstoreWeb -Dcontext.path=petstoreWeb -f BEEHIVE_HOME/ant/buildWebapp.xml deploy.beehive.webapp.runtime build.webapp deploy
Then goto the README step 4 and try it again.
Also, note that you need to place both activation.jar and mailapi.jar into both directories BEEHIVE_HOME/samples/PetstoreDashboard/lib and BEEHIVE/samples/petstoreWeb/WEB-INF/lib. You must redeploy the webapp after you've copied the two libs into WEB-INF/lib.
Please let me know if this helps/works.
Cheers,
-michael
-----Original Message-----
From: Bryan Che (JIRA) [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 03, 2004 7:15 AM
To: [email protected]
Subject: [jira] Created: (BEEHIVE-58) PetStoreDashboard doesn't build
PetStoreDashboard doesn't build -------------------------------
Key: BEEHIVE-58
URL: http://nagoya.apache.org/jira/browse/BEEHIVE-58
Project: Beehive
Type: Bug
Components: Samples Versions: V1Alpha Environment: beehive trunk and branch tip on linux
Reporter: Bryan Che
I tried building the PetStoreDashboard according to the directions at /samples/PetStoreDashboard/README.txt. Running ant inside of BEEHIVE_HOME/samples/PetStoreDashboard fails at the getClient phase. The ant task succeeds, but no Java is generated due to an IOException. Here is a verbose output of that phase:
ant -v genClient
Apache Ant version 1.6.2 compiled on July 16 2004 Buildfile: build.xml Detected Java version: 1.5 in: /opt/jdk1.5.0/jre Detected OS: Linux parsing buildfile /home/bche/src/svn/beehive/v1-alpha/build/dist/apache-beehive-incubating -1.0-alpha-snapshot/samples/PetStoreDashboard/build.xml with URI = file:///home/bche/src/svn/beehive/v1-alpha/build/dist/apache-beehive-inc ubating-1.0-alpha-snapshot/samples/PetStoreDashboard/build.xml Project base dir set to: /home/bche/src/svn/beehive/v1-alpha/build/dist/apache-beehive-incubating -1.0-alpha-snapshot/samples/PetStoreDashboard Build sequence for target `genClient' is [dirs, genClient] Complete build sequence is [dirs, genClient, clean, compile, run, all, test, ]
dirs:
genClient: [wsdl2java] Running Wsdl2javaAntTask with parameters: [wsdl2java] verbose:false [wsdl2java] debug:false [wsdl2java] quiet:false [wsdl2java] server-side:false [wsdl2java] skeletonDeploy:false [wsdl2java] helperGen:false [wsdl2java] factory:null [wsdl2java] nsIncludes:[] [wsdl2java] nsExcludes:[] [wsdl2java] factoryProps:[] [wsdl2java] testCase:true [wsdl2java] noImports:false [wsdl2java] NStoPkg:{} [wsdl2java] output:/home/bche/src/svn/beehive/v1-alpha/build/dist/apache-beehive-inc ubating-1.0-alpha-snapshot/samples/PetStoreDashboard/build/generated [wsdl2java] protocolHandlerPkgs: [wsdl2java] deployScope: [wsdl2java] URL:http://localhost:8080/petstoreWeb/PetstoreInventoryManager.jws?wsdl [wsdl2java] all:false [wsdl2java] typeMappingVersion:1.1 [wsdl2java] timeout:45000 [wsdl2java] failOnNetworkErrors:false [wsdl2java] printStackTraceOnFailure:true [wsdl2java] namespaceMappingFile:null [wsdl2java] username:null [wsdl2java] :passwordnull [wsdl2java] :noWrappedfalse [wsdl2java] :implementationClassNamenull [wsdl2java] :classpathnull [wsdl2java] http.proxyHost=null [wsdl2java] http.proxyPort=null [wsdl2java] http.proxyUser=null [wsdl2java] http.proxyPassword=null [wsdl2java] socks.proxyHost=null [wsdl2java] socks.proxyPort=null [wsdl2java] WSDL2Java http://localhost:8080/petstoreWeb/PetstoreInventoryManager.jws?wsdl [wsdl2java] java.io.IOException: Type {http://awt.java}Image is referenced but not defined.
-- Bryan Che Red Hat, Inc. 10 Technology Park Westford, MA 01886 978-392-3107 [EMAIL PROTECTED]
