JDeveloper ADF and eclipse link

All,
I have created employee hierarchy and executed the application with the integrated weblogic with jDeveloper. It's works fine.
After creating the deployent profile, I have deployed to a standalone weblogic server. i keep getting the below error
<java.lang.NoSuchMethodError: org.eclipse.persistence.queries.ReadAllQuery.setHierarchicalQueryClause(Lorg/eclipse/persistence/expressions/Expression;Lorg/eclipse/persistence/expressions/Expression;Ljava/util/Vector;)V>
The error was due to the line "*databaseQuery.setHierarchicalQueryClause(connectBy,startExpr,order)*" from the below code. I have copied the eclipselink.jar explictly to the weblogic/domain/lib directory and weblogic module directory. Still i am getting java.lang.NoSuchMethodError: org.eclipse.persistence.queries.ReadAllQuery.setHierarchicalQueryClause
Could you anyone Please help me to resolve the error.
ReadAllQuery databaseQuery = new ReadAllQuery(Employee.class);
ExpressionBuilder builder = new ExpressionBuilder();
Expression startExpr =
builder.get("emplyeNbr").equal(new Integer(employeeId));
Expression connectBy = builder.get("employees");
Vector order = new Vector();
order.addElement(builder.get("firstName"));
databaseQuery.setHierarchicalQueryClause(connectBy,startExpr,order);
Query query =
((JpaEntityManager)em.getDelegate()).createQuery(databaseQuery);
List<DEmplye> employees = query.getResultList();

Paulo,
of course you can do using the Java APIs of XML Publisher. Furthermore there are plans to make XML Publisher the reporting framework for ADF.
Juergen

