Problem in generating IIOP classes

Hai All!
I am facing following problem. I am trying to generate IIOP stubs(RMI over
IIOP). for this i compiled my Java remote i/f and remote imple files. when i tried
to run weblogic.rmic on impl class , I am getting following error..
Class weblogic.rmi.Remote not found in interface rmiIIOP.Compute.
where rmiIIOP.Compute is my impl class.
TIA.
Rgds
Manohar

"Manohar K." <[email protected]> writes:
Need more info.
Hai All!
I am facing following problem. I am trying to generate IIOP stubs(RMI over
IIOP). for this i compiled my Java remote i/f and remote imple files. when i tried
to run weblogic.rmic on impl class , I am getting following error..
Class weblogic.rmi.Remote not found in interface rmiIIOP.Compute.
where rmiIIOP.Compute is my impl class.
TIA.
Rgds
Manohar--

Similar Messages

  • Problem in generating Helper class

    Hi All,
    I have generated Helper classes using rmic -iiop tool of JDK 1.4. But the Helper class which is generating doesnot contain any bind method. So in my application, when i am trying to bind CORBA ORB with this helper class bind method, it is giving compilation error.
    When i was using Borland Server i was able to generate Helper class with bind method also using java2iiop and now i am not using Borland as we are migrating to JBoss. So i am using rmic -iiop tool.
    Can anybody suggest me what should i do for this.

    I don't think many of us could help you with such a limited description. Try to be more descriptive, and please include relevant source code if possible.

  • Problems with generating persistent classes

    I've been following the tutorial for generating persistent classes from a
    DB. I'm not having much luck:
    First, with rd-schemagen, how do you tell it to only work on a specific
    schema? I run "rd-schemagen -file schema.xml NBS_ODS_101", but it still
    generates the schema file for all schemas in the DB. Is there a usage
    option for the tool (I haven't been able to find it yet)?
    Second, I have the following tables in my DB: ACT, ACT_ID, ENTITY,
    ENTITY_ID. When rd-reversemappingtool runs on these tables, it creates an
    ID class for ACT (ActId) which conflicts with the class generated for
    ACT_ID (ActId). Since renaming the tables is not an option and I really
    don't want to have to rename classes and change the mapping file every
    time I regenerate, what is a solution for this problem?
    Third, if I do the latter above so I can run the importtool and then I
    run "rd-importtool test\test.mapping", it runs successfully for a bit
    while spitting out information until I get this:
    Exception in thread "main" java.lang.NullPointerException
    at
    com.solarmetric.rd.kodo.impl.jdbc.meta.compat.ImportTool.mapForeignKe
    y(ImportTool.java:336)
    at
    com.solarmetric.rd.kodo.impl.jdbc.meta.compat.ImportTool.mapField(Imp
    ortTool.java:207)
    at
    com.solarmetric.rd.kodo.impl.jdbc.meta.compat.ImportTool.importMappin
    gs(ImportTool.java:78)
    at com.solarmetric.rd.kodo.impl.jdbc.meta.compat.ImportTool.run
    (ImportTo
    ol.java:408)
    at com.solarmetric.rd.kodo.impl.jdbc.meta.compat.ImportTool.main
    (ImportT
    ool.java:385)

    Abe White <[email protected]> wrote in
    news:[email protected]:
    First, with rd-schemagen, how do you tell it to only work on a specific
    schema? I run "rd-schemagen -file schema.xml NBS_ODS_101", but it still
    generates the schema file for all schemas in the DB. Is there a usage
    option for the tool (I haven't been able to find it yet)?Try using -schemas <comma-separated list of schema names>
    I apologize for the documentation in this area. We're going to upgrade
    the tool and the documentation to a more recent version from our internal
    R&D codebase when our 2.5 release comes out in the next couple of weeks.
    This release will also include a system for customizing the tool's output
    in many more ways.This works:
    rd-schemagen -file schema.xml -indexes false -schemas NBS_ODS_101
    but this does not:
    rd-schemagen -file schema.xml -indexes false -schemas NBS_ODS_101,NBS_SRT_
    101
    Exception in thread "main" java.lang.IllegalArgumentException:
    com.solarmetric.r
    [email protected] = NBS_ODS_
    101,NBS_SRT_10
    1: java.lang.ArrayIndexOutOfBoundsException: 1
    at serp.util.Options.setInto(Options.java:206)
    at serp.util.Options.setInto(Options.java:168)
    at com.solarmetric.rd.conf.Configurations.populateConfiguration
    (Configur
    ations.java:144)
    at com.solarmetric.rd.kodo.impl.jdbc.schema.SchemaGenerator.main
    (SchemaG
    enerator.java:690)
    Second, I have the following tables in my DB: ACT, ACT_ID, ENTITY,
    ENTITY_ID. When rd-reversemappingtool runs on these tables, it creates
    an ID class for ACT (ActId) which conflicts with the class generated for
    ACT_ID (ActId)This is a bug, and will also be fixed with 2.5. I can't even think of a
    good way to tell you to work around it for now, unfortunately.I renamed the ID classes to ActOid and EntityOid and changed the .jdo file
    to reflect that. Do you see any problems with this strategy?
    Third, if I do the latter above so I can run the importtool and then I
    run "rd-importtool test\test.mapping", it runs successfully for a bit
    while spitting out information until I get this:
    Exception in thread "main" java.lang.NullPointerExceptionCan you please send the generated .mapping, .jdo, and .java files?
    Unless you want to wait until the 2.5 improvements to debug.I will send you all the files in a zip file by email.

  • Problem to generate classes from a gsoap server's wsdl with wsimport

    Hello,
    I trie for a long time to generate my client classes from a wsdl file with wsimport. The wsdl file was generated by gsoap.
    Here, the wsdl file :
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="form"
    targetNamespace="https://enterprise-name-masked.com/form.wsdl"
    xmlns:tns="https://enterprise-name-masked.com/form.wsdl"
    xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
    xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:generic="generic"
    xmlns:xop="http://www.w3.org/2004/08/xop/include"
    xmlns:xmime4="http://www.w3.org/2004/11/xmlmime"
    xmlns:form="form"
    xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:MIME="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:DIME="http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/"
    xmlns:WSDL="http://schemas.xmlsoap.org/wsdl/"
    xmlns="http://schemas.xmlsoap.org/wsdl/">
    <types>
    <schema targetNamespace="generic"
      xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
      xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:generic="generic"
      xmlns:xop="http://www.w3.org/2004/08/xop/include"
      xmlns:xmime4="http://www.w3.org/2004/11/xmlmime"
      xmlns:form="form"
      xmlns="http://www.w3.org/2001/XMLSchema"
      elementFormDefault="unqualified"
      attributeFormDefault="unqualified">
      <import namespace="http://www.w3.org/2004/08/xop/include"/>
      <import namespace="http://www.w3.org/2004/11/xmlmime"/>
      <import namespace="http://www.w3.org/2003/05/soap-encoding"/>
      <simpleType name="service">
       <restriction base="xsd:string">
        <enumeration value="service-none"/><!-- enum const = 0 -->
        <enumeration value="service-ident"/><!-- enum const = 1 -->
        <enumeration value="service-pool"/><!-- enum const = 2 -->
        <enumeration value="service-hwr"/><!-- enum const = 3 -->
        <enumeration value="service-form"/><!-- enum const = 4 -->
        <enumeration value="service-document"/><!-- enum const = 5 -->
       </restriction>
      </simpleType>
      <simpleType name="result-code">
       <restriction base="xsd:string">
        <enumeration value="ok"/><!-- enum const = 0 -->
        <enumeration value="already-exists"/><!-- enum const = 1 -->
        <enumeration value="not-found"/><!-- enum const = 2 -->
        <enumeration value="cant-connect"/><!-- enum const = 3 -->
        <enumeration value="exception"/><!-- enum const = 4 -->
        <enumeration value="bad-conversion"/><!-- enum const = 5 -->
        <enumeration value="bad-values"/><!-- enum const = 6 -->
        <enumeration value="session-not-found"/><!-- enum const = 7 -->
        <enumeration value="initialization-failed"/><!-- enum const = 8 -->
       </restriction>
      </simpleType>
      <complexType name="result">
       <sequence>
         <element name="code" type="generic:result-code" minOccurs="1" maxOccurs="1"/>
         <element name="details" type="xsd:string" minOccurs="1" maxOccurs="1"/>
       </sequence>
      </complexType>
    </schema>
    <schema targetNamespace="form"
      xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
      xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:generic="generic"
      xmlns:xop="http://www.w3.org/2004/08/xop/include"
      xmlns:xmime4="http://www.w3.org/2004/11/xmlmime"
      xmlns:form="form"
      xmlns="http://www.w3.org/2001/XMLSchema"
      elementFormDefault="unqualified"
      attributeFormDefault="unqualified">
      <import namespace="http://www.w3.org/2004/08/xop/include"/>
      <import namespace="http://www.w3.org/2004/11/xmlmime"/>
      <import namespace="http://www.w3.org/2003/05/soap-encoding"/>
      <simpleType name="area-type">
       <restriction base="xsd:string">
        <enumeration value="area-type-text"/><!-- enum const = 0 -->
        <enumeration value="area-type-numeric"/><!-- enum const = 1 -->
        <enumeration value="area-type-date"/><!-- enum const = 2 -->
        <enumeration value="area-type-checkbox"/><!-- enum const = 3 -->
        <enumeration value="area-type-slider"/><!-- enum const = 4 -->
        <enumeration value="area-type-draw"/><!-- enum const = 5 -->
        <enumeration value="area-type-identifier"/><!-- enum const = 6 -->
       </restriction>
      </simpleType>
      <simpleType name="format">
       <restriction base="xsd:string">
        <enumeration value="A5"/><!-- enum const = 0 -->
        <enumeration value="A4"/><!-- enum const = 1 -->
        <enumeration value="A3"/><!-- enum const = 2 -->
        <enumeration value="A2"/><!-- enum const = 3 -->
        <enumeration value="A1"/><!-- enum const = 4 -->
        <enumeration value="A0"/><!-- enum const = 5 -->
       </restriction>
      </simpleType>
      <complexType name="area">
       <sequence>
         <element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
         <element name="x" type="xsd:double" minOccurs="1" maxOccurs="1"/>
         <element name="y" type="xsd:double" minOccurs="1" maxOccurs="1"/>
         <element name="width" type="xsd:double" minOccurs="1" maxOccurs="1"/>
         <element name="height" type="xsd:double" minOccurs="1" maxOccurs="1"/>
         <element name="comments" type="xsd:string" minOccurs="1" maxOccurs="1"/>
         <element name="area-type" type="form:area-type" minOccurs="1" maxOccurs="1"/>
       </sequence>
      </complexType>
      <complexType name="area-with-string">
       <sequence>
         <element name="area" type="form:area" minOccurs="1" maxOccurs="1"/>
         <element name="string" type="xsd:string" minOccurs="1" maxOccurs="1"/>
       </sequence>
      </complexType>
      <complexType name="area-with-integer">
       <sequence>
         <element name="area" type="form:area" minOccurs="1" maxOccurs="1"/>
         <element name="integer" type="xsd:int" minOccurs="1" maxOccurs="1"/>
       </sequence>
      </complexType>
      <complexType name="area-with-range">
       <sequence>
         <element name="area" type="form:area" minOccurs="1" maxOccurs="1"/>
         <element name="lower" type="xsd:double" minOccurs="1" maxOccurs="1"/>
         <element name="upper" type="xsd:double" minOccurs="1" maxOccurs="1"/>
       </sequence>
      </complexType>
      <complexType name="areas">
       <sequence>
         <element name="areas" type="form:area" minOccurs="0" maxOccurs="unbounded"/>
         <element name="string-areas" type="form:area-with-string" minOccurs="0" maxOccurs="unbounded"/>
         <element name="integer-areas" type="form:area-with-integer" minOccurs="0" maxOccurs="unbounded"/>
         <element name="range-areas" type="form:area-with-range" minOccurs="0" maxOccurs="unbounded"/>
       </sequence>
      </complexType>
      <complexType name="group">
       <sequence>
         <element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
         <element name="areas" type="form:areas" minOccurs="1" maxOccurs="1"/>
         <element name="groups" type="form:group" minOccurs="0" maxOccurs="unbounded"/>
       </sequence>
      </complexType>
      <complexType name="background">
       <sequence>
         <element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
         <element name="md5" type="xsd:string" minOccurs="1" maxOccurs="1"/>
         <element name="mime" type="xsd:string" minOccurs="1" maxOccurs="1"/>
         <element name="num-page" type="xsd:int" minOccurs="1" maxOccurs="1"/>
       </sequence>
      </complexType>
      <complexType name="pattern-type">
       <sequence>
         <element name="print-once" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
         <element name="has-identifier" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
       </sequence>
      </complexType>
      <complexType name="page">
       <sequence>
         <element name="num-page" type="xsd:int" minOccurs="1" maxOccurs="1"/>
         <element name="format" type="form:format" minOccurs="1" maxOccurs="1"/>
         <element name="is-portrait" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
         <element name="background" type="form:background" minOccurs="1" maxOccurs="1"/>
         <element name="areas" type="form:areas" minOccurs="1" maxOccurs="1"/>
         <element name="groups" type="form:group" minOccurs="0" maxOccurs="unbounded"/>
       </sequence>
      </complexType>
      <complexType name="document-new">
       <sequence>
         <element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
         <element name="pattern-type" type="form:pattern-type" minOccurs="1" maxOccurs="1"/>
         <element name="form-pages" type="form:page" minOccurs="0" maxOccurs="unbounded"/>
       </sequence>
      </complexType>
      <complexType name="document">
       <sequence>
         <element name="uuid" type="xsd:string" minOccurs="1" maxOccurs="1"/>
         <element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
         <element name="pattern-type" type="form:pattern-type" minOccurs="1" maxOccurs="1"/>
         <element name="form-pages" type="form:page" minOccurs="0" maxOccurs="unbounded"/>
       </sequence>
      </complexType>
      <complexType name="document-info">
       <sequence>
         <element name="uuid" type="xsd:string" minOccurs="1" maxOccurs="1"/>
         <element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
         <element name="page-count" type="xsd:int" minOccurs="1" maxOccurs="1"/>
       </sequence>
      </complexType>
      <complexType name="Data">
       <sequence>
         <element ref="xop:Include" minOccurs="1" maxOccurs="1"/>
       </sequence>
         <attribute ref="xmime4:contentType" use="optional"/>
      </complexType>
      <complexType name="login-response">
       <sequence>
         <element name="result" type="generic:result" minOccurs="1" maxOccurs="1"/>
         <element name="session" type="xsd:string" minOccurs="1" maxOccurs="1"/>
       </sequence>
      </complexType>
      <!-- operation request element -->
      <element name="login" type="xsd:string"/>
      <!-- operation request element -->
      <element name="password" type="xsd:string"/>
      <!-- operation response element -->
      <element name="result" type="generic:result"/>
      <!-- operation response element -->
      <element name="uuid" type="xsd:string"/>
      <!-- operation request element -->
      <element name="session" type="xsd:string"/>
      <!-- operation request element -->
      <element name="aform" type="form:document-new"/>
      <!-- operation response element -->
      <element name="form" type="form:document"/>
      <!-- operation request element -->
      <element name="md5" type="xsd:string"/>
      <!-- operation response element -->
      <element name="data" type="form:Data"/>
      <!-- operation response element -->
      <element name="exists" type="xsd:boolean"/>
      <!-- operation response element -->
      <element name="backgrounds" type="form:background"/>
      <!-- operation response element -->
      <element name="forms" type="form:document"/>
      <!-- operation response element -->
      <element name="forms-info" type="form:document-info"/>
    </schema>
    </types>
    <message name="login">
    <part name="login" element="form:login"/>
    <part name="password" element="form:password"/>
    </message>
    <message name="uuid-response">
    <part name="result" element="form:result"/>
    <part name="uuid" element="form:uuid"/>
    </message>
    <message name="quit">
    <part name="session" element="form:session"/>
    </message>
    <message name="response">
    <part name="result" element="form:result"/>
    </message>
    <message name="new-form">
    <part name="session" element="form:session"/>
    <part name="aform" element="form:aform"/>
    </message>
    <message name="free-form">
    <part name="session" element="form:session"/>
    <part name="uuid" element="form:uuid"/>
    </message>
    <message name="get-form">
    <part name="session" element="form:session"/>
    <part name="uuid" element="form:uuid"/>
    </message>
    <message name="document-response">
    <part name="result" element="form:result"/>
    <part name="form" element="form:form"/>
    </message>
    <message name="get-file">
    <part name="session" element="form:session"/>
    <part name="md5" element="form:md5"/>
    </message>
    <message name="data-response">
    <part name="result" element="form:result"/>
    <part name="data" element="form:data"/>
    </message>
    <message name="set-file">
    <part name="session" element="form:session"/>
    <part name="md5" element="form:md5"/>
    <part name="data" element="form:data"/>
    </message>
    <message name="file-exists">
    <part name="session" element="form:session"/>
    <part name="md5" element="form:md5"/>
    </message>
    <message name="exists-response">
    <part name="result" element="form:result"/>
    <part name="exists" element="form:exists"/>
    </message>
    <message name="list-form-backgrounds">
    <part name="session" element="form:session"/>
    <part name="uuid" element="form:uuid"/>
    </message>
    <message name="list-backgrounds-response">
    <part name="result" element="form:result"/>
    <part name="backgrounds" element="form:backgrounds"/>
    </message>
    <message name="list-forms">
    <part name="session" element="form:session"/>
    </message>
    <message name="list-forms-response">
    <part name="result" element="form:result"/>
    <part name="forms" element="form:forms"/>
    </message>
    <message name="list-forms-info">
    <part name="session" element="form:session"/>
    </message>
    <message name="list-forms-info-response">
    <part name="result" element="form:result"/>
    <part name="forms-info" element="form:forms-info"/>
    </message>
    <portType name="formPortType">
    <operation name="login">
      <documentation>Service definition of function form__login</documentation>
      <input message="tns:login"/>
      <output message="tns:uuid-response"/>
    </operation>
    <operation name="quit">
      <documentation>Service definition of function form__quit</documentation>
      <input message="tns:quit"/>
      <output message="tns:response"/>
    </operation>
    <operation name="new-form">
      <documentation>Service definition of function form__new_form</documentation>
      <input message="tns:new-form"/>
      <output message="tns:uuid-response"/>
    </operation>
    <operation name="free-form">
      <documentation>Service definition of function form__free_form</documentation>
      <input message="tns:free-form"/>
      <output message="tns:response"/>
    </operation>
    <operation name="get-form">
      <documentation>Service definition of function form__get_form</documentation>
      <input message="tns:get-form"/>
      <output message="tns:document-response"/>
    </operation>
    <operation name="get-file">
      <documentation>Service definition of function form__get_file</documentation>
      <input message="tns:get-file"/>
      <output message="tns:data-response"/>
    </operation>
    <operation name="set-file">
      <documentation>Service definition of function form__set_file</documentation>
      <input message="tns:set-file"/>
      <output message="tns:response"/>
    </operation>
    <operation name="file-exists">
      <documentation>Service definition of function form__file_exists</documentation>
      <input message="tns:file-exists"/>
      <output message="tns:exists-response"/>
    </operation>
    <operation name="list-form-backgrounds">
      <documentation>Service definition of function form__list_form_backgrounds</documentation>
      <input message="tns:list-form-backgrounds"/>
      <output message="tns:list-backgrounds-response"/>
    </operation>
    <operation name="list-forms">
      <documentation>Service definition of function form__list_forms</documentation>
      <input message="tns:list-forms"/>
      <output message="tns:list-forms-response"/>
    </operation>
    <operation name="list-forms-info">
      <documentation>Service definition of function form__list_forms_info</documentation>
      <input message="tns:list-forms-info"/>
      <output message="tns:list-forms-info-response"/>
    </operation>
    </portType>
    <binding name="form" type="tns:formPortType">
    <SOAP:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="login">
      <SOAP:operation style="rpc"/>
      <input>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </input>
      <output>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </output>
    </operation>
    <operation name="quit">
      <SOAP:operation style="rpc"/>
      <input>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </input>
      <output>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </output>
    </operation>
    <operation name="new-form">
      <SOAP:operation style="rpc"/>
      <input>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </input>
      <output>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </output>
    </operation>
    <operation name="free-form">
      <SOAP:operation style="rpc"/>
      <input>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </input>
      <output>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </output>
    </operation>
    <operation name="get-form">
      <SOAP:operation style="rpc"/>
      <input>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </input>
      <output>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </output>
    </operation>
    <operation name="get-file">
      <SOAP:operation style="rpc"/>
      <input>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </input>
      <output>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </output>
    </operation>
    <operation name="set-file">
      <SOAP:operation style="rpc"/>
      <input>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </input>
      <output>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </output>
    </operation>
    <operation name="file-exists">
      <SOAP:operation style="rpc"/>
      <input>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </input>
      <output>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </output>
    </operation>
    <operation name="list-form-backgrounds">
      <SOAP:operation style="rpc"/>
      <input>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </input>
      <output>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </output>
    </operation>
    <operation name="list-forms">
      <SOAP:operation style="rpc"/>
      <input>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </input>
      <output>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </output>
    </operation>
    <operation name="list-forms-info">
      <SOAP:operation style="rpc"/>
      <input>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </input>
      <output>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </output>
    </operation>
    </binding>
    <service name="form">
    <documentation>gSOAP 2.7.10 generated service definition</documentation>
    <port name="form" binding="tns:form">
      <SOAP:address location="https://enterprise-name-masked.com/cgi-bin/form.fcgi"/>
    </port>
    </service>
    </definitions>And here, you can find the generated errors :
    wsimport -s Sources -b http://www.w3.org/2004/08/xop/includ
    e -b http://www.w3.org/2004/11/xmlmime form.wsdl
    parsing WSDL...
    [WARNING] src-resolve: Cannot resolve the name 'xmime4:contentType' to a(n) 'attribute declaration' component.
      line 215 of file:/C:/Documents%20and%20Settings/Hopi_1/Mes%20documents/Alexandre/Recherche%20SOAP/WSImport/Test/Form/form.wsdl#types?schema2
    [WARNING] s4s-elt-invalid-content.1: The content of 'Data' is invalid.  Element 'attribute' is invalid, misplaced, or occurs too often.
      line 215 of file:/C:/Documents%20and%20Settings/Hopi_1/Mes%20documents/Alexandre/Recherche%20SOAP/WSImport/Test/Form/form.wsdl#types?schema2
    [WARNING] src-resolve.4.2: Error resolving component 'generic:result'. It was detected that 'generic:result' is in namespace 'generic', but components
    from this namespace are not referenceable from schema document 'file:/C:/Documents%20and%20Settings/Hopi_1/Mes%20documents/Alexandre/Recherche%20SOAP
    /WSImport/Test/Form/form.wsdl#types?schema2'. If this is the incorrect namespace, perhaps the prefix of 'generic:result' needs to be changed. If this
    is the correct namespace, then an appropriate 'import' tag should be added to 'file:/C:/Documents%20and%20Settings/Hopi_1/Mes%20documents/Alexandre/Re
    cherche%20SOAP/WSImport/Test/Form/form.wsdl#types?schema2'.
      line 230 of file:/C:/Documents%20and%20Settings/Hopi_1/Mes%20documents/Alexandre/Recherche%20SOAP/WSImport/Test/Form/form.wsdl#types?schema2
    [WARNING] src-resolve: Cannot resolve the name 'xop:Include' to a(n) 'element declaration' component.
      line 213 of file:/C:/Documents%20and%20Settings/Hopi_1/Mes%20documents/Alexandre/Recherche%20SOAP/WSImport/Test/Form/form.wsdl#types?schema2
    [WARNING] Ignoring SOAP port "form": it uses non-standard SOAP 1.2 binding.
    You must specify the "-extension" option to use this binding.
      line 533 of file:/C:/Documents%20and%20Settings/Hopi_1/Mes%20documents/Alexandre/Recherche%20SOAP/WSImport/Test/Form/form.wsdl
    [WARNING] Service "form" does not contain any usable ports. try running wsimport with -extension switch.
      line 531 of file:/C:/Documents%20and%20Settings/Hopi_1/Mes%20documents/Alexandre/Recherche%20SOAP/WSImport/Test/Form/form.wsdl
    generating code...
    compiling code...Could you tell me how to correctly generate my classes in this case ?
    Thank you.
    Edited by: morphet on May 30, 2008 6:12 AM

    Alchemista,
    Not sure if you were able to solve your problem..but I was trying to do exactly what you were trying to do.. access a datasource from a simple Java client. However, you cannot do so by simply writing the Java class and running it. The simple Java client has to be deployed as a J2EE Application Client. The following tutorial shows how to create a J2EE Application Client using the non-J2EE Java class you have written.
    http://developer.java.sun.com/developer/technicalArticles/J2EE/appclient
    The article talks about accessing EJBs from a J2EE App. Client.. but since you only want to access the DataSource, just skip all the screens until it asks you to register the JNDI DataSource resources...
    Let me know if you have any questions. You can email me at [email protected]
    I hope this helps.

  • JAXB problem generating java classes

    I'm doing some integration and have received a schema from the vendor the other day. When I try to generate java classes with the jaxb compiler I get this output
    parsing a schema...
    [ERROR] Property "Value" is already defined.
      line 14 of jar:file:/C:/win32app/Java/jdk6/lib/tools.jar!/com/sun/xml/internal/xsom/impl/parser/datatypes.xsd
    [ERROR] The following location is relevant to the above error
      line 384 of file:/C:/code/sca-ecr.xsd
    Failed to parse a schema.
        <xsd:complexType name="options">
            <xsd:sequence>
                <xsd:element name="option" maxOccurs="unbounded">
                    <xsd:complexType>
                        <xsd:simpleContent>
                            <xsd:extension base="xsd:string">
    (Line 384)                  <xsd:attribute name="value" type="xsd:string"/>
                            </xsd:extension>
                        </xsd:simpleContent>
                    </xsd:complexType>
                </xsd:element>
            </xsd:sequence>
        </xsd:complexType>So, googling about this I came across these to articles that almost describes my problem.
    http://weblogs.java.net/blog/kohsuke/archive/2005/05/compiling_mathm_1.html
    https://jaxb.dev.java.net/guide/Dealing_with_errors.htmlAdding the this code did not help. Downloading JAXB 2.1.4 did not help, adding the -extension parameter still same result.
            <xsd:annotation>
              <xsd:appinfo>           
                <jaxb:property name="someAttribute" />
              </xsd:appinfo>
            </xsd:annotation>      Why is jaxb failing ? Could it be that and attribute is not allowed to be called "value" ?
    Any answers will do
    regards abq

    Well, after hours of digging I found a solution which actually was right in front of me the whole time.
    This is how I edited the schema.
        <xsd:complexType name="options">
            <xsd:sequence>
                <xsd:element name="option" maxOccurs="unbounded" >
                    <xsd:complexType>
                        <xsd:simpleContent>
                            <xsd:extension base="xsd:string">
                               <xsd:attribute name="value" type="xsd:string" >
                                  <xsd:annotation><xsd:appinfo>
                                    <jaxb:property name="realValue" />
                                  </xsd:appinfo></xsd:annotation>
                                 </xsd:attribute>
                            </xsd:extension>
                        </xsd:simpleContent>
                    </xsd:complexType>
                </xsd:element>
            </xsd:sequence>
        </xsd:complexType>Before, I placed the <xsd:annotation> tag efter the first line but inside the <xsd:attribute> made much better if you would like it to work.
    When marshling an @XmlRoot object will produce valid xml code. So even though that the server have a different xml schema, they will be able to talk to each other.
    abq

  • Problem Generating JAXB Classes

    I am using Eclipse (Enterprise Pack) and want to generate JAXB classes from a schema. I right click on the schema, select Generate JAXB classes - fill in package name, next and get the error:
    java.lang.NoClassDefFoundError: com/sun/tools/xjc/XJCFacade
    Caused by: java.lang.ClassNotFoundException: com.sun.tools.xjc.XJCFacade
         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)
    Exception in thread "main"
    Am I missing a library?
    Steve Watson

    The web service project will add additional server runtime libraries to the classpath thus resolving the jaxb dependencies, in the case of a dynamic web project, you'll have to manage that with the JPA facet and eclipselink, or by adding the Moxy jars seperately. However, if you want to use the target runtime libraries create a user-library and reference the following server libraries: (from Server Install Dir\modules) glassfish.jaxb_"version".jar, glassfish.jaxb.xjc_"version".jar, javax.activation_"version".jar, javax.xml.bind_"version".jar, javax.xml.stream_"version".jar.

  • Problem of example IIOP...

    Dear,
    I have a problem when compiling the example of IIOP,
    the example is including in the weblogic6.1 home dir. :
    wlserver6.1/samples/examples/iiop/ejb/stateless/cppclient
    the following is the error msg:
    bash-2.03$ ant
    Buildfile: build.xml
    clean:
    [delete] Deleting directory
    /project/bea/wlserver6.1/samples/examples/iiop/ejb/stateless/cppclient/idl
    init:
    [mkdir] Created dir:
    /project/bea/wlserver6.1/samples/examples/iiop/ejb/stateless/cppclient/idl
    ejbc:
    [echo] Generating container classes in iiop_ejb_stateless.jar
    [echo] NOTE: Compilation requires
    ../server/wls/dist/std_iiop_ejb_stateless.jar.
    [java] <Sep 8, 2001 10:20:23 AM HKT> <Warning> <EJB> <EJB
    Deployment:
    IIOPStatelessSession has a class
    examples.iiop.ejb.stateless.server.wls.TraderHome
    which is in the classpath. This class should only be located in the
    ejb-jar file.>
    [java] <Sep 8, 2001 10:20:23 AM HKT> <Warning> <EJB> <EJB
    Deployment:
    IIOPStatelessSession has a class
    examples.iiop.ejb.stateless.server.wls.Trader
    which is in the classpath. This class should only be located in the
    ejb-jar file.>
    compile_client:
    [echo] ### CHECK POINT 1 ###
    Unable to create client.idl.
    BUILD FAILED
    ~/wlserver6.1/samples/examples/iiop/ejb/stateless/cppclient/build.xml:42:
    null
    Total time: 34 seconds
    After i do some checking (### CHECK POINT ### in the above system out),
    i found that the error is came
    from here:
    the line of 41 in build.xml:
    <createidl
    file="idl/examples/iiop/ejb/stateless/server/wls/TraderHome.idl"/>
    can anyone tell me how to solve this problem?
    thanks
    Kurt

    So Andy,
    If the orb is not Visibroker but Orbix 2000, then there is no need
    for pre-processing the idl into client.idl?
    Thanks.
    Andy Piper <[email protected]> wrote:
    Kurt <[email protected]> writes:
    Hi Kurt,
    I am using Solaris 8 with Weblogic 6.1 Solaris Version.
    Oh... it is only for Windows platform? How come it comes with Solaris
    version?RMI-IIOP is supported on UNIX, but the building of the examples is
    very platform specific and there wasn't time before release to do it
    on every platform.
    Would you please tell me how to setup that example in Solaris platform?
    I have to do that example in Solaris. Thanks a lots.What C++ client orb are you using? It sounds like
    Visibroker. Basically to build the Visibroker example you need to
    pre-process the idl into client.idl. So generate the idl using ejbc
    -idl then do something like:
         echo '#define ORB_PLACEHOLDER #include "orb.idl"' > orb.idl
         echo "ORB_PLACEHOLDER" >> orb.idl
         CC -E -I. -Iidl idl/examples/iiop/ejb/stateless/TraderHome.idl > idl/client.idl
         rm orb.idl
         idl2cpp idl/client.idl
    CC -o Client.exe Client.cpp cpp/client_c.cpp
    You will probably have to tweak this somewhat to get it to work.
    andy

  • Problem to generate secret field with JHeadstart 10.1.3.1.0

    Hi,
    I'm experimentig the new version of Jheadstart and I have a problem to generate a JSF page with a secret field using the Oracle JHeadstart 10.1.3 Evaluation Version.
    In fact when I change the display filed in the jheadstart Application Definition Editor to "secret" and then try to generate
    jsf pages, i have this message error for both form and table layout :
    Could not instantiate JhsApplicationGenerator class: No bean named 'secretPGItemModel' is defined:
    org.springframework.beans.factory.xml.XmlBeanFactory defining beans [applicationLayoutGenerator,facesConfigGenerator,
    regionMetaDataProcessor,includesGenerator,menuGenerator,nlsGenerator,pageGenerator,treeGenerator,generatorContext,findPageNameFormat,
    findPage,wizardFindPage,formPageNameFormat,formPage,wizardFormPage,formRegionPage,wizardFormRegionPage,selectPageNameFormat,selectPage,
    wizardSelectPage,treeFormPage,treePage,tablePageNameFormat,tablePage,wizardTablePage,lovTablePage,parentShuttlePage,
    wizardParentShuttlePage,intersectionShuttlePage,wizardIntersectionShuttlePage,formPageComponent,tablePageComponent,
    selectPageComponent,parentShuttlePageComponent,intersectionShuttlePageComponent,pgItemModelHelper,textInputPGItemModel,
    dateFieldPGItemModel,dateTimeFieldPGItemModel,secretFieldPGItemModel,fileUploadPGItemModel,fileDownloadPGItemModel,imagePGItemModel,
    editorPGItemModel,displayFieldPGItemModel,dropDownListPGItemModel,checkBoxPGItemModel,radio-verticalPGItemModel,
    radio-horizontalPGItemModel,hiddenPGItemModel,lovPGItemModel,pgGroupModel,pgDynamicDomainModel,pgStaticDomainModel,
    pgItemRegionModel,pgGroupRegionModel,stackedPGRegionContainerModel,separatePagesPGRegionContainerModel,horizontalPGRegionContainerModel,
    verticalPGRegionContainerModel,searchManagedBeanModel,dependsOnItemManagedBeanModel,dependsOnSearchItemManagedBeanModel,
    lovItemManagedBeanModel,lovItemInTableManagedBeanModel,editorItemManagedBeanModel,lovItemInAdvancedSearchManagedBeanModel,
    lovItemInQuickSearchManagedBeanModel,lovPageManagedBeanModel,fileItemInTableManagedBeanModel,mediaItemInTableManagedBeanModel,
    checkboxInTableManagedBeanModel,treeManagedBeanModel,parentShuttleManagedBeanModel,intersectionShuttleManagedBeanModel,
    collectionModelManagedBeanModel,queryBindParamsManagedBeanModel,queryBindParamsDomainManagedBeanModel,defaultValuesManagedBeanModel,
    wizardPageManagedBeanModel,wizardPageListManagedBeanModel,breadcrumbManagedBeanModel,customManagedBeanModel,velocityInitializer,
    formGroupLayoutFactory,tableGroupLayoutFactory,table-formGroupLayoutFactory,select-formGroupLayoutFactory,tree-formGroupLayoutFactory,
    treeGroupLayoutFactory,parent-shuttleGroupLayoutFactory,intersection-shuttleGroupLayoutFactory,
    pgModelFactory,templateBindingsFactory,pgModelValidator]; root of BeanFactory hierarchy
    My Jdeveloper Version is : 10.1.3.0.4 (SU5)
    thanks

    Steven
    I followed your instructions and it works
    I recently downloaded the production version of JDeveloper Studio Edition Version 10.1.3.1.0.3984
    Build JDEVADF_10.1.3.1.0_NT_061009.1404.3984
    I installed JHeadstart evaluation version.
    I recreate the same example with this new version of JDeveloper
    I found the bean definition in the jag-config.xml (by default)
    I removed the "#ITEM_PARTIAL_TRIGGERS_PROP" from the template (default/item/form/formSecret.vm )
    I thought it will work but unfortunately it doesn't work and and I got the same error
    Could not instantiate JhsApplicationGenerator class: No bean named 'secretPGItemModel' is defined: org.springframework.beans.factory.xml.XmlBeanFactory defining beans [applicationLayoutGenerator,facesConfigGenerator,regionMetaDataProcessor,includesGenerator,menuGenerator,nlsGenerator,pageGenerator,treeGenerator,generatorContext,findPageNameFormat,findPage,wizardFindPage,formPageNameFormat,formPage,wizardFormPage,formRegionPage,wizardFormRegionPage,selectPageNameFormat,selectPage,wizardSelectPage,treeFormPage,treePage,tablePageNameFormat,tablePage,wizardTablePage,lovTablePage,parentShuttlePage,wizardParentShuttlePage,intersectionShuttlePage,wizardIntersectionShuttlePage,formPageComponent,tablePageComponent,selectPageComponent,parentShuttlePageComponent,intersectionShuttlePageComponent,pgItemModelHelper,textInputPGItemModel,dateFieldPGItemModel,dateTimeFieldPGItemModel,secretFieldPGItemModel,fileUploadPGItemModel,fileDownloadPGItemModel,imagePGItemModel,editorPGItemModel,displayFieldPGItemModel,dropDownListPGItemModel,checkBoxPGItemModel,radio-verticalPGItemModel,radio-horizontalPGItemModel,hiddenPGItemModel,lovPGItemModel,pgGroupModel,pgDynamicDomainModel,pgStaticDomainModel,pgItemRegionModel,pgGroupRegionModel,stackedPGRegionContainerModel,separatePagesPGRegionContainerModel,horizontalPGRegionContainerModel,verticalPGRegionContainerModel,searchManagedBeanModel,dependsOnItemManagedBeanModel,dependsOnSearchItemManagedBeanModel,lovItemManagedBeanModel,lovItemInTableManagedBeanModel,editorItemManagedBeanModel,lovItemInAdvancedSearchManagedBeanModel,lovItemInQuickSearchManagedBeanModel,lovPageManagedBeanModel,fileItemInTableManagedBeanModel,mediaItemInTableManagedBeanModel,checkboxInTableManagedBeanModel,treeManagedBeanModel,parentShuttleManagedBeanModel,intersectionShuttleManagedBeanModel,collectionModelManagedBeanModel,queryBindParamsManagedBeanModel,queryBindParamsDomainManagedBeanModel,defaultValuesManagedBeanModel,wizardPageManagedBeanModel,wizardPageListManagedBeanModel,breadcrumbManagedBeanModel,customManagedBeanModel,velocityInitializer,formGroupLayoutFactory,tableGroupLayoutFactory,table-formGroupLayoutFactory,select-formGroupLayoutFactory,tree-formGroupLayoutFactory,treeGroupLayoutFactory,parent-shuttleGroupLayoutFactory,intersection-shuttleGroupLayoutFactory,pgModelFactory,templateBindingsFactory,pgModelValidator]; root of BeanFactory hierarchy

  • Can't fill ByteArray in EJB-Method with generated Model-Class from WD-Model

    Hello everybody,
    i try to call an ejb-method with data from an FileUpload-UI-Element in WD. The EJB-Method is receiving the byte-data to create a document in KM via a Web-Service.
    The ebj-methid has the following signature:
    public FObject putFileDataSimple (byte [] btContent, String fullFileName, String username, String password)
    After importing the Model and creating a context node i have the following structure:
    Request_X_putFileDataSimple
    +---btContent (Node)
          +-- item
    + fullFileName
    + username
    + password
    btContent is of the generated Type Byte_Item, which is itself a generated Model-Class of modelClassType ARRAY
    item is of Type byte
    But i simply have problems to fill the context node (or the binded model-object). i tried different ways and looked at thread [https://www.sdn.sap.com/irj/scn/thread?messageID=1954223] but i cant get it work.
    So my Method in WD looks like this to fill the structure and start the ejb-method:
    public boolean putKMDataSimple( com.sap.tc.webdynpro.services.sal.datatransport.api.IWDResource fin )  {
    try
      wdContext.currentRequest_X_putFileDataSimpleElement().setFullFileName("abc");
      wdContext.currentRequest_X_putFileDataSimpleElement().setUsername("def");
      wdContext.currentRequest_X_putFileDataSimpleElement().setPassword("xxx");
      byte[] buffer = new byte[1];
      InputStream in = fin.read(false);
      int i = 1;
      int j = 0;
      while (i!=-1)
         i = in.read(buffer);
         if (i!=-1)
           Byte_Item bi = new Byte_Item(mAlf);     // mAlf ist global defined Model-Class-Instance
           bi.setItem(buffer[0]);
            wdContext.currentRequest_X_putFileDataSimpleElement().modelObject().addBtContent(bi);
      wdContext.currentRequest_X_putFileDataSimpleElement().modelObject().execute();
    Doing this results in Error-Messages like:
    Model-Object is not a complex type for every byte added this way.
    And finally an IllegalArgumentException at java.lang.reflect.Array.set(Native Method)
    The second way i tried is:
    public boolean putKMDataSimple( com.sap.tc.webdynpro.services.sal.datatransport.api.IWDResource fin )  {
    try
      wdContext.currentRequest_X_putFileDataSimpleElement().setFullFileName("abc");
      wdContext.currentRequest_X_putFileDataSimpleElement().setUsername("def");
      wdContext.currentRequest_X_putFileDataSimpleElement().setPassword("xxx");
      byte[] buffer = new byte[1];
      ArrayList<Byte> btlist = new ArrayList<Byte>();
      InputStream in = fin.read(false);
      int i = 1;
      int j = 0;
      while (i!=-1)
         i = in.read(buffer);
         if (i!=-1)
              btList.add(buffer[0]);
      wdContext.currentRequest_X_putFileDataSimpleElement().modelObject().setBtContent(btList);
      wdContext.currentRequest_X_putFileDataSimpleElement().modelObject().execute();
    Trying so results in:
    java.lang.ClassCastException: class java.lang.Byte:null incompatible with interface com.sap.tc.cmi.model.ICMIModelClass:library:com.sap.tc.cmi(at-sign)[email protected]@alive
    whenn calling the setBtContent Method
    I don't what to do now to fill the context/model-object the right way.
    Any helpfull hints are very welcome
    Edited by: Matthias Hayk on Dec 1, 2008 5:51 PM
    Edited by: Matthias Hayk on Dec 2, 2008 10:56 AM

    Ok Vesselin and thanx for your idea,
    so i adapted the source in the way you told like the following:
                     ArrayList<Byte_Item> btlist = new ArrayList<Byte_Item>();
                     byte[] buffer = new byte[1];
                     InputStream in = fin.read(false);
                     int i = 1;
                     int j = 0;
                     while (i!=-1)
                          i = in.read(buffer);
                          if (i!=-1)
                               // Byte gelesen
                               Byte_Item bi = new Byte_Item(mAlf);
                               bi.setItem(buffer[0]);
                               btlist.add(bi);
                               j++;
                     wdContext.currentRequest_X_putFileDataSimpleElement().modelObject().setBtContent(btlist);     
                     wdContext.currentRequest_X_putFileDataSimpleElement().modelObject().execute();
    This results also in the following Exception when exceuting the WS-proxy:
    execute
    [EXCEPTION]
    java.lang.IllegalArgumentException
    at java.lang.reflect.Array.set(Native Method)
    at com.sap.tc.webdynpro.model.ejb.model.EJBGenericModelClassExecutable.getInputParameters(EJBGenericModelClassExecutable.java:215)
    at com.sap.tc.webdynpro.model.ejb.model.EJBGenericModelClassExecutable.execute(EJBGenericModelClassExecutable.java:112)

  • Errors generating Java classes from XML schema

    I received the following errors when generating Java classes from the schema located at: http://imsproject.org/xsd/ims_qti_rootv1p1.xsd and http://imsproject.org/xsd/ims_xml.xsd
    XML Spy v4 claims that the schema is well-formed and valid. Could this be a problem with the class generators, or is XML Spy not telling the truth?
    Thanks.
    D:\IMS_QTI\Java>java -classpath .;lib/xmlparserv2.jar;lib/xschema.jar;lib/classgen.jar oracle.xml.classgen.oracg -schema ims_qti_rootv1p1.xs
    d -outputDir src\com\icld\qti -package com.icld.qti -comment
    file:/D:/IMS_QTI/Java/ims_qti_rootv1p1.xsd<Line 235, Column 21>: XSD-2209: (Error) Duplicated definition for: 'attr.view'
    file:/D:/IMS_QTI/Java/ims_qti_rootv1p1.xsd<Line 303, Column 21>: XSD-2209: (Error) Duplicated definition for: 'grp.labels'
    file:/D:/IMS_QTI/Java/ims_qti_rootv1p1.xsd<Line 1834, Column -12236>: XSD-2209: (Error) Duplicated definition for: 'qtimetadatafield'
    file:/D:/IMS_QTI/Java/ims_qti_rootv1p1.xsd<Line 1834, Column -9642>: XSD-2209: (Error) Duplicated definition for: 'typeofsolutionType'
    file:/D:/IMS_QTI/Java/ims_qti_rootv1p1.xsd<Line 2252, Column -3019>: XSD-2026: (Error) Invalid attribute 'use' in element 'attribute'
    Error: Schema Class Generator failed to generate classes. oracle.xml.parser.schema.XSDException: Duplicated definition for: 'attr.view'

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Jinyu Wang ([email protected]):
    Which version are you using? I can't reproduce the error with 9.0.2B version.<HR></BLOCKQUOTE>
    Thanks for having a look at the problem. I am using the 9.0.2.0B version with Java 2 Standard Edition Build 1.3.1-b24. The classgen -version option returns 9.0.2.0b-beta - and xmlparserv2.jar and xschema.jar are from the same distribution. Running the corresponding DTD from the same source work fine - I'm just havinf this problem with the XSD. Anything else I should look at?

  • Problem in generate Java  from PL SQL package in Jdeveloper

    Hi
    i have problem in create java class from PL SQL package in JDeveloper.
    I use Database navigator of jdeveloper and right click on a package and choose Generate Java then in Jpublisher window choose my view Controller and accept other default values.
    I call methods of generated class in the Action of a button in my JSP page, but when I click the button it  throw null pointer exception !!! i fund one of generated method return null and it lead to this exception.
    protected DefaultContext __tx = null;
    public DefaultContext getConnectionContext() throws SQLException  {
    if (__tx==null){
    __tx = (getConnection()==null) ? DefaultContext.getDefaultContext() : new DefaultContext(getConnection());
        return __tx;
      public Connection getConnection() throws SQLException
        if (__onn!=null) return __onn;
         else if (__tx!=null) return __tx.getConnection();
         else if (__dataSource!=null) __onn= __dataSource.getConnection();
         return __onn;
    i try to generate class in Model project and create DataControl for that and use method action but noting change and i get null pointer again!!
    Jdeveloper Versino = 11.1.1.7.0

    Let me ask you another question: Why do you generate java from the package at all?
    Where do you want to call the package?
    Back to your question: you should see code like
        public void setDataSourceLocation(String dataSourceLocation) throws SQLException {
            javax.sql.DataSource dataSource;
            try {
                Class cls = Class.forName("javax.naming.InitialContext");
                Object ctx = cls.newInstance();
                java.lang.reflect.Method meth = cls.getMethod("lookup", new Class[] { String.class });
                dataSource = (javax.sql.DataSource) meth.invoke(ctx, new Object[] { "java:comp/env/" + dataSourceLocation });
                setDataSource(dataSource);
            } catch (Exception e) {
                throw new java.sql.SQLException("Error initializing DataSource at " + dataSourceLocation + ": " + e.getMessage());
    in the generated code. This code look up a datasource (which you have defined e.g. on the Weblogic Server) by calling the method
    setDataSourceLocaltion("jdbc/HRConnDS");
    This look up the datasource nad stores it in the class variable.
    Timo

  • Why does Flash generate invalid class names for library items?

    I imported a bunch of bitmaps (PNGs).  The library symbol names all included the full file name and its extension.  When I check "export for actionscript" it generates a class name based on the symbol name, and it includes the ".png", even though that's invalid in a class name.
    When I select multiple bitmaps and choose properties and export for actionscript, it has a note saying that classnames will be automatically generated for all items, but it does the same thing... including the ".png" in all the class names.  Is this a problem?  Wouldn't it save time if Flash would automatically strip the file extension from the instance name of bitmap library symbols when generating class names?

    Thank you Nipun.  That is exactly the behavior I would expect, and I can confirm that in the trial of Flash CC it generates valid class names by removing the file extension.  For example, a file named "3ball.test.png" will receive an auto-generated class name of "_3ball_test", so it really does ensure the class name is valid (meeting AS3 class name syntax)
    kglad, what I'm saying is that an image file name like "ball.png" is not a valid "class name", because it contains a period, which is reserved as a package delimiter.  I know the runtime can handle it as a valid "fully-qualified class name", but it's misleading because it's actually creating a class named "png" in package "ball", BUT it's understood that the auto-generated name is not supposed to be specifying any package, hence the misleading specification.  The class would have to be instantiated like this: "import ball.png; var bd:BitmapData = new png();" or "import ball.*; var bd:BitmapData = new png();"  You would also then have to import every single class individually and always use their fully qualified names, because you'd technically have a bunch of classes all named "png" inside a hundred different packages.  It's just not acceptable.
    The other problem that occurred in CS6 is if you loaded a bunch of files whose names started with numbers, then when you select them all, choose properties, and use the batch properties window to export them for actionscript, I noticed that such images would be auto-assigned generic names like "Class4" as it would realize the default auto-generated class name would be invalid.  This problem has been fixed beautifully in Flash CC.
    Nipun, it would actually be very helpful to have a little more control over the class naming conventions.  For example, if I wanted all my BitmapData classes to exist in an "images" folder or package, it would be helpful if in the batch properties window I could specify a package name for all the auto-generated class names.  When importing hundreds of images, it's very tedius to have to edit them individually and I don't always have time to write a JSFL script.  There's room in that window to add a text field for a package name.  Thanks!

  • Web service ClassCastException in the generated Tie class

    I got the above exception when making a request from a client to an EJB webservice. The exception is in the generated tie class on the server side.
    I narrowed down the problem to this:
    In my function call in the tie class: (now call MyFunction):
    a function in the tie class is generated:
    private void invoke_MyFunction(StreamingHandlerState streaminghandlerstate) throws Exception{
    In this function, there's line:
    ((MyEJBInterfaceClass)getTarget()).MyFunction(...)
    Where MyEJBInterfaceClass is the name of the remote interface, which has MyFunction declaration in it.
    the getTarget() function is from TieBase class that the MyEJBInterfaceClass_Tie extended.
    The error is generated because getTarget() did not return an instance of MyEJBInterfaceClass.
    So, there must be some error in the generated code when I use the deploy tool to deploy my webservice.
    Could someone please shed some light?
    Sun, please fix your bugs. There are so many bugs that I found when using your server (App Server 8).
    From not releasing the context resource properly to not lookup properly using the context, to randomly generate bad client.jar file to this error.
    Very disappointed.

    Hello again
    I tried to reproduce your problem and could not so there must be something different than the following steps :
    1. Create the interface MyIntf.java
    package ejb;
    public interface MyIntf extends java.rmi.Remote {
    public String sayHello(String toWho)
    throws java.rmi.RemoteException;
    2. Create the EJB impl
    package ejb;
    import javax.ejb.SessionBean;
    import javax.ejb.SessionContext;
    import java.rmi.RemoteException;
    public class MyEjb implements MyIntf, SessionBean {
    SessionContext sc = null;
    public MyEjb() { }
    public void ejbCreate() throws RemoteException {
    System.out.println("In MyEjb::ejbCreate !!");
    public void setSessionContext(SessionContext sc) {
    this.sc = sc;
    public void ejbRemove() throws RemoteException {}
    public void ejbActivate() {}
    public void ejbPassivate() {}
    public String sayHello(String toWho) {
    return "hello " + toWho;
    3. Create the config.xml (slightly modified from yours)
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
    <service
    name="MyEjbIntfService"
    targetNamespace="http://java.sun.com"
    typeNamespace="http://java.sun.com"
    packageName="ejb">
    <interface name="ejb.MyIntf"/>
    </service>
    </configuration>
    4. Invoke wscompile
    javac -d build ejb/MyEjb.java
    wscompile -define -mapping build/mapping.xml -d build -nd build -classpath build config.xml
    5. look at wsdl, there is nothing line MyIntfSoapPort like you had
    in particular
    <portType name="MyIntf">
    complete wsdl is :
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="MyEjbIntfService" targetNamespace="http://java.sun.com" xmlns:tns="http://java.sun.com" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    <types/>
    <message name="MyIntf_sayHello">
    <part name="String_1" type="xsd:string"/></message>
    <message name="MyIntf_sayHelloResponse">
    <part name="result" type="xsd:string"/></message>
    <portType name="MyIntf">
    <operation name="sayHello" parameterOrder="String_1">
    <input message="tns:MyIntf_sayHello"/>
    <output message="tns:MyIntf_sayHelloResponse"/></operation></portType>
    <binding name="MyIntfBinding" type="tns:MyIntf">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/> <operation name="sayHello">
    <soap:operation soapAction=""/>
    <input>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://java.sun.com"/></input>
    <output>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://java.sun.com"/></output></operation></binding>
    <service name="MyEjbIntfService">
    <port name="MyIntfPort" binding="tns:MyIntfBinding">
    <soap:address location="REPLACE_WITH_ACTUAL_URL"/></port></service></definitions>
    6. Package in deploytool.
    this is the webservices I got from the assembly tool.
    <webservices xmlns="http://java.sun.com/xml/ns/j2ee" version="1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd">
    <webservice-description>
    <display-name>MyEjbIntfService</display-name>
    <webservice-description-name>MyEjbIntfService</webservice-description-name>
    <wsdl-file>META-INF/wsdl/MyEjbIntfService.wsdl</wsdl-file>
    <jaxrpc-mapping-file>mapping.xml</jaxrpc-mapping-file>
    <port-component>
    <display-name>MyIntf</display-name>
    <port-component-name>MyIntf</port-component-name>
    <wsdl-port xmlns:wsdl-port_ns__="http://java.sun.com">wsdl-port_ns__:MyIntfPort</wsdl-port>
    <service-endpoint-interface>ejb.MyIntf</service-endpoint-interface>
    <service-impl-bean>
    <ejb-link>MyEjb</ejb-link>
    </service-impl-bean>
    </port-component>
    </webservice-description>
    </webservices>
    So It works fine AFAIK, from your descriptrion, it seems that the wsdl file is incorrect so the problem starts far before the actual Tie generation. You wrote in a previous message that :
    "In the wsdl file this is one of the places it shows: <portType name="MyEjbIntfSoap">"
    This is where the problem is. Do you have any clue how you got that ? If you run again wscompile, do you have the same values ?
    Jerome

  • Problem while generating hindi pdfs

    Hi,
    This is Dasaradh. I have one problem while generating pdfs in HIndi. Here i have used two properties files, one is English and another one is Hindhi. If the user selects English PDF is generates Suceesfully. But if the user selects hindhi then pdf is generated but in that pdf all the charcaters are in diferent format but not in hindi.Actually my hindhi properties file and that pdfgerneration jsp both are in UTF-8 format. Here i have used PDFWriter class for generating pdfs.
    Can any one pls help for generating the hindhi pdfs.
    Thanking You,
    Dasaradh.P

    Make sure that you use the correct and the same encoding thoroughout the complete process.
    1) Save the propertiesfile with in that encoding. Even the most simplest texteditor (notepad) offers you an option list of charset encodings to be used during 'Save As'.
    2) Read values from the propertiesfile with that encoding. Use a Reader where you specify the encoding in the constructor. Otherwise either the platform's default encoding (e.g. CP1252 in Windows) or the API's default encoding (e.g. ISO 8859-1 in java.util.Properties) will be used.
    3) Display the values with that encoding. Specify the charset encoding in a <meta> tag in the HTML head.
    A must-read: [http://www.joelonsoftware.com/articles/Unicode.html].

  • Generating JAXB classes

    Hi,
    My xml: http://www.javaexperience.com/catalog.xml
    I have an xml for which I want to generate JAXB classes. Unfortunately I don't have access to xsd for this xml.
    Could someone please share steps to generate JAXB classes for a xml. What I have tried is:
    1) Generate the xsd from this xml using XML to XSD Generater Online - xmlGrid.net
    2) Use the Maven JAXB plugin "org.jvnet.jaxb2_commons"
    The problem I faced with my approach was that:
    Since the xml has root element and one of the child element as same name, the JAXB processor fails on reaching the child "Catalog" tag. Even though it had successfully processed the root "Catalog" tag.
    Any pointers would of great help.

    The web service project will add additional server runtime libraries to the classpath thus resolving the jaxb dependencies, in the case of a dynamic web project, you'll have to manage that with the JPA facet and eclipselink, or by adding the Moxy jars seperately. However, if you want to use the target runtime libraries create a user-library and reference the following server libraries: (from Server Install Dir\modules) glassfish.jaxb_"version".jar, glassfish.jaxb.xjc_"version".jar, javax.activation_"version".jar, javax.xml.bind_"version".jar, javax.xml.stream_"version".jar.

Maybe you are looking for

  • Can not add nodes (content and folder) into repositories

    Hi all, I have configured MS SQL database with WebLogic portal 10.2 without any error. Then i successfully created around 142 nodes under repository. But after that, when i try to create any new node server is throwing following exception: <Mar 26, 2

  • Airdrop not functioning correctly

    I have Lion installed on my MacBook Air, iMac and Mac Mini Server (2010). On each, Airdrop appears in the Finder sidebar. If I select Airdrop on each computer the Macbook Air and iMac "see" each other, but not the Mac Mini Server. Likewise, the Mac M

  • Nested XPath expressions

    Hello, I am using jsp to read an xml file, then build a table from the contents. My xml looks like this: <document>      <first> Text of First tag              <second> Text of second tag                   <inner> Text of inner tag</inner>           

  • C3-01 or 01.5 worth buying?

    Hi, I'm looking for a simple bar phone to replace my current one. I saw the C3-01 and was wondering if it's worth buying. Also, there seems to be a 01.5 version aswell but I can't find it anywhere on the Nokia site, does anyone know the difference be

  • JSF selectOneMenu valueChangeListener not firing

    I am using JDeveloper 10.1.3.4.0 I am trying to select a value from a list when that value is selected it will fire a valuechangelistener that will call another list that will be populated based on the selected value. The valuechangelistener never fi