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

Similar Messages

  • JAXB to generate java classes for XSD.

    Hi
    I have a XSD, which is importing other couple of xsds in it, tried to generate java classes using xjc, it is throwing error.
    C:\vittal\Project\received\development-1\da_xsd>xjc -p com daAuthoring.xsd
    parsing a schema...
    [ERROR] Property "Alt" is already defined. Use <jaxb:property> to resolve thi
    s conflict.
      line 42 of file:/C:/vittal/Project/received/development-1/da_xsd/commonElement
    s.xsd
    [ERROR] The following location is relevant to the above error
      line 2205 of file:/C:/vittal/Project/received/development-1/da_xsd/daCommonEle
    ments.xsd
    Failed to parse a schema.Please let me know how to fix this issue.

    Thanks for information,
    I do understand xml well, and having basic knowledge on XSD.
    1. can i generate a java classes for a xsd which is including other XSDs.
    2. how to overwrite the issue, using annotation, point me to a location where i will get more information, that will be great help.
    here is my xsd.
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/" xmlns:dctm="http://www.documentum.com" elementFormDefault="qualified">
         <xs:import namespace="http://dita.oasis-open.org/architecture/2005/" schemaLocation="ditaarch.xsd"/>
         <xs:import namespace="http://www.documentum.com" schemaLocation="dctmAttrs.ent.xsd"/>
         <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
         <xs:group name="alt">
              <xs:sequence>
                   <xs:element ref="alt"/>
              </xs:sequence>
         </xs:group>
         <xs:group name="desc">
              <xs:sequence>
                   <xs:element ref="desc"/>
              </xs:sequence>
         </xs:group>
         <xs:group name="title">
              <xs:sequence>
                   <xs:element ref="title"/>
              </xs:sequence>
         </xs:group>
         <!-- Elements in tblDecl.mod -->
         <xs:group name="colspec">
              <xs:sequence>
                   <xs:element ref="colspec"/>
              </xs:sequence>
         </xs:group>
         <xs:group name="entry">
              <xs:sequence>
                   <xs:element ref="entry"/>
              </xs:sequence>
         </xs:group>
         <xs:group name="row">
              <xs:sequence>
                   <xs:element ref="row"/>
              </xs:sequence>
         </xs:group>
         <xs:group name="tbody">
              <xs:sequence>
                   <xs:element ref="tbody"/>
              </xs:sequence>
         </xs:group>
         <xs:group name="tgroup">
              <xs:sequence>
                   <xs:element ref="tgroup"/>
              </xs:sequence>
         </xs:group>
         <xs:group name="thead">
              <xs:sequence>
                   <xs:element ref="thead"/>
              </xs:sequence>
         </xs:group>
    </xs:schema>

  • JAXB: Problem generating java enums

    Hi
    I'm having som problems configuring JAXB to generate type safe enums. The schema I'm using has several structures similar to this simplified example:
        <xs:element name="Car">
            <xs:complexType>
                <xs:sequence>
                    <xs:element name="CarTypeEnumInComplexType">
                        <xs:simpleType>
                            <xs:restriction base="xs:string">
                                <xs:enumeration value="Truck"/>
                                <xs:enumeration value="Jeep"/>
                                <xs:enumeration value="SUV"/>
                            </xs:restriction>
                        </xs:simpleType>
                    </xs:element>
                </xs:sequence>
            </xs:complexType>
        </xs:element>In the resulting Java code CarTypeEnumInComplexType is just generated as a String value in the Car Interface.
    What I really want is a separate Java class for "CarTypeEnumInComplexType" - with constants for each enumeration value.
    However, I do not want to change the schema - as this is maintained by another company.
    For a moment I thought I'd found the solution: By setting the global binding setting "typesafeEnumBase" to "xs:string" I made JAXB generate this kind of enumeration classes in cases like this:
    <xs:simpleType name="CarTypeEnum">
            <xs:restriction base="xs:string">
                <xs:enumeration value="Truck"/>
                <xs:enumeration value="Jeep"/>
                <xs:enumeration value="SUV"/>
            </xs:restriction>
        </xs:simpleType>However, I still can't make this work for enumerations nested within a complex type as illustrated in the first example.
    I'm new to XML schemas and JAXB - so I may be missing something obvious here...
    Is there any way to make JAXB generate an enum class for "CarTypeEnumInComplexType" in my first example without altering the schema structure?
    Vidar

    Well I couldnt really find any clear documentation to this , however with this post I was able to get going in the right direction I thought I would post the solution here.
    This assumes you have some control of your schema , it doesnt solve the problem where you cant touch the schema at all.
    So first my bindings.xjb file looks like:
    <?xml version="1.0"?>
    <jxb:bindings version="1.0" xmlns:jxb="http://java.sun.com/xml/ns/jaxb" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" jxb:extensionBindingPrefixes="xjc">
         <jxb:bindings schemaLocation="CMSOSS.xsd" node="/xs:schema">
              <jxb:globalBindings typesafeEnumBase ="xs:string">
                   <xjc:serializable uid="12343"/>
              </jxb:globalBindings>
              <jxb:schemaBindings>
                   <jxb:package name="com.cms.oss"/>
                   <jxb:nameXmlTransform>
                        <jxb:elementName suffix="Element"/>
                   </jxb:nameXmlTransform>
              </jxb:schemaBindings>
         </jxb:bindings>
    </jxb:bindings>
    First its necessary to have the enum type defined outside of the complex type:
    <xs:simpleType name="serviceTypeEnum">
              <xs:annotation>
                   <xs:documentation>Type of service being added (RES, BUS, FAX, POTS)</xs:documentation>
              </xs:annotation>
              <xs:restriction base="xs:string">
                   <xs:enumeration value="RES"/>
                   <xs:enumeration value="BUS"/>
                   <xs:enumeration value="FAX"/>
                   <xs:enumeration value="POTS"/>
              </xs:restriction>
         </xs:simpleType>
    Then you can use the enum in your complex type in the following manner
         <xs:element name="service">
              <xs:annotation>
                   <xs:documentation>Create a service tag for each new line of service</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="phone"/>
                        <xs:element name="type" type="serviceTypeEnum">
                             <xs:annotation>
                                  <xs:documentation>Type of service being added (RES, BUS, FAX, POTS)
                                  </xs:documentation>
                             </xs:annotation>
                        </xs:element>
                        <xs:element ref="lineDevice"/>
                        <xs:element ref="LNP" minOccurs="0"/>
                        <xs:element ref="VMPIN"/>
                        <xs:element ref="location"/>
                        <xs:element name="userService" minOccurs="0" maxOccurs="unbounded"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
    Some better documentation on this would sure help ... however I dont think this solves completely the original problem...
    I would think that type safe enums should be built into the specification without all this custom binding stuff.
    R
    S

  • JAXB - Generated Java Classes error

    Hi,
    I am having a problem generating java classes given the follow snippet from a DTD. The ImplemenationData class that is generated does not include ImplementationPlatform and ProgramParameters as attributes. Instead, it includes these two elements in the PredicatedLists and then generates a content exception when those elements are not found. Can anyone tell me why these two elements are not being generated as attributes with the associated setter/getter methods to go with them? The ExeOptions, DllOptions and ExternalOptions are being generated properly and included in the PredicatedLists as they should be. Any help would be greatly appreciated.
    <!ELEMENT ImplementationPlatform           (#PCDATA)>
    <!ELEMENT ProgramParameters                (#PCDATA)>
    <!ELEMENT ImplementationData
         (ImplementationPlatform,
         ProgramParameters,
         (ExeOptions
         |DllOptions
         |ExternalOptions))>
    <!ELEMENT ExeOptions
         (PathAndFileName,
         WorkingDirectoryName?,
         Environment?,
         InheritEnvironment,
         StartInForeGround?,
         AutomaticClose?,
         WindowStyle?,
         RunInXTerm?)>
    <!ELEMENT DllOptions
         (PathAndFileName,
         EntryPointName,
         ExecuteFenced?,
         KeepLoaded?)>
    <!ELEMENT ExternalOptions
         (ServiceName,
         ServiceType,
         InvocationType,
         ExecutableName,
         ExecutableType,
         IsLocalUser,
         IsSecurityRoutineCall,
         CodePage?,
         TimeoutPeriod,
         TimeoutInterval?,
         IsMappingRoutineCall,
         MappingType?,
         ForwardMappingFormat?,
         ForwardMappingParameters?,
         BackwardMappingFormat?,
         BackwardMappingParameters?)>

    Just a thumb suck but, have you tried placing the defintitions after the declarations instead of before.
    Dave

  • 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?

  • How to omit xmlns from generated Java classes

    Hi,
    I'm using JAXB and xjc to generate Java classes from xsd fils. I've noticed that when marshalling these Java classes to XML string, there are few xmlns attributes that (as far as I concern :-))
    "waste" space on the generated xml (space is critical resource in our application). Is there a way to order the Marashaller to omit these xmlns attributes from the generated files?
    I tried to edit the generated xml string. I removed the xmlns attributes, but unmarshall it back to Java objects failed...
    Thanks for any help,
    Barak.

    If the xmlns is specified in the xsd, it is also required in the xml. If you do not want it, however you can remove it from your xsd and then generate your xml

  • About generating Java classes from XSD Schema ???

    I need a powerfull tool to generate Java classes from XML Schema. I want that generated classes to have the option to validate XML(to be JAXP1.2 compliant).
    I used XML Spy 5.4 but the generated classes can't validate an XML file.
    Can you help me with other tools that:
    - generate Java classes from XSD
    - generate sample XML from XSD
    - are JAXP1.2 compliant(validate a XML file with a schema)
    Thanks.

    You can also use Castor: http://www.castor.org
    It generates classes from XML Schemas and enables data
    binding without writing any line of a fuckin SAX
    parser :-)I evaluated Castor and JAXB and while JAXB isn't perfect, it's got some things over Castor. Castor almost looks abandonded when I go to the site. The documentation just sort of trails off.

  • JAXB 1 : generating simpleTypes classes

    Sorry, I posted an uncompleted message.
    Hello, I'm new to JAXB technology.
    Since I'm working with j2sdk 1.4 I c'ant use JAXB 2, so I'm using JAXB 1.0.6.
    When I call the xjc ant task, my java classes are generated... buy simple types do not generate any java class.
    Let's say I have the following xsd:
    <xs:complexType name="EXAMPLE">
    <xs:sequence>
    <xs:element name="market-type" type="po:market-type"/>
    </xs:sequence>
    </xs:complexType>
    <xs:simpleType name="MARKET-TYPE">
    <xs:restriction base = "xs:string">
    <xs:enumeration value = "PRIM"/>
    <xs:enumeration value = "SECOND"/>
    </xs:restriction>
    </xs:simpleType> After xjc compilation I have a EXAMPLE Java class, but its element "market-type" is a String and not a MARKET-TYPE as I expected.
    Is it normal? Can I customize the output in order to generate java classes for simpleTypes?

    The base data type of the simpleType MARKET-TYPE is xsd:string.

  • Error when generating Java Classes from XSD

    I'm getting the following error when using oragc to generate Java classes from a schema:
    Error: Schema Class Generator failed to generate classes. oracle.xml.parser.schema.XSDException: Invalid facet 'pattern' in element 'simpleType'
    Any thoughts?
    Here's the part where it is getting the error:
    +111 <!-- Timestamp Type - Timezone portion is required and fractional seconds are prohibited -->
    +112 <xsd:simpleType name="TimestampType">
    +113 <xsd:annotation>
    +114 <xsd:documentation>Base type for a date and time stamp</xsd:documentation>
    +115 </xsd:annotation>
    +116 <xsd:restriction base="xsd:dateTime">
    +117 <xsd:pattern value="[1-9][0-9]{3}\-.+T[^\.]+(Z|[\+\-].+)" />
    +118 </xsd:restriction>
    +119 </xsd:simpleType>

    I would recommend using JAXB instead of the Oracle class generator. This will give a standards based object-to-XML platform.
    Oracle provides two JAXB implementations: one in the TopLink product, and the other in the XDK.
    For an example of using TopLink JAXB see:
    http://www.oracle.com/technology/products/ias/toplink/technical/tips/jaxb/index.htm
    TopLink also provides the ability to map existing Java objects to an existing XML Schema, for an example of this see:
    http://www.oracle.com/technology/products/ias/toplink/technical/tips/ox/index.htm
    -Blaise

  • Customization of generated Java class names

    Hi,
    I could not find any documentation on how to customize names of the generated
    Java classes/types. In Castor, you can do it with a simple mapping, is it possible
    with XMLBeans?
    Thanks,
    Marina

    Hi, Steve,
    thanks for your reply!
    I have tried to add an xsdconfig file, but when I run the following command:
    C:\Java\XMLBeans\xkit\bin\scomp -src . -srconly order.xsd
    with the xsdconfig file in the current directory , nothing happens - the xsdconfig
    file is ignored and Java files are generated in exactly same way as they were
    without the xsdconfig file...
    Here is the content of my xsdconfig file - it is very simple, for test purposes:
    <xb:config xmlns:order="http://order"
    xmlns:xb="http://www.bea.com/2002/09/xbean/config">
    <xb:namespace uri="http://order">
    <xb:package>neptune.neptunelib</xb:package>
    </xb:namespace>
    <xb:qname name="order:order" javaname="OrderDO"/>
    <xb:qname name="order:shippingID" javaname="ShippingInfoDO"/>
    <xb:qname name="order:addressInfo" javaname="AddressInfoDO"/>
    <xb:qname name="order:destination" javaname="DestinationDO"/>
    </xb:config>
    I'm not sure about the namespace part - currently, my order.xsd has no namespace
    or URI assigned. I asked BEA's customer support about this and the answer was:
    'use anything, the URI does not matter'. Well, I did use "anything" but I'm not
    sure this is correct...
    Thanks,
    Marina
    "Steve Traut" <[email protected]> wrote:
    Marina -- You can do this by creating an xsdconfig file and including
    it
    when you compile your XSD files. The xsdconfig file maps schema types
    to
    generated Java type names.
    If you're using WebLogic Workshop, the following topic should give you
    what
    you need:
    http://edocs.bea.com/workshop/docs81/doc/en/workshop/guide/howdoi/howGuideXMLBeansTypeNaming.html
    If you're using Ant, I can provide a topic that will be available soon.
    Please send email if you'd like information on the Ant task.
    Steve
    "Marina Popova" <[email protected]> wrote in message
    news:3f8c468c$[email protected]..
    Hi,
    I could not find any documentation on how to customize names of thegenerated
    Java classes/types. In Castor, you can do it with a simple mapping,is it
    possible
    with XMLBeans?
    Thanks,
    Marina

  • Error when generating java classes from object types

    Hi,
    I'm using JDeveloper version 10.1.3.0.2
    I created an object type in the database, the definition is:
    TYPE domain_cls IS OBJECT (
    domain_idx           NUMBER(3)
    ) NOT INSTANTIABLE NOT FINAL
    I tried to create a java class for this object using JDeveloper, by using generate java menu item.
    I got the following error:
    oracle.jpub.JPubException: Warning: Cannot determine what kind of type is OBJMOI. DOMAIN_CLS. The following error occurred: ORA-06550: line 1, column 13:
    PLS-00103: Encountered the symbol "SYS" when expecting one of the following:
    := . ( @ % ;
    The symbol ":=" was substituted for "SYS" to continue.
    at oracle.jpub.sqlrefl.SqlReflector.addSqlType(SqlReflector.java:519)
    at oracle.jpub.sqlrefl.SqlReflector.addSqlUserType(SqlReflector.java:707)
    at oracle.jpub.publish.Publisher.addTypeOrPackage(Publisher.java:209)
    at oracle.jpub.publish.IntypeParser.TypeDeclaration(IntypeParser.java:238)
    at oracle.jpub.publish.IntypeParser.CompilationUnit(IntypeParser.java:75)
    at oracle.jpub.Doit.main(Doit.java:257)
    at oracle.jpub.Doit.main(Doit.java:102)
    at oracle.jdevimpl.cm.dt.jpub.JPubModel.publish(JPubModel.java:1047)
    at oracle.jdevimpl.wizard.jpub.JPubPanel.publish(JPubPanel.java:516)
    at oracle.jdevimpl.cm.dt.jpub.JPubAddin._doJPub(JPubAddin.java:174)
    at oracle.jdevimpl.cm.dt.jpub.JPubAddin.handleEvent(JPubAddin.java:81)
    at oracle.ide.IdeAction.performAction(IdeAction.java:661)
    at oracle.ide.IdeAction$2.run(IdeAction.java:889)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    any body can hlep in that please

    I would recommend using JAXB instead of the Oracle class generator. This will give a standards based object-to-XML platform.
    Oracle provides two JAXB implementations: one in the TopLink product, and the other in the XDK.
    For an example of using TopLink JAXB see:
    http://www.oracle.com/technology/products/ias/toplink/technical/tips/jaxb/index.htm
    TopLink also provides the ability to map existing Java objects to an existing XML Schema, for an example of this see:
    http://www.oracle.com/technology/products/ias/toplink/technical/tips/ox/index.htm
    -Blaise

  • JAXB not generating correct class definition

    Hi,
    I am using JAXB 2.0 and the JAXB plugin for Eclipse 3.x.
    The problem I have is that when I run XJC on my XSD file the class definition for
    a particular class is not what I am expecting. The class only defines 1 get method instead of three. While I am expecting to see getX getY and getZ I am seeing only 1 method getXAndgetYAndgetZ. Here is a snippet of the XSD file:
         <xs:element name="Sql">
              <xs:complexType>
                   <xs:sequence minOccurs="0" maxOccurs="unbounded">
                        <xs:element name="Query"/>
                        <xs:element ref="Table" maxOccurs="unbounded"/>
                        <xs:element name="Database" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>I have defined the Table element in the XSD.
    In this case my generated Sql class has the following method:
    public List<JAXBElement<String>> getQueryAndTableAndDatabase() {
            if (queryAndTableAndDatabase == null) {
                queryAndTableAndDatabase = new ArrayList<JAXBElement<String>>();
            return this.queryAndTableAndDatabase;
        }Is there a problem with my XSD file or am I omitting a parameter when running XJC? Any help greatly appreciated

    LDAPLoginModule uses the jackrabbit UserManagerImpl to create user's in CRX (CQ), not the CQ5 implementation which is disappointing. Have to manually add the sling:resourceType.

  • Generate Java class from Oracle Type defined in Package w/ JPublisher

    I was wondering if its possible to generate a Java class for an Oracle Type defined in a Package? I know passing the package name to JPublisher (SQL <package_name>) causes all Oracle Types in the Package to have a Java class generated for them but I'd like to be able to do this for an individual Type defined in a Package (something like SQL <package_name>.<type_name>).
    Thanks for any information you can give me.

    Hi Marinel,
    The support for XSD import is limited on 10.1.2. If you can, you should consider moving to the 10.1.3 preview as the support for document style web services has improved. The other option will be to inline the schema in your WSDL.
    Eric.

  • Still got problems with java class business operations

    Hi all,
    I've read the latest on business operations and java class files, but my problem
    remains - the workaround of putting the class file in the studio classpath did
    not work for me.
    To breifly recap the problem -
    I am unable to assign an instance variable when trying to call a predefined business
    operation of a java class. Calling the constructor seems to work okay and I can
    assign the result to a variable of type "java object" but that's as far as it
    goes. If I try placing the class file in the studio classpath, my "Instance Variable"
    dropdown list dims, but I am still prompted to choose one when I press okay.
    I'm using process integrator 2 sp2 on wls6.
    Please help!
    Regards
    Andrew

    Still no good. I'm running my testing on my own PC with windows 2000. Maybe a
    windows bug rather than a remote bug?!
    Anyone else have a suggestion?
    "Soteri Panagou" <[email protected]> wrote:
    >
    Andrew
    What platform are you running on?
    I have found the same problem when trying to run wlpi remotely.
    We have a sun box with the WLI installation. When i run wlpi on that
    box, and
    do the business operation configuration as u describe below, i get instance
    variables
    populated in the drop down box of the business operation window. I can
    then select
    the java object my instance is assigned to.
    However, when i connect remotely using the studio and try to view the
    business
    operation settings, nothing appears in the instance drop down box.
    When i go back to the console and run the studio on the same machine
    as the installation,
    the instance variable drop down is populated once again.
    So all i can say is, configure the workflow on the machine have the running
    installation,
    and then it should work. It did for me :)
    Hope this helps
    Steri
    "Andrew" <[email protected]> wrote:
    Hi all,
    I've read the latest on business operations and java class files, but
    my problem
    remains - the workaround of putting the class file in the studio classpath
    did
    not work for me.
    To breifly recap the problem -
    I am unable to assign an instance variable when trying to call a predefined
    business
    operation of a java class. Calling the constructor seems to work okay
    and I can
    assign the result to a variable of type "java object" but that's asfar
    as it
    goes. If I try placing the class file in the studio classpath, my "Instance
    Variable"
    dropdown list dims, but I am still prompted to choose one when I press
    okay.
    I'm using process integrator 2 sp2 on wls6.
    Please help!
    Regards
    Andrew

  • Problem generating proxy class

    hi,
    i am using Axis to generate java proxy classes from wsdl as follow
    D:\Axis>java -cp .;d:\axis\lib\wsdl4j-1.5.1.jar;d:\axis\lib\saaj.jar;d:\axis\lib
    \jaxrpc.jar;d:\axis\lib\axis-ant.jar;d:\axis\lib\log4j-1.2.8.jar;d:\axis\lib\com
    mons-discovery-0.2.jar;d:\axis\lib\commons-logging-1.0.4.jar;d:\axis\lib\axis.ja
    r;d:\axis\lib\activation.jar;d:\axis\lib\mailapi.jar org.apache.axis.wsdl.WSDL2J
    ava -N"urn:crmondemand/ws/ecbs/opportunity/10/2004"="crmondemand.ws.ecbs.opportu
    nity.10.2004"
    - Unable to find required classes (javax.activation.DataHandler and javax.mail.i
    nternet.MimeMultipart). Attachment support is disabled.
    Exception in thread "main" java.lang.NoClassDefFoundError: org/xml/sax/helpers/D
    efaultHandler
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    no. of other such error
    at org.apache.axis.wsdl.toJava.Emitter.<init>(Emitter.java:144)
    at org.apache.axis.wsdl.WSDL2Java.createParser(WSDL2Java.java:209)
    at org.apache.axis.wsdl.gen.WSDL2.<init>(WSDL2.java:96)
    at org.apache.axis.wsdl.WSDL2Java.<init>(WSDL2Java.java:194)
    at org.apache.axis.wsdl.WSDL2Java.main(WSDL2Java.java:371)
    D:\Axis>-N"urn:/crmondemand/xml/Opportunity/Data"="crmondemand.xml.opportunity.D
    ata"
    The filename, directory name, or volume label syntax is incorrect.
    D:\Axis>-N"urn:/crmondemand/xml/Opportunity/Query"=crmondemand.xml.opportunity.Q
    uery Opportunity.wsdl
    The filename, directory name, or volume label syntax is incorrect.
    i have all the classes but still getting error...please help ....searching over net i found wsdl2java require url of web service... i downloaded wsdl file from CRM OD admin....

    Hi, you need to add activation.jar and mail.jar to your project, classpath settings.
    Regards
    SL

Maybe you are looking for

  • Sync multiple lobraries with iPod color 60GB

    I posted this issue in the iPod forum, but received no advice. Hopefully someone here can help: I have over 25,000 photos and use several iPhoto libraries to manage and organize them. One library lives on my Powerbook 17" hard drive and the others ar

  • PSE 8 fails to run on new iMac hard drive following Time Machine backup

    I had to have my iMac hard disk replaced last week as part of the Apple replacement programme. Following the installation of the new disk I restored the entire Time Machine backup onto the new disk. Most things work perfectly but I get an error messa

  • Vertical stand for Mac mini

    I'm looking for a vertical stand for the Mac mini, a stand that allow me to put the Mac mini on its side. There used to be company called plasticsmith, but did a google and looks like they're out of business (the domain is for sale). Any ideas?

  • PS CS3 crashes in preferences

    Just reinstalled PS CS3 on a new hard disk, 8gb ram, oodles of storage, upgraded from vista 32 to vista 64. The same problem happened when I installed it on vista 32. But did not retain instructions on how to cure it. Edit - preferences-performance,

  • What is Context attribute

    Hi, What is context attribute and how it can be used in XI? Thanks in Advance, Ajay.