Class generated by genInterface ant task does not compile

I am trying to build a web service from existing wsdl using genInterface and topDownAssemble ant tasks.
The wsdl contains following type definition. Java class generated from this type (see below) does not compile. The problem is that there are two class members named
'value'. Is this an issue with Web Services Assembly tool or there is some way to get
around it?
<s:simpleType name="quantityType">
<s:restriction base="s:string">
<s:enumeration value="summation"/>
<s:enumeration value="demand"/>
<s:enumeration value="value"/>
<s:enumeration value="consumption"/>
</s:restriction>
</s:simpleType>
// Version = Oracle WebServices (10.1.3.3.0, build 070610.1800.23513)
public class QuantityType implements java.io.Serializable {
private java.lang.String value;
private static final String _summationString = "summation";
private static final String _demandString = "demand";
private static final String _valueString = "value";
private static final String _consumptionString = "consumption";
public static final java.lang.String summation = new java.lang.String(summationString);
public static final java.lang.String demand = new java.lang.String(demandString);
public static final java.lang.String value = new java.lang.String(valueString);
public static final java.lang.String consumption = new java.lang.String(consumptionString);
public static final QuantityType summation = new QuantityType(_summation);
public static final QuantityType demand = new QuantityType(_demand);
public static final QuantityType value = new QuantityType(_value);
public static final QuantityType consumption = new QuantityType(_consumption);
Andrei

Pls set debug attribute of JWSC ant task to true or on, e.g.
<jwsc srcdir="." destdir="${output.dir}" debug="on" keepGenerated="true">
          </jwsc>

Similar Messages

  • Built-in wlst ant task does not work in weblogic 10.3.1

    Hi,
    We have an installer script that deploys an ear file to a weblogic managed server. The script also invokes the build-tin wlst ant task to bounce the managed server. However, in version 10.3.1 the wlst task seems to be broken. I get this error:
    [echo] [wlst] sys-package-mgr: can't create package cache dir, '/u00/webadmin/product/10.3.1/WLS/wlserver_10.3/server/lib/weblogic.jar/./java
    tmp/wlstTemp/packages'
    [echo] [wlst] java.io.IOException: No such file or directory
    [echo] [wlst] at java.io.UnixFileSystem.createFileExclusively(Native Method)
    [echo] [wlst] at java.io.File.checkAndCreate(File.java:1704)
    [echo] [wlst] at java.io.File.createTempFile(File.java:1792)
    [echo] [wlst] at java.io.File.createTempFile(File.java:1828)
    [echo] [wlst] at com.bea.plateng.domain.script.jython.WLST_offline.getWLSTOfflineInitFilePath(WLST_offline.java:240)
    [echo] [wlst] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [echo] [wlst] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [echo] [wlst] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [echo] [wlst] at java.lang.reflect.Method.invoke(Method.java:597)
    [echo] [wlst] at weblogic.management.scripting.utils.WLSTUtil.getOfflineWLSTScriptPath(WLSTUtil.java:63)
    [echo] [wlst] at weblogic.management.scripting.utils.WLSTUtil.setupOffline(WLSTUtil.java:214)
    [echo] [wlst] at weblogic.management.scripting.utils.WLSTInterpreter.<init>(WLSTInterpreter.java:133)
    [echo] [wlst] at weblogic.management.scripting.utils.WLSTInterpreter.<init>(WLSTInterpreter.java:75)
    [echo] [wlst] at weblogic.ant.taskdefs.management.WLSTTask.execute(WLSTTask.java:103)
    [echo] [wlst] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    Obviously that is not a valid directory...so I am wondering what it is trying to do, and why. The wlst task worked perfectly in 10.3.0. No changes were made when attempting to run the script against 10.3.0 and 10.3.1, which tells me that something is different with the 10.3.1 setup. Here is the ant code I am running:
    <target name="init-taskdefs">
    <taskdef resource="net/sf/antcontrib/antcontrib.properties">
    <classpath>
    <pathelement location="ant-ext/ant-contrib.jar" />
    </classpath>
    </taskdef>
    <taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy" />
    <taskdef name="wlst" classname="weblogic.ant.taskdefs.management.WLSTTask" />
    </target>
    <macrodef name="wlShutdownServer">
    <attribute name="adminUser" default="${deploy.admin.username}" />
    <attribute name="adminPassword" default="${deploy.admin.password}" />
    <attribute name="adminUrl" default="${deploy.admin.url}" />
    <attribute name="serverTarget" />
    <sequential>
    <trycatch property="server.error">
    <try>
    <wlst failonerror="true"
    arguments="@{adminUser} @{adminPassword} @{adminUrl} @{serverTarget}">
    <script>
    adminUser=sys.argv[0]
    adminPassword=sys.argv[1]
    adminUrl=sys.argv[2]
    serverTarget=sys.argv[3]
    connect(adminUser,adminPassword,adminUrl)
    target=getMBean("/Servers/"+serverTarget)
    if target == None:
    target=getMBean("/Clusters/"+serverTarget)
    type="Cluster"
    else:
    type="Server"
    print 'Shutting down '+serverTarget+'...'
    shutdown(serverTarget,type,'true',15,force='true')
    print serverTarget+' was shut down successfully.'
    </script>
    </wlst>
    <!-- setDomainEnv.sh must have been called to set DOMAIN_HOME. Remove all leftover .lok files to allow server
    to start back up again. -->
    <echo message="Deleting any lok files that have not been removed..." />
    <delete failonerror="false">
    <fileset dir="${env.DOMAIN_HOME}/servers/@{serverTarget}" includes="**/*.lok"/>
    </delete>
    </try>
    <catch>
    <fail message="@{serverTarget} shutdown failed. ${server.error}" />
    </catch>
    <finally/>
    </trycatch>
    </sequential>
    </macrodef>
    Any help would be appreciated. Thanks!

