JAXB in Jdeveloper 10.1.3.2

Hi,
Does Jdeveloper 10.1.3.2 contains JAXB inbuilt? or do we need to add the api explicitly ?
Can anyone please tell to Add JAXB in Jdeveloper 10.1.3.2?
Thanks in Advance

10.1.3 contains JAXB 1.0 - and you can also add JAXB 2.0 support as described here:
http://java2go.blogspot.com/2008/01/jaxb-10-vs-20-in-jdeveloper-10g.html

Similar Messages

  • Getting XML-32000: (Fatal Error) when using xml.jar of jaxb in jdeveloper 9

    Hi,
    I am trying to use jaxb in jdeveloper 9 to create java objects from an xsd. Any help would be really appreciated.
    I tested the below example with jdeveloper10 and it worked fine as jaxb was introduced in jdeveloper 10 by providing xml.jar.
    I need to use jdeveloper 9 in my project and jdeveloper 9 doesn't have xml.jar. I copied the xml.jar and xmlparserv2.jar from jdeveloper 10 to jdeveloper9. Created a build script to generate the java files for test.xsd.
    The build script works in jdeveloper 10 but gives the following error in jdeveloper 9:
    XML-32000: (Fatal Error) error in Building the Schema
    The test.s simple and is as follows :
    <?xml version="1.0" encoding="windows-1252"?>
    <schema xmlns="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.example.org"
    elementFormDefault="qualified" >
    <element name="exampleElement">
    <annotation>
    <documentation>A sample element</documentation>
    </annotation>
    </element>
    </schema>
    Below is the ant script to generate the jva files from the xsd:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <project default="generate">
    <target name="init">
    <tstamp/>
    </target>
    <path id="build.path">
    <pathelement location="C:\JDeveloper9\jdevbin\lib\xmlparserv2forstudio.jar"/>
    <pathelement location="C:\JDeveloper9\jdevbin\lib\xml.jar"/>
    </path>
    <target name="generate" depends="init">
    <java fork="yes" classname="oracle.xml.jaxb.orajaxb"
    description="generate java code from xml schema"
    classpathref="build.path">
    <arg value="-schema"/>
    <arg value="test.xsd"/>
    <arg value="-outputDir"/>
    Please let me know where I am doing wrong
    Thanks,
    SR
    Edited by: user2188619 on Aug 29, 2008 8:20 AM

    You can not simply swap arround jar files from jdev 10 to jdev 9. You then are also using an entirly different jdk and there probably are some dependencies on it. Will it work if you try to run ant from outside jdev and using a 1.5 jdk?
    Andre

  • JAXB in JDeveloper 11gR1 PS1

    Hello,
    I'm using JDeveloper 11gR1PS1 and I've generated JAXB 2.0 bindings for an XSD I am using (right-click on the XSD and select "Generate JAXB2.0 Content Model").
    In one complex type of the XSD, there's an element of type "xsd:string" whose presence is mandatory when creating an XML document, even if its content is empty. So if I set the field in my JAXB Object to the empty string:
    myJAXBObject.setSomeStringField("");
    myJAXBObject.setSomeOtherStringField("This has a value");I expect to see (after mashalling) this kind of XML:
    <myJAXB>
            <someStringField></someStringField>
            <someOtherStringField>This has a value</someOtherStringField>
    </myJAXB>Instead I get:
    <myJAXB>
            <someOtherStringField>This has a value</someOtherStringField>
    </myJAXB>Why is this happening? How can I fix it?
    Details on my situation can also be found here: http://stackoverflow.com/questions/3186621/jaxb-empty-string-does-not-produce-empty-element

    The bug has been fixed and will be included in the EclipseLink 2.1.1 maintenance release. If you want access to this fix earlier you can pick up the nightly download starting July 8th from:
    - http://www.eclipse.org/eclipselink/downloads/nightly.php
    -Blaise

  • JAXB generation and XSD choice serious issue

    Helo,
    Im developing a webservice that uses XSD Choice structure. Unfortunately, this must to done with choice because doesnt make sense using sequences this case.
    Ill explain bug using this link:
    http://bdoughan.blogspot.com/2011/04/xml-schema-to-java-xsd-choice.html#comment-form
    this is exactly same problem as me, JAXB in jdeveloper are generating anotations wrong! I cant map the sequence choice to webservice, that is developed from WSDL...
    So, I need some help there, I really need develop this webservice using xsd:choice and cant be done in jdeveloper and dont know why.
    I tried put the anotations like this URL but when I call the service, choice element on request was null!
    thanks

    Hi, i dont know why but when I use JAXB to generate a sample XMl I got this output:
    <guiaRequest xmlns="http://www.myservices.gov.br/mensagem/integracaobancaria/guia">
    <parametrosConsultaGuia>
    <guiaNormalRequest>
    <codigoEntidade>B83C15C173633890E0330A67021B3890</codigoEntidade>
    <codigoPorte>6</codigoPorte>
    <codigoAssunto>148</codigoAssunto>
    <numeroTransacaoInternet>267472003</numeroTransacaoInternet>
    </guiaNormalRequest>
    </parametrosConsultaGuia>
    </guiaRequest>
    This is correct to my webservice, BUT, when I invoque webservice with xsd:choice I got this request (i see that on enterprise manager) :
    <message>
    <properties>
    <property name="tracking.compositeInstanceId" value="80367" />
    <property name="tracking.ecid" value="0000J1pyNtnBDC^5lVg8yZ1DtZWJ002D4z" />
    <property name="transport.http.remoteAddress" value="10.106.14.162" />
    </properties>
    <parts>
    <part name="request" >
    <ns2:guiaNormalRequest>
    <ns2:codigoEntidade>B83C15C173633890E0330A67021B3890</ns2:codigoEntidade>
    <ns2:codigoPorte>6</ns2:codigoPorte>
    <ns2:codigoAssunto>148</ns2:codigoAssunto>
    <ns2:numeroTransacaoInternet>267472003</ns2:numeroTransacaoInternet>
    </ns2:guiaNormalRequest>
    </part>
    </parts>
    </message>
    This is wrong! see the structure is not correct.

  • Generate XML from GIS file

    Hi, I'm having a final project for my last year college and I really need some help here... (please)
    Could anyone tell me any java library I could use to convert ESRI's SHP file (or other GIS file) to XML?
    ps: an example would be very appreciate (n_n)
    Thanx a ton...

    Please refer
    http://www.developer.com/java/web/article.php/3722211/Using-JAXB-in-JDeveloper-1013.htm
    JDeveloepr 11g includes JAXB 2.0.

  • Generate xml from xsd file

    i would like to make my java application automaticaly convert a given .xsd file to an .xml one.
    i know that with jdev you can generate an xml file from xsd one, and i want my application do the same thing.
    i know also that i can use JAXB: first i bind the xsd file then i marshall the java class created to obtain xml. But i dont know how to do it.
    is there a simple way to use the "things" behind the jdev xml generation from xsd.

    Please refer
    http://www.developer.com/java/web/article.php/3722211/Using-JAXB-in-JDeveloper-1013.htm
    JDeveloepr 11g includes JAXB 2.0.

  • Oracle.xml.classgen.*

    hi,
    can anyone tell me where to find oracle.xml.classgen package. i am using xmlparser for java (version 2). i couldnt find that package in that version.
    thanks in advance
    ram

    Or use the xjc compiler in JDeveloper.
    http://www.developer.com/java/web/article.php/3722211/Using-JAXB-in-JDeveloper-1013.htm

  • What version of JAXB is in JDeveloper 10.1.3?

    I've been trying to generate a web service from a WSDL and found out that not all of my XSD is supported by older versions of JAXB.
    Is it possible to update JDeveloper to use JAXB 2.0?

    I need to point out that I am able to generate the WS initially, but if I go to its properties, and click on 'Methods', the lone method is grayed out. When I click on 'Why Not?', I get this:
    The return type core_2.ResponsePacket of method submitRequest cannot be serialized into XML, and no custom serializer has been defined for it.
    If I comment <xs:anyAttribute processContents="skip"/> out of the XSD, then things seems to work correctly.
    Here is the generated code for ResponsePacket:
    package core_2;
    public class ResponsePacket implements java.io.Serializable {
        protected oracle.webservices.databinding.AttributeMap anyAttribute;
        protected core_2.Responses responses;
        public ResponsePacket() {
        public oracle.webservices.databinding.AttributeMap getAttributes() {
            return anyAttribute;
        public void setAttributes(oracle.webservices.databinding.AttributeMap anyAttribute) {
            this.anyAttribute = anyAttribute;
        public core_2.Responses getResponses() {
            return responses;
        public void setResponses(core_2.Responses responses) {
            this.responses = responses;
    }You can see that code has anyAttribute in it so I'm wondering if the WS will work fine, I just regenerate from the WSDL if any of the specs change.

  • How to create JAXB bindings in jdeveloper 11g for the portlet event payload

    I have three projects in JDeveloper 11.1.1.6:
    - PortletProducer - provides some portlets
    - PortletUser - makes use of these portlets
    - SomeData - provides serializable classes for portlets event payload
    I configured SomePortlet in PortletProducer to send events of serializable type SomeDataClass (from SomeData project), but whenever i am trying to send event of this class, i am getting an exception:
    oracle.portlet.client.container.PortletRemoteException: oracle.portlet.server.container.OperationFailedException: oracle.portlet.wsrp.v2.OperationFailedException: Internal Server Error: java.lang.IllegalArgumentException: Event [someEvent] value is of type [class somedata.SomeDataClass] which does not have a valid JAXB binding configured; configuration may be done in the WEB-INF/portlet.xml or WEB-INF/wlp-framework-common-config.xml files..;
    But i have no idea how to perform such bindings in portlet.xml or wlp-framework-common-config.xml (the latter file is also missing in all three projects, while the former exists only in PortletProducer project).
    I have a JAXB xsd file created with schemagen.sh (from a jaxb zip) for SomeDataClass, but what do i do with it in order to create a JAXB binding in JDeveloper?
    Thanks.

    Are you trying to expose an existing system inside of WCS?
    If this is the case, you should investigate "External Applications":
    http://download.oracle.com/docs/cd/E17904_01/webcenter.1111/e10149/config_svcs_prod_extapp.htm#WCSUG6698
    This is an out of the box way of embedding external systems, with seperate login pages etc. I think this will achieve what you are trying to do yourself. It even allows for parameterised URLs

  • Using JAXB 2.0 with JDeveloper 10.1.3

    Hi there,
    I'm having a wee bit of trouble getting JDeveloper to load my version of the JAXB 2.0 libraries.
    Everything compiles o.k. However when I run my application (on the embedded OC4J container in Jdeveloper), I get runtime errors that the OC4j container is Unable to locate jaxb.properties for my package. JAXB.properties is no longer created for JAXB 2.0. so it must be loading the JAXB 1.0 libraries.
    I know that JDeveloper has the JAXB libraries as part of it's xml.jar file, I've tried altering this but it's just caused more problems.
    Any ideas?

    Refer
    Re: SUN Jaxb2.0 incompatible with OC4J included in JDEV/OC4J ??

  • JAXB 2.0 code with JDeveloper

    I am have a JUnit test that uses JAXB. When I try to run it, JDeveloper seems to be picking up jaxb 1.0 classes - I am getting an error "Unable to locate jaxb.properties....." (jaxb 2.0 no longer uses this file).
    Although I do have jaxb 2.0 classes in the path (verified using javap), this problem just doesnt seem to go away with whatever I do.
    Does someone have a solution?
    thanks
    Mani

    JDeveloper 10.1.3.2 does not support JAXB 2.0.
    JAXB 2.0 support may be added.
    Using JAXB 2.0 with JDeveloper 10.1.3

  • How to use schemas in MDS with the JDeveloper JAXB compiler ?

    Hello,
    I would like to use the JAXB2 compiler to generate a content model from an XSD in MDS. I don't find any way to do it because in order to select the source schema I only can browse my project and application directory but not the MDS. I configured JDeveloper such that to connect to MDS and I'm able to browse the MDS, to open artifacts. But I cannot extract/export/download them from MDS to the JDeveloper project such that to use the JAXB compiler against it. I tried the Add to project function once that the artifact is opned but nothing seems to happen. How could I do that ?
    Many thanks in advance,
    Nicolas

    hi Henrique Pinto!
    but you'll need to import all the wsdl's,,,
    this mean that i will have to request another wsdl which is general wsdl contained object and operation and soap action?
    or i can use only this wsdl and then need to do something in external definition with this wsdl?
    thanks & regards
    dennis
    Message was edited by:
            ogawa Dennis

  • Issues in creating Java based web services with JAXB 1.0 in Jdeveloper 10 g

    Hi All,
    I am trying out a simple java based web service creation exercise using Jdeveloper 10.1.3.3.0.3 and JAXB 1.0. Here is what I am trying to do.
    1. I have a XSD file called Status.xsd, which has three complex types in it.
    2. Using Jdeveloper Tools --> JAXB Compilation, I have created Jaxb classes for the above XSD files. For each of the complex type the jaxb class generator generated on IMPL clas and one abstract class.
    3. Now I have created one simple java class called Class1.java and created one method that takes the StatusImpl as input and as output for that method. Here is the code for Class1.java
    public class Class1 {
    public Class1() {
    public StatusImpl getstatus (StatusImpl in) {
    StatusImpl out;
    out = in;
    return out;
    4. Now, I trying to create a web service for this java class from jedeveloper. I have right clicked this class and went thru the wizard Create J2EE web services.
    5. At the end, the web service project got created successfully and I am trying to run this project from jdeveloper. When I run this project, I am getting the following kind of error message in the browser
    It looks like when the runtime deployment classes are trying to instantiate the abstract classes instead of the impl class. and for all the complex types they trow that error and the web service could not be even invoked.
    What could be the issue? Is the jaxb based web services supported with jdeveloper 10g?
    Thanks,
    Renga

    Hi All,
    I am trying out a simple java based web service creation exercise using Jdeveloper 10.1.3.3.0.3 and JAXB 1.0. Here is what I am trying to do.
    1. I have a XSD file called Status.xsd, which has three complex types in it.
    2. Using Jdeveloper Tools --> JAXB Compilation, I have created Jaxb classes for the above XSD files. For each of the complex type the jaxb class generator generated on IMPL clas and one abstract class.
    3. Now I have created one simple java class called Class1.java and created one method that takes the StatusImpl as input and as output for that method. Here is the code for Class1.java
    public class Class1 {
    public Class1() {
    public StatusImpl getstatus (StatusImpl in) {
    StatusImpl out;
    out = in;
    return out;
    4. Now, I trying to create a web service for this java class from jedeveloper. I have right clicked this class and went thru the wizard Create J2EE web services.
    5. At the end, the web service project got created successfully and I am trying to run this project from jdeveloper. When I run this project, I am getting the following kind of error message in the browser
    It looks like when the runtime deployment classes are trying to instantiate the abstract classes instead of the impl class. and for all the complex types they trow that error and the web service could not be even invoked.
    What could be the issue? Is the jaxb based web services supported with jdeveloper 10g?
    Thanks,
    Renga

  • Jdeveloper 10.1.3: JAXB - how to preserve whitespace in text element??

    Dear all,
    i am trying to use jaxb to do the xml <> java object conversion.
    i meet a problem that the jaxb seems don't preserve the white space when xml to
    java conversion (but java to xml is ok, the whitespace is preserved.)
    for example:
    an element with string type: <Address> with leading and trailing spaces </Address>,
    in java code, obj.getAddress() return "with leading and trailing spaces", the spaces
    are trimmed..
    is there any configuration to make?
    how can i preserve the whitespaces?
    thank you
    ping

    Hi, Branislav,
    That's great! It works!
    I choose to use the first method. I have two project modules, both use the same data model. I opened the data model project's properties editor, highlighted the business components node, and the the Connection dropdown list is right there.
    Thank you very much! You are always very helpful!
    Newman

  • Error while deploying a JSR 168 portlet developed in JDeveloper 10.1.3.2

    When deploying a JSR 168 portlet created using JDeveloper 10.1.3.2 (Web Center Suite edition), I get the error :
    "Shared library "oracle.wsrp" could not be found."
    Error Log:
    ---- Deployment started. ---- Sep 20, 2007 9:31:42 AM
    Target platform is Oracle Application Server 10g 10.1.3 (PolestarAppServerConnection).
    Wrote WAR file to C:\Projects\eAlliance\JSR168\ViewController\deploy\jsr168.war
    Wrote EAR file to C:\Projects\eAlliance\JSR168\ViewController\deploy\jsr168.ear
    Backing up generic archive file :/C:/Projects/eAlliance/JSR168/ViewController/deploy/jsr168_generic.ear
    Creating WSDLs for the WSRP Application
    WSDLs for the WSRP Application have been created
    Uploading file jsr168.ear ...
    Uploading file jsr168.ear ...
    Application Deployer for jsr168 STARTS.
    Copy the archive to /home/soahome/orasoa/j2ee/home/applications/jsr168.ear
    Initialize /home/soahome/orasoa/j2ee/home/applications/jsr168.ear begins...
    Unpacking jsr168.ear
    Done unpacking jsr168.ear
    Unpacking jsr168.war
    Done unpacking jsr168.war
    Initialize /home/soahome/orasoa/j2ee/home/applications/jsr168.ear ends...
    Starting application : jsr168
    Initializing ClassLoader(s)
    application : jsr168 is in failed state
    Operation failed with error:
    Shared library "oracle.wsrp" could not be found.
    Deployment failed
    Elapsed time for deployment: 39 seconds
    #### Deployment incomplete. #### Sep 20, 2007 9:32:21 AM
    Steps To recreate the error:
    1)Create a new Application in JDeveloper
    2)Click "New" in "ViewController" and click on WebTier->Portlets->Standards based(JSR 168) from the wizard.
    3)Go thru JSR 168 Portlet wizard steps 1 thru' 8 accepting all defaults.
    4)Click "New" in "ViewController" and click on General->Deployment Profiles->WAR File from the wizard.
    5)Enter a name and hit OK. Then in the "WAR Deployment Profile Properties" page, select "Specify J2EE Web Context Root" and enter the name similar to what is in the "Enterprise application name" text box in the same screen. Hit OK.
    6)Right click on the deploy file created under "Resources" and select "Deploy to AppServer" (I am deploying to a remote 10.1.4 Portal Server that has already been configured in my connections tab.
    7)Note the above noted error message in the Deployment Log tab.
    Can you give me any suggestions?
    Thanks,
    Bipin Raj

    Does the \j2ee\home\shared-lib directory contain a directory oracle.wsrp?
    Does the <OC4J_HOME>/j2ee/home/config/server.xml file contain a shared-lib declaration for oracle.wsrp?
    <shared-library name="oracle.wsrp" version="1.0">
    <code-source path="wsrp-container.jar"/>
    <code-source path="wsrp-types.jar"/>
    <code-source path="wsrp-jaxb.jar"/>
    <code-source path="jaxb-api.jar"/>
    <code-source path="jaxb-impl.jar"/>
    <code-source path="jaxb-libs.jar"/>
    <code-source path="namespace.jar"/>
    <code-source path="xsdlib.jar"/>
    <code-source path="relaxngDatatype.jar"/>
    <import-shared-library name="oracle.gdk"/>
    <import-shared-library name="oracle.xml"/>
    <import-shared-library name="oracle.jdbc"/>
    <import-shared-library name="oracle.cache"/>
    </shared-library>

Maybe you are looking for

  • Backspace starts working as delete?

    Hello, Since two days ago I'm experiencing a very strange problem with my keyboard/OS. When I press the backspace button, the OS recognizes it as (forward) delete. Although, when I press backspace as some combination of button, it's recognized OK. I'

  • Sound not loading

    I have the following code: myVars = new LoadVars(); myVars.load("http://charlesnewmanpubl.com/Sweethearts_On_Parade_BRGK.txt"); myVars.onData = function(src){      myVars.decode(src)      //trace(myVars.faFile);      var faFile:String;      var sound

  • [pol-5150] access violation in oracle lite database

    Hi, I am trying to connect to oraesb schema and getting the following error. [pol-5150] access violation. \\msql system/manager@jdbc:polite:orabesb is also failing. Basically I am trying to connect to SID oraesb in jdev. can someone help me on this.

  • Register system r3 in the portal transaction rz70

    Please helpme. I have a problem, I need register my system r3 in the portral but I can´t The follow is the error Error when opening an RFC connection ERROR: file communicate with  gateway SAP ¿ Gateway SAP started. In the potal sld  I put this parame

  • Batch of JPGs suddendly have lower resolution only in ID

    I downloaded a number of stock photos a while back. They had all originally imported perfectly into ID. Now they all have much lower and varied resolutions only when in ID. When I open them in other applications, they are fine. I have tested photos o