The command oracg fails to generate Java source files

I tried to use the command 'oracg -schema Openshipments.xdr' to generate Java source files from
XML schema file Openshipments.xdr . Although the schema file is valid, the command oracg fails with following error messages :
file:/D:/romel/project/UPS/doc/Openshipments.xdr<Line 6, Column 47>:
XSD-2026: (Error) Invalid attribute 'name' in element 'element'
file:/D:/romel/project/UPS/doc/Openshipments.xdr<Line 6, Column 47>:
XSD-2030: (Error) Element 'schema' has invalid namespace:
'urn:schemas-microsoft-com:xml-data'
file:/D:/romel/project/UPS/doc/Openshipments.xdr<Line 6, Column 47>:
XSD-2027: (Error) Invalid element 'ElementType' in 'schema'
file:/D:/romel/project/UPS/doc/Openshipments.xdr<Line 6, Column 47>:
XSD-2027: (Error) Invalid element 'ElementType' in
'schema'file:/D:/romel/project/UPS/doc/Openshipments.xdr<Line 6, Column
47>: XSD-2027: (Error) Invalid element 'ElementType' in 'schema'
file:/D:/romel/project/UPS/doc/Openshipments.xdr<Line 6, Column 47>:
XSD-2027: (Error) Invalid element 'ElementType' in 'schema'
file:/D:/romel/project/UPS/doc/Openshipments.xdr<Line 6, Column 47>:
XSD-2027: (Error) Invalid element 'ElementType' in 'schema'
file:/D:/romel/project/UPS/doc/Openshipments.xdr<Line 6, Column 47>:
XSD-2027: (Error) Invalid element 'ElementType' in
'schema'file:/D:/romel/project/UPS/doc/Openshipments.xdr<Line 6, Column
47>: XSD-2027: (Error) Invalid element 'ElementType' in 'schema'
file:/D:/romel/project/UPS/doc/Openshipments.xdr<Line 6, Column 47>:
XSD-2027: (Error) Invalid element 'ElementType' in 'schema'
...... the above line is repeated many times
Error: Schema Class Generator failed to generate classes.
oracle.xml.parser.schema.XSDException: Invalid attribute 'name' in
element 'element'

Your schema is not a valid XML Schema. Please check up with the syntax.
Thanks.