    Well, it looks like passing something like "-Djava.io.tmpdir=/var/tmp/javatmp/`date +%Y%m%d`" to ant did the trick. I had to make sure that directory existed first, otherwise it threw a java ioexception.
    I still don't understand what changes between 10.3.0 and 10.3.1 to necessitate this change.

  • Up-to-date check on genInterface ant task

    I have been using the genInterface ant task to generate a java interface from a WSDL file. Works great, except that eventhough my wsdl file does not change it regenerates the interface every time and then since the java file got touched, forces a needless compile.
    Is there anything I can do to stop this behavior? I would hate to not include the task in my standard build, that would stop the interface from getting regenerated when the WSDL actually got updated.
    Thanks,
    Greg

    I just found that ANT has its own 'uptodate' check.
    http://ant.apache.org/manual/CoreTasks/uptodate.html
    ...so I'll hold off on using XJC until it can support this.

  • ORA-29540: class oracle/xml/sql/query/OracleXMLStaticQuery does not exist

    I am getting below error when trying to generate xml. Browsing on google did not help me. I would appreciate if someone can provide the solution.
    SQL> select dbms_xmlquery.getxml('select * from dual', 2) from dual;
    ERROR:
    ORA-29540: class oracle/xml/sql/query/OracleXMLStaticQuery does not exist
    ORA-06512: at "SYS.DBMS_XMLQUERY", line 19
    ORA-06512: at "SYS.DBMS_XMLQUERY", line 271
    ORA-06512: at line 1

    Then it is probably not the case that you are affected by the issue described in Metalink document 185857.1, but if I were you I would check it anyway, since it might be the problem.

  • Update was terminated - Class PO - Number 366 - Device ARCH does not exist

    Dear Gurus,
    We are using Automatic PO generation through ME59, we also applied one SAP note to pick the custom document type through ME59 (normally the system pick NB as standard document)
    In  MN05 - if i set as default output type 1 - print ( then the document is generating with the correct document with correct number range)
    But if i set in MN05 - default output as 2 - fax ( then i am getting this Update was terminated - Class PO - Number 366 - Device ARCH does not exist).
    Please advice
    Regards
    RS

    Dear Friend,
    Output determination for fax is not done properly. check the device connnectivity.
    SPRo>>Maintain Message type of PO
    For the particular document type - i have removed the default PO Print out settings - now its working fine. Is this the right way?
    Please advice
    RS

  • Office 2013 C2R Update Scheduled Task does not work

    Hi all.
    I am having difficulty getting network deployed updates to work correctly. I installed and older version of Office 2013 with the ODT from a network share and set the update path. I then downloaded an update via ODT.
    The issue is the scheduled task does not update office. If I trigger or manually run from a command prompt "C:\Program Files\Microsoft Office 15\ClientX64\integratedoffice.exe RUNMODE RERUNMODE modetorun updatedetection modeargs reschedulemode tasktrigger
    scheduledtask updateuitype background” from Task Scheduler nothing seems to happen. Monitoring Task Manager it looks like integratedoffice is called albeit very briefly.
    But, if I run "C:\Program Files\Microsoft Office 15\ClientX64\integratedoffice.exe RUNMODE RERUNMODE modetorun updatedetection background” from a command prompt Office updates, but if I edit the Scheduled Task to above Office does not update if the
    task is triggered.
    As Office can update if the right command is given it would appear that my config.xml etc is correct. Any ideas on why the Scheduled Task does not work?
    Cheers
    Jakes

