Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: wsdl/xsd-problem

  1. #1
    Junior Member
    Join Date
    Aug 2010
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default wsdl/xsd-problem

    i got 2 xsd-files + 1 wsdl. i used jaxb to generate java source files from it. i could read some demo-xmls, so the generation worked fine. then i took the wsdl and tried to generate i'm not really sure what. my knowledge of soap and wsdl is almost zero. i *expected* some java source files that let me access a webservice/soap-thingy without having to open sockets and building request xmls myself, just as if everything was plain java.
    but instead, jaxb gave me a "unknown location"-message in the console, and axis2 (wsdl2java) crashed with a nullpointer. i can give you the detailled stacktrace tomorrow if that helps.
    the problem is, i have NO clue what might be wrong. is there a tutorial for total newbies out there? where should i begin to look for the reason for the problems?


  2. #2
    Junior Member
    Join Date
    Aug 2010
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: wsdl/xsd-problem

    here's the axis2 error:
    log4j:WARN No appenders could be found for logger (org.apache.axis2.description.WSDL11ToAllAxisServi cesBuilder).
    log4j:WARN Please initialize the log4j system properly.
    Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationExcept ion: Error parsing WSDL
    at org.apache.axis2.wsdl.codegen.CodeGenerationEngine .<init>(CodeGenerationEngine.java:153)
    at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.jav a:35)
    at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.jav a:24)
    Caused by: org.apache.axis2.AxisFault
    at org.apache.axis2.AxisFault.makeFault(AxisFault.jav a:430)
    at org.apache.axis2.description.WSDL11ToAxisServiceBu ilder.populateService(WSDL11ToAxisServiceBuilder.j ava:396)
    at org.apache.axis2.description.WSDL11ToAllAxisServic esBuilder.populateAllServices(WSDL11ToAllAxisServi cesBuilder.java:107)
    at org.apache.axis2.wsdl.codegen.CodeGenerationEngine .<init>(CodeGenerationEngine.java:147)
    ... 2 more
    Caused by: java.lang.NullPointerException
    at org.apache.axis2.description.WSDL11ToAxisServiceBu ilder.createSchemaForPorttype(WSDL11ToAxisServiceB uilder.java:1544)
    at org.apache.axis2.description.WSDL11ToAxisServiceBu ilder.generateWrapperSchema(WSDL11ToAxisServiceBui lder.java:1487)
    at org.apache.axis2.description.WSDL11ToAxisServiceBu ilder.populateService(WSDL11ToAxisServiceBuilder.j ava:344)
    ... 4 more

Similar Threads

  1. Extracting the BINDING element from WSDL file
    By Sai in forum What's Wrong With My Code?
    Replies: 1
    Last Post: March 26th, 2010, 03:56 AM
  2. [SOLVED] Web Service from WSDL
    By wilky in forum Java Theory & Questions
    Replies: 3
    Last Post: January 25th, 2010, 10:45 AM
  3. Java EE warnings while parsing wsdl
    By Idy in forum Web Frameworks
    Replies: 0
    Last Post: January 14th, 2010, 04:29 PM