Similar Messages

  • Fail to open java source file

    i just learn about java. but i find that i fail to open the java source that i had download from the net. do i need addition software to open it? if i had installed the jbuilder already?

    You should be able to open any .java file in Wordpad or Notepad. JBuilder just makes the code look pretty.

  • How to generate Java source using clientgen WL8.1?

    Hi, does anybody know how to generate Java source code using clientgen task on WL 8.1 Sp4 or SP5? I know WL 9.0 clientgen can do this, but we are still on SP5. Basically I want to look at the source code (I was wondering why it didn't work if I initialize a service impl by passing the WSDL URL string different than the URL specified in the original WSDL file that the clientgen is run against.)
    Does anybody also know how get web service client developed on Axis work on WebLogic without conficting the web service developed on WebLgoic that is running in the same box?
    Thanks for your help!

    hi ,
    As mentioned in the Question, I am unable to find the "Java Proxy Generattion" link in the Int builder.
    Also the help doc says:
    Java proxy generation is no longer supported in subsequent releases. For new developments or when making significant changes to a service interface, use Java proxy generation in SAP NetWeaver Studio instead. More information: Creating Outside-In Web Services, SAP NetWeaver Developer Studio.
    Does that mean that I can no longer generate java proxy from Int builder?
    regards,
    Piyush

  • Generate java source cod/ contect menu

    I am new to JDeveloper, so please excuse the ignorance. I am using JDeveloper 9.0.3.10.35 and UML modelers 9.0.3.9.4. I am going through the JDeveloper tutorial( Modeling Java Classes tutorial). I design a Class model and i try to generate java source code for some of the java interfaces in the design. The tutorial sates: Choose Generate|Java from the contect menu.
    Any idea where is this mysterious conext menu? There is a generate option under model but every thing is grayed out...Any help would be appriciated.

    Thanks Lisa. The problem really was with the poor instructions provided and a tired mind. There is no "context menu" ala right click on something BTW, right clicking on the main design page does not do any thing and right clicking a class only gives the properties. Anyway, what was meant, i think is to select Java from the main menu "model" and then select Generate/Java. Now since the code is "automatically generated", the Java option was grayed out and that threw me off.
    To descover all this i re-did the whole tutorial with only one class and viola, the code was there.

  • Getting all the members (variables, methods AND method bodies) of a java source file

    For a project I want to programmatically get access to the members of java source file (member variables, methods etc) as well as to the source code of those members. My question is what is the best method for this? So far I have found the following methods:
    Use AST's provided by the Java Source API and Java Tree API, as discussed in the following posts:
    http://today.java.net/pub/a/today/2008/04/10/source-code-analysis-using-java-6-compiler-apis.html
    http://weblogs.java.net/blog/timboudreau/archive/2008/02/see_java_code_t.html
    http://netbeans.dzone.com/announcements/new-class-visualization-module
    This has the disadvantage that the classes actually have to be compilable. When I look at the Netbeans Navigator view however, it provides me with a nicely formatted UI list, regardless of the "compilable" state of the class.
    Thus I started looking at how to do this... The answer appears to be through the use of tools such as JavaCC: https://javacc.dev.java.net/
    ANTLR: http://www.antlr.org/
    which are lexers and parsers of source code. However, since the Navigator panel already does this, couldn't I use part of this code to get me the list of variables and methods in a source file? Does the Navigator API help in this regard?
    Another route seems to be through tools such as
    BeautyJ: http://beautyj.berlios.de/
    which run on top of JavaCC if I am correct, and which has the ability to provide a clean view on your java code (or an XML view). However, BeautyJ does not seem to be too actively developed, and is only j2se1.4 compatible.
    I hope someone can shed a light on the best way to go about what I want to achieve. Somebody already doing this?
    (I crossposted on the Netbeans forums too, hope this is OK...)

    I'm currently developing a LaTeX editor(MDI) and I do the same thing, but I don't know what exactly do you need.

  • Error while compiling the ejb java source files.................

    hi,
    i am new to ejb.......
    i have got error while compiling the ejb java source files............
    while compiling..........of this three i ahve got err in ejb home interface....
    ejb remote interface - succeded
    ejb bean class - succeded
    ejb home interface - error
    the error..............is in the return type of the ejb create() method in ejb home interface(which is the type of remote interface).
    the error message is cannot resolve symbol

    Hi,
    thanks for ur reply .....
    i have done enough searching in all sites including sun forum but in vain
    i have pasted my error below...
    can u plz predict anything from it
    D:\>path=%path%;c:\j2sdk1.4.2_12\bin;
    D:\>set classpath=%classpath%;d:\Sun\AppServer\lib\j2ee.jar;
    D:\>javac d:\Librarys\Library.java
    D:\>javac d:\Librarys\LibraryBean.java
    D:\>javac d:\Librarys\LibraryHome.java
    d:\Librarys\LibraryHome.java:8: cannot resolve symbol
    symbol : class Library
    location: interface Librarys.LibraryHome
    public Library create(String id, String name, String address, String phoneNo
    ) throws RemoteException, CreateException;
    ^
    d:\Librarys\LibraryHome.java:9: cannot resolve symbol
    symbol : class Library
    location: interface Librarys.LibraryHome
    public Library findByPrimaryKey(String id) throws FinderException, RemoteExc
    eption;
    ^
    2 errors
    thanks in advance...

  • Parser converting java source file

    I want to build a parser, which reads a java source and adds stubs at the start and end of a method, which might be for a public/protected/private method.
    This public/protected/private keyowrd , and source file will be passed as command line arguments to the parser.
    The generated output java source file should be similar to input source file with stubs.
    For example , we have a java source file( A.java) file as specified below
    class A{
         public m1(int m1_a, int m1_b){  }
         protected m2(int m2_x, int m2_y){ }
         private m3(int m3_p, int m3_q) {  }
    parser public A.java;
    after parsing it should generate output source file as A.JAVA as specified below
    class A{
         public m1(int m1_a, int m1_b)
    {  System.out.println(" start of "A:m1"" +  time: +"parameters:" +" a="+a ," b="+b)
         System.out.println(" End of "A:m1"" + time: +"parameters:" +" a="+a ," b="+b)
         protected m2(int m2_x, int m2_y){ }
         private m3(int m3_p, int m3_q) {  }
    Are there any tools , example programs , tips on the above problem .
    Anticipating help at the earliest

    HI dcminter,
    I am not talking about performance tuning,
    I need to build a program ( tool) which add System.out.println() statements as specified above for specific methods ( which might be public/private/protected ) which will be passed to the parser along with the java source text file.
    This program(tool)should only convert from one java source text file (A.java) to another java source text (A.JAVA) file , by adding the extra System.out.println() statements.
    Please help in this regard about any sample or tool or tips in solving.
    Awaiting for ur reply
    --gvr123                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Going from .java source files to a .jar

    If my source files are .java, how can I make a .jar out of them from the command line? I have 4 main files, each a class with plenty of inner classes...how do I turn those files into something jar.exe wants? And if/when I get the .jar archive created, how do I set the class with the main class? Thanks for any help guys and gals!
    Fair

    This is not new info, just restating previous replies 1 and 2. (In case there's a misunderstanding...)
    You must create class files by compiling xxx.java with the java compiler, this creates xxx.class, which contains an intermediate 'bytecode' version of the source - it's not readable by humans. The xxx.class file can be interpreted (run) by the java interpreter, thus: java xxx **OR** it can be placed in a jar file, and if done properly the jar file is executable.The 2nd reply by kelle3 gives the way that the jar file is created. If the xxx.class file(s) can be interpreted, they are valid. I'm not sure what you're looking at when you say you 'opened mine', as that requires that you disassemble a class file, which I don't think you're doing.
    If you're still having problems either 1) search the forums for '.jar', there are many threads like this, or 2) go here http://java.sun.com/docs/books/tutorial/jar/basics/index.html
    Hope this assists.

  • Error running batch files from java source file???

    Dear Friends,
    hi,
    this is with response to a doubt i had earlier ,
    i want to run batch files from the java source file ,i tried using this code (here batrun is the batch file name that contains commands to run other java files)
    try
    String [] command = {"c:\\vishal\\finalmain\\batrun"};
    Runtime.getRuntime().exec(command);
    catch(Exception e)
    but i got the following error.
    java.io.IOException: CreateProcess: gnagarrun error= 2
    plz. help me, i tried all combination w/o success,
    in anticipation(if possible give the code after testing)
    Vishal.

    hello there,
    i solved the prob. by using
    cmd /c start filename ,but i need to pass parameters ie
    cmd /c start java "c:/vishal/runfile a b" where a and b are the parameters. but it is not accepting this in Runtime.getRuntime.exec(),
    any solutions ?????????
    regards,
    Vishal

  • Translate java source file

    Dear Friends,
    Does anybody know how to translate java sources file and get all the info from it.
    Like i want to write a parser and want to extract its details and store in datastructures.
    Any similar examples present or any suggessions please inform.
    Thanks in advance.

    there is a tool called javacc which generates parsing code. You can also google for "javacc grammar repository" to find a java grammer you can pick up and start using

  • JSP/Java Source Files

    Where can I obtain the Java source files that create Oracle JSP pages? I'm trying to make changes to a quoting screen and there seem to be all these Java helper classes that create the actual page. I was able to find the class files on the server, but I'm not sure where to obtain the java files. Thanks.

    Hi,
    In your case you have two options.
    1) To verify if the source files was packaged with .war/ear files and change it.
    2) If the file is a JSP file get the .class generated by your oc4j and to use a decompile in this file, but this solution is not recommended, because the .java generated is not 100% compliance with the original file(JSP). If the file isn't the JSP file, use the same decompile, but the result is the same.
    Afonso

  • Do we have to separate java source files and class files after compiled..

    Hi,
    I really confussed with this:
    I have compiled java source files into a package and tried to use but the classes can not be found. Should I separate class and source files after compiled with packages names. I hope you understand what i mean.
    Thank you
    So Jag

    You can choose to separate the source files or not. It sounds like your problem has to do with Classpath and packages.
    If the file c:\base\compute\engine\mysourcefile.java starts with the statement "package engine;" then the fully qualified name of the class is is engine.mysourcefile. If the file c:\base\compute\client\mysourcefile.java starts with the statement "package client;" then its fully qualified name is client.mysourcefile.
    In your source files, whenever you refer to a class from another class, the compiler needs the fully qualified class name. You can either import the class or use the fully qualified name. In order for the compiler to find the class, the c:\base\compute directory must be in the Classpath (assuming the package definitions from above).
    Finally, to launch an application given the above, the command would be "java client.mysourcefile" assuming the main method is in client.mysourcefile.

  • XML to Java source files

    Hi,
    I need to create classes and interfaces for certain elements in my node.xml ( along with a node.dtd).
    In my node.xml I have the following element:
    <exception name="XXNotLockedException">
    <description>The xxxx to be tested was not in administrative state LOCKED.</description>
    <exceptionParameter name="message">
    <dataType>
    <string/>
    </dataType>
    </exceptionParameter>
    </exception>
    from this I want to generate a java source file like below.
    Is it a possible and good way to do it? Or is it the old SAX with events that shall be used?
    I have managed to generate java files but they are only the default ones.
    All help appreciated from more experienced programmers.
    //Mikael
    Source file
    package se.company.xxx.bcm.iface;
    public class XXNotLockedException
    extends se.company.xxframework.XXAccessException
    * Constructor
    public XXNotLockedException()
    super("XXNotLocked");

    I would say using XSLT would be easier to understand than a SAX events program. And more flexible, too, if your requirements changed.

  • Generate xml source file for Oracle Order Capture Print Quote

    Hi,
    I am new to xml and need to work on creating templates for Print Quote.
    I am trying to generate the xml source file for which I enabled the report in system administrator and set the output to XML and assigned to Quoting Reports responsiblity. I then assigned XML Report Publisher to the same responsiblity.
    I ran the report (Print Quote) and then I am trying to run the XML Report Publisher but I cannot get the request id in the list of values.
    I am able to generate xml source file for other reports like Printed Purchase Order etc.,
    The view output for the (Print Quote) report is as follows:
    <?xml version="1.0" ?>
    - <!-- Generated by Oracle Reports version 6.0.8.26.0
    -->
    <ASOPQTER />
    How do I get the xml source file? Or are there seeded templates that I can use to create more templates? Any help would be appreciated. Thanks Ravi

    Hi, I am in the same position - did this issue ever ger resolved by anyone. I have done a few XMLP reports successfully now using the Word add-in, but customising the Quote output differs from other standard reports.
    If you look at the data definition for Quote it is a 'dummy' definition and has no XML file attached. Does anyone know how I can get the XML format for the report output?
    Also the template uses XSL-FO ?!?!?! rather than RTF - not sure how to work with this, the Oracle docs are not very helpful in this regard either.
    Has anyone successfully managed to customise the Quote print report? Many thanks,
    Roger

  • How can I share a *.java source file across multiple projects in NetBeans?

    I'm sure this simple and a pretty common operation but how can I share a *.java source file across multiple projects in NetBeans? Right now I keep cut, coping and pasting the same source file between multiple projects to re-use the same code. But I could I make this source file a library file or something like that so that I could access it from any project. I assume this would be a generic operation but I mentioned NetBeans for clarity. Thanks.

    fiebigc wrote:
    I know I mentioned NetBeans but I'm most interested in the generic method for creating a library of source files that I can call into whatever program I am developing. I've done such a thing in C using header files and such but I'm trying to get a direction on how this is accomplished in Java. I'm sorry if I could edit the title I would. If anyone wants to be specific about NetBeans I welcome that too.
    Edited by: fiebigc on Jun 20, 2008 5:57 PM
    >I know I mentioned NetBeans but I'm most interested in the generic method for creating a library of source files that I can call into whatever program I am developing. I've done such a thing in C using header files and such but I'm trying to get a direction on how this is accomplished in Java. I'm sorry if I could edit the title I would. If anyone wants to be specific about NetBeans I welcome that too.
    Edited by: fiebigc on Jun 20, 2008 5:57 PM
    Create a class library.
    Write your code, compile it to .class files, put those class files in a .jar file and include the jar file in the classpath whenever you want to compile a project against it.

Maybe you are looking for

  • Issue in /130 & /416

    Dear Folks, Here is a scenario, I have created a wage type , the amount of this wage type is add to /130 & /416 . I have written a pcr and the amount of same is adding in /130 &/ 416  but while exeucting the payroll for next month, amount stored in /

  • Set body background image in reflow

    Hi, I've been lookoing up and down to find where I can set a background image for a page in reflow. Cant find it anywhere. If I manually edit the html or css in the files edge generates to add a background image, of course it works, but next time I r

  • Search parameters are getting cleared after search result

    Hi , We have created z component with search and search result view based on only value nodes. we are able to get search result with the give search criteria. After getting result   search parameters are getting refreshed. how to keep those values in

  • Queue Determination by Picking Area

    Dear all, I am having difficulty with the correct Queue determination. Current config has four wild cards (***) and no Door, determining Queue-A I have added one line in my config table where the wild card voor Picking Area is replaced with a Real Pi

  • How do I get delisted

    Sending email doesn't seem to work! xxx.xx.xxx.22 does not like recipient. Remote host said: 550 5.7.1 Service unavailable; Client host [xxx.xx.xx.11] blocked using Blocklist 1, mail from IP banned; To request removal from this list please forward th