JPA  -  tree structure mapping    with toplink essential

I'll try to explain it correctly.
I store a tree structure in a database. I have just two tables:
Node which contain a id , and some other info.
Tree which contain a parent and child
parent and child are ids from node.
Since each node can have several childs, and each node can have several parents, I had try a @ManyToMany relationship without sucess.
Here one small example of my tries :
@Entity
@Table(name="node")
public class Node {
@Id private int id;
private List<Node> childs;
private List<Node> parents;
@ManyToMany
@JoinTable(name="Tree")
public List<Node> getParents(){
     return parents;
@ManyToMany(mappedBy="parents")
public List<Node> getChilds(){
     return childs;
}But I always got several error.
Anyone have a working example that look like mine ?
Even after googling for several hours I still find nothing.
If it helps, I use toplink essential for my persistance layer.

Please see http://www.oracle.com/technetwork/middleware/toplink/index-085257.html for information on TopLink JPA support.
So as of TopLink 11, you will need to use EclipseLink's org.eclipse.persistence.jpa.PersistenceProvider as the provider class for JPA support, which is in the eclipselink.jar.
Best Regards,
Chris

Similar Messages

  • Error with toplink essential on weblogic 9.1

    Hi Oracle community,
    i have an application i developped using netbeans, toplink essential bundled framework and tomcat 5 bundled servlet container.
    It's running fine on tomcat.
    But when i deploy on weblogic 9.1 i have the followoing :
    Error 500--Internal Server Error
    javax.faces.FacesException: #{loginutilisateur.valider}: javax.faces.el.EvaluationException: javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060830)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [PortailBaseDePilotagePU] for which predeploy method either had not called or had failed
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:78)
         at javax.faces.component.UICommand.broadcast(UICommand.java:312)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3151)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
    Caused by: javax.faces.el.EvaluationException: javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060830)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [PortailBaseDePilotagePU] for which predeploy method either had not called or had failed
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:130)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
         ... 22 more
    Caused by: javax.persistence.PersistenceException: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060830)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [PortailBaseDePilotagePU] for which predeploy method either had not called or had failed
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:195)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:78)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:113)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:107)
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:76)
         at persistanceBaseDePilotage.Controller.UtilisateurController.getEntityManager(UtilisateurController.java:47)
         at persistanceBaseDePilotage.Requetes.UtilisateurRequetes.verificationConnection(UtilisateurRequetes.java:31)
         at formulaireBean.LoginUtilisateur.valider(LoginUtilisateur.java:105)
         at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
         at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
         at javax.faces.component.UICommand.broadcast(UICommand.java:312)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3151)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    Caused by: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.8 (Build 060830)): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [PortailBaseDePilotagePU] for which predeploy method either had not called or had failed
         at oracle.toplink.essentials.exceptions.EntityManagerSetupException.cannotDeployWithoutPredeploy(EntityManagerSetupException.java:167)
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:195)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:78)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:113)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:107)
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:76)
         at persistanceBaseDePilotage.Controller.UtilisateurController.getEntityManager(UtilisateurController.java:47)
         at persistanceBaseDePilotage.Requetes.UtilisateurRequetes.verificationConnection(UtilisateurRequetes.java:31)
         at formulaireBean.LoginUtilisateur.valider(LoginUtilisateur.java:105)
         at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
         at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
         at javax.faces.component.UICommand.broadcast(UICommand.java:312)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
    Any ideas ??
    thanks
    Eric                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    It appears that for some reason the predeploy failed. Perhaps turning on
    logging would yield some more information earlier.
    Add this to your persistence.xml in the properties section:
    <property name="toplink.logging.level" value="FINEST" />
    Let me know the results.

  • ObjectRelational Mapping with Toplink

    Hi,
    I'm looking for any tutorial or example about ObjectRelational mappings, Object-types, Varrays, Nested tables, ObjectRelationalDescriptor. I tried with code examples from b100063,b100064. but they are too short and not clear.
    thanks,

    Hi,
    I found this example on metalink.oracle.com it gives a good example of a Varray. I tried the example and it works. You said that there were code examples: b100063,b100064, where are they located.
    Anyway here is the example:
    Bookmark Fixed font Go to End
    Doc ID: Note:224177.1
    Subject: Mapping to a VARRAY object type defined in an Oracle database
    Type: SAMPLE CODE
    Status: PUBLISHED
    Content Type: TEXT/PLAIN
    Creation Date: 20-DEC-2002
    Last Revision Date: 08-APR-2003
    Overview
    Oracle9iAS TopLink supports object-relational mapping. That means that
    custom made datatypes (created by developer) in database could be used
    to map some java application side attributes to. One of object types is
    VARRAY. Mapping Workbench does not allow object-relational mapping (at
    the time when this article is written), but if this feature is needed,
    project file can be edited to accomplish this.
    If object type (VARRAY) already exist in database, all developer has to
    do is make TopLink aware of it and map an attribute to it.
    Program Notes
    This example uses varray type courses_list_type defined in oracle database as:
    create or replace type courses_list_type as varray(5) of varchar2(25);
    The courses_list_type type is used in table test_student (used in this example)
    defined as:
    create TABLE test_student (
    student_id number(3) PRIMARY KEY,
    student_name varchar2(30),
    student_courses courses_list_type);
    Since we need some data in table test_student, the following statement has
    been executed:
    INSERT INTO test_student VALUES(1, 'Ron More',
    courses_list_type ('Visual Basic', 'Java', 'C++', 'UML', 'SQL'));
    Caution
    The sample program in this article is provided for educational purposes only
    and is NOT supported by Oracle Support Services. It has been tested
    internally, however, and works as documented. We do not guarantee that it
    will work for you, so be sure to test it in your environment before relying
    on it.
    Program
    SessionEventAdapter class must be set up and the preLogin() method implemented.
    The session can be retrieved from the SessionEvent (getSession() method) and
    descriptor with the VARRAY MAPPING (the new ObjectRelationalDescriptor) added
    to the project. This must be done in code since this cannot be done from the
    Mapping Workbench. This is recommended way of dealing with this issue since
    the modification of the project.java (generated by Mapping Workbench) file is
    avoided. Doing this, project itself can be modified many times without changing
    object-relational descriptor.
    A) class Student is created in Jdeveloper
    package oracle.toplink.demos.employee.domain;
    import java.util.*;
    import java.io.*;
    public class Student {
    private int id;
    private String name; // a collection of courses being stored in Oracle database as VArray type
    private Vector courses;
    public Student ( ){
    this.id = 0;
    this.name = "";
    this.courses = new Vector(5);
    public void addCourse(String courseName){getCourses().addElement(courseName);}
    public void removeCourse(String courseName){getCourses().removeElement(courseName);}
    public int getId ( ) {return id;}
    public String getName ( ) {return name;}
    public Vector getCourses(){ return courses;}
    public void setId(int studentId) {this.id = studentId;}
    public void setName(String studentName) {this.name = studentName;}
    public void setCourses(Vector studentCourses){this.courses = studentCourses;}
    } // end of class student
    B) implementation of SessionEventAdapter class
    package oracle.toplink.demos.employee.domain;
    import oracle.toplink.sessions.*;
    import oracle.toplink.demos.employee.relational.*;
    public class MySessionEventAdapter extends SessionEventAdapter{
    /* This Event is raised before the session logs in. */
    public void preLogin(SessionEvent event){
    System.out.println("In preLogin()");
    // need empProject variable since it owns the buildStudentDescriptor() method
    EmployeeProject empProject = new EmployeeProject();
    event.getSession().getProject().addDescriptor(empProject.buildStudentDescriptor());
    } // end of preLogin
    } // end of MySessionEventAdapter
    Before login to database the following two lines must be executed:
    MySessionEventAdapter myAdapter = new MySessionEventAdapter();
    session.getEventManager().addListener((SessionEventListener)myAdapter);
    C) method that builds the ObjectRelationaDescriptor descriptor on student class
    public static Descriptor buildStudentDescriptor(){
    ObjectRelationalDescriptor descriptor = new ObjectRelationalDescriptor();
    descriptor.setJavaClass(oracle.toplink.demos.employee.domain.Student.class);
    descriptor.setTableName("TEST_STUDENT");
    descriptor.setPrimaryKeyFieldName("TEST_STUDENT.STUDENT_ID");
    // Mappings.
    DirectToFieldMapping idMapping = new DirectToFieldMapping();
    idMapping.setAttributeName("id");
    idMapping.setFieldName("TEST_STUDENT.STUDENT_ID");
    descriptor.addMapping(idMapping);
    DirectToFieldMapping nameMapping = new DirectToFieldMapping();
    nameMapping.setAttributeName("name");
    nameMapping.setFieldName("TEST_STUDENT.STUDENT_NAME");
    descriptor.addMapping(nameMapping);
    ArrayMapping coursesMapping = new ArrayMapping(); // here we do not use ObjectArrayMapping
    coursesMapping.setAttributeName("courses");
    coursesMapping.setGetMethodName("getCourses");
    coursesMapping.setSetMethodName("setCourses");
    coursesMapping.setStructureName("COURSES_LIST_TYPE");
    coursesMapping.setFieldName("TEST_STUDENT.STUDENT_COURSES");
    descriptor.addMapping(coursesMapping);
    return descriptor;
    } // end of buildStudentDescriptor()
    Defining the student descriptor this way, TopLink has all information on varray
    type used. Please note that varray type already exist in database so ArrayMapping
    is used instead of ObjectArrayMapping.
    D) method that inserts object of type student into database
    public void callObjectRelationalVArray(){
    session.initializeIdentityMaps();
    System.out.println("\n\n\nSTART: callObjectRelationalVArray()");
    /* ************* callObjectRelationalVArray; insert student - start *******/
    UnitOfWork uowInsertStudent = session.acquireUnitOfWork();
    Student newStudent = new Student();
    Student cloneStudent = (Student)uowInsertStudent.registerObject(newStudent);
    cloneStudent.setId(6);
    cloneStudent.setName("Ron Moore");
    cloneStudent.addCourse("Java");
    cloneStudent.addCourse("JBuilder");
    cloneStudent.addCourse("HTML");
    cloneStudent.addCourse("Rational Rose");
    cloneStudent.addCourse("Visual Basic");
    uowInsertStudent.commit();
    /* ************* callObjectRelationalVArray; insert student - end *********/
    System.out.println("END: callObjectRelationalVArray()");
    } // end of callObjectRelationalVArray
    Sample Output
    By executing callObjectRelationalVarray() method JDeveloper produces the
    following output:
    START: callObjectRelationalVArray()
    DatabaseSession(11)--Connection(12)--delete test_student where STUDENT_ID = 6
    student with STUDENT_ID = 6 is deleted
    DatabaseSession(11)--acquire unit of work:28
    UnitOfWork(28)--begin unit of work commit
    DatabaseSession(11)--Connection(12)--begin transaction
    UnitOfWork(28)--Connection(12)--INSERT INTO TEST_STUDENT
    (STUDENT_ID, STUDENT_NAME, STUDENT_COURSES) VALUES (?, ?, ?)
    bind => [6, Ron Moore, oracle.sql.ARRAY@20]
    DatabaseSession(11)--Connection(12)--commit transaction
    UnitOfWork(28)--end unit of work commit
    UnitOfWork(28)--release unit of work
    Copyright (c) 1995,2000 Oracle Corporation. All Rights Reserved. Legal Notices and Terms of Use.

  • Please Help With toplink deployment

    Hello
    I have a simple j2ee application that runs great in jdeveloper but bombs when I deploy it to my OAS server.
    JDev Version 10.1.2
    OAS 10.1.2
    Technologies used
    Struts, toplink
    I have 1 table I mapped with toplink, I have a toplink-deployment-descriptor.xml, sessions.xml and a TopLink Mappings.
    I have a struts action called kicker.
    In kicker I do the following:
    <code>
    oracle.toplink.tools.sessionconfiguration.XMLLoader xmlLoader = new oracle.toplink.tools.sessionconfiguration.XMLLoader("META-INF/sessions.xml");
    oracle.toplink.tools.sessionmanagement.SessionManager sessionManager = oracle.toplink.tools.sessionmanagement.SessionManager.getManager();
    DatabaseSession session = (DatabaseSession)sessionManager.getSession(xmlLoader, "default", Thread.currentThread().getContextClassLoader());
    Vector objects = session.readAllObjects(t3.model.NibuSalaryWorksheets.class);
    System.out.println(objects.size());
    request.getSession().setAttribute("results",objects);
    return mapping.findForward("success");
    </code>
    Then in a jsp page I iterate over the results collection and print it out.
    When I try to deploy this it blows up on the server with the following error :
    Local Exception Stack:
    Exception [TOPLINK-6007] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.QueryException
    Exception Description: Missing descriptor for [class t3.model.NibuSalaryWorksheets].
    Query: ReadAllQuery(t3.model.NibuSalaryWorksheets)
    Can someone please help me, I am desparate to use toplink over ejb's but I can't get it to run on the server.
    thanks
    troy

    Seems to be some kind of classloader issue.
    You can check if the session has a descriptor for the class by calling,
    session.getDescriptor(Class.forName("t3.model.NibuSalaryWorksheets"));
    It is most likely that the class is on the classpath twice.
    Instead of loading the sessions.xml with the thread class loader you could try using the classes class loader.
    i.e.
    DatabaseSession session = (DatabaseSession)sessionManager.getSession(xmlLoader, "default", t3.model.NibuSalaryWorksheets.class.getClassLoader());

  • How to create a PortalSite map in a tree structure

    Hi,
    We are trying to reuse SAP Portal EP 7.3 standard functionalities related to create a Portal Site Map.
    I've seen the procedure to create a Workset map iview (http://help.sap.com/saphelp_nw73/helpdata/en/49/32a7a9e8c45aaae10000000a42189d/frameset.htm), but we are interested in generate this map contained in a tree structure, because currently the SAP EP 7.1 brings the menu and option format.
    I would like to know if this is possible using the standard functionalities or it is required to develop any application?
    Please if you could help me it would be really useful.
    Thanks in advance,

    Thanks for your help Srinivas,
    I was trying to know if it was possible to assign a style or layout to the site map iview created using the standard map iview delivered by SAP EP 7.3. I was looking for documentation but it is not enough at all and in my project we are still working with SAP EP 7.0
    Please, if anyone could know about the map site iview standard and the available styles or maybe it is not changeable.
    In that case, the only way it would be a development to get the tree structure.
    Thanks!!!!

  • KM Folders with Tree structure

    Hi Experts,
    I found 1 blog in SDN. It is tells how to create tree view with KM Folders using KM API.
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1424. [original link is broken]
    I am developing a custom application for uploading a file in multiple folders with single button click. Here I need tree structure and a check box option for selecting multiple folders. As default in tree view, I couldnot select multiple items. Is there any possible to achive this?.
    Thanks in Advance,
    Venkatesh

    answered by thread "Modifiers in Collection List Renderer to display word wrapping"

  • Weblogic 9.1 with toplink JPA - Problem creating entityManagerFactory

    I am using weblogic 9.1 with toplink jpa provider.
    I am getting the error while creating entityManagerFactory.
    Exception stack trace
    faces.FacesException: #{LogonMB.authenticateLogin}: javax.faces.el.EvaluationException: java.lang.ExceptionInInitializerError
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:98)
         at javax.faces.component.UICommand.broadcast(UICommand.java:332)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:287)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:401)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:95)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:268)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3153)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
    Caused by: javax.faces.el.EvaluationException: java.lang.ExceptionInInitializerError
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:150)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:92)
         ... 19 more
    Caused by: java.lang.ExceptionInInitializerError
         at com.arisglobal.cc.service.impl.PreferencesServiceImpl.getEntityManager(PreferencesServiceImpl.java:45)
         at com.arisglobal.framework.service.AbstractBusinessService.(AbstractBusinessService.java:24)
         at com.arisglobal.cc.service.impl.PreferencesServiceImpl.(PreferencesServiceImpl.java:36)
         at com.arisglobal.cc.factory.BusinessServiceFactory.createPreferencesService(BusinessServiceFactory.java:113)
         at com.arisglobal.cc.mb.LogonManagedBean.authenticateLogin(LogonManagedBean.java:51)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:146)
         ... 20 more
    Caused by: Exception [TOPLINK-34002] (Oracle TopLink Essentials - 2006.7 (Build 060720)): oracle.toplink.essentials.exceptions.XMLParseException
    Exception Description: An exception occurred while processing persistence.xml from URL: file:/D:/ClinicalConnect/4. CODING/web/WEB-INF/classes/META-INF/persistence.xml. A SAXParser instance could not be created.
    Internal Exception: org.xml.sax.SAXNotRecognizedException: http://java.sun.com/xml/jaxp/properties/schemaLanguage
         at oracle.toplink.essentials.exceptions.XMLParseException.getXMLParseException(XMLParseException.java:101)
         at oracle.toplink.essentials.exceptions.XMLParseException.exceptionCreatingSAXParser(XMLParseException.java:73)
         at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.processPersistenceXML(PersistenceUnitProcessor.java:315)
         at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.processPersistenceArchveFromUnconvertableURL(PersistenceUnitProcessor.java:90)
         at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.processPersistenceArchive(PersistenceUnitProcessor.java:202)
         at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.getPersistenceUnits(PersistenceUnitProcessor.java:77)
         at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initPersistenceUnits(JavaSECMPInitializer.java:222)
         at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initialize(JavaSECMPInitializer.java:240)
         at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initializeFromMain(JavaSECMPInitializer.java:277)
         at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.getJavaSECMPInitializer(JavaSECMPInitializer.java:80)
         at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createEntityManagerFactory(EntityManagerFactoryProvider.java:118)
         at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
         at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:60)
         at com.arisglobal.cc.helper.ResourceManager.(ResourceManager.java:8)

    hi JavaCrazyLover
    u got why u getting the error i ma getting similar error its running fine in 8.1 but in web9.1 it is giving errors in some jsp pages may be due to versions or name spacing ie we write in top of the page DTD schema am not sure but i think , there is no jars to add on as such web 9.1 is upgraded one and it supports all files some where there will be conflicts between versions example JDK 1.5and 1.4 enum is a keyword in 9.1 but in normal in 8.1 if u get the solution for this error please mail me to [email protected]
    rgds
    Mohammed Mansoor

  • How to create a tree structure with check boxs using Windows Activex Control?

    Hi,
    I am very new to LabVIEW. I am trying to create a tree structure with Check Boxes like the below. It would be great if someone would show me a right direction to go forward.
    The aim is to select the item and one by one i have to get the Path and give as an input to by application VI.
    Thanks and Best Regards
    Prathap

    Hi Andy,
    Sorry i pasted the Picture.. Pls find the attached picture.
    Following are my requirement:
    1) I need to populate a tree given a root directory, listing all the Folders and file of cetain pattern(*.pjt... ther will be only one *.pjt in every subfolders).
    2) I need a check box for every *.pjt to select the its path. The list of pjt files selected are used for my automation test suit.
    Pls let me know if you need more info.
    Best Regards
    Prathap
    Attachments:
    tree.JPG ‏73 KB

  • Tree Structure with Location & Designation

    hi,
    i need to populate a tree structure with Department & Job,
    so that first level will show the department, 2nd level the designation and 3rd the employees(sorted)
    select b.dname, a.job, a.empno, a.ename
      from emp a, dept b
    where a.deptno = b.deptno
    order by 1,2,3
    DNAME          JOB          EMPNO     ENAME
    ACCOUNTING     CLERK          7934     MILLER
    ACCOUNTING     MANAGER          7782     CLARK
    ACCOUNTING     PRESIDENT     7839     KING
    RESEARCH     ANALYST          7788     SCOTT
    RESEARCH     ANALYST          7902     FORD
    RESEARCH     CLERK          7369     SMITH
    RESEARCH     CLERK          7876     ADAMS
    RESEARCH     MANAGER          7566     JONES
    SALES          CLERK          7900     JAMES
    SALES          MANAGER          7698     BLAKE
    SALES          SALESMAN     7499     ALLEN
    SALES          SALESMAN     7521     WARD
    SALES          SALESMAN     7654     MARTIN
    SALES          SALESMAN     7844     TURNERThanks,
    Noushad
    Edited by: user517294 on Feb 27, 2010 7:01 PM

    Or
    SQL> with deptnos as (
      select distinct dname, e.deptno from emp e, dept d where e.deptno=d.deptno  order by e.deptno
    jobs as (
    select dname ||'/'|| max(job) over (partition by deptno order by job) hierarchy, deptno, job from (select distinct dname, e.deptno, job from emp e, deptnos d where e.deptno = d.deptno)
    enames as
    select e.deptno, j.hierarchy || '/' || max(ename) over (partition by e.job, e.deptno, ename order by hierarchy) hierarchy, ename from emp e, jobs j where e.job = j.job and e.deptno = j.deptno
    select regexp_replace(hierarchy, '.*/', lpad('-',length(regexp_substr(hierarchy, '.*/')),'-')) hierarchy
      from (select dname hierarchy from deptnos
            union all
            select hierarchy from jobs
            union all
            select hierarchy from enames
            order by 1)
    HIERARCHY                                                                      
    ACCOUNTING                                                                     
    -----------CLERK                                                               
    -----------------MILLER                                                        
    -----------MANAGER                                                             
    -------------------CLARK                                                       
    -----------PRESIDENT                                                           
    ---------------------KING                                                      
    RESEARCH                                                                       
    ---------ANALYST                                                               
    -----------------FORD                                                          
    -----------------SCOTT                                                         
    ---------CLERK                                                                 
    ---------------ADAMS                                                           
    ---------------SMITH                                                           
    ---------MANAGER                                                               
    -----------------JONES                                                         
    SALES                                                                          
    ------CLERK                                                                    
    ------------JAMES                                                              
    ------MANAGER                                                                  
    --------------BLAKE                                                            
    ------SALESMAN                                                                 
    ---------------ALLEN                                                           
    ---------------MARTIN                                                          
    ---------------TURNER                                                          
    ---------------WARD                                                            
    26 rows selected.

  • Using transaction activation policy together with TOPLINK Java object/relational mapping "commit and resume" transaction?

    Has any one has experience using WLE transaction context together with TOPLINK Java
    version of "commit and resume" context?

    Has any one has experience using WLE transaction context together with TOPLINK Java
    version of "commit and resume" context?

  • Tree structure with checkboxes and radio buttons

    Hi,
    I am using SNODETEXT as tree structure. On the child node, I need to have checkboxes and radio buttons. Is this possible?

    Hi
    Muse does not currently have dropdown lists, radio buttons, or checkboxes as part of the forms. You may want to check out using Adobe FormsCentral, Jotform, or Wufoo and inserting them via Object > Insert HTML as an alternative from the Muse forms, as those forms will have the lists, buttons, and checkboxes you're looking for.
    Another way if you are publishing your site to Business Catalyst, then you can create forms in BC admin section and copy the form html in Muse page which will render the from that you have created in BC in your Muse site page.
    More details :
    http://helpx.adobe.com/business-catalyst/using/create-insert-form.html
    Thanks,
    Sanjit

  • URGENT---EJB 3.0--Toplink essential - loading custom session customizer

    Dear all,
    I am a newbie to EJB as well as JPA...for some reason i need to write a custom session customizer
    i config the persistence.xml with the following property:
    <property name = "toplink.session.customizer" value = "customizer.MyCustomizer"/>
    My EJB project structure:
    Application1
    ->EJB_Project1
    ->customizer
    ->MyCustomizer.java
    ->bean
    ->BeanARemote.java
    ->BeanBRemote.java
    ->META-INF
    ->persistence.xml
    when i want to test the EJB project..the following exception occur...
    ==============================================================
    Exception Description: ClassNotFound: [customizer.MyCustomizer] specified in [toplink.session.customizer] property.
    Internal Exception: oracle.classloader.util.AnnotatedClassNotFoundException:
    Missing class: customizer.MyCustomizer
    Dependent class: oracle.toplink.essentials.internal.security.PrivilegedAccessHelper
    Loader: oracle.persistence:1.0
    Code-Source: /C:/Oracle10-1-3-11/toplink/jlib/toplink-essentials.jar
    Configuration: <code-source> in /C:/Oracle10-1-3-11/jdev/system/oracle.j2ee.10.1.3.39.14/embedded-oc4j/config/server.xml
    This load was initiated at oracle.persistence:1.0 using the Class.forName() method.
    The missing class is available from the following locations:
    1. Code-Source: /G:/JDeveloper/jdev/mywork/Application1/EJB_Project1/classes/ (from <ejb> in unknown)
         This code-source is available in loader current-workspace-app.root:0.0.0.
         This is the current thread's context loader, and it appears that Class.forName() was used to load the dependent class.
         If a loader was not explicitly passed to Class.forName(), try passing the result of calling Thread.currentThread().getContextClassLoader().
    ==============================================================
    the application server cannot load the class but it can locate where the class is...
    why???
    i futher check if the problem is related to parent-child class-loader mechanism
    in the code, i call the Class.getClassLoader() in order to obtain which classloaders
    my session customizer and JPA EntityManager (implied for the whole toplink essential?) were loaded by...
    result: for custom session customizer..
    top classloader == jre.bootstrap:1.5.0_09
    2nd classLoader == jre.extension:0.0.0
    3rd classLoader == api:1.4.0
    4th classLoader == oc4j:10.1.3
    5th classLoader == system.root:0.0.0
    6th classLoader == default.root:0.0.0
    result: for JPA EntityManager..
    top classloader == jre.bootstrap:1.5.0_09
    2nd classLoader == jre.extension:0.0.0
    3rd classLoader == api:1.4.0
    4th classLoader == oc4j:10.1.3
    it seems the EntityManager is loaded in 'higer level' class loader, so it can't access
    class load in 'lower level' class loader ..
    Dependent class: oracle.toplink.essentials.internal.security.PrivilegedAccessHelper
    Loader: oracle.persistence:1.0But something strange is that the exception message saying the loader is oracle.persistence:1.0 ???
    Could anybody help me......?
    what is the solution...?
    i have searching in the web for days but can't find solution !!!
    Thank you very much ...
    ** My development environment:
    JDeveloper: 10.1.3.1
    window xp sp2
    sun java sdk 5 update 9

    i have futher check if the problem is related to class loading
    i call the Class.getClassLoader() in order to obtained which classloaders
    my session customizer and EntityManager were loaded...
    obtain the following result: for my session customizer..
    top classloader == jre.bootstrap:1.5.0_09
    2nd classLoader == jre.extension:0.0.0
    3rd classLoader == api:1.4.0
    4th classLoader == oc4j:10.1.3
    5th classLoader == system.root:0.0.0
    6th classLoader == default.root:0.0.0
    for EntityManager..
    top classloader == jre.bootstrap:1.5.0_09
    2nd classLoader == jre.extension:0.0.0
    3rd classLoader == api:1.4.0
    4th classLoader == oc4j:10.1.3
    it seems the entity manager is loaded in 'higer level' class loader, so it can't access
    class load in 'lower level' class loader ..
    Dependent class: oracle.toplink.essentials.internal.security.PrivilegedAccessHelper
    Loader: oracle.persistence:1.0But something strange is that the exception message saying the loader is oracle.persistence:1.0 ????
    Could anybody help me......?
    what is the solution...?
    Thank you ...

  • Predeploy for PersistenceUnit failed - JBOSS with toplink essentials

    I am trying to migrate my project from Tomcat 6 to Jboss-5.1.0-GA
    I am using JPA 1.0 with toplink-essentials 2.0 for database process.
    In tomcat it is working perfectly.
    But when i am trying in JBOSS, it showing the below error..
    19:38:27,983 ERROR [AbstractKernelController] Error installing to Start: name=persistence.unit:unitName=#Entity state=Create
    javax.persistence.PersistenceException: Exception [TOPLINK-28018] (Oracle TopLink Essentials - 2.0 (Build b40-rc (03/21/2007))): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: predeploy for PersistenceUnit [Entity] failed.
    Internal Exception: java.lang.NullPointerException
    at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:615)
    at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createContainerEntityManagerFactory(EntityManagerFactoryProvider.java:178)
    at org.jboss.jpa.deployment.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:301)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
    at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
    at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
    at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)
    at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
    at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)
    at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)
    at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
    at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
    at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
    at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
    at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
    at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
    at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:121)
    at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:51)
    at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
    at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
    at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
    at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
    at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
    at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
    at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
    at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
    at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
    at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
    at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
    at org.jboss.Main.boot(Main.java:221)
    at org.jboss.Main$1.run(Main.java:556)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: Exception [TOPLINK-28018] (Oracle TopLink Essentials - 2.0 (Build b40-rc (03/21/2007))): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: predeploy for PersistenceUnit [Entity] failed.
    Internal Exception: java.lang.NullPointerException
    at oracle.toplink.essentials.exceptions.EntityManagerSetupException.predeployFailed(EntityManagerSetupException.java:212)
    ... 62 more
    Caused by: java.lang.NullPointerException
    at oracle.toplink.essentials.internal.ejb.cmp3.xml.XMLHelper.parseDocument(XMLHelper.java:623)
    at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProcessor.readStandardMappingFiles(MetadataProcessor.java:369)
    at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProcessor.readMappingFiles(MetadataProcessor.java:339)
    at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.processORMetadata(PersistenceUnitProcessor.java:344)
    at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:584)
    ... 61 more
    15:37:39,014 WARN [HDScanner] Failed to process changes
    org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
    DEPLOYMENTS IN ERROR:
    Deployment persistence.unit:unitName=#Entity is in error due to the following reason(s): java.lang.NullPointerException
    at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:993)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:939)
    at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:873)
    at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)
    at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:369)
    at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)and my persistence.xml file is here like below...
    <persistence xmlns="http://java.sun.com/xml/ns/persistence"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
    http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0">
    <persistence-unit name="Entity" transaction-type="JTA">
    <provider>oracle.toplink.essentials.PersistenceProvider</provider>
    <jta-data-source>java:/iport</jta-data-source>
    <mapping-file>orm.xml</mapping-file>
    <class>env.model.authorization.IptUsersRoles</class>
    <class>env.model.defaults.IptConveyourMaster</class>
    <class>env.model.defaults.IptAccessroles</class>
    <class>env.model.defaults.IptAccesstype</class>
    <class>env.model.defaults.IptAccounttype</class>
    <class>env.model.defaults.IptCompanylicensejoin</class>
    <class>env.model.defaults.IptCompagentjoin</class>
    <class>env.model.defaults.IptState</class>
    <class>env.model.defaults.IptStockyardCargotype</class>
    <class>env.model.defaults.IptTaxcategory</class>
    <class>env.model.defaults.IptTaxparameter</class>
    <class>env.model.defaults.IptTaxtype</class>
    <class>env.model.defaults.IptTerminaltype</class>
    <class>env.model.defaults.IptTugtype</class>
    <class>env.model.defaults.IptGldetailsmaster</class>
    <class>env.model.defaults.IptBagmaster</class>
    <class>env.model.defaults.IptTax</class>
    <class>env.model.defaults.IptBranch</class>
    <class>env.model.defaults.IptTransactionType</class>
    <class>env.model.masters.IptAgentmaster</class>
    <class>env.model.operations.IptCommunicationTemplate</class>
    <class>env.model.operations.IptCommtemplateLines</class>
    <class>env.model.workflow.IptApprovedDocstatus</class>
    <class>env.model.masters.IptVesselPerformanceMaster</class>
    <class>env.model.defaults.IptEquipmentType</class>
    <class>env.model.defaults.IptCity</class>
    <class>env.model.transactions.IptLabreportFunction</class>
    <class>env.model.defaults.IptAttachmentConfiguration</class>
    <class>env.model.defaults.IptAttachmentConfigurationLines</class>
    <class>env.model.defaults.IptExchangeratelines</class>
    <class>env.model.masters.IptNotifications</class>
    <class>env.model.masters.IptNotificationslines</class>
    <class>env.model.defaults.IptLogSheet</class>
    <properties>
    <property name="toplink.jdbc.driver"
    value="com.microsoft.sqlserver.jdbc.SQLServerDriver" />
    <property name="toplink.jdbc.url"
    value="jdbc:sqlserver://x.x.x.x;databaseName=IPORTMAN_GPL" />
    <property name="toplink.jdbc.user" value="xx" />
    <property name="toplink.jdbc.password" value="xx" />
    </properties>
    </persistence-unit>
    </persistence>I also have the /META-INF/orm.xml file... where the code is like below...
    <?xml version="1.0" encoding="UTF-8"?>
    <entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_1_0.xsd"
    version="1.0">
    <persistence-unit-metadata>
    <persistence-unit-defaults>
    <schema>IPORTMAN</schema>
    <catalog>IPORTMAN_GPL</catalog>
    </persistence-unit-defaults>
    </persistence-unit-metadata>
    </entity-mappings>I can understand one thing, that there is some thing wrong in persistence.xml and it's data.
    After so much googled, i had found some solutions.... like....
    1) Remove the "private static final long serialVersionUID = 1L;" from all pojos.
    2) There should not be white space in persistence.xml inside <class> tag.
    3) Change the JTA datasource from NON-JTA datasoucre.
    I had changed all things as per the above mentioned points.
    But still i am getting the same error.
    Please verify the problem and suggest me a possible solution.
    Please help me.. Please..
    Edited by: sree4j on May 1, 2013 12:55 AM
    Edited by: sree4j on May 1, 2013 12:56 AM
    Edited by: sree4j on May 1, 2013 12:57 AM

    Hai jsutherl, Thank you for reply..
    Right now cannot upgrade my project from toplink to eclipselink.
    Because my project was an huge application. where i am using nearly 250 actionclasses and dao.
    I already tried to migrate, but the package structures are completely different. so, i am unable to figure out this packages path.
    So, as per your suggestion, i had renamed my orm.xml to mapping.xml file.
    But when i am running the application then the below error was throwing....
    19:03:30,149 INFO [STDOUT] [TopLink Warning]: 2013.05.01 07:03:30.119--java.lang.NullPointerException: null was thrown on attempt of PersistenceLoadProcessor to load class env.model.masters.IptNotifications. The class is ignored.[here IptNotifications is a database pojo refrence class where the db table name is IPT_NOTIFICATIONS]
    The above same kind of error was throwing to all my pojos [i.e. Database table refrence classes]
    Please help me.
    I have to migrate my project to jboss.
    All my work are getting stopped due to this issues.
    Please help me..

  • Error running weblogic.ejbc with Toplink 10G

    Hi.
    I'm making some tests in order to move to Weblogic 8.1 and Toplink 10g in the near future, but I'm having some problems with my tests:
    I have built a simple entity bean based on the AccountBean used in the singlebean example from Oracle and I'm seeing this error:
    java.lang.RuntimeException: Exception [EJB - 10036]: Error during code generation: [Exception [TOPLINK-14016] (TopLink (WLS CMP) - 10g (10.0.3) Developer Preview (Build 030902.1548)): oracle.toplink.ejb.DeploymentException
    Exception Description: An error occurred while setting up the project: [Exception [TOPLINK-43] (TopLink (WLS CMP) - 10g (10.0.3) Developer Preview (Build 030902.1548)): oracle.toplink.exceptions.DescriptorException
    Exception Description: Missing class for indicator field value [toplink:ejbql-call] of type [class java.lang.String].
    Descriptor: XMLDescriptor(oracle.toplink.queryframework.Call --> [DatabaseTable(call)])]
    Internal Exception: Exception [TOPLINK-43] (TopLink (WLS CMP) - 10g (10.0.3) Developer Preview (Build 030902.1548)): oracle.toplink.exceptions.DescriptorException
    Exception Description: Missing class for indicator field value [toplink:ejbql-call] of type [class java.lang.String].
    Descriptor: XMLDescriptor(oracle.toplink.queryframework.Call --> [DatabaseTable(call)])]
    server stacktrace is:
    Local Exception Stack:
    Exception [TOPLINK-14016] (TopLink (WLS CMP) - 10g (10.0.3) Developer Preview (Build 030902.1548)): oracle.toplink.ejb.DeploymentException
    Exception Description: An error occurred while setting up the project: [Exception [TOPLINK-43] (TopLink (WLS CMP) - 10g (10.0.3) Developer Preview (Build 030902.1548)): oracle.toplink.exceptions.DescriptorException
    Exception Description: Missing class for indicator field value [toplink:ejbql-call] of type [class java.lang.String].
    Descriptor: XMLDescriptor(oracle.toplink.queryframework.Call --> [DatabaseTable(call)])]
    Internal Exception: Exception [TOPLINK-43] (TopLink (WLS CMP) - 10g (10.0.3) Developer Preview (Build 030902.1548)): oracle.toplink.exceptions.DescriptorException
    Exception Description: Missing class for indicator field value [toplink:ejbql-call] of type [class java.lang.String].
    Descriptor: XMLDescriptor(oracle.toplink.queryframework.Call --> [DatabaseTable(call)])
    at oracle.toplink.ejb.DeploymentException.errorCreatingProject(DeploymentException.java:111)
    at oracle.toplink.internal.ejb.cmp.CmpProjectReader.readProject(CmpProjectReader.java:76)
    at oracle.toplink.internal.ejb.cmp.ProjectDeployment.readProject(ProjectDeployment.java:219)
    at oracle.toplink.internal.ejb.cmp.ProjectDeployment.getProject(ProjectDeployment.java:208)
    at oracle.toplink.internal.ejb.cmp.PersistenceManagerBase.generateBeanSubclass(PersistenceManagerBase.java:176)
    at oracle.toplink.internal.ejb.cmp.wls.WlsCMPCodeGenerator.codeGenSubclass(WlsCMPCodeGenerator.java:51)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java:648)
    at weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:587)
    at weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:519)
    at weblogic.utils.compiler.CodeGenerator.generateCode(CodeGenerator.java:336)
    at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:238)
    at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:197)
    at weblogic.ejb20.ejbc.EJB20CMPCompiler.generatePersistenceSources(EJB20CMPCompiler.java:88)
    at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:245)
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:397)
    at weblogic.ejbc20.runBody(ejbc20.java:519)
    at weblogic.utils.compiler.Tool.run(Tool.java:146)
    at weblogic.utils.compiler.Tool.run(Tool.java:103)
    at weblogic.ejbc.main(ejbc.java:29)
    This is the part of the XML that I think causes the problem:
    <opm:query name="findMessageByMessageKey" xsi:type="toplink:read-object-query">
    <opm:arguments>
    <opm:argument name="1">
    <opm:type>java.lang.Integer</opm:type>
    </opm:argument>
    <opm:argument name="2">
    <opm:type>java.lang.Integer</opm:type>
    </opm:argument>
    </opm:arguments>
    <toplink:bind-all-parameters>false</toplink:bind-all-parameters>
    <toplink:cache-statement>false</toplink:cache-statement>
    <toplink:call xsi:type="toplink:ejbql-call">
    <toplink:ejbql>SELECT OBJECT(menssage) FROM MessageBean message WHERE menssage.codMessage = ?1 AND mensaje.codIdiom = ?2</toplink:ejbql>
    </toplink:call>
    <toplink:reference-class>test.data.MessgeBean</toplink:reference-class>
    <toplink:cache-usage>conform</toplink:cache-usage>
    </opm:query>
    Of course I don't see any problem with it.
    After that I tried to run the examples but I'm seing the same error.
    I must say that I'm not using the ANT scripts but doing it "by hand" building classes and making the naked jar for the bean in order to run ejbc on it, I'm pretty confident I am not missing anything.
    I would like to know where the "ejbql-call" definition is as I have tried to find it with a grep in all the Toplink structure tree with no success. It is not clear to me how the xsd processor would find it's definition with just the: xmlns:toplink="http://xmlns.oracle.com/ias/xsds/toplink" instruction present in the header of my Message.xml file (modified based on the Account.xml of the examples).
    I'm using Sun's JDK 1.4.2 and my $CLASSPATH is:
    /opt/oracle/toplink10g/toplink/jlib/toplink.jar:/opt/oracle/toplink10g/lib/xmlparserv2.jar:/opt/oracle/toplink10g/jdbc/lib/classes12.zip:/opt/bea/wlserver8.1sp1/weblogic8.1/server/lib/weblogic.jar
    Any idea?
    Thanks in advance.
    Ignacio.

    Hi.
    Thanks I tried it and I don't get no more that message. Instead I get this stack trace:
    java.lang.RuntimeException: Exception [EJB - 10036]: Error during code generation: [Exception [TOPLINK-14016] (TopLink (WLS CMP) - 10g (10.0.3) Developer Preview (Build 030902.1548)): oracle.toplink.ejb.DeploymentException
    Exception Description: An error occurred while setting up the project: [Exception [TOPLINK-106] (TopLink (WLS CMP) - 10g (10.0.3) Developer Preview (Build 030902.1548)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The method [setAllQueries] on the object is throwing an exception.
    Argument: [[ReadObjectQuery(test.datos.MensajeBean), ReadObjectQuery(test.datos.MensajeBean)]]
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: java.lang.NullPointerException
    Mapping: oracle.toplink.ox.CompositeCollectionMapping[queries]
    Descriptor: XMLDescriptor(oracle.toplink.publicinterface.DescriptorQueryManager --> [DatabaseTable(query-policy)])]
    Internal Exception: Exception [TOPLINK-106] (TopLink (WLS CMP) - 10g (10.0.3) Developer Preview (Build 030902.1548)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The method [setAllQueries] on the object is throwing an exception.
    Argument: [[ReadObjectQuery(test.datos.MensajeBean), ReadObjectQuery(test.datos.MensajeBean)]]
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: java.lang.NullPointerException
    Mapping: oracle.toplink.ox.CompositeCollectionMapping[queries]
    Descriptor: XMLDescriptor(oracle.toplink.publicinterface.DescriptorQueryManager --> [DatabaseTable(query-policy)])]
    server stacktrace is:
    Local Exception Stack:
    Exception [TOPLINK-14016] (TopLink (WLS CMP) - 10g (10.0.3) Developer Preview (Build 030902.1548)): oracle.toplink.ejb.DeploymentException
    Exception Description: An error occurred while setting up the project: [Exception [TOPLINK-106] (TopLink (WLS CMP) - 10g (10.0.3) Developer Preview (Build 030902.1548)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The method [setAllQueries] on the object is throwing an exception.
    Argument: [[ReadObjectQuery(test.datos.MensajeBean), ReadObjectQuery(test.datos.MensajeBean)]]
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: java.lang.NullPointerException
    Mapping: oracle.toplink.ox.CompositeCollectionMapping[queries]
    Descriptor: XMLDescriptor(oracle.toplink.publicinterface.DescriptorQueryManager --> [DatabaseTable(query-policy)])]
    Internal Exception: Exception [TOPLINK-106] (TopLink (WLS CMP) - 10g (10.0.3) Developer Preview (Build 030902.1548)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The method [setAllQueries] on the object is throwing an exception.
    Argument: [[ReadObjectQuery(test.datos.MensajeBean), ReadObjectQuery(test.datos.MensajeBean)]]
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: java.lang.NullPointerException
    Mapping: oracle.toplink.ox.CompositeCollectionMapping[queries]
    Descriptor: XMLDescriptor(oracle.toplink.publicinterface.DescriptorQueryManager --> [DatabaseTable(query-policy)])
    at oracle.toplink.ejb.DeploymentException.errorCreatingProject(DeploymentException.java:111)
    at oracle.toplink.internal.ejb.cmp.CmpProjectReader.readProject(CmpProjectReader.java:76)
    at oracle.toplink.internal.ejb.cmp.ProjectDeployment.readProject(ProjectDeployment.java:219)
    at oracle.toplink.internal.ejb.cmp.ProjectDeployment.getProject(ProjectDeployment.java:208)
    at oracle.toplink.internal.ejb.cmp.PersistenceManagerBase.generateBeanSubclass(PersistenceManagerBase.java:176)
    at oracle.toplink.internal.ejb.cmp.wls.WlsCMPCodeGenerator.codeGenSubclass(WlsCMPCodeGenerator.java:51)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java:648)
    at weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:587)
    at weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:519)
    at weblogic.utils.compiler.CodeGenerator.generateCode(CodeGenerator.java:336)
    at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:238)
    at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:197)
    at weblogic.ejb20.ejbc.EJB20CMPCompiler.generatePersistenceSources(EJB20CMPCompiler.java:88)
    at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:245)
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:397)
    at weblogic.ejbc20.runBody(ejbc20.java:519)
    at weblogic.utils.compiler.Tool.run(Tool.java:146)
    at weblogic.utils.compiler.Tool.run(Tool.java:103)
    at weblogic.ejbc.main(ejbc.java:29)
    What I don't understand is: if examples include that toplink:ejbql-call it should be declared into the xsd isn't it? It will be included in the future (final) release then?
    Thanks again.
    Ignacio.

  • Tree Structure Implementation in Java.

    1>
    How should i implement a "Tree Structure" in Java Based application.?How would i map the entries to the database table?how many tables will i require for this implementation.?
    List records<String> = new ArrayList<String>();
    records.add("null");
    records.add("Product");
    records.add("Category");
    records.add("P1");
    records.add("P2");
    records.add("P3");
    records.add("C1");
    records.add("C2");
    records.add("C3");
    so how should i implement a Tree Structure for the above record set.
    //P1,P2,P3 belong to Parent {Product}
    //C1,C2,C3 belong to Parent {Category}
    Sample code provided will be helpful

    How should i implement a "Tree Structure" in Java Based application.?The quotes suggest you don't know what a tree structure is, regardless of the development language. Fix that first (your understanding of what a tree structure is). [url http://en.wikipedia.org/wiki/Tree_structure]Here is probably a good start.
    How would i map the entries to the database table?how many tables will i require for this implementation.?It depends on what your tree structure represents, in particular it depends on whether the leaves and intermediate nodes of the trees have are homogeneous (e.g. have a common interface). There is no general rule.
    I suggest you start by looking in the Java API at all the classes whose names start with 'Tree' (TreeSet and TreeMap are probably the best ones to start with) and read the documentation carefully. Then try to write some code that uses one and come back if/when you have any problems.(sorry Winston) I think this is a very bad advice.
    These classes are particular implementations, respectively of a set (in the mathematical sense) and of a map (associative table), which happen to use a "tree structure" for their internal business. Their API doesn't help building a custom "tree structure" (they may be used that way, but it's certainly not the easiest nor even a particular handy way to build tree structures).
    Maybe their implementation may be a good example of how to build a Tree structure, but they use a particular type of tree (+red-black tree), not a general one. This may or may not be the OP's case, I wouldn't bet on it.
    OP you're welcome to come back with more specific questions and details. Good luck with Java.
    Edited by: jduprez on Oct 16, 2010 2:45 PM
    Edited by: jduprez on Oct 16, 2010 2:49 PM
    After checking the Javadoc: indeed TreeSet only uses a TreeMap for its implementation, so the only one out of the two which does directly uses a tree structure in its implementation is TreeMap.
    Edited by: jduprez on Oct 16, 2010 2:51 PM
    And, to reiterate, I stand by my claim that TreeMap is not a good example of a general Tree structure: in particular it uses a tree to map keys to values, its main business is the "mapping" part, not the tree as a storage medium. Neither the keys nor the values know anything about their "children".

