You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by kun xu <xu...@yahoo.com.cn> on 2006/05/11 03:53:38 UTC

Error parsing WSDL

Hi All,
   
  When using wsdl2java tool, I met a exception. I run the demo command from
  Axis2 User's Guide.  
   
  " 

WSDL2Java -uri ..\samples\wsdl\Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -o ..\samples -p org.apache.axis2.userguide
  "
   
  Here is the command message:
  Using AXIS2_HOME:   E:\Axis\axis2-std-SNAPSHOT-bin
Using JAVA_HOME:    D:\IBM\java
java.lang.NullPointerException
        at java.io.File.<init>(File.java:201)
        at org.apache.axis2.wsdl.codegen.CodegenConfigLoader.loadConfig(CodegenConfigLoader.java:39)
        at org.apache.axis2.wsdl.codegen.CodeGenConfiguration.<init>(CodeGenConfiguration.java:306)
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:80)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
log4j:WARN No appenders could be found for logger (org.apache.axis2.i18n.ProjectResourceBundle).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:99)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: java.lang.NullPointerException
        at java.io.File.<init>(File.java:201)
        at org.apache.axis2.wsdl.codegen.CodegenConfigLoader.loadConfig(CodegenConfigLoader.java:39)
        at org.apache.axis2.wsdl.codegen.CodeGenConfiguration.<init>(CodeGenConfiguration.java:306)
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:80)
        ... 2 more
   
   
  Anyone can help me to pass this pl?
  Your advice will be much appreciated.
  Thanks in advance.
   
  Alex

__________________________________________________
赶快注册雅虎超大容量免费邮箱?
http://cn.mail.yahoo.com