Apache

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • WSDL2Java and Jalopy

    3 answers - 279 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Hi,
    I tried to generate some Java Code from a WSDL file using WSDL2Java,
    but got the message :
    Jalopy not found - unable to pretty print \myFolderStructure\GenClass.java
    Has anyone experience with setting up jalopy to fix this problem?
    thanx
  • No.1 | | 396 bytes | |

    just add jalopy jar to your class path
    -- dims

    1/18/06, Torsten Schmidt <maulwurf-info (AT) gmx (DOT) dewrote:
    Hi,

    I tried to generate some Java Code from a WSDL file using WSDL2Java,
    but got the message :

    Jalopy not found - unable to pretty print \myFolderStructure\GenClass.java

    Has anyone experience with setting up jalopy to fix this problem?
    thanx
  • No.2 | | 694 bytes | |

    Hi,

    Jalopy is used to format the generated code. Without jalopy the
    generated code is not 'pretty' BUT everything WILL work as expected
    :-)

    But if you want your generated code to be nicely formatted the please
    include the jalopy.jar in the classpath when running WSDL2Java.

    Thanks,
    Ruchith

    1/18/06, Torsten Schmidt <maulwurf-info (AT) gmx (DOT) dewrote:
    Hi,

    I tried to generate some Java Code from a WSDL file using WSDL2Java,
    but got the message :

    Jalopy not found - unable to pretty print \myFolderStructure\GenClass.java

    Has anyone experience with setting up jalopy to fix this problem?
    thanx
  • No.3 | | 1656 bytes | |

    Hi
    when I try to generate java classes from the specified WSDL file, the
    following exception is thrown
    the wsdl is valid!!

    has anyone an idea what to do?

    C:\Programmierung\AXIS2\AXIS_94\bin>WSDL2Java -uri
    -o .\test -ss -sd

    Retrieving document at ''.
    Retrieving document at 'parlayx_common_faults_2_0.wsdl', relative to
    ''.
    Retrieving schema at 'parlayx_common_types_2_0.xsd', relative to
    ''.
    Retrieving schema at 'parlayx_presence_types_2_0.xsd', relative to
    ''.
    Retrieving schema at 'parlayx_common_types_2_0.xsd', relative to
    ''.
    Exception in thread "main"

    java.lang.RuntimeException: java.lang.RuntimeException: Schema for
    namespace '
    ence/v2_0' already contains type 'string
    at
    (CodeGenerationEngine.java:118)
    at (WSDL2Code.java:31)
    at (WSDL2Java.java:21)
    Caused by: java.lang.RuntimeException: java.lang.RuntimeException:
    Schema for namespace ''
    already contains type 'string
    at
    (SimpleDBExtension.java:152)
    at
    (CodeGenerationEngine.java:80)
    2 more
    Caused by: java.lang.RuntimeException: Schema for namespace
    '' already contains
    type 'string
    at
    (XmlSchema.java:237)
    at
    (SchemaBuilder.java:98)
    at
    (XmlSchemaCollection.java:233)
    at
    (SimpleDBExtension.java:86)
    3 more

    C:\Programmierung\AXIS2\AXIS_94\bin>

    what is meant by :
    " already contains type 'string "?

    thanx a lot
    (thanx for the previous jalopy help, too)

Re: WSDL2Java and Jalopy


max 4000 letters.
Your nickname that display:
In order to stop the spam: 1 + 1 =
QUESTION ON "Apache"

EMSDN.COM