    What permissions are set on the location of the updates ? C2R currently needs permissions granted for machine accounts as it runs under that context. This will change at some point that C2R gets updated.

  • Class oracle/jpub/runtime/dbws/DbwsProxy does not exists on 10g Rel2

    I trying using UTL_DBWS with samle from url http://www.freelists.org/archives/oracle-l/03-2005/msg00670.html in 10g Rel2 but I take error: class oracle/jpub/runtime/dbws/DbwsProxy does not exists .What I do incorrect?
    However, using web service in Oracle rdms very hard...May be exists simply example for dummies?

    Not really for dummies, but it may be a good way to get started:
    Oracle Database Programming Using Java and Web Services, by Kuassi Mensah.
    You have also the following resouces on OTN: Database Web Services.
    -- Eric

  • ORA-29540: class oracle/jpub/runtime/dbws/DbwsProxy does not exist

    Hi ,
    We are getting below error while executing webservice from PL/SQL block. Please help what would be wrong in below code. Thanks in advance.
    ORA-29540: class oracle/jpub/runtime/dbws/DbwsProxy does not exist
    ORA-06512: at "SYS.UTL_DBWS", line 318
    ORA-06512: at "FUSION.ADD_NUMBERS", line 21
    29540. 00000 - "class %s does not exist"
    *Cause:    Java method execution failed to find a class with the indicated name.
    *Action:   Correct the name or add the missing Java class.
    PL/SQL Code
    CREATE OR REPLACE FUNCTION add_numbers (username IN VARCHAR, password IN VARCHAR)
    RETURN NUMBER
    AS
    l_service SYS.UTL_DBWS.service;
    l_call SYS.UTL_DBWS.call;
    l_wsdl_url VARCHAR2(32767);
    l_namespace VARCHAR2(32767);
    l_service_qname SYS.UTL_DBWS.qname;
    l_port_qname SYS.UTL_DBWS.qname;
    l_operation_qname SYS.UTL_DBWS.qname;
    l_xmltype_in SYS.XMLTYPE;
    l_xmltype_out SYS.XMLTYPE;
    l_return NUMBER;
    returnVal BOOLEAN;
    boolean_type_qname sys.utl_dbws.QNAME;
    string_type_qname sys.utl_dbws.QNAME;
    BEGIN
    sys.UTL_DBWS.SET_PROPERTY(l_call,'USERNAME','fusion');
    sys.UTL_DBWS.SET_PROPERTY(l_call,'PASSWORD','fusion');
    l_wsdl_url := 'http://adcdab06.us.oracle.com:10217/xmlpserver/services/PublicReportWSSService?wsdl';
    l_namespace := 'http://xmlns.oracle.com/oxp/service/PublicReportService/';
    l_service_qname := SYS.UTL_DBWS.to_qname(l_namespace, 'PublicReportWSSServiceService');
    l_port_qname := SYS.UTL_DBWS.to_qname(l_namespace, 'PublicReportWSSService');
    l_operation_qname := SYS.UTL_DBWS.to_qname(l_namespace, 'validateLogin');
    l_service := SYS.UTL_DBWS.create_service (URIFACTORY.getURI(l_wsdl_url),l_service_qname);
    l_call := SYS.UTL_DBWS.create_call (l_service,l_port_qname,l_operation_qname);
    sys.utl_dbws.set_target_endpoint_address(l_call, 'http://adcdab06.us.oracle.com:10217/xmlpserver/services/PublicReportWSSService');
    boolean_type_qname :=sys.utl_dbws.to_qname ('http://www.w3.org/2001/XMLSchema', 'boolean');
    string_type_qname :=sys.utl_dbws.to_qname ('http://www.w3.org/2001/XMLSchema', 'string');
    sys.utl_dbws.add_parameter(l_call, 'BI_Admin', string_type_qname, 'ParameterMode.IN');
    sys.utl_dbws.add_parameter(l_call, 'Welcome1', string_type_qname, 'ParameterMode.IN');
    -- sys.utl_dbws.add_parameter (l_call,returnVal,boolean_type_qname,'ParameterMode.OUT');
    sys.utl_dbws.set_return_type (l_call, string_type_qname);
    -- utl_dbws.add_parameter(l_call_, 'ubiNum', string_type_qname, 'ParameterMode.IN');
    --sys.utl_dbws.add_parameter(l_call, 'TEST', string_type_qname, 'ParameterMode.IN');
    --l_xmltype_in := SYS.XMLTYPE('<?xml version="1.0" encoding="utf-8"?>
    --<validateLogin xmlns="' || l_namespace || '">
    --<validateLoginInput>' || p_int_1 || '</validateLoginInput>
    --</validateLogin>');
    l_xmltype_out := SYS.UTL_DBWS.invoke(call_Handle => l_call, request => l_xmltype_in);
    SYS.UTL_DBWS.release_call (call_handle => l_call);
    SYS.UTL_DBWS.release_service (service_handle => l_service);
    dbms_output.put_line('WS Executed successfully...');
    -- l_return := l_xmltype_out.extract('//return/text()').getNumberVal();
    RETURN 11;
    END;
    /

    Check if this helps:
    ORA-29540: class oracle/jpub/runtime/dbws/DbwsProxy does not exist

  • Task does not run with transaction currency

    Dear All,
    When i am executing IU AR/AP elimination, I am getting error " Task does not run with transaction currency ("per TC" option reset) "
    Message no. UCF5104
    Diagnosis
    The present task is configured so that no values are analyzed in transaction currency. However, the option "per transaction currency" is selected in the method definition. This only makes sense if you also want to analyze the values in transaction currency.
    System response
    The task is being executed without the option "per transaction currency".
    Please advise me how to resolve the issue.
    Regards,
    Malani

    Dear Dan,
    I would like to know what will be the effect  if we remove o-Per Currency option in Method.
    I would like to know, in the document also in properties tab - in Key figures - Check box - Transaction Currency. If i select the warning message not coming. So kindly let me know what exactly check box -Transaction currency is used in Document type and whether it is interlinked with Method.
    Thanks
    Malani

  • Task does not exist

    Hi,
    I am creating simple work flow for user decision, I tried to copy standard task in PFTC_COP (to change custom text in user decision),but it is saying that "Task Does not Exist". pl tell me what is the problem.
    Thanks
    Sugumar G
    Edited by: Sugumar Ganesan on Apr 27, 2009 7:33 AM

    Hi sugumar,
    Unless the standard task (you are trying to copy) exists, you should not get this problem.
    It is possible to copy the standard task to a custom task using transaction PFTC_COP by entreing the task type as TS and task number.
    To check the standard task existance, you can go to transavtion PFTC and enter the type as TS and task number and click on dipaly button.
    Can you please provde the Standard task which you want to copy?
    Best Regards,
    Deepa Kulkarni

  • ORA-29540:class oracle/pub/runtime/dbws/DbwsProxy does not exist

    Hi we are getting below error while calling UTl_DBWS package.
    Database version 11.2.0.2
    package definition
    create or replace function xxpvn_ws_test
    return varchar2
    is
      service_           sys.utl_dbws.SERVICE;
      call_              sys.utl_dbws.CALL;
      service_qname      sys.utl_dbws.QNAME;
      port_qname         sys.utl_dbws.QNAME;
      xoperation_qname   sys.utl_dbws.QNAME;
      xstring_type_qname sys.utl_dbws.QNAME;
      response           sys.xmltype;
      request            sys.xmltype;
    begin
      service_qname := sys.utl_dbws.to_qname(null, 'getJoke');
      service_ := sys.utl_dbws.create_service(service_qname);
      call_ := sys.utl_dbws.create_call(service_);
      sys.utl_dbws.set_target_endpoint_address(call_, 'http://interpressfact.net/webservices/getjoke.asmx');
      sys.utl_dbws.set_property( call_, 'SOAPACTION_USE', 'TRUE');
      sys.utl_dbws.set_property( call_, 'SOAPACTION_URI', 'http://interpressfact.net/webservices/getJoke');
      sys.utl_dbws.set_property( call_, 'OPERATION_STYLE', 'document');
      request := sys.xmltype(
           '<getJoke xmlns="http://interpressfact.net/webservices/">'
        || '<Category>Excuses-10</Category>'
        || '</getJoke>');
      response :=sys. utl_dbws.invoke(call_, request);
      return response.extract('//getJokeResult/child::text()',
        'xmlns="http://interpressfact.net/webservices/"').getstringval();
    end ;error message
    SQL> select xxpvn_ws_test from dual;
    select xxpvn_ws_test from dual
    ERROR at line 1:
    ORA-29540: class oracle/jpub/runtime/dbws/DbwsProxy does not exist
    ORA-06512: at "SYS.UTL_DBWS", line 144
    ORA-06512: at "SYS.XXPVN_WS_TEST", line 14
    Thanks
    Jitendra

    This error related to jave since its not installed in database user schema
    Logout of sqlplus and run:
    loadjava -u / -r -v -f -s -grant public -genmissing dbwsclientws.jar dbwsclientdb102.jar
    Check this
    https://kr.forums.oracle.com/forums/thread.jspa?threadID=2264325

  • Root cause for  class oracle/jpub/runtime/dbws/DbwsProxy does not exist

    Hi,
    I am trying to use UTL_DBWS to call a webservice, adn getting a error " ORA-29540: class oracle/jpub/runtime/dbws/DbwsProxy does not exist "
    its going back and forth between me and operations , I aske them to load the package but still the script fails. Is there any way to confirm whether the package is loaded , like the below script
    as sys:
    select status from all_objects where
    dbms_java.longname(object_name)='oracle/jpub/runtime/dbws/DbwsProxy';
    Please help to find the root cause

    Please check if you have the grants on UTL_DBWS.

  • Problem - STD Task does not exist in ECC 6.0

    Hi All,
    While looking for SAP standard Workflows in ECC 6.0, I am able to go to
    Workflow --> Activiy --> Task, but after that I am not able to go inside the task and see the properties/ specifications of the task, its not giving any error msg, but its not navigating to the task screen.
    I have tried other way also, i have copied the task number and pasted it in task with task type as "standard task" in PFTC, n tried to display it , but it is throws the message as "task does not exist".
    Same thing happens if I copy any workflow number , paste it in task with task type as "Workflow Template" n try to display in PFTC.
    Because of this problem I am not able to use any standard task in my zworkflow.
    It will be great if someone can tell the possible cause and solution of this problem.
    Thanks
    Priya

    Hey Priya,
    Its standard Leave workflow's Standard Task, Then as Mark and others said, please check the authorization stuff. Also please remember not to give TS when you select the Standard Task.
    Regards
    <i><b>Raja Sekhar</b></i>

  • [svn:fx-trunk] 7473: Fix for 'ant asdoc' does not work.

    Revision: 7473
    Author:   [email protected]
    Date:     2009-06-01 12:09:26 -0700 (Mon, 01 Jun 2009)
    Log Message:
    Fix for 'ant asdoc' does not work.
    It should now work from both svn and package zip.
    Bugs: SDK-15306
    QE Notes: None.
    Doc Notes: None.
    tests: checkintests
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-15306
    Modified Paths:
        flex/sdk/trunk/asdoc/build.xml
        flex/sdk/trunk/build.xml

  • Why is the Executable class only available in Script Task and not in Script Component.

    Why is the Executable class only available in Script Task and not in Script Component.
    Here is a link to the Executable class documentation.
    http://technet.microsoft.com/en-us/library/microsoft.sqlserver.dts.runtime.executable.aspx
    Mr Shaw

    Because Executables are available only in Control Flow. Script Task is a control flow component whreas Script Component is a data flow component. It works on data buffer and rows and not on executables.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Maybe you are looking for

  • My ipod has a black screen and  will not turn on how can i fix it

    I have tried everything that i can to get my ipod to turn on.  It has a black screen and hasnt done anything atleast 2 weeks.  Please help.

  • Rfc to ftp scenario

    Hello, I have a problem here. I am trying to get a simple communicationszenario of xi working. So I chose rfc to file. Furthermore I tried the configuration's wizard. He says at the last step that my receiver communication-channel is not configured p

  • How to Cache a Web Template in RRI scenario

    Hi, We have used RRI functionality to one of our requirements where in user can look at Territory wise info first and can drill down to any specific territory for Dealer wise info. We have used Control Query to cache Dealer info based on all the terr

  • R/3 to XI configuration

    Hi I am new to ALE-IDOC.I had a requirement to establish connectivity to XI system from the R/3 system.Can I got a blog or document which serves my purpose.If so please povide me the link.I also need to send master data from R/3 to XI and viceversa.

  • Browser is annoying in full-screen mode

    How do I get the Browser to go away in full-screen mode? Thanks in advance for any tips.