Similar Messages

  • Jdeveloper, adf and xmp

    Dear sirs, i belong to a company that have one ERP, developed using oracle forms.
    We are in the process of remake it using JDEV ,ADF, and ADF_BC.
    I have a real need, ours ERP costumers have the need to change a lot of the aplications reports, including data fields, well personalize it , etc.
    We are thinking of using the XMLP and the JDEV and doing the reporting of ERP by XMLP. My question is can i do the reports (basic ones) combining both technologies, to allow later my costumers to be able to change (if they need) the layout of the reports using XMLP Desktop or any other very basic (easy) technologie).
    Well Thanks in advance.
    Paulo J. Costa

    Paulo,
    of course you can do using the Java APIs of XML Publisher. Furthermore there are plans to make XML Publisher the reporting framework for ADF.
    Juergen

  • EJB Service and Eclipse Link marshalling error.

    Hi all. I have a problem with using EJB Service in BPEL.
    I have two JPA entities linked with @OneToMany association
    // RegistryItemBuffer
    @Entity
    @NamedQueries( { @NamedQuery(name =
    "RegistryItemBuffer.findRegItemsBufByRegId",
    query =
    "select o from RegistryItemBuffer o where o.registry.registryId = :registryId") })
    @Table(name = "PP_PERSON_ST_RG_ITEM_B")
    public class RegistryItemBuffer implements Serializable {
    private Long registryItemId;
    private Registry registry;
    private static final long serialVersionUID = 7526471155622776147L;
    public RegistryItemBuffer() {
    *@ManyToOne*
    *@JoinColumn(name = "PP_PERSON_ST_RG_ID")*
    *public Registry getRegistry() {*
    return registry;
    *public void setRegistry(Registry registry) {*
    this.registry = registry;
    //Registry
    @Entity
    @Table(name = "PP_PERSON_ST_RG")
    public class Registry implements Serializable {
    private Long registryId;
    private Set<RegistryItemBuffer> registryItemBufferSet;
    private static final long serialVersionUID = 7526471155622776100L;
    public Registry() {
    *@OneToMany(mappedBy = "registry", fetch = FetchType.EAGER)*
    *public Set<RegistryItemBuffer> getRegistryItemBufferSet() {*
    return registryItemBufferSet;
    *public void setRegistryItemBufferSet(Set<RegistryItemBuffer> registryItemBufferSet) {*
    this.registryItemBufferSet = registryItemBufferSet;
    In my stateless session bean I have a method which fetches registry items by registry id using named query:
    @SuppressWarnings("unchecked")
    public List<RegistryItemBuffer> getRegistryItems(Long registryId) {
    Query query =
    em.createNamedQuery("RegistryItemBuffer.findRegItemsBufByRegId");
    query.setParameter("registryId", registryId);
    List<RegistryItemBuffer> items = query.getResultList();
    return items;
    If I call this method from EJB Client it works fine.
    In my composite application I've add EJB Service. I have add a jar with EJB Remote Interface to SCA-INF/lib and specified JNDI path and remote interface in EJB Service Reference.
    When I invoking getRegistryItems method from BPEL it fetches all items by the EclipseLink Exception throws at the end:
    javax.xml.bind.MarshalException
    - with linked exception:
    [Exception [EclipseLink-7242] (Eclipse Persistence Services - 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.Val
    idationException
    Exception Description: An attempt was made to traverse a relationship using indirection that had a null Session. This often
    occurs when an entity with an uninstantiated LAZY relationship is serialized and that lazy relationship is traversed after
    serialization. To avoid this issue, instantiate the LAZY relationship prior to serialization.]
    at org.eclipse.persistence.jaxb.JAXBMarshaller.marshal(JAXBMarshaller.java:375)
    at org.eclipse.persistence.jaxb.JAXBMarshaller.marshal(JAXBMarshaller.java:401)
    Why EclipseLink cannot serialize fetched registry items ?
    I would be grateful to any advice.
    P.S. Sorry, If there is more appropriate forum.

    Any clues to this one?

  • JDeveloper ADF and SWT

    We are considering using JDeveloper 10g (with ADF for the business layer) for a large application. But we would also like to have the option of using SWT rather than Swing for a rich client. Is this possible, and does anybody out there have any tips on how to approach this?
    Thanks.
    Chris

    It might be possible, but you'll e loosing all the automatic binding that you get when using Swing and JClient.
    Any reason why not to use Swing?

  • Jdeveloper ADF and Login.jsp

    I would like to change the default login.html to be a login.jsp page so I can format the page better and still use the authen/author used by login.html
    Does some have a sample login.jspx that does the same a login.html.
    Thanks

    Hi Rac Man,
    The following URLs can be useful:
    http://www.radio21g.com/faces/2007/07/24/adf-faces-for-dummies-22-create-your-hello-world-app-continued/
    http://download.oracle.com/docs/cd/E12529_01/webcenter.1013/b31072/tt_security.htm#CHDCIIHE
    http://blogs.oracle.com/shay/entry/for_some_reason_one_common
    http://www.nyoug.org/Presentations/2010/June/Koletzke_Hello_WWW.pdf
    Regards,
    Cris

  • Behaviour of updateObject and writeObject in toplink and eclipse link

    Hi all ,
    Please let us know if there is any difference between updateobject and writeobject being used in toplink and eclipselink.jar ?
    It would be greatly helpful if someone can say the scenarios to use both the objects in eclipselink.jar .
    Thanks in advance.
    Regards
    Mythili

    In general you should not use either of these, but either use JPA, or use the UnitOfWork.
    updateObject and writeObject are only defined in a single user DatabaseSession.
    updateObject will just update the object, it assumes the object exists
    writeObject can either insert or update an object, it first performs a doesExist check to see if an insert or an update should be done.
    James : http://www.eclipselink.org

  • JDeveloper, ADF, lack of support and bleak future

    Hi,
    I'm a seasoned Java and .NET developer, used to many environments and frameworks. A happy user of Oracle databases.
    For a very Oracle oriented client I started with a team of developer a project using JDeveloper (no choice). After 4 months of using JDeveloper, ADF to build web sites, here are some thoughts I would like to share. This remarks only focus on that products, because I have a lot of respect for the Oracle databases and had a lot of success with them.
    I am starting to get depressed about the very few blogs (most from Oracle) talking about JDeveloper and ADF, the lack of books, and the Oracle forums.
    Moreover, most of the time you never get an answer to your problems, sometimes untested not working 'solutions', and a very very few times a working solution. Help is sparse, the community is missing.
    If Oracle wants to promote its framework, it has to boost the number of tutorials, examples and support.
    Googling about ADF is most of the time a non sense since you always land on the same 3 blogs and the Oracle forums.
    Proof of non use by the community ?
    If you try on www.indeed.com to find statistics about JDeveloper or ADF jobs you get another frightening proof.
    Sometimes you find a piece of code or a tutorial that may help, but you realize it works only on some specific release of JDeveloper.
    What makes me angry is when you ask why your code works on the x.x.x.x version but not the newest version, and the only answer you get is stay with x.x.x.x version (I won't bother to fix your 10 lines or code or even give you a direction to do it (maybe coz I don't understand myself were the breaking changes are)).
    JDeveloper is damn too slow ? You should have a dual-core and at least 2 Go of memory, you poor thing ! Is Java for rich people ?
    Debuging is a nightmare. Compared to Eclipse or others it is not practical at all.
    I'm happy when I can create a few pages drag and dropping controls. Business components are also a good thing. It speeds up my development. But since development is not just UI and generating business components, I lose a lot of time every time I want to write code, every time I do something "exotic" it becomes a pain in the ass.
    My problem here is that the architecture and JDeveloper constraint the developer a lot. I don't even talk about the fact that everything is only Oracle database oriented (openess ?). Even changing your page layout is a pain. Positioning controls is non trivial. As a whole, I would say that this whole thing imposes you to adapt to it, it doesn't adapt to you and your way of working.
    Most results I saw look like the Oracle websites.
    I could go on about the various bugs and problems that plague JDeveloper. Like the refactoring (when usable) that leave old and annoying stuff in your model XML, like the bugs in the diagrams, like problems related to auto-binding on the page and manually changing controls ID, various synchronization problems between pages and backing beans, adding upload is a mess, OrdDomain types are buggy, regions doesn't work well in the designer, and so on...
    My point is that I feel the whole thing is not mature. And Oracle seems to fix some issues with the release of JHeadStart. Sometimes you fix things by integrating JHeadStart stuff. JHeadStart is probably a great thing and a time saver if you don't do too much "exotic" screens and code, but does it means that JDeveloper+ADF and classic development becomes a second class citizen ?
    This is sad, since the ADF framework and JDeveloper look good and are worth of a more widespread usage. But marketing and support are way way far behind other commercial and open-source solutions. When I see what is planned for JDeveloper 11 and I compare it to others (Java or not). When I look at the developers needs and expectations, I feel we are losing the race.
    Maybe Oracle would like to hand over some of the framework to the community, but my feeling is that the community is already commited on other exciting and less constraining frameworks and tool, and this community may well work in a way that doesn't fit Oracle vision. Future will tell.
    Cheers.

    Hi,
    thanks for the detailed comment. I appreciate the time you spent writing this up as this helps to improve the product. Below is a first - quick and brief response to some of your statements.
    ... for documentation and tutorials
    http://www.oracle.com/technology/products/adf/learnadf.html
    Especially the ADF Developer Guide for 4 GL developers earns a lot of praise among J2EE developers.
    http://download.oracle.com/docs/html/B25947_01/toc.htm
    ... for books
    http://www.oracle.com/technology/tech/java/jsf.html
    Sometimes you find a piece of code or a tutorial that may help, but you realize it works only on some specific release of JDeveloper. What makes me angry is when you ask why your code works on the x.x.x.x version but not the newest version, and the only answer you get is stay with x.x.x.x version
    Of course samples need to be created to some point in time with a specific version. We have SRDemo as our main - maintained - reference demo I suggest you download this sample from OTN using help--> check for updates. Note that SRDemo contains code solutions for most developer cases and also is available in 10.1.3.1
    I'm happy when I can create a few pages drag and dropping controls. Business components are also a good thing. It speeds up my development. But since development is not just UI and generating business components, I lose a lot of time every time I want to write code, every time I do something "exotic" it becomes a pain in the ***.
    What is exotic, and what are the questions you didn't get an answer for ? I see that this is your first posting on OTN, so I am wondering under which account you posted the other questions that did not get an answer.
    Googling about ADF is most of the time a non sense since you always land on the same 3 blogs and the Oracle forums. Proof of non use by the community ?
    Isn't OTN a community ? I don't think that we need another discussion forum and looking at OTN it appears very active.
    I don't even talk about the fact that everything is only Oracle database oriented (openess ?).
    Not true. Please prove your claim.
    Even changing your page layout is a pain. Positioning controls is non trivial. As a whole, I would say that this whole thing imposes you to adapt to it, it doesn't adapt to you and your way of working. Most results I saw look like the Oracle websites.
    Now you are barking up the wrong tree, blaming ADF for what is JavaServer Faces layouting. You don't have to use JSF but can go for JSP /Struts and/or Swing development. What is the view layer technology of your choice that allows you to do better layouting ?
    I could go on about the various bugs and problems that plague JDeveloper
    Yes, please post them all
    ... regions doesn't work well in the designer, and so on...
    Of course, because regions are not officially supported. JDeveloper 11 - I know you don't want to hear future - will have full templating (going far beyound of what facelets do) and region support
    My point is that I feel the whole thing is not mature. And Oracle seems to fix some issues with the release of JHeadStart.
    JHeadstart is a consulting offering and not meant to fix the product.
    ... but does it means that JDeveloper+ADF and classic development becomes a second class citizen ?
    No comment for this statement as it is based on a wrong observation
    This is sad, since the ADF framework and JDeveloper look good and are worth of a more widespread usage. But marketing and support are way way far behind other commercial and open-source solutions. When I see what is planned for JDeveloper 11 and I compare it to others (Java or not).
    Note that only a fraction of new features in JDeveloper 11 leaked out so far or have been mentioned in the recent statement of direction. JDeveloper has many more features that we don't yet promote because the software isn't available.
    Please note that we give ADF to the community. Its just we are not giving it to the open soutce community but the J2EE community (JSR-227)
    Frank

  • ADF And/Or JSF : A Shift to Future

    Hi All,
    I am using Oracle Forms since 1996 and worked in different versions of it. Now there is a move away from Forms to J2EE based solutions like ADF/JSF to name a few. Even Steve is writing a book for Oracle ADF Development for Forms Developers. I have few questions in mind, that
    1. What is the best way of learning these technologies means following the book Steve / Grant is writing will help us.
    2. One must know ADF before he could learn JSF, Is it a prerequisite ?
    3. For a Forms Developer what is a right tool (ADF/JSF) which is closed to form concepts he knows so that the shift could be easy and smooth and after that he can learn more.
    Thanks In Advance

    You got is a little mixed up - JSF is one technology that the ADF framework uses.
    So it is not two options - it is one option.
    A great way to start learning development using JDeveloper ADF and JSF is visiting the special center we built for people just like you - Forms developer who want to move to Java.
    http://www.oracle.com/technology/formsdesignerj2ee
    Try for example the hands-on scripts there.
    Then you can continue with the rest of the resource on the JDeveloper home page on OTN.

  • Hi, im a beginner in ADF and JDeveloper. Can anyone suggest me any video links for learning Oracle ADF?

    Hi, im a beginner in ADF and JDeveloper. Can anyone suggest me any video links for learning Oracle ADF?
    Thanks,
    Vijay

    Refer the below link as a starting point.
    https://blogs.oracle.com/shay/entry/how_do_i_start_learning_oracle_adf_and_jdeveloper
    http://sameh-nassar.blogspot.com.au/2010/04/main-references-to-learn-oracle-adf.html
    Cheers
    AJ

  • Jdeveloper version and ADF runtime on weblogic

    Hi
    I would need to understand the link between the jdeveloper version and the Weblogic version.
    Based on this article http://tompeez.wordpress.com/2011/09/14/jdeveloper-versions-vs-weblogic-server-versions/
    it sounds like the server version to use is directly linked to the version of ADF used for the development. It is true?
    Specially is it true that there is not backward compatibility. A new weblogic server would not support a application that would have been developed with a older version of jdeveloper?
    At the end I would like to get all my weblogic servers on the same version and as much possible on the newest version but if I need to rework the applications that were developed on a previous version of ADF , that can be really time consuming.
    I would need best practice ideas .
    When I have various projects oven a two -three years period how should we deal with keeping up with the new versions of weblogic and jdeveloper?
    An another question I have is regarding the ADF run time. What is so special about it comparing to a regular set of libraries?. Why can I not deploy it as part of my application? Or is it possible and it is a better path then?
    FInal point, I have a application that was developed with jdeveloper 11.1.1.0 and run on weblogic 10.3.0.0 . I would like to migrate to jdeveloper 11.1.1.4. I already converted the project with jdeveloper 11.1.1.4. What should I do next? What testing should I do to verfy the conversion worked? Should I update the weblogic server to 10.3.4 or can I go with a newer version like 10.3.5?
    Thanks

    Ok but then if you don't migrate and you are in a environment with also new development you are going to need many different servers no?
    One welogic server for jdevleoper 11.1.0.0
    One weblogic server for jdeveloper 11.1.2.0
    One weblogic server for jdeveloper 11.1.3.0
    One weblogic server for jdeveloper 11.1.4.0
    How often should you migrate then because if you don't update you could be very behind after a couple of years and may be the migration could be almost impossible at that point.
    We still have applications that where developed for oc4j 10 g and migration is almost rewrite at this point. (only after 3 years).
    At the end, you get servers dedicated to some applications instead of having a stack of multi purpose servers.
    Also let say you are starting with a project that is going to take two years, you start the developement with jdeveloper 11.1.5.0 and in two years it will jdeveloper 13.1.1.0. How do you manage this? You stay with 11.1.5.0?
    We noticed that getting support for 10 g is really difficult at this point. Many people don't know anymore about 10 g and you don't get bug fix. If you don't get bug fix, how can you survive with your old version?
    I know that ADF is not only about the face part, I 've been using the business services too but under ADF it is J2EE and then why ADF does not come as a set of libraries that you can link to in your J2EE project instead of becoming a server centric runtime?
    People went to J2EE to get plateform independent, with ADF you are becoming server dependant. ADF is supposed to do better than .net but if you look at .net the IDE actually support old and new frameworks. If you get to develop on a older framework you can still use the new IDE. Also you can install several versions of the framework on the same server with .net.
    From what I can read ADF is not even supported on JBOSS anymore so give me argument to choose ADF as a enterprise solution? Is it really the future?

  • How to implement hierarchical structure of managers and reportees using jdeveloper adf

    I want to display hierarchical structure(which can be expanded and compressed) with 3 columns(Employeeid, fist Name,lastname) of managers and his reportees on selecting a top level manager.
    In this i'm going to use programmatic view objects.
    I have employees table.
    Here is my detailed requirement:
    On selecting a user from drop down list, i want to display the list of users reporting to him.
    From the displayed list on selecting a manager, list of users reporting to him has to be displayed in a tree format with the correspoding just being listed below the current selected manager
    Example :
    Top Manger  has been selected from dropdown and clicked submit.
    Output(a table as mentioned below):
    Manager1
    Manager2
    NonManager1
    Manger 3
    On clicking manager1,
    output:
    Manger 1
      Manger11
      Manasger12
      Nonmanager11
    Manger 2
    NonManger1
    Manger3
    on clicking manager1 again, tree has to be compressed and the output has to be just the same as first output.
    Please help me on this by sharing information or any references on how can i achieve this implementation using Jdeveloper adf concepts.
    Will be waiting for the inputs.
    Thank You,
    Dev

    Obviously, you can only display one picture.  So then the question becomes which picture to show.  Therefore, you will have to create some sort of preference of one pattern over another.
    I would use a FOR loop so that you can loop through your available patters and their possible results.  Use the Conditional Terminal on the FOR loop so that you can stop the loop on the first match.  Then you just wire up the selected value for the ring outside of the loop.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • JDeveloper, Toplink, and ADF advice.

    We have application that was completely developed JDeveloper 10.1.3/4 with Toplink, JSF, ADF, and Session Facade; extremely similar to the SRDemo.
    I am want to upgrade to JDeveloper 11g; however, the ADF Faces JSF will be migrated to Apache MyFaces Trinidad.
    1. Why would this be better than migrating to ADF Faces 11g? Pros and cons?
    2. Is Apache MyFaces Trinidad the future of Oracle's ADF?
    3. What would be the best approach for upgrade to Toplink and ADF 11g?
    Thank you.

    1. Why would this be better than migrating to ADF Faces 11g? Pros and cons?It won't be better than using ADF Faces 11g - it is just more feasible for automatic conversion - we can't do automatic conversion from ADF FAces 10.1.3 to ADF Faces 11g since the UI capabilities are so drastically different. We migrate to Trinidad to allow you to combine Trinidad and ADF Faces 11g in the same application. (You can't use ADF Faces 10.1.3 and 11g in the same application).
    2. Is Apache MyFaces Trinidad the future of Oracle's ADF?No. ADF Faces Rich Client is the present and future. Those are based on Trinidad.
    3. What would be the best approach for upgrade to Toplink and ADF 11g?The basic thing to do is open the application in JDeveloper 11g - things should work after the migration.
    Then you can start leveraging new capabilities such as the new ADF Faces 11g UI in new parts of the application.
    You might want to ask on the TopLink forum if they have any specific migration tips.

  • JDeveloper and Eclipse interfacing through Subversion

    WE have a project on Eclipse. We are using Subversion for source version control. Now I've downloaded JDeveloper 11g and would like to bring the project in it. It means some will use Eclipse whereas I want to use JDeveloper and the central repository is on SVN. Is it possible? If so...please let me know how.
    Thanks
    Rashed

    Hi Rashed and Steve,
    I would suggest a slight alternative to Steve. I would create an application and project in JDEV and check all the code out to it. Then I would add the application and project 'container' files (the .jws and .jpr) to the SVN repository.
    This ensures that the context menu options at the application or project level are enabled.
    I blogged about this a while age: http://susanduncan.blogspot.com/2007/11/at-what-level-should-i-version-my.html
    Also, in JDeveloper 11g Subversion is shipped as part of JDeveloper, whereas in 10g it was an extension as Steve pointed out
    rgds
    Susan

  • Jdeveloper ADF  4 DBs: oracle10g and SQLServer

    We have 4 international partners with databases (3 Oracles and 1 SQLServer). All databases have exact the same data model.
    We have to develop a WebApplication(s), that do all data available for small number of users.
    Is it possible with one central WebServer and one Web Application, that connect to 4 DBs?
    Or it is better to use 4 WebServers with 4 Installations of the WebApplication?
    Is it possible to develop this System with JDeveloper11, ADFs and using then Tomcat as WebServer?
    Thanks in advance,
    Eugen

    We have 4 international partners with databases (3 Oracles and 1 SQLServer). All databases have exact the same data model.
    We have to develop a WebApplication(s), that do all data available for small number of users.
    Is it possible with one central WebServer and one Web Application, that connect to 4 DBs?
    Or it is better to use 4 WebServers with 4 Installations of the WebApplication?
    Is it possible to develop this System with JDeveloper11, ADFs and using then Tomcat as WebServer?
    Thanks in advance,
    Eugen

  • Assoc and view links in Jdeveloper

    Hi! I created two tables in DB with relationship 1 to 1. Then I created two EO in my app, but assoc and view links don't generated automaticaly. Where might be a problem?
    Best regards, Debuger!

    I created two tables in DB with relationship 1 to 1What does this mean? Did you create foreign keys between the two tables?
    John

Maybe you are looking for

  • How to copy table data from onde DB to another DB using clipboard

    HI, i copied table data from one DB to another DB, but it displays an error as "policy with check option violation" when inserting the table data.. so how to resolve the proble.. thanks in advance.

  • I am facing syntactical error, please help

    Hi All, Please help me. I am facing syntactical error for the below mentioned code, please help me to get rid of it. I want to fetch the record set in cursor loop it to process one by one inside the loop - for every record - i need to fetch a record

  • Firefox suddenly changes to very basic text only view

    When I'm on the internet e.g. doing shopping on Ocado.com the internet suddenly changes to a very simple text only type of layout (i'm no tech whizz - it looks like a word document rather than an internet page?) I don't know whether this is Firefox o

  • How to SQL intersect using Toplink expressions

    I try to do this SQL intersect SELECT part_k FROM ATTR_VALUE where commodity_n ='dab badge' and attribute_n='Badge Width' and attribute_value_x='10' INTERSECT SELECT part_k FROM ATTR_VALUE where commodity_n='dab badge' and attribute_n='Brand Logo' an

  • Error accessing PRODUCT_USER_PROFILE

    Hi, people tools 8.42.15 , CRM88 Oracle on a Win 2003 Server when loging as sysadm via SQLPLUS I have the following error : C:\Documents and Settings>sqlplus sysadm/s*@MYDB SQL*Plus: Release 10.2.0.1.0 - Production on Wed Nov 26 16:00:54 2008 Copyrig