IMessage interface Comp Controller (JAVA file) generated incompletely

Hi Experts,
I am doing a web dynpro java component, it has two views A & B (Comp view)
I have rebuild the DC but not yet deployed it so no class files yet
When i checked on the java code of my component controller it implements the IMessage interface, the corresponding package is imported, yet i can not call any values saying "<VALUE> can not be resolved"
when i checked on the /wdp folder the java file for the IMessage<CompControllerName> does not contain the values, which explains the case above saying value can not be resolved.
My question is why was this java file generated incompletely (without the values)?
As i understand this java file is automatically generated by the WD code generator.
Do i need to define the values manually in the file (by editing it),  or do i specify it graphically?
Below SHOULD be the complete code generated::
// This file has been generated by the Web Dynpro Code Generator
// DON'T MODIFY!!! CHANGES WILL BE LOST WHENEVER THE FILE GETS GENERATED AGAIN
// $JL-GENERATED-SOURCE$
package com.ides.soa.cmp.ssc.ui.goodsmovementcomp.wdp;
* This interface encapsulates all texts / messages for this component.
* The message constants of type IWDMessage can be used in
* conjunction with the IWDMessageManager.reportMessage method.
* All constants can be used in conjunction with IWDTextAccessor.
@SuppressWarnings("all")
public interface IMessageGoodsMovementComp {
   * ErrorMessage <code>"Enter a valid {0} to proceed."</code> using
   * key "INVALID_INPUT".
  public static final com.sap.tc.webdynpro.progmodel.api.IWDMessage INVALID__INPUT = new com.sap.tc.webdynpro.progmodel.gci.impl.GCIMessage( com.ides.soa.cmp.ssc.ui.goodsmovementcomp.GoodsMovementComp.class, "INVALID_INPUT", com.sap.tc.webdynpro.services.message.WDMessageType.ERROR );
   * ErrorMessage <code>"Invalid input for goods movement"</code> using
   * key "MISSING_GOODS_INPUT".
  public static final com.sap.tc.webdynpro.progmodel.api.IWDMessage MISSING__GOODS__INPUT = new com.sap.tc.webdynpro.progmodel.gci.impl.GCIMessage( com.ides.soa.cmp.ssc.ui.goodsmovementcomp.GoodsMovementComp.class, "MISSING_GOODS_INPUT", com.sap.tc.webdynpro.services.message.WDMessageType.ERROR );
   * ErrorMessage <code>"The response from the service {0} is null"</code> using
   * key "NULL_RESPONSE".
  public static final com.sap.tc.webdynpro.progmodel.api.IWDMessage NULL__RESPONSE = new com.sap.tc.webdynpro.progmodel.gci.impl.GCIMessage( com.ides.soa.cmp.ssc.ui.goodsmovementcomp.GoodsMovementComp.class, "NULL_RESPONSE", com.sap.tc.webdynpro.services.message.WDMessageType.ERROR );
I am trying to consume a webservice in wd java
Thanks in advance

What you will do in your controller is get a reference to the AM via the pageContext object.
Like this:
OAApplicationModule am=(OAApplicationModule)pageContext.getRootApplicationModule();
Use the am ref to call methods in the am.
Kristofer Cruz

Similar Messages

  • Unable to compile the Java Files generated by JAXB