Maybe you are looking for

  • How do I make After Effects files in Windows 7 open in AE CS5 instead of the default CS5.5?

    I have AE 5.5 and 5 installed on a Windows 7 machine and I'd like .AEP files open in CS5 by default. I've tried using windows explorer to specify using the CS5 program but it defaults back to CS5.5 I've tried using Bridge CS5 and CS5.5 Edit/Preferenc

  • Program in SAP R/3 system to send Pending GR notification mails to SRM use

    Hi Can anyone help me with a program name in SAP R/3 system, which will send notification mails to SRM users for which the Confirmations/GRs pending in SRM. what is the program name. Here there is some program which is sending out Email notifications

  • Instalation fail : Path not Found

    Linux DBA-Debian 2.4.27-2-386 #1 Mon May 16 16:47:51 JST 2005 i686 GNU/Linux # dpkg --install oracle-xe-client_10.2.0.1-1.0_i386.deb (Reading database ... 118210 files and directories currently installed.) Preparing to replace oracle-xe-client 10.2.0

  • Video Playback Error In iTunes. Any Help?

    Hey. I just got a video from the iTunes store (TV Show), and it won't display on my pc. It plays just fine on the iPhone, but on the monitor it shows up as a green screen with pixelated sections. No audio, no video. Any suggestions? I've already trie

  • Why the vertical scrollbar bar is automatically scrolled to the bottom pos.

    I created a JScrollpane to contain a JTabbedPane. The JTabbedPane has two JPanel and each of them has a number of GUI components such as JCheckbox and JTextField. They have different size because their GUI components are different. The 2nd panel is a