AXL - WSDL to Java class build and axlsqltoolkit

Version 1
    This document was generated from CDN thread

    Created by: Ramesh Vasudevan on 25-07-2008 02:35:58 PM
    Hi:
    Good Morning.

    I just came to know this Developer Forum on AXL. I have recently started in
    programming in Java to write AXL interface. I have experiemented with
    sample java code provided in the Developer guide under UCM 6.1 environment.
    I was able to retrieve/insert/update records under RIS informix database.

    As part of next step, I am trying to compile and build the set of java/classes created using WSDL2Java.exe by passing axpapi.wsdl that came as part of axlsqltoolkit under WSDL-AXIS environment. It generated 1007 classes and faild to build the package and returned following error message:

    axisbuild:
    compiling 1007 source files
    <path>/generatedaxisclient/com/cisco/www/AXLAPLService/AXLAPIBindingStub.java:4026:code too large
    public AXLAPIBindingStub(javax.xml.rpc.Service service)throws org.apache.axis.AxisFault {
    Error
    <path>/generatedaxisclient/com/cisco/www/AXLAPLService/AXLAPIBindingStub.java:18:code too large
    public AXLAPIBindingStub(javax.xml.rpc.Service service)throws org.apache.axis.AxisFault {
    static {
    Error
    2 Errors

    I can provide further details if needed. please let me know whether you have encountered similar errors.

    Issue 2) I am trying to compile the java program that came along with axlsqltoolkit . I have followed the instructions provided in the README file and downloaded/installed JRE 1.4.2_05 and tried 08 also. But I was keep getting
    following error message:

    C:\cisco\AXLSQL~1>java -cp .\classes;.\lib\saaj-api.jar;.\lib\saaj-impl.jar;.\li
    b\mail.jar;.\lib\activation.jar;.\lib\jaxm-api.jar;.\lib\jaxm-runtime.jar;.\lib\
    xercesImpl.jar;.\lib\xml-apis.jar AxlSqlToolkit -username=sampleadmin -password=samplead -host=1.2.3.4 -port 8443 -input sample.xml -output sample.response
    Exception in thread "main" java.lang.UnsupportedClassVersionError: AxlSqlToolkit
    (Unsupported major.minor version 49.0)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)

    If you have any insights on these, please let me know. It would help me move forward on my development.

    Thank You.

    Subject: RE: AXL - WSDL to Java class build and axlsqltoolkit
    Replied by: Chandan Agrawal on 13-05-2009 12:20:24 PM
    try JAXB to create the Java from wsdl.

    Subject: RE: AXL - WSDL to Java class build and axlsqltoolkit
    Replied by: Chandan Agrawal on 05-06-2009 02:54:38 PM
    Ignore JAXB.
    -> Use Axis 1.2 (Using Axis 1.4 you will have to correct the code for the two errors written in the README.txt).
    -> Use a few options I am putting here. This will ensure you dont get any weird error:
    java  -Xms32m -Xmx128m -classpath "C:\Program Files\axis-1_4\lib\axis.jar;C:\Program Files\axis-1_4\lib\axis-ant.jar;C:\Program Files\axis-1_4\lib\axis-schema.jar;C:\Program Files\axis-1_4\lib\commons-discovery-0.2.jar;C:\Program Files\axis-1_4\lib\commons-logging-1.0.4.jar;C:\Program Files\axis-1_4\lib\jaxrpc.jar;C:\Program Files\axis-1_4\lib\log4j-1.2.8.jar;C:\Program Files\axis-1_4\lib\saaj.jar;C:\Program Files\axis-1_4\lib\wsdl4j-1.5.1.jar;C:\Program Files\axis-1_4\mail.jar;C:\Program Files\axis-1_4\activation.jar;C:\Program Files\axis-1_4\wsdl4j.jar;"  org.apache.axis.wsdl.WSDL2Java -a AXLAPI.wsdl  -O 600 -t
    ->
     
     
    Regards,
    Chandan

    Subject: RE: AXL - WSDL to Java class build and axlsqltoolkit
    Replied by: David Staudt on 05-06-2009 04:44:02 PM
    1) I believe this is due to the very large size of the AXL wsdl.  Chandan has provided the solution, by adding parameters to increase the JVM memory size:
     
    java  -Xms32m -Xmx128m  ...
     
    2) I wouldn't be surprised if the AXL SQL Toolkit code was updated for Java 1.5+, but the readme wasn't.  This works fine for me using Java 1.6.0_13.

    Subject: RE: AXL - WSDL to Java class build and axlsqltoolkit
    Replied by: noc knh on 13-10-2009 03:00:55 PM
    As per the readme documentation, check if you can execute "java" and "javac" from the CLI. If this works then, goto the directory containing the axlsqltoolkit and then execute the statement mentioned in the Readme file (giving the correct username and password and host IP). It should give a positive response. Also check the java code in the src folder. You may have to modify the port number and the IP address of the CCM server there as well.