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

Similar Messages

  • Format Java Code with jdeveloper

    Hi Everybody,
    Can anybody tell me How I can Indent Java Code Automatically using JDeveloper 9i.
    It is a facility which is provided in almost all the editor and I believe it should be in jdeveloper also but the problem is I dont know how to go for it.
    I will be very kind to anybody who will solve this problem as this will reduce my lot of unwanted work.
    Regards,
    Amit Jain

    If you're looking for a code beautifier (a tool that can apply a coding style to your source code automatically), try the Jalopy extension. It's an open source code beautifier that is tightly integrated with JDeveloper:
    http://jalopy.sourceforge.net/plugin-jdev.html
    Thanks,
    Brian
    JDev Team

  • JAXB generating incorrect code with mixed type element extending abstract

    Hello,
    I am using JAXB v 2.0, and trying to generate proper Java classes, from the following snippet of my schema:
    <xsd:complexType name="abstract-query" abstract="true" mixed="true">
    <xsd:annotation>
    <xsd:appinfo>
    <jxb:class name="QueryElement">
    </jxb:class>
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:attribute name="name" use="required"/>
    <xsd:attribute name="datasource" type="report:datasource" use="required"/>
    </xsd:complexType>
    <xsd:element name="query">
    <xsd:annotation>
    <xsd:appinfo>
    <jxb:class name="PreparedQueryElement">
    </jxb:class>
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:complexType mixed="true" >
    <xsd:complexContent>
    <xsd:extension base="report:abstract-query">
    <xsd:sequence>
    <xsd:element name="input-ref" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
    </xsd:sequence>
    </xsd:extension>
    </xsd:complexContent>
    </xsd:complexType>
    </xsd:element>
    When generating Java, the PreparedQueryElement class does not include a list of input-ref's.
    If I remov the two "abstract="true"" annotations, the PreparedQueryElement will get the input-ref's list, but the QueryElement will not have the getContent/setContent I need.
    Does anyone know what I'm doing wrong?

    Sorry, third time's a charm!
    Hello,
    I am using JAXB v 2.0, and trying to generate proper Java classes, from the following snippet of my schema:
        <xsd:complexType name="abstract-query" abstract="true" mixed="true">
            <xsd:annotation>
                <xsd:appinfo>
                    <jxb:class name="QueryElement">
                    </jxb:class>
                </xsd:appinfo>
            </xsd:annotation>
            <xsd:attribute name="name" use="required"/>
            <xsd:attribute name="datasource" type="report:datasource" use="required"/>
        </xsd:complexType>
        <xsd:element name="query">
            <xsd:annotation>
                <xsd:appinfo>
                    <jxb:class name="PreparedQueryElement">
                    </jxb:class>
                </xsd:appinfo>
            </xsd:annotation>
            <xsd:complexType mixed="true" >
                <xsd:complexContent>
                    <xsd:extension base="report:abstract-query">
                        <xsd:sequence>
                            <xsd:element name="input-ref" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
                        </xsd:sequence>
                    </xsd:extension>
                </xsd:complexContent>
            </xsd:complexType>
        </xsd:element>When generating Java, the PreparedQueryElement class does not include a list of input-ref's.
    If I remove the two mixed="true" annotations, the PreparedQueryElement will get the input-ref's list, but the QueryElement will not have the getContent/setContent I need.
    Does anyone know what I'm doing wrong?

  • Issue with Jdeveloper when import the extension for Code Compliance Inspector

    With Jdeveloper 11.1.1.7 oracle provides a new feature CCI.
    I have imported the CCI in my jdeveloper
    but when i try to check any of the code a pop up comes up with the below error
    org.apache.xerces.dom.ElementNSImpl.setUserData(Ljava/lang/String;Ljava/lang/Object;Lorg/w3c/dom/UserDataHandler;)Ljava/lang/Object;
    Please let me know if any one have faced this issue earlier and have a resolution.

    I am having the same issue. I have imported Code Compliance Inspector and when I try to run it I am getting the following error,
    org.apache.xerces.dom.ElementNSImpl.setUserData(Ljava/lang/String;Ljava/lang/Object;Lorg/w3c/dom/UserDataHandler;)Ljava/lang/Object;
    I am having the same problem on Jdeveloper on my host and on Jdeveloper inside an Oracle Linux Virtual Machine  as well.  Has anyone else experienced this? From what I ahve read so far, when this error appears in other applications it appears to be something to do with Xerces causing a classpath confilict

  • Source code of JSF implementation bundled with JDeveloper

    Where can I get the sources of JSF implementation bundled with JDeveloper 10.1.3.1 (1.1_02-b08)?

    Fair enough. Yes, as far as I know those implementation classes aren't available. Contacting Sun's consulting services is one option, of course. Make sure you get someone who has actual experience with the classes in question, rather than just anyone who happens to be on the bench right now, 'cos they'll charge you handsomely either way.
    I take it you've considered decompiling the classes in question ? Obviously there are legal issues to consider if you go that route, but I've found the Kaffe tool handy before now.
    http://www.kaffe.org/
    The only other thing I can think of is taking a dig around the IBM site to see if any of their equivalent classes are available in source form. I've always used the Sun versions, however, so I've no idea how likely this is.
    Ok, I'm out of ideas. Will be interested to hear if you come up with something even more devious.
    D.

  • Business Services development with jDeveloper

    We are making use of the Business Services feature in JDE to expose business functions as web services, that's great and working.
    we have one problem with jDeveloper during development.
    we can create a new business service from OMW in JDE and invoke jDev from there, that's fine.
    then we can put codes in the project in jDev, that's fine.
    then we can publish the code as J2EE web service, that works as well.
    then if we restart jDeveloper after that, the J2EE web service doesn't work in the jDev embeded web server any more.
    we always have to delete the web service in the project and go through the same wizard steps to generate the web service again.
    it's very annoying when you have more than a handful of web services you want to expose.
    and if you use the WSDL in a client project to call this web service, you have to remember to give the web service the same name when re-generating otherwise you have to reimport the WSDL again on client side, it can be another huge pain if the client is Oracle BPEL.
    so my question is, why is this happening? is it some settings in jDev that we didn't set right? or is it a bug in jDEv and is there a work around?
    thanks in advanced!

    What error did you get?

  • How to use BC4J with JDeveloper 9i in a Team

    Hello
    I'm not sure if I'm to stupid, but to say the truth I didn't found the clue how to share a BC4J Application between several develeopers. Maybe someone can give me a hint.
    That's my situation:
    Our team is going to develop a web application using BC4J and BC4J-JSP, nothing special I think.
    But my problem is, that BC4J and especially the wizards refer to a lot of different files. Even simple changes often result in multiple files being changed in different parts of the project.
    Creating a view link between view objects in two packages for example changes the view objects in both packages. Also the project (.jpr) file or several "BC4J.xcfg" files are changed very often.
    So it is not easy to find parts of code from which I can say they are owned by one developer and others which are owned by another. Most often, if you have to merge the work of different developers, you have to edit the BC4J-XML-Files using an external editor. Or did someone find a better way? Please tell me!
    So, what is the best way to share code between developers?
    Should I partition the application by packages?
    - advantage:
    it allows a fine partitioning
    - disadvantages:
    it has the great danger that BC4J makes changes in other packages which will be overseen when merging.
    Should I create a projects for each developer and distribute code between the projects using libraries?
    - advantage: no unseen changes will happen, as the libraries are readonly.
    - disadvantages: no view links between view objects in different projects (Libraries) are possible! Also a lot of "load errors" can occure when updating a library, which have to be manually corrected in the dependent projects.
    Are source code management systems a real help in this problem or do they just "manage" the problem? I already tried SCM and PVCS but was not very happy with the way of working. As JDeveloper is not "really easy" to use with theese tools.
    So I would like to get any hints how other developers are dealing with this problem. Are you using BC4J with JDeveloper 9i in a team? Please tell me how do it and how you have partitioned your application.
    Thanks in advance
    Frank Brandstetter

    Hi,
    I'm not sure whether my answer is good enough for you, but it might help.
    First of all, you have to use JDev 9.0.3, because 9.0.2 has big problems with associations/view links between objects in different projects.
    Creating a view link between view objects in two packages for example changes the view objects in both packages. Also the project (.jpr) file or several "BC4J.xcfg" files are changed very often.This is not completely true in 9.0.3, as you may choose not to create an accessor in the imported object (and usually you don't need it neither!). As for bc4j.xcfg, there is a trick: define a "standard" database connection name to use all over your project! This will prevent modifying these files all the time!
    Should I create a projects for each developer and distribute code between the projects using libraries?
    - advantage: no unseen changes will happen, as the libraries are readonly.
    - disadvantages: no view links between view objects in different projects (Libraries) are possible! Also a lot of "load errors" can occure when updating a library, which have to be manually corrected in the dependent projects.I would say, projects for each application component, which by chance will be managed by a single developer at a time.
    As for the disadvantages, in 9.0.3 you are able to properly create associations and links using read-only objects. Hopefully, the release version will solve some generation inconsistencies...
    Concerning the errors that occur when modifying a library, this might be balanced by the relative independence of the components... If you are able to develop following the dependency tree, you will not meet the problem very often.
    Are source code management systems a real help in this problem or do they just "manage" the problem? I already tried SCM and PVCS but was not very happy with the way of working. As JDeveloper is not "really easy" to use with theese tools.Indeed, I do not have a SCMS really able to manage merges in the BC4J XML files... We rather try not to arrive there!
    So I would like to get any hints how other developers are dealing with this problem. Are you using BC4J with JDeveloper 9i in a team? Please tell me how do it and how you have partitioned your application.I really hope that my hints will help.
    Regards,
    Adrian

  • JAXB 2.0 : Issue with custom bindings

    I have defined an inline JAXB 2.0 customization in my schema as follows:
    <xs:annotation>
    <xs:appinfo>
    <jxb:globalBindings>
    <jxb:javaType name="int" xmlType="xs:integer"
    parseMethod="javax.xml.bind.DatatypeConverter.parseInt" printMethod="javax.xml.bind.DatatypeConverter.printInt"/>
    <jxb:javaType name="double" xmlType="xs:decimal" parseMethod="javax.xml.bind.DatatypeConverter.parseDouble" printMethod="javax.xml.bind.DatatypeConverter.printDouble"/>
    </jxb:globalBindings>
    </xs:appinfo>
    </xs:annotation>
    But when I compile the schema, all the elements in it defined as xs:integer are converted to Integer objects instead of a primitive int.
    An Adapter1.java file is created as follows:
    public Integer unmarshal(String value) {
    return (javax.xml.bind.DatatypeConverter.parseInt(value));
    public String marshal(Integer value) {
    return (javax.xml.bind.DatatypeConverter.printInt(value));
    I even tried using a custom binding class and defining its print and parse methods but same result.
    Why is the Adapter class created and why is the custom binding not followed?
    Can somebody help me here.
    Thanks.

    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

  • Web services with Jdeveloper using weblogic as server

    Hi,
    I try to test creating PL/SQL web services by using a connection hosted by weblogic server instead of OC4J. The problem is what I try to publish a package of the database in the second stage when it asks for the connection to use, in the list I don't found the connection I create to weblogic . It presents as choice only connections used the server OC4J.
    I do not Know if it is possible to publish a package as web service by using weblogic server connection, and how to do it.
    can anyone help me please .
    Nawal

    Web services can only be published to BEA if you install Apache SOAP on BEA and use the Apache SOAP option of JDeveloper. The J2EE Web Services implementation framework is specific to Oracle9iAS.
    The PL/SQL Web Services server implementation is based on the J2EE Web Services option and as a result is not really portable to BEA.
    To publish a PL/SQL Web service on BEA with JDeveloper you would have to write the Java wrapper code to invoke the stored procedure using standard JDBC and then publish that Java class as a Web service using Apache SOAP. Then if you had Apache SOAP installed on BEA you would be set.
    Portability of Web services implementations is a big feature coming with JAX-RPC - currently what most vendors have is interoperability between implementations because of things like SOAPBuilders and WS-I. When JAX-RPC becomes part of J2EE 1.4 roughly in June and vendors start putting out implementations on it you should get closer to portability.
    In the meantime, the easiest way to get portability is to use the same SOAP server on both servers - Apache SOAP is a good example.
    Hope this helps.
    Mike

  • Web services with JDeveloper - serialization error

    Dear all,
    I have an issue with web services created with JDeveloper 10.1.3.2.0.
    Namely, this is what I do:
    1. I've created some TopLink classes from tables; one of this classes is called Task (and it's located in a package called "integration")
    2. I've created another class, called Integration, where I use these TopLink classes; in this new class I have a method called getTasksStatus, which returns an ArrayList containing Task objects
    3. I've created a web service from this class (Integration) by right-clicking on the class name in Applications Navigator and choosing Create J2EE Web Service.
    When I call the method getTasksStatus from the test web service (endpoint),
    I get this error:
    Oct 8, 2007 7:14:30 PM oracle.webservices.service
    SEVERE: serialization error: no serializer is registered for (class integration.Task, null) serialization error: no serializer is registered for (class integration.Task, null)
    When I call a method which returns a primitive type, everything is fine.
    I understand the problem, but I don't know a solution yet. Could you please help ?
    Thank you,
    Best regards,
    Sorin

    One solution to this problem is to make sure that the complex type you are using in yous service interface do implement the JAVA Bean as per the spec (at least Oracle's interpretation of it).
    You need to have getter/setter for all members and you need to have an empty ctor() to create new instances of your objects. In some cases, the design time let you get by, but the runtime fails in the code generation.
    In your case, the 'Task' class may have some issue.
    Hope it helps,
    -eric

  • J2ee naming services with JDeveloper

    I am trying to use the JNDI services of the j2ee specs with JDeveloper and the Oracle Application server (9iAs). Doing this we have the problem that JDeveloper do not support the java.naming package. We have added the package to JDeveloper but we do not know ik Oracle 9iAs will work with this package added.
    Can someone give me some information about the use of JNDI within JDeveloper and Oracle 9iAs

    One solution to this problem is to make sure that the complex type you are using in yous service interface do implement the JAVA Bean as per the spec (at least Oracle's interpretation of it).
    You need to have getter/setter for all members and you need to have an empty ctor() to create new instances of your objects. In some cases, the design time let you get by, but the runtime fails in the code generation.
    In your case, the 'Task' class may have some issue.
    Hope it helps,
    -eric

  • PL/SQL development with JDeveloper

    We are using Toad and JDeveloper to maintain our legacy IS that count thousands of PL/SQL code object (Packages, Package Bodies, Triggers).
    I'm using JDeveloper and SQL Developer in the perspective to verify if it is possible and effective to use only Oracle tools in the project.
    I like to work with JDeveloper to edit pl/sql code and i like to have my code in database offline object maintained into subversion.
    I'm able to compile these sources in my different platform (development system, test alpha, test beta and final testing instance directly from JDeveloper.
    That's fine except JDeveloper didn't return a compile status or a list of compile errrors like in SqlDeveloper. So I need to use SqlDeveloper in parallel of JDeveloper.
    This is the beginning of my problems.
    SqlDeveloper may have some editor open with source code into I updated into JDeveloper (depends on the change to do, some changes a done in SqlDeveloper to correct some errors and the code is refreshed from the instance into JDeveloper, and more important changes are done in JDeveloper and compiled (loaded) in the instance) and loaded (compiled) into my instance.
    When the packages tree is already displayed in SqlDeveloper, the status of the package (valid, invalid) didn't change immediately. That is normal because SqlDeveloper don't know i change it from JDeveloper. I think it check it when i click on the package or the body node. The problem is that the code is not reloaded into the editor if it is opened and i you recompile your package without refreshing all the packages list you will recompile the older version and search sometimes a long time why your package didn't compile after the changes you done in JDeveloper (mainly after 6pm and a day of developing and compiling ) !!!!
    The only reason to use both JDeveloper and SqlDeveloper in this phase is the fact that JDeveloper didn't return compile status and a compile error list.
    With theses features I will no more use SqlDeveloper for such developing purposes (still using it to debug, obtain object definition, customize database object for some physical properties, etc) and avoid those bad manipulations.

    micwic --
    I logged bug6508875 for this.
    One suggestion in the meantime until we can get compile errors directed to the log window for offline objects...
    You can open the Database Navigator to point to the same db connection. After generating the offline PL/SQL to the db, refresh the connection in the DB navigator. You will see any invalid objects flagged with an error icon. Then you can right-click on the PL/SQL with the error, and "Make" it. This will display the errors in the log window, similar to SQL Developer.
    -- Brian

  • Scrolling  messes source code on JDeveloper 10.1.3.5 Windows 7 (64 bit)

    Hello!
    One can only work around the problem as in vista, by using a new Sun jdk, other than that shipped with JDeveloper.
    However, this is not considered safe, as the newer jdk is neither tested nor certified to work with that version of JDeveloper.
    I have already searched My Oracle Support, only to find a patch about a memory leak for JDeveloper 10.1.3.5. +(I wonder why is it not offered to the public anyway?+)
    Could any one from Oracle please see to a more permanent and safer solution to the problem?
    I am looking forward for your prompt actions, and thank you very much in advance!

    Let me rephrase: when one scrolls using page up or down keys, or by using a mouse wheel, the source code lines ( and characters) appear partly only, either distorted or overlapping with each other, in such a way that one cannot make out what has been written. I hope the above clarifies the problem in question. In such a case a screen shot might actually serve us perfectly.
    I have already given your suggestion a try, without any success.
    Thanks anyway very much for your reply!
    Any other helping hand available?
    TIA!

  • Commons fileupload problem with Jdeveloper

    Hi,
    I tried to use commons fileupload with jdeveloper and I have put those two jar files under web-inf/lib directory. but it did not work. Anyone can help? Thanks in advance. Error code is shown below:
    Error(79,33): illegal start of expressionError: cannot access class org.apache.commons.fileupload.FileItem; file org\apache\commons\fileupload\FileItem.class not found
    Error: cannot access class org.apache.commons.fileupload.FileItemFactory ; file org\apache\commons\fileupload\FileItemFactory.class not found
    Error: cannot access class org.apache.commons.fileupload.FileUpload; file org\apache\commons\fileupload\FileUpload.class not found
    Error: cannot access class org.apache.commons.fileupload.disk.DiskFileItemFactory ; file org\apache\commons\fileupload\disk\DiskFileItemFactory.class not found
    Error: cannot access class org.apache.commons.fileupload.servlet.ServletFileUpload; file org\apache\commons\fileupload\servlet\ServletFileUpload.class not found
    Error: cannot access class org.apache.commons.fileupload.FileUploadBase; file org\apache\commons\fileupload\FileUploadBase.class not found
    Error: cannot access class org.apache.commons.fileupload.FileUploadBase.SizeLimitExceededException; fileorg\apache\commons\fileupload\FileUploadBase\SizeLimitExceededException.class not found
    Error(25,29): variable ServletFileUpload not found in class _upload
    Error(31,7): class DiskFileItemFactory not found in class _upload
    Error(31,41): class DiskFileItemFactory not found in class _upload
    Error(43,7): class ServletFileUpload not found in class _upload
    Error(43,38): class ServletFileUpload not found in class _upload
    Error(52,15): class SizeLimitExceededException not found in class _upload
    Error(61,7): class FileItem not found in class _upload
    Error(61,24): class FileItem not found in class _upload                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Are you sure you have the full JDK or just JRE?
    Check the size of the jar you downloaded to make sure it downloaded complete.
    Basic install instructions are here:
    http://download.oracle.com/docs/cd/E14571_01/install.1111/e13666/ojdig.htm#BDCJDDFE

  • Tells us you're experiences with Jdeveloper 11.1.1.4

    Hello, im a ubuntu user, and this morning i've installed the new jdeveloper 11.1.1.4. My first concern was to not lost all my svn and db connections, and wls jdbc datasources, after a little research i've found how to the trick. Then the installation was smooth and right now im playing with it .
    Tell us you're personal experience. !
    Daniel

    Hi Timo,
    We're having similar issues with JDeveloper here. The debugger in JDevloper is the biggest fail ever!
    I have win7-64, 8GB RAM, etc. I'm using 11.1.2.3.0 and have used earlier versions of JDeveloper too and the debugger always freezes.
    We've tweaked our vm settings for JDev and the integrated Weblogic server to no avail. I'm waiting on another 8GB RAM to be delivered to see if that might fix this sorry situation.
    Since I can only rant here and can't give you exact data, let me share some observations:
    1.
    The debugger will hang when I try and reach a null pointer exception occurring. I'll put a breakpoint on the line of code and the debugger will stop there. That's when JDeveloper becomes totally unresponsive. Nothing will will work - no close button, no gui buttons on jdev - nothing! The only way to get it responsive is to kill the weblogic java process that it spawns.
    Examining to processes that are running with the default windows sysmon tool tells me that there is a network I/O process hanging. When I end that process, things are responsive but my debugger session has been killed.
    2.
    When I've fixed the error (using sysouts!!), I can happily debug to the the fixed line and examine data variables like a normal IDE would do it. It's a bit like the fire truck arriving after the house burned down.

Maybe you are looking for

  • Problems connecting to the internet after Upgrade from windows 8.1 pro

    Cant connect to the internet after upgrading to windows 8.1 pro, what can i do to rectify this problem? Thanks

  • AI CS3 Plugin: When I close the Illustrator application, it's not saving the unsaved file.

    Hi Everybody, Version: AI CS3 OS: Windows XP I've an AI plug-in which defines its own file format, with .ai extension itself. In the VC++ code of the plugin, I spawn .jsx file to do the validation (if it's out of the artboard, illegal font and so on)

  • ATOM RSS feed authentication

    I've been polling for helpdesk tickets by utilizing the example found in the following link for several years and for some reason a recent update to Spiceworks has caused me to not be able to authenticate my user and pull the feed.  Here is the scrip

  • Creating table rows

    Is it possible, using an ADF table which is editable, to create rows, say for example by pushing a create button, which then in turn inserts a blank row in the table where the user can insert new data?

  • An Oracle data pump situation that I need help with

    Oracle 10g running on Sun Solaris: I have written a unix shell script that exports data into a dump file(data pump export using expdp). Similarly I have import script that imports the data from the dump file(import using impdp). These are not schema