users@jax-rpc.java.net

Re: problem:can't pass wscompile

From: Doug Kohlert <Doug.Kohlert_at_Sun.COM>
Date: Thu, 24 Mar 2005 07:39:11 -0800

Please send the config.xml file and the WSDL file you are using.

顾小小 wrote:

> Description of my machine:
> OS Version:WinXP SP2
> JDK:5.0
> IDE:Netbeans bundled with AS PE 8.0
> This happened when I run the example which comes from Netbeans'
> Tutorial(http://www.netbeans.org/kb/41/tutorial-webservice.html);
> init:
> deps-module-jar:
> deps-ear-jar:
> deps-jar:
> Created dir: D:\Programs & Documents\HiWSClient\build\web\WEB-INF\classes
> wscompile-init:
> Created dir: D:\Programs & Documents\HiWSClient\build\web\WEB-INF\wsdl
> Created dir: D:\Programs & Documents\HiWSClient\build\generated\wssrc
> HiWS_client_wscompile:
> Copying 1 file to D:\Programs &
> Documents\HiWSClient\build\generated\wssrc\wsdl
> 解析配置文件时发生错误: XML 解析错误:
> com.sun.xml.rpc.sp.ParseException:3: com.sun.xml.rpc.sp/P-009 //sorry
> i can't understand it,more details? or what does exception:3 mean?
> 解析配置文件时发生错误: XML 解析错误:
> com.sun.xml.rpc.sp.ParseException:3: com.sun.xml.rpc.sp/P-009
> at
> com.sun.xml.rpc.processor.config.parser.ConfigurationParser.parse(ConfigurationParser.java:67)
> at
> com.sun.xml.rpc.tools.wscompile.CompileTool.createConfiguration(CompileTool.java:919)
> at com.sun.xml.rpc.tools.wscompile.CompileTool.run(CompileTool.java:682)
> at com.sun.xml.rpc.util.ToolBase.run(ToolBase.java:43)
> at com.sun.xml.rpc.tools.wscompile.Main.main(Main.java:22)
> CAUSE:
> XML 解析错误: com.sun.xml.rpc.sp.ParseException:3:
> com.sun.xml.rpc.sp/P-009
> at com.sun.xml.rpc.streaming.XMLReaderImpl.next(XMLReaderImpl.java:120)
> at
> com.sun.xml.rpc.streaming.XMLReaderBase.nextContent(XMLReaderBase.java:23)
> at
> com.sun.xml.rpc.streaming.XMLReaderBase.nextElementContent(XMLReaderBase.java:41)
> at
> com.sun.xml.rpc.processor.config.parser.ConfigurationParser.parseConfiguration(ConfigurationParser.java:87)
> at
> com.sun.xml.rpc.processor.config.parser.ConfigurationParser.parse(ConfigurationParser.java:65)
> at
> com.sun.xml.rpc.tools.wscompile.CompileTool.createConfiguration(CompileTool.java:919)
> at com.sun.xml.rpc.tools.wscompile.CompileTool.run(CompileTool.java:682)
> at com.sun.xml.rpc.util.ToolBase.run(ToolBase.java:43)
> at com.sun.xml.rpc.tools.wscompile.Main.main(Main.java:22)
> CAUSE:
> com.sun.xml.rpc.sp.ParseException:3: com.sun.xml.rpc.sp/P-009
> at com.sun.xml.rpc.sp.Parser2.fatal(Parser2.java:1942)
> at com.sun.xml.rpc.sp.Parser2.fatal(Parser2.java:1927)
> at com.sun.xml.rpc.sp.Parser2.parseLiteral(Parser2.java:487)
> at com.sun.xml.rpc.sp.Parser2.getElement(Parser2.java:2551)
> at com.sun.xml.rpc.sp.Parser2.parseContent(Parser2.java:2970)
> at com.sun.xml.rpc.sp.Parser2.parse(Parser2.java:2325)
> at com.sun.xml.rpc.streaming.XMLReaderImpl.next(XMLReaderImpl.java:115)
> at
> com.sun.xml.rpc.streaming.XMLReaderBase.nextContent(XMLReaderBase.java:23)
> at
> com.sun.xml.rpc.streaming.XMLReaderBase.nextElementContent(XMLReaderBase.java:41)
> at
> com.sun.xml.rpc.processor.config.parser.ConfigurationParser.parseConfiguration(ConfigurationParser.java:87)
> at
> com.sun.xml.rpc.processor.config.parser.ConfigurationParser.parse(ConfigurationParser.java:65)
> at
> com.sun.xml.rpc.tools.wscompile.CompileTool.createConfiguration(CompileTool.java:919)
> at com.sun.xml.rpc.tools.wscompile.CompileTool.run(CompileTool.java:682)
> at com.sun.xml.rpc.util.ToolBase.run(ToolBase.java:43)
> at com.sun.xml.rpc.tools.wscompile.Main.main(Main.java:22)
> Command invoked: wscompile "D:\Program
> Files\Java\jdk1.5.0_02\jre\bin\java.exe" -classpath "D:\Program
> Files\Java\jdk1.5.0_02\lib\tools.jar;D:\netbeans-4.1beta\SunAppServer8.1\lib\j2ee.jar;D:\netbeans-4.1beta\SunAppServer8.1\lib\saaj-api.jar;D:\netbeans-4.1beta\SunAppServer8.1\lib\saaj-impl.jar;D:\netbeans-4.1beta\SunAppServer8.1\lib\jaxrpc-api.jar;D:\netbeans-4.1beta\SunAppServer8.1\lib\jaxrpc-impl.jar"
> com.sun.xml.rpc.tools.wscompile.Main -d "D:\Programs &
> Documents\HiWSClient\build\web\WEB-INF\classes"
> -features:norpcstructures -import -keep -mapping "D:\Programs &
> Documents\HiWSClient\build\web\WEB-INF\wsdl\HiWS-mapping.xml" -s
> "D:\Programs & Documents\HiWSClient\build\generated\wssrc"
> -Xprintstacktrace "D:\Programs &
> Documents\HiWSClient\build\generated\wssrc\wsdl\HiWS-config.xml"
> D:\Programs & Documents\HiWSClient\nbproject\build-impl.xml:239:
> wscompile failed
> BUILD FAILED (total time: 1 second)
> Would you please give me some advice on how to correct it?Thank u so much.
> dolton(gu19821112)
> 24-3-05