How to create java classes when multiple xsd files with same root element

Hi,
I got below error
12/08/09 16:26:38 BST: [ERROR] Error while parsing schema(s).Location []. 'resultClass' is already defined
12/08/09 16:26:38 BST: [ERROR] Error while parsing schema(s).Location []. (related to above error) the first definition appears here
12/08/09 16:26:38 BST: Build errors for viafrance; org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal 'org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.7.1:generate': Mojo execution failed.
I tried genarate java classes from multiple xsd files, but getting above error, here in .xsd file i have the <xe: element="resultClass"> in all .xsd files.
So I removed all .xsd files accept one, now genarated java classes correctly. but i want to genarte the java classes with diffrent names with out changing .xsd
Can you please tell me any one how to resolve this one......
regards
prasad.nadendla

Gregory:
If you want to upload several Java classes in one script the solution is .sql file, for example:
set define ?
create or replace and compile java source named "my.Sleep" as
package my;
import java.lang.Thread;
public class Sleep {
public static void main(String []args) throws java.lang.InterruptedException {
if (args != null && args.length>0) {
int s = Integer.parseInt(args[0]);
Thread.sleep(s*1000);
} else
Thread.sleep(1000);
create or replace and compile java source named "my.App" as
package my;
public class App {
public static void main(String []args) throws java.lang.InterruptedException {
System.out.println(args[0]);
exit
Then the .sql file can be parsed using the SQLPlus, JDeveloper or SQLDeveloper tools.
HTH, Marcelo.

Similar Messages

  • How to creat the interface of auto CAD file with labview

     Hi
    I have been controling  2-axis Piezo motor  with labview. Now I have to use the dwg or dxf file  to move the piezo controller axis. How I can  transform the  dwg or dxf  file into  decimal number 1, -1   to create interface with my labview.

    Hi Nusrat,
    So it sounds like you want to create a CAD drawing and then control your piezo motor via LabVIEW by moving the CAD drawing?  Is that correct?
    If that is correct - I don't know of a way to do this I'm afraid.  I don't think it's really possible.
    The only potential way to do this is to use SolidWorks as your CAD program and then convert the SolidWorks drawing into an STL file, which can then be imported into LabVIEW as a 3D picture control.  I can't think of any other way to achieve this.
    These examples might help you:
    LabVIEW Interface VIs for SolidWorks
    STL Geometry in 3D Picture Control
    The Pitch Perfect Tuner
    Develop Motion Applications with RIO and SolidWorks
    NI SoftMotion for SolidWorks
    Connect NI LabVIEW and DS SolidWorks
    I hope that helps.
    Oli
    LabVIEW Student Ambassador
    National Instruments UK

  • How to create JAVA Class file from an exisitng JAVA file in JDEVELOPER

    Hi All,
    I have a file called abc.java and i need to generate a class for the same using JDEVELOPER. Please help me what are the steps to be followed. I'm totally new to JAVA and first time working on JDEVELOPER tool.
    Thanks in Advance !

    Being completely new to something is not an argument (or shall we be honest: an excuse?) to not read the manual.
    Just to note: I would pick Eclipse or Netbeans if you're completely new to java. You'll have more chance of finding help either in forums, mailing lists or Google searches. But if you must stick with JDeveloper, the forum is here:
    JDeveloper and ADF

  • Index - How to create an index for multiple InDesign files?

    Hi everyone,
    I'm using InDesign CS2 to create a 250 page catalogue. Most of it is finished now, and I've come to creating the index.
    The catalogue is spread over about 10 InDesign files. How do I create an index for this? No paragraph styles were set up when it was started, but there are character styles.
    I've done some searching - does it need to be booked so I Can index? And can I book it without paragraph styles?
    (I've only been using InDesign for about a year, mostly self taught.)
    Thanks in advance :)
    Naomi

    Creating a book from your files should be no problem at all. ID does
    i not
    synchronize styles across documents -- unless you order it to! (That's what the checkboxes at the left of the book documents are for. Do Not Use, in your case.)
    The Index function itself is book-savvy, but you might want to search this forum for a few recurring problems.

  • How to create send connectors for multiple sites in the same domain?

    Current Scenario:
    We have 2 offices, 1 in London and 1 in India. Both are in the same domain and are connected via VPN. Both have their own separate Exchange 2003 server. Each location sends out their mail via the Default SMTP Virtual Server on their exchange server through
    their local ISP. There are no Send connectors created currently.
    We have now installed an additional Exchange 2010 server with Hub, CAS and Mailbox roles at the London site. Internal mail flow between the sites seems to be working fine.
    I believe the Exchange 2010 needs a Send connector to send out mail to the internet. However as soon as we create a Send connector on Exchange 2010, mail from the older 2003 servers at both sites start to flow out from the exchange 2010 server. This is not
    optimal for our India site since their outgoing mail now has to flow via the VPN to London and out via the new server.
    How can we configure it so that each server sends outgoing mail independently?
    Thanks

    Hi,
    In India site, you can create a SMTP connector which point to the local ISP.
    Thanks.
    Niko Cheng
    TechNet Community Support

  • Can't find the imported java class when run .jsp file

    Hi,
    I want to run a jsp web application using tomcat. I put all my .jsp files under "TOMCAT_HOME/webapps/junmin" directory, and put all .class files under "TOMCAT_HOME/webapps/junmin/WEB-INF/classes" directory. I set up TOMCAT_HOME AND JAVA_HOME already. But when I type in the address like below:
    http://db1.acad.emich.edu:8080/junmin/login.jsp
    The IE will give me error msg indicating that it can't find all the .class files which I imported them in login.jsp file.
    So, does anyone know that if I miss some configuration in order to let the .jsp file recognize the .class files. Thanks a lot!
    Sincerely, Junmin

    Ha, this might be the reason.
    Can I add sth like this:
    <Context path="/junmin" docbase="junmin" debug=0 reloadable=true>
    </Context>
    But in my local computer, I didn't add this <Context> either. It works well.
    Thanks a lot! I will ask the administrator to try this.
    And will write down the reason.
    Sincerely, Junmin

  • JAXB parser fails on multiple xsd files in same namespace

    I am having a problem with JAXB parsing a schema that imports 2 schema files from a similar namespace. Lets say we have 3 schema files A.xsd, B.xsd, and C.xsd as follows:
    A: <xsd:schema xmlns:xsd="<http://www.w3.org/2001/XMLSchema> targetNamespace="A" xmlns="A" xmlns:z="Z" xmlns:jxb="<http://java.sun.com/xml/ns/jaxb> jxb:version="1.0" elementFormDefault="qualified"> <xsd:import namespace="Z" schemaLocation="B.xsd"/> <xsd:import namespace="Z" schemaLocation="C.xsd"/> </xsd:schema>
    B: <xsd:schema xmlns:xsd="<http://www.w3.org/2001/XMLSchema> targetNamespace="Z" xmlns="Z" elementFormDefault="qualified"><xs:element name="BElement"></xs:element></xsd:schema>
    C: <xsd:schema xmlns:xsd="<http://www.w3.org/2001/XMLSchema> targetNamespace="Z" xmlns="Z" elementFormDefault="qualified"> <xs:element name="CElement"></xs:element></xsd:schema>
    The problem we have is that JAXB compiler fails during parsing and complains about an unresolved element (z:CElement) in the second schema (C.xsd) for the single namespace (Z). The complaint is reversed if we flip the order of the imported schema. The exact error is as follows: [ERROR] src-resolve: Cannot resolve the name 'z:CElement' to a(n) element declaration component.
    So the question is, how do we get JAXB to permit the import of 2 or more elements that are defined in individual schema files that belong to the same namespace.
    Thanks for your support,

    Greg,
    I believe that Xerces does not (and is not required to) parse anything other than the first <import> for a given namespace. I think what you are seeing is that Xerces is ignoring the second import for the "Z" namespace and therefore, the JAXB schema compiler is complaining that it can't resolve the element ref.
    Others on this thread may have already covered these work arounds, but here goes:
    1. you can disable JAXB's schema validation check by passing "-nv" to xjc or <arg value="-nv"/> to the ant task. This should allow XJC to get past the xerces behavior and generate proper code. In the current codebase, we are realying on some xerces internals to perform schema validation within XJC.
    2. you might also be able to create another schema file, say Z.xsd, that <includes> all of your schemas belonging to that namespace. Then you can bring all of them in with a single <import> of Z.xsd in A.xsd.
    I haven't tried it, but I think it'll work.
    Greg, FYI we have a very active developer community on Java.net - that's the best place to post these kinds of questions. We (the JAXB team) don't monitor the developer forums as closely. Check it out:
    http://jaxb.dev.java.net
    and join the "users" interest list:
    https://jaxb.dev.java.net/servlets/ProjectMailingListList
    Thanks,
    --Ryan Shoemaker, Sun Microsystems, Inc.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to get the filename when parsing a file with d3l

    All
    After some time have experience with interconnect, IStudio I need the following info. Is it possible to get the filename when parsing a flat file using a d3l? This is needed because we need to store the filename together with the data into the database.
    Any examples or directions to some documents are welcome.
    Regards
    Olivier De Groef

    has anyone some info on this

  • How to create a Debit Memo Request in backend with same behavior to DP91

    There is a special requirement for creating a DMR in backend. Is there any BAPI or function can create a DMR?  Please kindly help me. Thanks a lot!

    Hi
    Refer the link below
    <a href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CAGTFADMSD/CAGTFADMSD.pdf.">BUS2096</a>

  • How to create a class using java script..

    Hi all,
    Iam new to java script and I tried out the following program but its not working..I basically created a class just like a java prog' but Iam not getting any output or error.Iam attaching the code below.
    If I created one function inside the script and create one object its working fine but what should I do when I have a lot of function??so I created a class and put all the function and created an object but its not working..
    Do let me know what changes should I do..Iam attaching the code which I had written. or give me an example of how to create a class with couple of functions using JAVASCRIPT
    Thanks
    Avis_su
    <html>
    <head><title>JSP Page</title></head>
    <body>
    <SCRIPT language = "JavaScript">
    <!--
    //Created classes
    class book
    var title: String;
    var author:String;
    function author()
    doucument.write("Author is " +this.author);
    function tile()
    doucument.write("Title is " +this.title);
    function printall()
    var counter = 0;
    function author();
    function title();
    var chapters = Array[String];
    for(chapter in this chapters)
    counter++;
    document.write("Chapter" counter" :"+this.chapters[chapter]+"<br>");
    var thisbook = new book()
    thisbook.author = "Sivagami";
    thisbook.title = "MS in CS giude";
    thisbook.chapters = new Array[10];
    thisbook[0] = "Prepare to Excell in all ";
    thisbook[1] = "Learn to be happy";
    thisbook[2] = "Learn to be healthy mentally emotionally physically";
    thisbook[3] = "Siva and Subbu along with kidssssss will be successful in future";
    thisbook.printall();
    //-->
    </script>
    </body>
    </html>

    Run this program to get your answer:
    public class AnswerToYourPost {
    public static void main(String args[]) {
    System.out.println("TRUE/FALSE: This question
    ion belongs on a Java forum.\n"
    + "ANSWER: " + ("Javascript" == "Java"));
    }Since when do we compare objects for equality using operator == ?

  • How to trigger a JAVA class when replication is processed?

    Hi,
    How I can trigger a JAVA class when a replication is processed?
    Also I want to get the payload involved in that process.
    Is there any way to do this?
    Please post your suggestions on this...
    Regards,
    Shankar .A

    If you are interested in building your own payload format, check the ContentBuilder interface.
    If you want to get notified, when a replication is triggered, check the Sling event tab in the Felix console (http://localhost:4502/system/console/events). You can register your event OSGI event listener and process that information. See http://sling.apache.org/documentation/tutorials-how-tos/how-to-manage-events-in-sling.html for some more information and samples.
    Jörg

  • Help Needed in Creating Java Class and Java Stored Procedures

    Hi,
    Can anyone tell how can i create Java Class, Java Source and Java Resource in Oracle Database.
    I have seen the Documents. But i couldn't able to understand it correctly.
    I will be helpful when i get some Examples for creating a Java Class, Java Source and Stored Procedures with Java with details.
    Is that possible to Create a Java class in the oracle Database itself ?.
    Where are the files located for the existing Java Class ?..
    Help Needed Please.
    Thanks,
    Murali.v

    Hi Murali,
    Heres a thread which discussed uploading java source file instead of runnable code on to the database, which might be helpful :
    Configure deployment to a database to upload the java file instead of class
    The files for the java class you created in JDev project is located in the myworks folder in jdev, eg, <jdev_home>\jdev\mywork\Application1\Project1\src\project1
    Hope this helps,
    Sunil..

  • How to create a class pool

    Hi how to create a class pool when i tried to create it has shown the following error
    <b>Unable to change program from or to type K
    Message no. DS165
    Diagnosis
    You tried to assign a type to a program that cannot be assigned in the program attributes, but can only be set internally by one of the tools in the ABAP Workbench.
    The following program types are reserved:
    F Reserved for Function Groups
    Function groups are adminstered by the Function Builder, and you can only create or delete them using the Function Builder or the Object Navigator (Transaction SE80).
    K Reserved for Class Defintions
    Class definitions are administered in the Class Builder. You can only create or delete them using the Clas Builder or the Object Navigator.
    J Reserved for Interface Definitions
    Interface definitions are administered in the Clas Builder. You can only create or delete them using the class Builder or the Object Navigator.</b>

    Hi,
    Though you get a popup for different options for different program types like Class pools, function groups etc in SE 38 Program attributes, you can't create them from Se38 transaction.
    They have to be created from different places.
    Class Pools are nothing but creating CLASSes and INTERFACEs using the T Code SE24.
    This needs little Java/OOPs concepts to create and use them.
    Hope this helps.
    Regards,
    Anji

  • Insert/flag data to PV9 (db) with CVP script (Call Studio) and create java class

    Hi all,
    i already created workflow with CVP script using Call studio, i have a problem how to insert call entered digit to PV9 and check the bill customerID with java class.
    The workFlow design:
    1. Customer enter the customerID (sessionID from ICM)
    2. Play the customerID ---> Insert to PV9 (ex: 12390)
    3. Check monthly bill
    4. Option enter another customerID
    5. Back to step 2 ---> Insert to PV9 (ex:12390,12380)
    When we want to create a java class is enough to install default call studio + JDK and create new call studio project? because when i created new call studio project only will be created callflow folder and app.callflow
    thx before,
    darma

    Hi Chintan,
    This'is my callflow design with callStudio
    i want create java class to get value from REST Url, i already have the script but i'm still confused how to deploy it in call studio, my call studio project is like this
    this'is the java source, how to compile and what prerequisites are required?
    /*   1:    */ import com.audium.server.AudiumException;
    /*   2:    */ import com.audium.server.session.ActionElementData;
    /*   3:    */ import com.audium.server.voiceElement.ActionElementBase;
    /*   4:    */ import java.io.BufferedReader;
    /*   5:    */ import java.io.InputStreamReader;
    /*   6:    */ import java.io.PrintStream;
    /*   7:    */ import java.net.URL;
    /*   8:    */ import java.net.URLConnection;
    /*   9:    */ 
    /*  10:    */ public class MyBill
    /*  11:    */   extends ActionElementBase
    /*  12:    */ {
    /*  13:    */   static final int PREDICT_THRESHOLD = 3;
    /*  14:    */   private static String vBill;
    /*  15:    */   
    /*  16:    */   public static void GetDataBill(String strDataBill)
    /*  17:    */     throws Exception
    /*  18:    */   {
    /*  19: 23 */     vBill = "0";
    /*  20:    */     
    /*  21: 25 */     URL strBill = new URL("http://192.168.10.23//wsclient.php?id=" + strDataBill);
    /*  22:    */     
    /*  23:    */ 
    /*  24:    */ 
    /*  25: 29 */     URLConnection hpCon = strBill.openConnection();
    /*  26: 30 */     int len = hpCon.getContentLength();
    /*  27: 32 */     if (len > 0)
    /*  28:    */     {
    /*  29: 36 */       BufferedReader in = new BufferedReader(
    /*  30: 37 */         new InputStreamReader(strBill.openStream()));
    /*  31: 38 */       vBill = in.readLine();
    /*  32:    */     }
    /*  33:    */     else
    /*  34:    */     {
    /*  35: 45 */       vBill = "0";
    /*  36:    */     }
    /*  37: 49 */     System.out.println("YourBill : " + vBill);
    /*  38:    */   }
    /*  39:    */   
    /*  40:    */   public void doAction(String name, ActionElementData actionAPI)
    /*  41:    */     throws AudiumException
    /*  42:    */   {
    /*  43: 63 */     String strCustID = (String)actionAPI.getSessionData("QueueIDs");
    /*  44:    */     try
    /*  45:    */     {
    /*  46: 66 */       GetDataBill(strCustID);
    /*  47:    */     }
    /*  48:    */     catch (Exception e)
    /*  49:    */     {
    /*  50: 69 */       System.out.println("0");
    /*  51:    */     }
    /*  52: 74 */     String balance = vBill.trim();
    /*  53: 81 */     if (balance == "0")
    /*  54:    */     {
    /*  55: 83 */       actionAPI.removeAllSessionData();
    /*  56: 84 */       actionAPI.setSessionData("balance", balance);
    /*  57:    */     }
    /*  58:    */     else
    /*  59:    */     {
    /*  60: 91 */       String strSess = balance.substring(0, 1);
    /*  61: 92 */       String strSess2 = balance.substring(1);
    /*  62:    */       
    /*  63:    */ 
    /*  64: 95 */       actionAPI.setSessionData("StsBill", strSess);
    /*  65: 96 */       actionAPI.setSessionData("ValBill", strSess2);
    /*  66: 99 */       if (strSess > "1")
    /*  67:    */       {
    /*  68:102 */         actionAPI.setSessionData("StsBill", "1");
    /*  69:103 */         actionAPI.setSessionData("balance", strSess2);
    /*  70:    */       }
    /*  76:110 */       if (strSess == "0")
    /*  77:    */       {
    /*  78:112 */         actionAPI.setSessionData("StsBill", "0");
    /*  79:113 */         actionAPI.setSessionData("balance", strSess2);
    /*  80:    */       }
    /*  81:115 */       if (strSess == "9")
    /*  82:    */       {
    /*  83:117 */         actionAPI.setSessionData("StsBill", "9");
    /*  84:118 */         actionAPI.setSessionData("balance", "0");
    /*  85:    */       }
    /*  86:121 */       if (strSess2.trim() == "") {
    /*  87:122 */         actionAPI.setSessionData("balance", "0");
    /*  88:    */       } else {
    /*  89:124 */         actionAPI.setSessionData("balance", strSess2);
    /*  90:    */       }
    /*  91:    */     }
    /*  92:    */   }
    /*  93:    */ }
    please help Me

  • How to use JAVA class in C++

    Hi people,
    is there anyone who knows how I can create and use JAVA class in C++ code. Example I have one JAVA class which works with database.
    One of the methods from this class returns XML string that represent result set. How to create instance of this class inside of C++ and have possibility to call this method.

    Hi, I'm also curious how to solve this.
    My problem is that I call a DLL from C++ that returns several values (e.g. function(a, b, c, &w, &x, &y, &z); )
    and I want to create a java class object that can be used to store these values so I can return 1 object
    Below I've written an abstract of the code
    Can someone help me with the parts in <> ??
    Thanks!
    Sander
    JNIEXPORT jobject JNICALL Java_nativeF(...a,b,c...)
       int w,x;
       float y,z;
       C_DLL_Function(a, b, c, &w, &x, &y, &z);
       //<Create Java Class 'Data' jobject>
       //<Call Data.setvalues(w,x,y,z) >
       return jobject;
    ...in java...
    class Data
      private int jw, jx;
      private float jy, jz;
      public function setvalues(int w, int x, float y, float z)
        jw = w;
        etc... 
    [\code]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • Posting in local currency on foreign currency account/correctionOfValuation

    Hi everybody! I have a problem, and I hope someone will help me. Is there any way to make posting in local currency on account with foreign currency as the account currency? The reason why I'm asking this, is that I have to make corrections to curren

  • Float problems in Dreamweaver CS3

    I am having problems creating a 2-column layout to display my main page content alongside a sidebar containing a simple payment signup form. I have set up DIVs for each... no problem. I have applied a left float property to the sidebar, but I can't g

  • Document Splitting on Balance Sheet Accounts.

    Hello, We have a scenario wherein Document splitting characteristic is profit center and financial posting is as under Dr/Cr   Account     Item Category       Profit Center Dr      B.Sheet1      01000                     No prctr Cr      B.Sheet2    

  • BDC Error in Costing update?

    We added some new cost components. I am running the BDC and get this error? Does anyone know where the config is that is causing this error? The diagnosis is: Diagnosis Customizing of the cost components for cost component structure CL is incorrect.

  • How do i fix error 21?

    when in itunes