    Hi,
    I have generated the Java Files for a DTD and .xjs file using JAXB. But when i tyr to compile the .java files generated i am getting errors.
    My DTD file is addctq.dtd
    <?xml version="1.0" encoding="UTF-8"?>
    <!ELEMENT AddCtq (Ctq*)>
    <!ELEMENT Ctq (PartNumber ,PartDescription,CtqDescription,CtqType,ProductLine,Supplier,Ppctq,Ctp,Ctc,CtqCode1,CtqCode2,CtqCode3,Commodity,SubCommodity,UnitOfMeasure,Client,SamplingFrequency,Remarks,VariableData)>
    <!ELEMENT VariableData (SubGroupSize, Specification,Nominal,Usl,Ual,Lal,Lsl,Zal,RangeVal?,RangeAlarmVal?)>
    <!ELEMENT PartNumber (#PCDATA)>
    <!ATTLIST PartNumber new CDATA #REQUIRED >
    <!ELEMENT PartDescription (#PCDATA)>
    <!ELEMENT CtqDescription (#PCDATA)>
    <!ELEMENT CtqType (#PCDATA)>
    <!ELEMENT ProductLine (#PCDATA)>
    <!ELEMENT Supplier (#PCDATA)>
    <!ELEMENT Ppctq (#PCDATA)>
    <!ELEMENT Ctp (#PCDATA)>
    <!ELEMENT Ctc (#PCDATA)>
    <!ELEMENT CtqCode1 (#PCDATA)>
    <!ELEMENT CtqCode2 (#PCDATA)>
    <!ELEMENT CtqCode3 (#PCDATA)>
    <!ELEMENT Commodity (#PCDATA)>
    <!ELEMENT SubCommodity (#PCDATA)>
    <!ELEMENT UnitOfMeasure (#PCDATA)>
    <!ELEMENT Client (#PCDATA)>
    <!ELEMENT SamplingFrequency (#PCDATA)>
    <!ELEMENT Remarks (#PCDATA)>
    <!ELEMENT SubGroupSize (#PCDATA)>
    <!ELEMENT Specification (#PCDATA)>
    <!ELEMENT Nominal (#PCDATA)>
    <!ELEMENT Usl (#PCDATA)>
    <!ELEMENT Ual (#PCDATA)>
    <!ELEMENT Lal (#PCDATA)>
    <!ELEMENT Lsl (#PCDATA)>
    <!ELEMENT Zal (#PCDATA)>
    <!ELEMENT RangeVal (#PCDATA)>
    <!ELEMENT RangeAlarmVal (#PCDATA)>
    and the .xjs file i created is addctq.xjs
    <?xml version="1.0" encoding="UTF-8" ?>
    <xml-java-binding-schema version="1.0-ea">
    <options package="com.geindustrial.sqms"/>
    <element name="AddCtq" type="class" root="true">
    <content>
    <element-ref name="Ctq"/>
    </content>
    </element>
    <element name="Ctq" type="class">
    <content>
         <element-ref name="PartNumber"/>
         <element-ref name="PartDescription"/>
         <element-ref name="CtqDescription"/>
         <element-ref name="CtqType"/>
         <element-ref name="ProductLine"/>
         <element-ref name="Supplier"/>
         <element-ref name="Ppctq"/>
         <element-ref name="Ctp"/>
         <element-ref name="Ctc"/>
         <element-ref name="CtqCode1"/>
         <element-ref name="CtqCode2"/>
         <element-ref name="CtqCode3"/>
         <element-ref name="Commodity"/>
         <element-ref name="SubCommodity"/>
         <element-ref name="UnitOfMeasure"/>
         <element-ref name="Client"/>
         <element-ref name="SamplingFrequency"/>
         <element-ref name="Remarks"/>
         <element-ref name="VariableData"/>
    </content>      
    </element>
    <element name="VariableData" type="class">
    <content>
    <element-ref name="SubGroupSize"/>
    <element-ref name="Specification"/>
    <element-ref name="Nominal"/>
    <element-ref name="Usl"/>
    <element-ref name="Ual"/>
    <element-ref name="Lal"/>
    <element-ref name="Lsl"/>
    <element-ref name="Zal"/>
    </content>
    </element>
    <element name="PartNumber" type="value">
    <attribute name="new"/>
    </element>
    <element name="PartDescription" type="value">
    </element>
    <element name="CtqDescription" type="value">
    </element>
    <element name="CtqType" type="value">
    </element>
    <element name="ProductLine" type="value">
    </element>
    <element name="Supplier" type="value">
    </element>
    <element name="Ppctq" type="value">
    </element>
    <element name="Ctp" type="value">
    </element>
    <element name="Ctc" type="value">
    </element>
    <element name="CtqCode1" type="value">
    </element>
    <element name="CtqCode2" type="value">
    </element>
    <element name="CtqCode3" type="value">
    </element>
    <element name="Commodity" type="value">
    </element>
    <element name="SubCommodity" type="value">
    </element>
    <element name="UnitOfMeasure" type="value">
    </element>
    <element name="Client" type="value">
    </element>
    <element name="SamplingFrequency" type="value">
    </element>
    <element name="Remarks" type="value">
    </element>
    <element name="SubGroupSize" type="value" convert="int">
    </element>
    <element name="Specification" type="value">
    </element>
    <element name="Nominal" type="value" convert="float">
    </element>
    <element name="Usl" type="value" convert="float">
    </element>
    <element name="Ual" type="value" convert="float">
    </element>
    <element name="Lal" type="value" convert="float">
    </element>
    <element name="Lsl" type="value" convert="float">
    </element>
    <element name="Zal" type="value" convert="float">
    </element>
    <element name="RangeVal" type="value" convert="float">
    </element>
    <element name="RangeAlarmVal" type="value" convert="float">
    </element>
    </xml-java-binding-schema>
    When i ran the xjc , it generated 3 .java files
    AddCtq.java , Ctq.java and VariableData.java
    But i am unable to compile any of the above files...
    The Error i am getting is
    VariableData.java:710: Undefined variable or class name: AddCtq
    return AddCtq.newDispatcher();
    ^
    1 error
    If i try to compile AddCtq.java , the Error i am getting is
    AddCtq.java:4: Class com.geindustrial.sqms.Ctq not found in import.
    import com.geindustrial.sqms.Ctq;
    ^
    AddCtq.java:169: Class com.geindustrial.sqms.Ctq not found.
    if (!(ob instanceof Ctq)) {
    ^
    AddCtq.java:170: Class com.geindustrial.sqms.Ctq not found.
    throw new InvalidContentObjectException(ob, (Ctq.class));
    ^
    3 errors
    And when i try to compile Ctq.java , i am getting the following Error:
    Ctq.java:4: Class com.geindustrial.sqms.VariableData not found in import.
    import com.geindustrial.sqms.VariableData;
    ^
    1 error
    How to solve this problem..Pls advise...
    Thanks
    Sateesh

    I suspect you are trying to compile the files one by one. You may also be trying to compile them disregarding the package structure.
    From your post, I gather these files are in the package: com.geindustrial.sqms
    Therefore, if they are not so already, put them under a directory structure:
    com/geindustrial/sqms
    and then compile with:
    javac com/geindustrial/sqms/AddCtq.java com/geindustrial/sqms/Ctq.java com/geindustrial/sqms/VariableData.java
    (The above is all on one line.)
    HTH,
    Manuel Amago.

  • How to get the .class file for the extended Controller .java file

    Hi,
    I did the below steps.
    1. Created New OAWorkspace
    2. Created New project
    3. Imported the page .xml file
    4. Added new .java file by extending the controller class
    5. Added code in the .java file.
    6. Ran the .xml file
    As I copied all the folders from Unix box, the page was opened.
    But My question was where can I see the .class file the extended controller. It's a .java file. How to compile and get the .class file for this .java file. If I get this .class file, I can go to the page and click the personlize page. and change the Controller name to the new path by ftp ing the new class to the cust.oracle.apps.pos.changeorder.webiui.
    Please let me know how to create the .class file.
    Thanks,
    HP

    All are Java files are stored in JDEV_INSTALL_DIR:\jdevhome\jdev\myprojects\
    In your case the path java would be
    JDEV_INSTALL_DIR:\jdevhome\jdev\ myprojects \cust\oracle\apps\pos\changeorder\webui\
    AND
    Once you compile the java file in Jdeveloper, Class files get generated @ below path
    In your case the path of class would be
    JDEV_INSTALL_DIR:\jdevhome\jdev\ myclasses \cust\oracle\apps\pos\changeorder\webui\
    Duplicate Thread-
    Thanks
    --Anil
    http://oracleanil.blogspot.com/

  • How can I get controller .java files

    I have craeted OA extension pages in which I have created Entiy object, module and view objects
    in JDeveloper for 12.1.1 in windows and it working fine.
    Now I want to extend one of the page of payable module (payable vision operation (USA))
    and the page name is SuppSummaryPG.xml .
    The problem is that how can I open or import SuppSummaryPG.xml in my jdeveloper ID
    and all the related files which belongs to SuppSummaryPG.xml , example raleated VO, entity objects
    module file and controller servlet.
    I move all the files from
    apps server to jdeveloper directory , i did the same thing which is running
    and working fine but the problem is with all of ViewObject and aplication module
    I am not able to open these in Jdeveloper , because when I try to open these files
    it gives me error that you dont have .java files , and it opens view objects and applicatino
    moudel files in read only mode
    the page is a standrad java moudle page
    suppSummaryPG is a standard page and it is in
    payable moudle herachy is
    oracle/apps/pos/supplier/....suppSummaryPG
    what should I do

    You can use decompiler to read java code. Oracle doesn't have any policy to prevent you from reading the class files.
    However you cannot change the java code and replace the standard files.
    Source Code:
    Oracle sells the just the software. So they are not obligated to provide source code.
    The reason why they provided soruce code for forms and reports is that there is no robust personalzation and extention concepts available for them.
    As per Oracle Support services, you dont need OAF code for extension and personalization.
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Keeping java files generated from jsp on WSAD 4.0

    Hi,
    on my development environment, WSAD(4.0) , Is there any option of keeping the generated java files. I tried 'keepgenerated' attribute, but it gives me error that it invalid. If anybody has done this , please let me know.
    TIA
    Ashwani

    on my development environment, WSAD(4.0) , Is there
    any option of keeping the generated java files.They get cached to (something like):
    C:\Program Files\IBM\Application Developer\workspace\.metadata\.plugins\com.ibm.etools.server.tools\tmp0\cache\localhost\ .......................

  • Use of multi applications  and interface comp controller in Leave(any WDP)

    Hi Frndz,
    AM new to  ESS/MSS, now am modifying standard ESS leave proj while doing this i want make clear myself about somethings ..those  r
    1) What is the use(purpose) creating multi applications(LeaveRequest,LeaveRequestAdmin,LeaveRequestApprover,TeamView) in a WDP (for ex:ESS leave) proj.
    2) And i came to know that  interface controller is playing big role in this , i need a exact use of interface controller, if posible with any basic example, i gone through SDN blogs but i did't get clear picture about interface controller.
    Regards
    Rajesh

    Refer help.sap.com for exact defination
    In brief
    LeaveRequest > For requesting Leaves by the Employee ie enduser
    LeaveRequestAdmin > to solve error in Leave request application, not available, Need to use PTARQ
    LeaveRequestApprover> to approve Leave requests like a manager
    TeamView : to see other employees absences in ones org unit

  • How to generate .xsd file using jaxb generated java files

    Hi,
    We need to upgrade our applicatio to jdk1.6 which has jaxb2.0 class files in it. Our application has java files generated from .xsd using jaxb1.0.2 version. At present we dont have .xsd or .xml file with us.
    We decide to generate .xsd file by using jaxb1.0.2 generated java files. I tried using schemagen.exe given by jdk1.6 to generate .xsd file. It error out. Is there any other way to generate .xsd file ?
    pls let me know.
    thanks,
    Thiru

    Object-XML mapping is a new feature in JAXB 2.0. Classes generated with JAXB 1.0 won't generate a schema.
    Generate Java classes with JAXB 2.0 xjc.
    http://www.theregister.co.uk/2006/09/22/jaxb2_guide/

  • Best practises regarding generation of the EOImpl and VORowImpl java files

    Greetings,
    I was wondering what is the best practice/suggested approach regarding generation of the EOImpl and the VORowImpl java files for ADF Business Components.
    From the maintenance point of view, it makes sense to generate them only if you want to put some custom code in those e.g. validation or transient attribute.
    However from performance point of view, does it help to have these EOImpl and the VORowImpl java files generated.
    Any thoughts on this will be a lot helpful.
    regards - rutwik

    Hi
    Sections:
    * 5.11.3.3 Attribute Indexes and InvokeAccessor Generated Code
    * 6.9.4.4 Attribute Indexes and InvokeAccessor Generated Code
    Explain the details of the generated code for view object row classes and entity object row classes, respectively.
    As described in the guide, the key benefit of the generated code is not performance, but of type-safe access and having a place to put custom code when needed.
    When you don't have a generated row class, then there is no typesafe method like getSal() to get the Sal attribute.
    Section 4.4.9 Generic Versus Strongly-Typed APIs gives a few more details on that and both 5.11.1.1 Generating Bind Variable Accessors and 5.11.1.2 Generating View Row Attribute Accessors give some concrete examples of the value proposition of the strongly-typed API's.
    Without the typed API's of course, you need to get an attribute value by calling:
    yourRow.getAttribute("SomeAttrName");
    or
    yourRow.getAttribute(3); // integer attribute index (zero-based) [see section 5.11.3.3 in the guide]
    Since it's rare that someone will like to use the numerical approach, then let's assume that people would go with the generic getAttribute("SomeAttrName") way.
    Internally, the framework will need to find the attribute index based on the attribute name before accessing the attribute. If you perform this attribute-name-to-attribute-index lookup a zillion times, then of course it would end up representing some overhead that you could avoid by either using the numerical index yourself, or generating the strongly-typed class. The generated code avoids the need to lookup the attribute by string name and also provides the compile-time checking (i.e. typesafe access) in your code.
    So, the performance of using the attribute index access (or the generated code) that is ever-so-slightly faster than using the attribute access by string name, not necessarily the generation of code itself that makes things faster. The performance shouldn't be the basis of the strategy decision, but if they see the value of typesafe access then it might be worth the extra files -- some perhaps containing no custom code -- being generated for them.
    Hope this helps
    rgds
    susan

  • Where are the JSP  Java Files stored in WL8?

    Hi there,
              i'm looking for the .java-Files generated from the .jsp-File. I have already set the property "JSPKeep Generated".
              Thanks for your help
              cheers immo

    I don't know if this varies by WLS version, and you haven't specified which version you are using, but in my WLS 8.1SP2 distribution, they are stored at:
              c:/bea/user_projects/domains/<domain>/<server>/.wlnotdelete/extract/.../jsp_servlet/.../*.java

  • Unable to compile the JAXB generated java files

    Hi
    I am using JAXB 2.0 API for binding process.
    I have products.xml file as
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE PRODUCTDATA SYSTEM "products.dtd">
    <PRODUCTDATA>
    <PRODUCT PRODID="P001" CATEGORY="Books">
    <PRODUCTNAME>Gone with the wind</PRODUCTNAME>
    <DESCRIPTION>This is abt American Civil War</DESCRIPTION>
    <PRICE>25.00</PRICE>
    <QUANTITY>3</QUANTITY>
    </PRODUCT>
    </PRODUCTDATA>
    and products.xsd(Schema file) as
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element name="PRODUCTDATA" type="prdt"/>
    <xsd:complexType name="prdt">
    <xsd:sequence>
    <xsd:element name="PRODUCT" type="prd" maxOccurs="unbounded" />
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="prd">
    <xsd:sequence>
    <xsd:element name="PRODUCTNAME" type="xsd:string"/>
    <xsd:element name="DESCRIPTION" type="xsd:string"/>
    <xsd:element name="PRICE" type="xsd:positiveInteger"/>
    <xsd:element name="QUANTITY" type="xsd:nonNegativeInteger"/>
    </xsd:sequence>
    <xsd:attribute name="PRODID" type="pid" use="required"/>
    <xsd:attribute name="CATEGORY" type="xsd:string" use="optional"/>
    </xsd:complexType>
    <xsd:simpleType name="pid">
    <xsd:restriction base="xsd:string">
    <xsd:pattern value="[p]{1}/d{3}"/>
    <xsd:length value="4"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:schema>
    I am converting these schema file to java files by using binding compiler xjc.
    So that three java files are genearated automatically.
    1) ObjectFactory.java
    // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.0 in JDK 1.6
    // See http://java.sun.com/xml/jaxb
    // Any modifications to this file will be lost upon recompilation of the source schema.
    // Generated on: 2008.06.23 at 04:09:25 PM IST
    package testing.jaxb;
    import javax.xml.bind.JAXBElement;
    import javax.xml.bind.annotation.XmlElementDecl;
    import javax.xml.bind.annotation.XmlRegistry;
    import javax.xml.namespace.QName;
    * This object contains factory methods for each
    * Java content interface and Java element interface
    * generated in the testing.jaxb package.
    * <p>An ObjectFactory allows you to programatically
    * construct new instances of the Java representation
    * for XML content. The Java representation of XML
    * content can consist of schema derived interfaces
    * and classes representing the binding of schema
    * type definitions, element declarations and model
    * groups. Factory methods for each of these are
    * provided in this class.
    @XmlRegistry
    public class ObjectFactory {
    private final static QName PRODUCTDATAQNAME = new QName("", "PRODUCTDATA");
    * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: testing.jaxb
    public ObjectFactory() {
    * Create an instance of {@link Prd }
    public Prd createPrd() {
    return new Prd();
    * Create an instance of {@link Prdt }
    public Prdt createPrdt() {
    return new Prdt();
    * Create an instance of {@link JAXBElement }{@code <}{@link Prdt }{@code >}}
    @XmlElementDecl(namespace = "", name = "PRODUCTDATA")
    public JAXBElement<Prdt> createPRODUCTDATA(Prdt value) {
    return new JAXBElement<Prdt>(_PRODUCTDATA_QNAME, Prdt.class, null, value);
    2)Prdt.java
    // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.0 in JDK 1.6
    // See http://java.sun.com/xml/jaxb
    // Any modifications to this file will be lost upon recompilation of the source schema.
    // Generated on: 2008.06.23 at 04:09:25 PM IST
    package testing.jaxb;
    import java.util.ArrayList;
    import java.util.List;
    import javax.xml.bind.annotation.XmlAccessType;
    import javax.xml.bind.annotation.XmlAccessorType;
    import javax.xml.bind.annotation.XmlElement;
    import javax.xml.bind.annotation.XmlType;
    * <p>Java class for prdt complex type.
    * <p>The following schema fragment specifies the expected content contained within this class.
    * <pre>
    * <complexType name="prdt">
    * <complexContent>
    * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
    * <sequence>
    * <element name="PRODUCT" type="{}prd" maxOccurs="unbounded"/>
    * </sequence>
    * </restriction>
    * </complexContent>
    * </complexType>
    * </pre>
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "prdt", propOrder = {
    "product"
    public class Prdt {
    @XmlElement(name = "PRODUCT", required = true)
    protected List<Prd> product;
    * Gets the value of the product property.
    * <p>
    * This accessor method returns a reference to the live list,
    * not a snapshot. Therefore any modification you make to the
    * returned list will be present inside the JAXB object.
    * This is why there is not a <CODE>set</CODE> method for the product property.
    * <p>
    * For example, to add a new item, do as follows:
    * <pre>
    * getPRODUCT().add(newItem);
    * </pre>
    * <p>
    * Objects of the following type(s) are allowed in the list
    * {@link Prd }
    public List<Prd> getPRODUCT() {
    if (product == null) {
    product = new ArrayList<Prd>();
    return this.product;
    3) Prd.java
    // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.0 in JDK 1.6
    // See http://java.sun.com/xml/jaxb
    // Any modifications to this file will be lost upon recompilation of the source schema.
    // Generated on: 2008.06.23 at 04:09:25 PM IST
    package testing.jaxb;
    import java.math.BigInteger;
    import javax.xml.bind.annotation.XmlAccessType;
    import javax.xml.bind.annotation.XmlAccessorType;
    import javax.xml.bind.annotation.XmlAttribute;
    import javax.xml.bind.annotation.XmlElement;
    import javax.xml.bind.annotation.XmlType;
    * <p>Java class for prd complex type.
    * <p>The following schema fragment specifies the expected content contained within this class.
    * <pre>
    * <complexType name="prd">
    * <complexContent>
    * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
    * <sequence>
    * <element name="PRODUCTNAME" type="{http://www.w3.org/2001/XMLSchema}string"/>
    * <element name="DESCRIPTION" type="{http://www.w3.org/2001/XMLSchema}string"/>
    * <element name="PRICE" type="{http://www.w3.org/2001/XMLSchema}positiveInteger"/>
    * <element name="QUANTITY" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger"/>
    * </sequence>
    * <attribute name="CATEGORY" type="{http://www.w3.org/2001/XMLSchema}string" />
    * <attribute name="PRODID" use="required" type="{}pid" />
    * </restriction>
    * </complexContent>
    * </complexType>
    * </pre>
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "prd", propOrder = {
    "productname",
    "description",
    "price",
    "quantity"
    public class Prd {
    @XmlElement(name = "PRODUCTNAME", required = true)
    protected String productname;
    @XmlElement(name = "DESCRIPTION", required = true)
    protected String description;
    @XmlElement(name = "PRICE", required = true)
    protected BigInteger price;
    @XmlElement(name = "QUANTITY", required = true)
    protected BigInteger quantity;
    @XmlAttribute(name = "CATEGORY")
    protected String category;
    @XmlAttribute(name = "PRODID", required = true)
    protected String prodid;
    * Gets the value of the productname property.
    * @return
    * possible object is
    * {@link String }
    public String getPRODUCTNAME() {
    return productname;
    * Sets the value of the productname property.
    * @param value
    * allowed object is
    * {@link String }
    public void setPRODUCTNAME(String value) {
    this.productname = value;
    * Gets the value of the description property.
    * @return
    * possible object is
    * {@link String }
    public String getDESCRIPTION() {
    return description;
    * Sets the value of the description property.
    * @param value
    * allowed object is
    * {@link String }
    public void setDESCRIPTION(String value) {
    this.description = value;
    * Gets the value of the price property.
    * @return
    * possible object is
    * {@link BigInteger }
    public BigInteger getPRICE() {
    return price;
    * Sets the value of the price property.
    * @param value
    * allowed object is
    * {@link BigInteger }
    public void setPRICE(BigInteger value) {
    this.price = value;
    * Gets the value of the quantity property.
    * @return
    * possible object is
    * {@link BigInteger }
    public BigInteger getQUANTITY() {
    return quantity;
    * Sets the value of the quantity property.
    * @param value
    * allowed object is
    * {@link BigInteger }
    public void setQUANTITY(BigInteger value) {
    this.quantity = value;
    * Gets the value of the category property.
    * @return
    * possible object is
    * {@link String }
    public String getCATEGORY() {
    return category;
    * Sets the value of the category property.
    * @param value
    * allowed object is
    * {@link String }
    public void setCATEGORY(String value) {
    this.category = value;
    * Gets the value of the prodid property.
    * @return
    * possible object is
    * {@link String }
    public String getPRODID() {
    return prodid;
    * Sets the value of the prodid property.
    * @param value
    * allowed object is
    * {@link String }
    public void setPRODID(String value) {
    this.prodid = value;
    Next step is to compile these three files
    So I am compiling these three files it gives me compiler error as:
    testing/jaxb/ObjectFactory.java:31: illegal character: \64
    @XmlRegistry
    ^
    testing/jaxb/ObjectFactory.java:63: illegal character: \64
    @XmlElementDecl(namespace = "", name = "PRODUCTDATA")
    ^
    testing/jaxb/ObjectFactory.java:65: <identifier> expected
    return new JAXBElement<Prdt>(_PRODUCTDATA_QNAME, Prdt.class, null, value
    ^
    testing/jaxb/ObjectFactory.java:65: <identifier> expected
    return new JAXBElement<Prdt>(_PRODUCTDATA_QNAME, Prdt.class, null, value
    ^
    testing/jaxb/ObjectFactory.java:65: '{' expected
    return new JAXBElement<Prdt>(_PRODUCTDATA_QNAME, Prdt.class, null, value
    ^
    testing/jaxb/Prdt.java:38: illegal character: \64
    @XmlAccessorType(XmlAccessType.FIELD)
    ^
    testing/jaxb/Prdt.java:39: illegal character: \64
    @XmlType(name = "prdt", propOrder = {
    ^
    testing/jaxb/Prdt.java:44: illegal character: \64
    @XmlElement(name = "PRODUCT", required = true)
    ^
    testing/jaxb/Prdt.java:45: <identifier> expected
    protected List<Prd> product;
    ^
    testing/jaxb/Prdt.java:69: <identifier> expected
    public List<Prd> getPRODUCT() {
    ^
    testing/jaxb/Prdt.java:75: ';' expected
    ^
    testing/jaxb/Prd.java:43: illegal character: \64
    @XmlAccessorType(XmlAccessType.FIELD)
    ^
    testing/jaxb/Prd.java:44: illegal character: \64
    @XmlType(name = "prd", propOrder = {
    ^
    testing/jaxb/Prd.java:52: illegal character: \64
    @XmlElement(name = "PRODUCTNAME", required = true)
    ^
    testing/jaxb/Prd.java:53: <identifier> expected
    protected String productname;
    ^
    testing/jaxb/Prd.java:54: illegal character: \64
    @XmlElement(name = "DESCRIPTION", required = true)
    ^
    testing/jaxb/Prd.java:55: <identifier> expected
    protected String description;
    ^
    testing/jaxb/Prd.java:56: illegal character: \64
    @XmlElement(name = "PRICE", required = true)
    ^
    testing/jaxb/Prd.java:57: <identifier> expected
    protected BigInteger price;
    ^
    testing/jaxb/Prd.java:58: illegal character: \64
    @XmlElement(name = "QUANTITY", required = true)
    ^
    testing/jaxb/Prd.java:59: <identifier> expected
    protected BigInteger quantity;
    ^
    testing/jaxb/Prd.java:60: illegal character: \64
    @XmlAttribute(name = "CATEGORY")
    ^
    testing/jaxb/Prd.java:61: <identifier> expected
    protected String category;
    ^
    testing/jaxb/Prd.java:62: illegal character: \64
    @XmlAttribute(name = "PRODID", required = true)
    ^
    testing/jaxb/Prd.java:63: <identifier> expected
    protected String prodid;
    ^
    25 errors
    I want all three files to compiled successfully.If it is compiled only then I will continue on Unmarshalling process

    I suspect you are trying to compile the files one by one. You may also be trying to compile them disregarding the package structure.
    From your post, I gather these files are in the package: com.geindustrial.sqms
    Therefore, if they are not so already, put them under a directory structure:
    com/geindustrial/sqms
    and then compile with:
    javac com/geindustrial/sqms/AddCtq.java com/geindustrial/sqms/Ctq.java com/geindustrial/sqms/VariableData.java
    (The above is all on one line.)
    HTH,
    Manuel Amago.

  • How to generate .java file from xml?

    Does anyone have an idea of how i can generate .java file from xml file? Tools like jakrata digester, JOX are there but both of them are useful in populating java beans from xml. My requirement is to generate .java file from .xml with getters and setters methods for xml elements/attributes. I also tried JAXB. But JAXB generates bunch of files and most of them are interfaces, which is not going to work for me.
    For e.g. i have following xml file and i want to generate Address.java file with getters/setters. Any ideas?
    <?xml version='1.0' encoding='UTF-8' ?>
    <Address>
    <FirstName type="String"/>
    <PoBox type="int"/>
    </Address>
    Thanks,
    Vicky

    Crosspost.
    http://forum.java.sun.com/thread.jsp?thread=475564&forum=4&message=2205846

  • How to Generate a Java file for a JSP Page

    Hi ,
    I am using weblogic11 .
    I am working on a JSP page which nearly consists of 4000 lines of code.
    I need to debug the file , but weblogic server is not generating the java file for the JSP pages .
    Please let me know how can i genertae Java file for the jsp pages ??

    JSPs are compiled into servlets automatically and those classes are stored in WEB-INF/classes folder. Servlet engine handles servlets.

  • How  to use the RSA  key files generated by Crypto++ in java

    Hi - Good day to all :)
    I have two RSA key files(private key file and public key file) generated by Crypto++ 5.2.1:
    code here:
    void GenerateRSAKey(unsigned int keyLength, const char *privFilename, const char *pubFilename, const char *seed)
         RandomPool randPool;
         randPool.Put((byte *)seed, strlen(seed));
         RSAES_OAEP_SHA_Decryptor priv(randPool, keyLength);
         HexEncoder privFile(new FileSink(privFilename));
         priv.DEREncode(privFile);
         privFile.MessageEnd();
         RSAES_OAEP_SHA_Encryptor pub(priv);
         HexEncoder pubFile(new FileSink(pubFilename));
         pub.DEREncode(pubFile);
         pubFile.MessageEnd();
    }generated private key is:
    30820273020100300D06092A864886F70D01010105000482025D3082025902010002818100E19891D888651221AF315B369873F01910D097F554723EE8748FA230F2B954EBEFC57CB402DD03333BA9514AB5256EF92BE714C710D166A1D86CB7A11EFB4499506826AB873F5036B92F07BBB3ABB8F562646DE6E11031C46542633605FDE4A31E0E0A8651B4BC7743C18266D664E59E713D7595ED3D3B6C2F94C6072E276171020111028180425A0CC7372CC918F74AC07978221970C8B5D25736F46CDAF51B2FB40B27735473B28E16D3AA6A5A5CD7724326382FB2B28F4258AA97F1026CD4AE7AAEC25F77D54DF69BB3979E2893EBB071DA5752871BC8C60F9B5546C466F3103884D6B67FADCD51B17899991989507CB16F45DD76EC0DEDA1BD979ED1A101179F9687E9E5024100FFCAAEF814F12DCBDF20D4CFDD5007738DAAE45AE7EC2FD8E23A9EFCA85FADCAF61B03BFEA6FE6023E78700F804C4C275375A85BC367FE39D5FB2E0F0A4555F7024100E1C797A20FB108ADAFECDB025665FF500FDBB4F0829BAAE95833C046005DCA593F6C2437CD3A9AB7CC04372F422B0EE2C7FED87AA53821366962AE0CBDAD89D702402D23C48621D035421851167F08F00150A08791B5B074F96282469486F0895AE794D7973FFC31DD4BB0ABD78A43D13A9D8732E1799AF43BEC16B3DAF3986696B30240351FE7716D1A98A156921569F6361DF4B86FEE56B551CDDC8D395A6AD2E8E4513C1971EF031CD91C3000FDED00829A173E1DD895540D34FDBE71925D59CE7AC9024014A4347A1E7408FBB0A9AE5064FA58CAF2BCA5C00B8082A46EECABFA5CBF61364FEE81E2C049F399A2F601C802DD54A6D9340FABE62D6D1F913026C8B3764AFEI use this key in java
    BufferedInputStream input=new BufferedInputStream(new FileInputStream("privateKey"));
              int size= input.available();
              byte[]buffer=new byte[size];
              input.read(buffer);
    X509EncodedKeySpec lX509EncodedKeySpec = new X509EncodedKeySpec(buffer);
              PrivateKey lPrivateKey = KeyFactory.getInstance("RSA").generatePrivate(lX509EncodedKeySpec);there is a exception,at generatePrivate() method
    at sun.security.rsa.RSAKeyFactory.generatePrivate(RSAKeyFactory.java:294)
         at sun.security.rsa.RSAKeyFactory.engineGeneratePrivate(RSAKeyFactory.java:171)
         at java.security.KeyFactory.generatePrivate(KeyFactory.java:322)
         at test.Main.main(Main.java:27)any body can help me?

    X509 is for public keys, not private keys. You need PKCS8 using PKCS8EncodedKeySpec on the hex decoded private key string.
    Your method for reading the private key from the file is flawed. The method available() does not guarantee to give you the file length. This is easy to prove since files can be longer than Integer.MAX_VALUE and available() returns an 'int'. To get the file length use File.length() which returns a 'long'. Also, reading from an InputStream using
    input.read(buffer); does not guarantee to read all the bytes. For that you need to use something like DataInputStream.readFully().

  • UTF-8 csv file generated by Java can't be displayed correctly on Excel 2000

    Hi, I have a question about the file geneated by Java in UTF-8 format. If I have a file named "foo.csv" generated by my java code like this:
    writer = new OutputStreamWriter(new FileOutputStream("foo.csv"), "UTF-8");
    Then I write some data loaded from a MS SQL 2000 server to this file. Some data are in German or french characters. After the file is generated, if I open it in notepad, all the characters in the file looks good. The file is in UTF-8 format. The only problem is that when I open this csv file in MS Excel 2000, all the non-english character display incorrectly. For example:
    "VERKTYGSTEKNIK I V�XJ� AB" display as itself in notepad, but it display as "VERKTYGSTEKNIK I V��XJ�� AB" in the MS Excel. I don't know the reason. If I don't have the encoding in the writer, then the file generated looks fine in the Excel (Even the non-English characters), in this case, the file is generated in ANSI format. But my client wants the file in UTF-8 format and also want to view it in Excel.
    Why the UTF-8 file generated by Java can't be displayed correctly in Excel 2000?
    My environment is:
    OS: Window 2000 Server English Version
    JDK: Sun jdk1.3.1
    Thanks

    - Does ms excell actually support UTF-8
    Yes. I believed that we installed some international add-on which is not in default installnation. Anyway, other UTF-8 or UTF-16 file can be openned and viewed by Excel without any problem.
    - have you verifide that the file is viewable as a UTF-8 -encoded file
    I think so. If I open it into Notepad and choose "save as", the file type if UTF-8 file
    - Try opening the file in a program you are confident
    that it support UTF-8 - eg. Mozilla...
    I will try that.
    - Check that your UTF-8 -encoded file has a UTF-8 identifier (0xFEFF ?)
    as the first character
    The unicode-16(LE or BE) file I got from internet, I found there is always two bytes in the front. (0xFEFF or 0xFFFE). My UTF-8 file generated by java doesn't have that. But should UTF-8 file also has this kind of specifcal bytes in the front? If I manually add these bytes in the front of my file using Ultraeditor and open it in Excel2000, it didn't help.
    - Try using another spreadsheet program that supports UTF-8
    Do you know any other spreadsheet program supports csv file and UTF-8.

  • Autotype won't generate java files from wsdl

    Hi!
    I'm having troube generating the java classes for a non built-in datatype from
    wsdl. The autotype ant task will only generate a types.xml file, but it does not
    generate the corresponding java files for the non-built in datatypes, nor does
    it generate any serializer/deserializer classes.
    Thanks in advance for any help on this!
    The WSDL defines the following datatype:
    <xsd:complexType name="w2Edisoprec">
              <xsd:complexContent>
                   <xsd:restriction base="SOAP-ENC:Array">
                        <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="w2EdisoprecArrayItem[]"/>
                   </xsd:restriction>
              </xsd:complexContent>
         </xsd:complexType>
         <xsd:complexType name="w2EdisoprecArrayItem">
              <xsd:sequence>
                   <xsd:element name="sAs_soptunnus" type="xsd:string" minOccurs="1" maxOccurs="1"/>
                   <xsd:element name="sAs_soptun_alk" type="xsd:string" minOccurs="1" maxOccurs="1"/>
                   <xsd:element name="lAs_soptun_lop" type="xsd:string" minOccurs="1" maxOccurs="1"/>
                   <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
              </xsd:sequence>
              <xsd:anyAttribute processContents="lax"/>
         </xsd:complexType>
         <xsd:element name="w2Edisoprec" type="w2EdisoprecArrayItem" />
    I'm using the following build.xml file:
    <project name="buildWebservice" default="generate-types">
         <target name="generate-types">
         <autotype
         wsdl="http://localhost/Lak_hEdisopLK.wsdl"
         packageName="ssi3Client.types"
         destDir="c:/tuxedo2sap/l158/ssi3/wsdl/types"
         />
         </target>
    </project>
    The types.xml file generated by autotype is:
    <wsdd:type-mapping xmlns:wsdd="http://www.bea.com/servers/wls70"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
    <wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
    class-name="javax.xml.soap.SOAPElement"
    type="lcl0:w2Edisoprec"
    serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
    deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
    </wsdd:type-mapping-entry>
    <wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
    class-name="javax.xml.soap.SOAPElement"
    type="lcl0:v2EdisoprecArrayItem"
    serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
    deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
    </wsdd:type-mapping-entry>
    <wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
    class-name="javax.xml.soap.SOAPElement"
    type="lcl0:w2EdisoprecArrayItem"
    serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
    deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
    </wsdd:type-mapping-entry>
    <wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
    class-name="javax.xml.soap.SOAPElement"
    type="lcl0:v2Edisoprec"
    serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
    deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
    </wsdd:type-mapping-entry>
    </wsdd:type-mapping>

    Hi Hans,
    It is a known issue that the XML schema processor in WLS 7.0, doesn't currently
    handle the <xsd:anyAttribute processContents="lax"/> and <xsd:any processContents="lax"
    minOccurs="0" maxOccurs="unbounded"/> lines in your xsd. This may be corrected
    in the next service pack - SP2.
    Regards,
    Mike Wooten
    "Hans Dumbrajs" <[email protected]> wrote:
    >
    Hi!
    I'm having troube generating the java classes for a non built-in datatype
    from
    wsdl. The autotype ant task will only generate a types.xml file, but
    it does not
    generate the corresponding java files for the non-built in datatypes,
    nor does
    it generate any serializer/deserializer classes.
    Thanks in advance for any help on this!
    The WSDL defines the following datatype:
    <xsd:complexType name="w2Edisoprec">
              <xsd:complexContent>
                   <xsd:restriction base="SOAP-ENC:Array">
                        <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="w2EdisoprecArrayItem[]"/>
                   </xsd:restriction>
              </xsd:complexContent>
         </xsd:complexType>
         <xsd:complexType name="w2EdisoprecArrayItem">
              <xsd:sequence>
                   <xsd:element name="sAs_soptunnus" type="xsd:string" minOccurs="1"
    maxOccurs="1"/>
                   <xsd:element name="sAs_soptun_alk" type="xsd:string" minOccurs="1"
    maxOccurs="1"/>
                   <xsd:element name="lAs_soptun_lop" type="xsd:string" minOccurs="1"
    maxOccurs="1"/>
                   <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
              </xsd:sequence>
              <xsd:anyAttribute processContents="lax"/>
         </xsd:complexType>
         <xsd:element name="w2Edisoprec" type="w2EdisoprecArrayItem" />
    I'm using the following build.xml file:
    <project name="buildWebservice" default="generate-types">
         <target name="generate-types">
         <autotype
         wsdl="http://localhost/Lak_hEdisopLK.wsdl"
         packageName="ssi3Client.types"
         destDir="c:/tuxedo2sap/l158/ssi3/wsdl/types"
         />
         </target>
    </project>
    The types.xml file generated by autotype is:
    <wsdd:type-mapping xmlns:wsdd="http://www.bea.com/servers/wls70"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
    <wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
    class-name="javax.xml.soap.SOAPElement"
    type="lcl0:w2Edisoprec"
    serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
    deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
    </wsdd:type-mapping-entry>
    <wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
    class-name="javax.xml.soap.SOAPElement"
    type="lcl0:v2EdisoprecArrayItem"
    serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
    deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
    </wsdd:type-mapping-entry>
    <wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
    class-name="javax.xml.soap.SOAPElement"
    type="lcl0:w2EdisoprecArrayItem"
    serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
    deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
    </wsdd:type-mapping-entry>
    <wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
    class-name="javax.xml.soap.SOAPElement"
    type="lcl0:v2Edisoprec"
    serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
    deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
    </wsdd:type-mapping-entry>
    </wsdd:type-mapping>

Maybe you are looking for

  • Lion slow to boot

    Running a macbook pro 2012 - Version 10.7.4 Startup time seems to be getting much slower than before.. It also hangs on the grey startup screen sometimes. Just verified and repaired disk, doesn't seem to get better. Much help would be appreciated, th

  • I cant find the "manage devices" on my "account information"

    Can someone help me on my account information page i cant find the "Manage devices" someone help me please

  • CCA and PCA figures not tie-up

    We are doing reconciliation between PCA and CCA figures. One thing that i noticed is that in CCA (S_ALR_87013611), there are lot's of columns that represents amounts (sometimes these amount columns varies) and i am bit confused of what columns shall

  • My movie file is "corrupt", how can I redownload it?

    So I downloaded a movie and it was downloading but then it suddenly stopped and said that there is an error and that my movie file is corrupt. It then told me to go to the "Check for downloads" in the iTunes menu but I cannot find that and when I try

  • Gaussian blur-- posterization

    Hi all- In a current project, I'm using some blurring effects through time (either a shot starts off blurry and comes into focus, or the reverse direction). All of the raw footage starts out completely in focus. I have been using the "Gaussian Blur"