ws-muse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ying Zeng" <yingz...@nortel.com>
Subject RE: Having Problem Running "ant generate"
Date Tue, 02 May 2006 16:14:42 GMT
Solved problem by removing all Axis related jars from CLASSPATH. 

Ying

>  -----Original Message-----
> From: 	Zeng, Ying [CAR:1A20:EXCH]  
> Sent:	Friday, April 28, 2006 3:17 PM
> To:	'muse-dev@ws.apache.org'
> Subject:	Having Problem Running "ant generate"
> 
> Hi:
> 
> I am new to Muse, and trying to follow the tutorial to build
> FileSystem example from the given FileSystem.wsdl and Host.wsdl files
> in the example directory. However, when I copied the same wsdl files
> into a new directory, changed build.properties and generate the stubs,
> the command "ant generate" failed. I keep running into
> "org.apache.ws.resource.InvalidWsrfWsdlException: Unable to locate the
> ResourceProperties document element with QName
> {http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-
> draft-01.xsd}ScheduledResourceTerminationRP" error. I also tried to
> follow the developer's guide to start with template and it gave
> similar errors. I tested my Muse setup running the FileSystem quick
> demo, and it worked fine. 
> 
> I did quite a bit search in the mailing list, there seem to be a few
> answers, such as not setting CLASSPATH to Axis jars, use the latest
> Muse versions (1.0). I don't know if there is newer version, but I am
> using Muse1.0 binary distribution from the download page dated Aug. 5,
> 2005. I tried to change my CLASSPATH and build gave me a
> Java.io.IOException. It sounds like missing some generic jars to me.
> So I ran out of ideas because I cannot find anyone mentioning other
> solutions. So here are my CLASSPATH settings, the error messages and
> attached FileSystem.wsdl:
> 
> ----------------------
> Echo $CLASSPATH
> .:/usr/lib/j2sdk1.5-sun/bin:/usr/lib/j2sdk1.5-sun/lib/tools.jar:/opt/a
> xis-1_2/lib/axis.jar:/opt/axis-1_2/lib/commons-discovery-0.2.jar:/opt/
> axis-1_2/lib/commons-logging-1.0.4.jar:/opt/axis-1_2/lib/log4j-1.2.8.j
> ar:/opt/axis-1_2/lib/jaxrpc.jar:/opt/axis-1_2/lib/saaj.jar:/opt/axis-1
> _2/lib/wsdl4j-1.5.1.jar:/opt/axis-1_2/lib/jdom.jar:/opt/axis-1_2/lib/m
> ailapi_1_3_1.jar:/opt/axis-1_2/lib/mail.jar:/opt/axis-1_2/lib/xercesIm
> pl.jar:/opt/axis-1_2/lib/xmlParserAPIs.jar:/opt/axis-1_2/lib/xmlsec-1.
> 2.1.jar:/opt/apache-ant-1.6.2/lib/xercesImpl.jar:/opt/apache-tomcat-5/
> webapps/axis/WEB-INF/lib/xercesImpl.jar:/opt/apache-tomcat-5/webapps/a
> xis/WEB-INF/lib/javacim.jar:/opt/apache-tomcat-5/shared/lib/activation
> .jar:/opt/apache-tomcat-5/common/lib/servlet-api.jar
> 
> ---------------ERROR --------------------------
> $ /opt/apache-ant-1.6.2/bin/ant generate
> Buildfile: build.xml
> 
> init:
>      [echo] Using webapp dir: /opt/apache-tomcat-5/webapps/muse
> 
> generate:
>      [copy] Copying 2 files to /opt/apache-tomcat-5/webapps/muse/_tmp_
> [wsdl2Java] log4j:WARN No appenders could be found for logger
> (org.apache.ws.util.i18n.ProjectResourceBundle).
> [wsdl2Java] log4j:WARN Please initialize the log4j system properly.
> [wsdl2Java] Processing WSDL file
> "/opt/apache-tomcat-5/webapps/muse/_tmp_/FileSystem.wsdl"...
> [wsdl2Java] Retrieving document at
> '/opt/apache-tomcat-5/webapps/muse/_tmp_/FileSystem.wsdl'.
> [wsdl2Java] Retrieving document at
> '../spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl', relative to
> 'file:/opt/apache-tomcat-5/webapps/muse/_tmp_/FileSystem.wsdl'.
> [wsdl2Java] Retrieving schema at '../wsa/WS-Addressing-2003_03.xsd',
> relative to
> 'file:/opt/apache-tomcat-5/webapps/muse/spec/wsrf/WS-ResourcePropertie
> s-1_2-Draft_01.wsdl'.
> [wsdl2Java] Retrieving schema at 'WS-BaseFaults-1_2-Draft_01.xsd',
> relative to
> 'file:/opt/apache-tomcat-5/webapps/muse/spec/wsrf/WS-ResourcePropertie
> s-1_2-Draft_01.wsdl'.
> [wsdl2Java] Retrieving schema at '../xml/XML-Namespace-1998.xsd',
> relative to
> 'file:/opt/apache-tomcat-5/webapps/muse/spec/wsrf/WS-BaseFaults-1_2-Dr
> aft_01.xsd'.
> [wsdl2Java] Retrieving schema at '../wsa/WS-Addressing-2003_03.xsd',
> relative to
> 'file:/opt/apache-tomcat-5/webapps/muse/spec/wsrf/WS-BaseFaults-1_2-Dr
> aft_01.xsd'.
> [wsdl2Java] Retrieving schema at
> 'WS-ResourceProperties-1_2-Draft_01.xsd', relative to
> 'file:/opt/apache-tomcat-5/webapps/muse/spec/wsrf/WS-ResourcePropertie
> s-1_2-Draft_01.wsdl'.
> [wsdl2Java] Retrieving document at
> '../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl', relative to
> 'file:/opt/apache-tomcat-5/webapps/muse/_tmp_/FileSystem.wsdl'.
> [wsdl2Java] Retrieving schema at '../wsa/WS-Addressing-2003_03.xsd',
> relative to
> 'file:/opt/apache-tomcat-5/webapps/muse/spec/wsrf/WS-ResourceLifetime-
> 1_2-Draft_01.wsdl'.
> [wsdl2Java] Retrieving schema at 'WS-BaseFaults-1_2-Draft_01.xsd',
> relative to
> 'file:/opt/apache-tomcat-5/webapps/muse/spec/wsrf/WS-ResourceLifetime-
> 1_2-Draft_01.wsdl'.
> [wsdl2Java] Retrieving schema at
> 'WS-ResourceLifetime-1_2-Draft_01.xsd', relative to
> 'file:/opt/apache-tomcat-5/webapps/muse/spec/wsrf/WS-ResourceLifetime-
> 1_2-Draft_01.wsdl'.
> [wsdl2Java] Retrieving document at
> '../spec/wsn/WS-BaseNotification-1_2-Draft_01.wsdl', relative to
> 'file:/opt/apache-tomcat-5/webapps/muse/_tmp_/FileSystem.wsdl'.
> [wsdl2Java] Retrieving document at
> '../wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl', relative to
> 'file:/opt/apache-tomcat-5/webapps/muse/spec/wsn/WS-BaseNotification-1
> _2-Draft_01.wsdl'.
> [wsdl2Java] Retrieving schema at '../wsa/WS-Addressing-2003_03.xsd',
> relative to
> 'file:/opt/apache-tomcat-5/webapps/muse/spec/wsrf/WS-ResourcePropertie
> s-1_2-Draft_01.wsdl'.
> [wsdl2Java] Retrieving schema at 'WS-BaseFaults-1_2-Draft_01.xsd',
> relative to
> 'file:/opt/apache-tomcat-5/webapps/muse/spec/wsrf/WS-ResourcePropertie
> s-1_2-Draft_01.wsdl'.
> [wsdl2Java] Retrieving schema at
> 'WS-ResourceProperties-1_2-Draft_01.xsd', relative to
> 'file:/opt/apache-tomcat-5/webapps/muse/spec/wsrf/WS-ResourcePropertie
> s-1_2-Draft_01.wsdl'.
> [wsdl2Java] Retrieving document at
> '../wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl', relative to
> 'file:/opt/apache-tomcat-5/webapps/muse/spec/wsn/WS-BaseNotification-1
> _2-Draft_01.wsdl'.
> [wsdl2Java] Retrieving schema at '../wsa/WS-Addressing-2003_03.xsd',
> relative to
> 'file:/opt/apache-tomcat-5/webapps/muse/spec/wsrf/WS-ResourceLifetime-
> 1_2-Draft_01.wsdl'.
> [wsdl2Java] Retrieving schema at 'WS-BaseFaults-1_2-Draft_01.xsd',
> relative to
> 'file:/opt/apache-tomcat-5/webapps/muse/spec/wsrf/WS-ResourceLifetime-
> 1_2-Draft_01.wsdl'.
> [wsdl2Java] Retrieving schema at
> 'WS-ResourceLifetime-1_2-Draft_01.xsd', relative to
> 'file:/opt/apache-tomcat-5/webapps/muse/spec/wsrf/WS-ResourceLifetime-
> 1_2-Draft_01.wsdl'.
> [wsdl2Java] Retrieving schema at
> '../wsrf/WS-ResourceProperties-1_2-Draft_01.xsd', relative to
> 'file:/opt/apache-tomcat-5/webapps/muse/spec/wsn/WS-BaseNotification-1
> _2-Draft_01.wsdl'.
> [wsdl2Java] Retrieving schema at '../wsa/WS-Addressing-2003_03.xsd',
> relative to
> 'file:/opt/apache-tomcat-5/webapps/muse/spec/wsn/WS-BaseNotification-1
> _2-Draft_01.wsdl'.
> [wsdl2Java] Retrieving schema at
> '../wsrf/WS-ResourceLifetime-1_2-Draft_01.xsd', relative to
> 'file:/opt/apache-tomcat-5/webapps/muse/spec/wsn/WS-BaseNotification-1
> _2-Draft_01.wsdl'.
> [wsdl2Java] Retrieving schema at
> '../wsrf/WS-BaseFaults-1_2-Draft_01.xsd', relative to
> 'file:/opt/apache-tomcat-5/webapps/muse/spec/wsn/WS-BaseNotification-1
> _2-Draft_01.wsdl'.
> [wsdl2Java] Retrieving schema at
> 'WS-BaseNotification-1_2-Draft_01.xsd', relative to
> 'file:/opt/apache-tomcat-5/webapps/muse/spec/wsn/WS-BaseNotification-1
> _2-Draft_01.wsdl'.
> [wsdl2Java] Retrieving schema at
> '../wsrf/WS-ResourceProperties-1_2-Draft_01.xsd', relative to
> 'file:/opt/apache-tomcat-5/webapps/muse/spec/wsn/WS-BaseNotification-1
> _2-Draft_01.xsd'.
> [wsdl2Java] Retrieving schema at '../wsa/WS-Addressing-2003_03.xsd',
> relative to
> 'file:/opt/apache-tomcat-5/webapps/muse/spec/wsn/WS-BaseNotification-1
> _2-Draft_01.xsd'.
> [wsdl2Java] Retrieving document at '../spec/wsdm/MUWS-Part2-1_0.wsdl',
> relative to
> 'file:/opt/apache-tomcat-5/webapps/muse/_tmp_/FileSystem.wsdl'.
> [wsdl2Java] Retrieving schema at 'MUWS-Part2-1_0.xsd', relative to
> 'file:/opt/apache-tomcat-5/webapps/muse/spec/wsdm/MUWS-Part2-1_0.wsdl'
> .
> [wsdl2Java] Retrieving schema at '../xml/XML-Namespace-1998.xsd',
> relative to
> 'file:/opt/apache-tomcat-5/webapps/muse/spec/wsdm/MUWS-Part2-1_0.xsd'.
> [wsdl2Java] Retrieving schema at 'MUWS-Part1-1_0.xsd', relative to
> 'file:/opt/apache-tomcat-5/webapps/muse/spec/wsdm/MUWS-Part2-1_0.xsd'.
> [wsdl2Java] Retrieving schema at
> '../wsa/WS-Addressing-2004_08_10.xsd', relative to
> 'file:/opt/apache-tomcat-5/webapps/muse/spec/wsdm/MUWS-Part1-1_0.xsd'.
> [wsdl2Java] Retrieving schema at
> '../wsa/WS-Addressing-2004_08_10.xsd', relative to
> 'file:/opt/apache-tomcat-5/webapps/muse/spec/wsdm/MUWS-Part2-1_0.xsd'.
> [wsdl2Java] Retrieving schema at 'MUWS-Part1-1_0.xsd', relative to
> 'file:/opt/apache-tomcat-5/webapps/muse/spec/wsdm/MUWS-Part2-1_0.wsdl'
> .
> [wsdl2Java] Retrieving schema at '../spec/wsdm/MUWS-Part2-1_0.xsd',
> relative to
> 'file:/opt/apache-tomcat-5/webapps/muse/_tmp_/FileSystem.wsdl'.
> [wsdl2Java] Retrieving schema at '../spec/wsdm/MUWS-Part1-1_0.xsd',
> relative to
> 'file:/opt/apache-tomcat-5/webapps/muse/_tmp_/FileSystem.wsdl'.
> [wsdl2Java] Retrieving schema at
> '../spec/wsn/WS-BaseNotification-1_2-Draft_01.xsd', relative to
> 'file:/opt/apache-tomcat-5/webapps/muse/_tmp_/FileSystem.wsdl'.
> [wsdl2Java] Retrieving schema at
> '../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.xsd', relative to
> 'file:/opt/apache-tomcat-5/webapps/muse/_tmp_/FileSystem.wsdl'.
> [wsdl2Java] Retrieving schema at
> '../spec/wsrf/WS-BaseFaults-1_2-Draft_01.xsd', relative to
> 'file:/opt/apache-tomcat-5/webapps/muse/_tmp_/FileSystem.wsdl'.
> 
> BUILD FAILED
> /home/dcnlocal/ying/tmp/build.xml:54:
> org.apache.ws.resource.InvalidWsrfWsdlException: Unable to locate the
> ResourceProperties document element with QName
> {http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-
> draft-01.xsd}ScheduledResourceTerminationRP
> 
> Total time: 2 seconds
> 
> 
>  << File: filesystem.wsdl >> 
> 
> Thanks,
> 
> Ying Zeng
> Advanced Technology Research (ATR)
> Nortel Networks
> 3500 Carling Avenue
> Ottawa, ON  
> K2H 8E9
> Tel: (613) 763-1570
> Fax: (613) 765-3370
> yingzeng@nortel.com
> 

Mime
View raw message