EJB, Hibernate or TopLink?

Hi all,
In our company we are using an Oracle database, and we have a lot of java applications running on our application servers. In the future for our new applications we want to change the way we persist our data to the database and we are doubting between EJB 3.0 when the specs are final, Hibernate and Oracle TopLink.
Which could be the best choice regarding installed base, stability, performance, maintainability and scalability.
Hope to hear from you.
Regards,
Ronald

See answer in Re: EJB, Hibernate or TopLink?

Similar Messages

  • Convert from Hibernate to TopLink

    Hi,
    I would like to convert from Hibernate and Tomcat to TopLink and IAS with the
    latest version 10.1.3.1 that include the EJB3.0 and JPA.
    What is the effort that will be needed to for this convertion (mainly the Hibernate to Toplink convertion)?
    Do you know about a migration tool for that purpose?
    Thanks
    Yafit

    Hi Yafit,
    For the sake of those who might be interested I'm posting the response I had given to you in email.
    If you are using Hibernate with JPA the migration should not be a large effort. The persistence.xml (deployment configuration) file will need to be updated of course. A question for you is whether you're using many proprietary Hibernate features or have you used only JPA defined mappings. Anything proprietary will require attention. Also, Hibernate's JPQL supports some non-standard features so this question about staying within the spec applies to queries too.
    There are no migration tools for moving from Hibernate JPA to TopLink JPA as the differences are mostly in configuration which is easy enough to adjust manually.
    --Shaun                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • HELP - Hibernate vs Toplink!!!

    Hello Everybody,
    I have some questions related with Hibernate vs Toplink.
    1- To obtain that driver JDBC it gives back the amount of rows affected in each one of updates of a lot that is executed in batch. Hibernate to implement the optimistic lock, adds to each consultation a "WHERE >" where it compares the VERSION of the object in memory with the field VERSION of tuple corresponding in the DB. If it detected that rows were updated "0" it interprets that another user modified that object before and shoots an exception of Concurrence. When batch is used to execute a lot of consultations, driver gives back a vector like result. Each position of this vector this destining to indicate the amount of updates that they became in each consultation of the lot. The problem is that when using PreparedStatement (that is what Hibernate uses to execute the queries) the vector gives back to "-2" in all positions without concerning the real amount that were affected. The affected fact that driver it gives back to "-2" and not real amount
    it for a consultation causes that Hibernate cannot determine if were or not a concurrence problem. We cannot modify Hibernate so that it knows to interpret the "-2" given back by driver because it would not be sufficient to determine if the version were or not modified. The safe SOLUTION to this problem would be that driver it gives back to Hibernate the affected real amount to him in each one of the positions. This is what Hibernate hopes. We can see the execution batch that implements Hibernate in org.hibernate.jdbc.AbstractBatcher>>executeBatch of the
    distribution of Hibernate. Could be solve this problem with Toplink?
    2-Security by dominion. How we would take label security with Hibernate? I know it is possible much better with Toplink but what about Hibernate.
    3-Multiple mappings with Hibernate. Hibenate makes alternative mappings and for this reason it raises more of the necessary thing affecting the performance. Although with them we solved several problems of performance turn out uncomfortable to maintain to them. How we can improve it. Could be solve this problem with Toplink?
    Best Regards,
    Seba.

    1- This issue is down in the driver, and we have seen it before. We have worked with the driver team to come up with a solution in the 10.1.3.1 release. The client would use the Oracle9Platform and call this method session.getLogin().getPlatform().setUsesNativeBatchWriting(true); This will cause TopLink to call special API on the Oracle Drivers to do what is expected of locking and batching together.
    2- I assume that you are referring to OLS and VPD. TopLink supports this, but we will need more information to help you further.
    3- Not sure what you mean here... In TopLink you can map multiple mappings to the same entity. is that what you are referring to?

  • EJB, Hibernate, Struts

    I want to implement web based project for complex bussiness logic fo finance
    I thought of using EJB but somany people advise me to not use it because of its complexity
    and try for hibernate or Struts.
    so can you give me some views regarding to comparison between EJB,Hibernate,Struts
    or some points that help me to select one of them based on my requirement ?
    on which criteris I can do selection amoung them ?
    thanks in advance

    Question 1:
    what do you use/choose and why:
    EJB+struts or Hibernate ?Spring and Hibernate.
    Question 2:
    Which is the best IDE for Hibernate?IntelliJ is the best IDE for everything.
    %

  • 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 ...

  • Converting from Hibernate to TopLink

    Hello, everyone:
    We're exploring the possibility of converting our current
    Hibernate-based framework to TopLink. I'd like to know
    if anyone has already done this type of migration, along
    with any useful information about the experience...
    Regards,
    Oswald

    Refer to
    Re: Toplink vs. Hibernate
    and the tutorial on Toplink.
    http://www.oracle.com/technology/products/jdev/101/howtos/jsftoplink/index.html

  • How to deploy an EJB that uses TopLink (w/o including all the TopLink libs)

    This might be a basic question. Sorry !
    When my EJB uses TopLink libraries, is there a way to deploy the EJB without having to include the TopLink jars in the deploying JAR/EAR file ?
    Is there a way to make sure TopLink libraries are accessible commonly to all the applications on the app server ?
    Thanks,
    Krishna

    I think I got how to do this.
    I ave to use the "application.xml" file which is the global application.xml file for all applications on that OC4J instance.
    http://otn.oracle.com/tech/java/oc4j/doc_library/902/A95880_01/html/advanced.htm#1015123
    Gotta add all the common libraries to that file. for example:
         <library path="C:\OraHome1\toplink\core\lib\toplink.jar" />
         <library path="C:\OraHome1\toplink\core\lib\xerces.jar" />
         <library path="C:\OraHome1\toplink\core\lib\antlr.jar" />
         <library path="C:\OraHome1\toplink\hsql\lib\hsqldb.jar" />

  • EJB / Hibernate

    Hi,
    I'm currently developing a web site using servlets/JSPs. I was thinking of using simply a MySql server as the database. But one of my co-developers told me that if I use EJB for persistence and hibernate for transactions I could improve the performance. Can somebody tell me if this is correct? What are the IDE's supporting these technologies? What happens if I use one of those either EJB or Hibernate for both transactions and persistence.

    I wouldn't say that using EJB and hibernate will improve your performance. There is no silver bullet to improve performance. You have to optimize YOUR app.
    I would say EJB would be overkill for most sites. Why bother with the complexity and overhead?
    Hibernate is a good recommendation - I wouldn't normally recommend it for performance, but for the Object-relational mapping it does in a generic way to work with any database.
    It comes down to how complex is your website? Is it distributed? How many users? How much data?
    Is your app actually having performance troubles? If not then why do all the extra work to "improve performance" that you don't need?

  • How to get the TransactionManager in a stateful EJB (using JPA toplink)

    I use weblogic 10.3
    This is my stateful EJB and I need to get the TransactionManager because I want to suspend my transaction...
    Here it is ok for the UserTransaction ut but I got an error with the TransactionManager
    EJB Code
    //@Stateless(name = "MyFacadeEJB", mappedName = "MyFacadeEJB")
    @Stateful(name = "MyFacadeEJB", mappedName = "MyFacadeEJB")
    @TransactionManagement(TransactionManagementType.BEAN)
    @Remote
    @Local
    public class MyFacadeEJBBean implements MyFacadeEJB, MyFacadeEJBLocal, Serializable {   
    @Resource javax.transaction.UserTransaction ut;
    @Resource javax.transaction.TransactionManager tm;
    Error Message at the deploy EJB
    Unable to deploy EJB: MyFacadeEJB from PocJTA-PEJB-ejb:
    [EJB:011026]The EJB container failed while creating the java:/comp/env namespace for this EJB deployment.
    weblogic.deployment.EnvironmentException: [EJB:010176]The resource-env-ref 'test.ejb.MyFacadeEJBBean/tm' declared in the ejb-jar.xml descriptor or annotation has no JNDI name mapped to it. The resource-ref must be mapped to a JNDI name using the resource-description element of the weblogic-ejb-jar.xml descriptor or corresponding annotation.
         at weblogic.ejb.container.deployer.EnvironmentBuilder.addResourceEnvReferences(EnvironmentBuilder.java:639)
         at weblogic.ejb.container.deployer.EJBDeployer.setupEnvironmentContext(EJBDeployer.java:247)

    Chpruvos,
    Hi, I ran into a similar issue when specifying WebLogic specific descriptors in ejb-jar.xml and the corresponding weblogic-ejb-jar.xml. I no longer use this approach in our example code - we just use annotations. see: http://wiki.eclipse.org/EclipseLink/Examples/JPA/WebLogic_Web_Tutorial#Tutorial_Source
    My session bean is stateless - I don't know how much it will help with your statefull bean managed config but here are copies of the ejb.jar configuration xml I used to use. All the resource*ref elements (see the resource-description* element) ended up in the weblogic specific weblogic-ejb-jar.xml descriptor file.
    ejb-jar.xml
    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
    &lt;ejb-jar xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:ejb="http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee [http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd]" version="3.0"&gt;
    *&lt;enterprise-beans&gt;*
    *&lt;session&gt;*
    *&lt;ejb-name&gt;ApplicationService&lt;/ejb-name&gt;*
    *&lt;ejb-class&gt;org.eclipse.persistence.example.unified.business.ApplicationService&lt;/ejb-class&gt;*
    *&lt;session-type&gt;Stateless&lt;/session-type&gt;*
    +&lt;!-- default to CMP Container managed transations not BMP --&gt;+
    +&lt;!-- transaction-type&gt;Bean&lt;/transaction-type--&gt;+
    +&lt;!-- resource-env-ref id="ResourceEnvRef_1080980284303"&gt;+
    +&lt;resource-env-ref-name&gt;localOracle10RemoteDS&lt;/resource-env-ref-name&gt;+
    +&lt;resource-env-ref-type&gt;javax.sql.DataSource&lt;/resource-env-ref-type&gt;+
    +&lt;/resource-env-ref--&gt;+
    +&lt;!-- resource-ref&gt;+
    +&lt;res-ref-name&gt;localOracle10RemoteDS&lt;/res-ref-name&gt;+
    +&lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt;+
    +&lt;res-auth&gt;Application&lt;/res-auth&gt;+
    +&lt;/resource-ref--&gt;+
    *&lt;/session&gt;*
    *&lt;/enterprise-beans&gt;*
    &lt;/ejb-jar&gt;
    weblogic-ejb-jar.xml
    &lt;?xml version="1.0"?&gt;
    &lt;weblogic-ejb-jar&gt;
    *&lt;weblogic-enterprise-bean&gt;*
    *&lt;ejb-name&gt;ApplicationService&lt;/ejb-name&gt;*
    *&lt;stateless-session-descriptor&gt;*
    *&lt;pool&gt;*
    *&lt;max-beans-in-free-pool&gt;8&lt;/max-beans-in-free-pool&gt;*
    *&lt;initial-beans-in-free-pool&gt;2&lt;/initial-beans-in-free-pool&gt;*
    *&lt;/pool&gt;*
    *&lt;/stateless-session-descriptor&gt;*
    {color:#008000}&lt;resource-description&gt;
    &lt;res-ref-name&gt;localOracle10RemoteDS&lt;/res-ref-name&gt;
    &lt;jndi-name&gt;localOracle10RemoteDS&lt;/jndi-name&gt;
    &lt;/resource-description&gt;
    &lt;resource-env-description&gt;
    &lt;resource-env-ref-name&gt;localOracle10RemoteDS&lt;/resource-env-ref-name&gt;
    &lt;jndi-name&gt;localOracle10RemoteDS&lt;/jndi-name&gt;
    &lt;/resource-env-description&gt;
    {color}+&lt;!-- jndi-name&gt;localOracle10RemoteDS&lt;/jndi-name--&gt;+
    *&lt;/weblogic-enterprise-bean&gt;*
    &lt;/weblogic-ejb-jar&gt;
    thank you
    /michael
    [http://www.eclipselink.org|http://www.eclipselink.org/]
    Edited by: michael_obrien on Feb 26, 2009 9:56 AM

  • Bench mark hibernate vs Toplink

    Is anyone aware of such a benchmark? thanks

    The only standard benchmark that I am aware of is SpecJ. It is a full J2EE benchmark with persistence being one component contributing to the overall application's throughput.
    TopLink is part of Oracle's World Record SpecjAppServer2004 results (1, 2, 3, 4). To the best of my knowledge none of the other ORM products are used by their respective containers for their results. With data access being a major component of this benchmark it has enabled us to continually optimize concurrent throughput and data access optimization features that are available in our recent releases and now in EclipseLink.
    As a TopLink consultant I was involved in several benchmarking activities over the years as well as our ongoing internal verifications. I have seen TopLink win these benchmarks across many usage usage scenarios. The most difficult part of benchmarking is building a representative system and spending the time to tune the application based on its characteristics and the features of the ORM solution in use.
    I believe we have the best performing and scaling Java persistence solution available. Our out of the box features can be easily tuned to get the results you need.
    Doug Clarke
    TopLink Product Management
    EclipseLink Project co-lead

  • How to use (toplink essentials)JPA with EJB 2.1 spec in oc4j 10.1.3.2

    I have an application that uses EJB 2.1 spec with SLSB (no entity beans) and uses DAO pattern with hibernate2 for persistence. I want to replace hibernate with toplink-essentials (JPA). I cannot upgrade the EJB spec version as we use some thirdparty beans. The application uses DAO pattern so I should be able to hook in a new toplink DAO impl. What I am struggling with is how do I get hold of the EntityManagerFactory in my EJB 2.1 SLSB. Also I need CMT with XA transactions as our application interacts with jms and database using MDBs and SLSBs.
    Prantor

    You should be able to use Persistence.createEntityManagerFactory(<your-persistence-unit-name>, properties), and create your EntityManager from that.
    To have TopLink integrated with JTA, in your persistence.xml (or properties) you need to use a JTA DataSource, and set the ServerPlatform for your JEE server.

  • TopLink vs Hibernate... revisited... again :)

    Would it be possible to get a Toplink versus Hibernate (or other ORM frameworks) going here?
    It seems like the explosive adoption of Hibernate and the associated popularity contest in the industry has put some of us in a position where we're constantly trying to sell the-right-tool-for-the-right-job which, at least for me, seems to disqualify hibernate a lot of times, esp when scalable persistence is a requirement. It seems to be really difficult to convince folks that the popularity of hibernate doesnt mean it's by default the right option.
    I've seen at least two threads on theserverside.com about hibernate versus cayenne, and despite the amount of noise in the threads, there were a few folks making some decent points. The TopLink folks were very quiet on the threads, but I know they were reading :)
    So, anyone out there have any experience comparing TopLink and Hibernate? What do you all see as the shortcomings of each, esp from a technical architecture standpoint? Are GUI tools as overrated as Gavin claims? Where's annotation support for TopLink? Is TopLink overpriced? Is Hibernate's multi-tier non-integrated caching biting anyone on big projects where persistence needs to scale, or is integrated caching overrated? Is Hibernate3 really going to fix shortcomings that TopLink already addresses in current releases? What do you all think the Hibernate crew is doing right that the TopLink crew is doing wrong and vice versa? I'm not assuming any of these questions even merit answer but just interested in some objective discussion in a forum where TopLink guys might have a stronger voice.
    Take care!

    Well, I've only got a few minutes, but I could go on for hours.
    I'll start by saying that I've been doing ORM for longer than many people knew that you could. I had been a previous TOPLink user but went for about two years without having to do any ORM.
    Then, last year I started a new project for a client who insisted we use SqlServer and was hesitant to pay for any software unless it was absolutely necessary. (This is common these days, as the fact that there is so much free software out there encourages folks to try out the free stuff before paying for something that may or may not be better). Comparing the feature list of Hibernate to TOPLink and doing a little checking seemed to indicate that going with Hibernate would be a perfectly reasonable thing to do.
    I will state, uncategorically, that this was the worst technical decision I have ever made in my life... twenty-plus years of Software Application Developing, most of it with object-oriented languages (Smalltalk and Java).
    NOTE: I must couch that statement with the caveat that part of this was due to my naivete about the architectural assumptions I made about Hibernate before including it in my application. If I would have merely learned about Hibernate's architectural assumptions (though this was not easy due to their poor documentation) and allowed these assumptions to drive my development, it would not have been nearly as painful, just yucky. Also, if my objects were much simpler/flatter and I didn't need caching to speed things up, Hibernate could have worked just fine out of the box. Problem is, I had a complex system, needed caching, and Hibernate gave me nightmares as I tried to navigate through it.
    As a test-first developer, I don't care about the GUI tools, as I'm happy to write tests to verify I can store and retrieve objects, then write the mappings and find out if it passes. What I would like is the ability to allow two threads to read the same object and not have to bring two copies of the object into memory or read the database twice. Call me crazy, but it just seems like object identity is a useful thing... perhaps my twenty years of developing object-oriented software has skewed my reasoning and I need to think like folks who haven't been programming as long.
    Hibernate's poor documentation did make it clear that it did not want me to think this way, but it also suggested that, if I wanted to think this way, it could cache objects for me so it wouldn't hit the database twice. And, I'm sure it could have cached objects in some form, but not the form I wanted. Though I thought I followed the instructions on how to set up my cache, I found that reading the same object twice didn't always get the same (as in "==") object back.
    To try to figure out why not (or why other things that an experienced object-oriented software developer couldn't figure out by reading the documentation), I had to dive into the code. This felt like diving into a water source in hopes of finding some gems, but discovering that I was swimming in a sewer full of, well, stuff that you'd find in a sewer.
    Although Hibernate advertises itself as a framework, it is much more of a blackbox framework than a whitebox. Most of the methods and many of the classes are private or protected final. There are very few places to extend what's there. And there are virtually none that allow you to override their architectural assumptions.
    The biggest architectural assumption I found to be problematic was that application developers can't be trusted to know which objects they intended to read and which they intended to write. Therefore, Hibernate "protects" you from having two sessions refer to (that's right, refer to, not modify) a collection of objects.
    In the end, we ended up having to open up the source code and make some modifications in order to make our application run with reasonable performance. We had a lot of fairly deep objects (objects that contained objects that contained objects...) and the idea of not caching the ones that were not being modified across sessions just didn't cut it for us.
    Additionally, we've spent the last few months supporting the app that we finally got into production, and greater than 75% of our bug fixing time has been due to the fact that Hibernate actually reads in objects from several places and it is difficult to tap into THE place an object is read in... because there isn't one. It goes through all sorts of intermediate states and we found out that having one process that is reading objects while another is trying to write the same object can cause some unfortunate side effects, even if you put synchronization locks in the obvious places.
    We ended up with many person months of effort and a lot of special classes getting Hibernate to do what we wanted it to do, and had to open the source code (which will make it hard to ever upgrade to the next version).
    Just recently we started a new project (where Oracle was the corporate standard DB) and decided we'd try to use TOPLink. Having not used it for several years, I had hoped it was going to be much cleaner than Hibernate to hook into our persistence layer. It was a piece of cake. In a few days we were doing what took us months to do with Hibernate, and we didn't have to perform any unnatural acts to get there.
    I would recommend Hibernate to anyone who didn't know how to build a reasonably factored object-oriented system and didn't mind forcing their system architecture to fit Hibernate's architectural assumptions. But, if you think you might have reason to define your own architecture or modify Hibernate's default behavior, TOPLink is well worth the licensing fees. Not to mention the cost of your sanity.
    Is Hibernate really free? Only if you don't value your time. I also found that you can buy outrageously priced support from JBoss to make up for their poor documentation on their poorly architected ORM blackbox framework. The documentation for TOPLink is far superior, and the simplicity of doing simple customizations and tweaks is like night and day.

  • ADF/EJB/toplink on websphere 6.0

    Hi ,
    I am trying to deploy a simple application ADF-JSF calling an EJB and using toplink to map to the database.
    This works fine in the jdev env, however iam unable to deploy and run this in websphere.
    So i developed a sample hello world jsf page in jdev and tried to deploy the same in the websphere.
    I had followed the steps given in the 10.1.3. document on how to deploy to websphere.
    Looks like I have issues similar to "http://forums.oracle.com/forums/thread.jspa?messageID=2312499&#2312499"
    Does anyone have any idea ?
    -TIA

    Yes I did.
    I changed the "war" class loading policy to "Application" and class loader policy to "server last".
    This is the error i got
    [2/8/08 0:35:26:422 EST] 00000032 ApplicationMg A WSVR0200I: Starting application: webapp1
    [2/8/08 0:35:26:750 EST] 00000032 WebGroup A SRVE0169I: Loading Web Module: webapp1.war.
    [2/8/08 0:35:26:812 EST] 00000032 jsp E com.ibm.ws.jsp.taglib.TldParser logParseErrorMessage Failed to parse Tag Library [META-INF/html_basic.tld]: JSPG0235E: The JSP container failed to load the TagExtraInfo class [com.sun.faces.taglib.FacesTagExtraInfo]
    [2/8/08 0:35:26:812 EST] 00000032 jsp W com.ibm.ws.jsp.taglib.TagLibraryCache loadTldsFromJar jsp error failed to load tld in jar. uri = [WEB-INF/lib/jsf-impl.jar]
    com.ibm.ws.jsp.JspCoreException: org.xml.sax.SAXException: JSPG0235E: The JSP container failed to load the TagExtraInfo class [com.sun.faces.taglib.FacesTagExtraInfo]
         at com.ibm.ws.jsp.taglib.TldParser.parseTLD(TldParser.java:256)
         at com.ibm.ws.jsp.taglib.TagLibraryCache.loadTldsFromJar(TagLibraryCache.java(Compiled Code))
         at com.ibm.ws.jsp.taglib.TagLibraryCache.loadLibJarMap(TagLibraryCache.java:185)
         at com.ibm.ws.jsp.taglib.TagLibraryCache.<init>(TagLibraryCache.java:90)
         at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.<init>(JSPExtensionProcessor.java:143)
         at com.ibm.ws.jsp.webcontainerext.JSPExtensionFactory.createExtensionProcessor(JSPExtensionFactory.java:96)
         at com.ibm.ws.webcontainer.webapp.WebApp.initializeExtensionProcessors(WebApp.java:1068)
         at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:363)
         at com.ibm.ws.webcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:114)
         at com.ibm.ws.webcontainer.VirtualHost.addWebApplication(VirtualHost.java:127)
         at com.ibm.ws.webcontainer.WebContainer.addWebApp(WebContainer.java:776)
         at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:729)
         at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:140)
         at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:360)
         at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1019)
         at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1028)
         at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:538)
         at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:724)
         at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:683)
         at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1161)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
    [2/8/08 0:35:26:844 EST] 00000032 jsp E com.ibm.ws.jsp.taglib.TldParser logParseErrorMessage Failed to parse Tag Library [META-INF/jsf_core.tld]: JSPG0235E: The JSP container failed to load the TagExtraInfo class [com.sun.faces.taglib.FacesTagExtraInfo]
    [2/8/08 0:35:26:844 EST] 00000032 jsp W com.ibm.ws.jsp.taglib.TagLibraryCache loadTldsFromJar jsp error failed to load tld in jar. uri = [WEB-INF/lib/jsf-impl.jar]
    com.ibm.ws.jsp.JspCoreException: org.xml.sax.SAXException: JSPG0235E: The JSP container failed to load the TagExtraInfo class [com.sun.faces.taglib.FacesTagExtraInfo]
         at com.ibm.ws.jsp.taglib.TldParser.parseTLD(TldParser.java:256)
         at com.ibm.ws.jsp.taglib.TagLibraryCache.loadTldsFromJar(TagLibraryCache.java(Compiled Code))
    my web.xml is listed below.
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee">
    <description>Empty web.xml file for Web Application</description>
    <filter>
    <filter-name>adfFaces</filter-name>
    <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>adfFaces</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    </filter-mapping>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>resources</servlet-name>
    <servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>jsp</servlet-name>
    <servlet-class>com.ibm.ws.webcontainer.jsp.servlet.JspServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/adf/*</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>35</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    </web-app>
    `

  • JPA: Toplink vs Hibernate

    I am using netbeans 5.5 and I want to use JPA. I am in favor of hibernate, but why does the netbeans has toplink being the default persistence library of JPA? What are the difference between toplink and hibernate if I'll be using JPA?
    By the way, I've seen an article "Using JPA in tomcat" and I would really like to use JPA in tomcat as I think it is much faster and lighter than Glassfish. But the article also uses toplink as the persistence library? Could someone guide me in using hibernate?

    This is an video from NetBeans site. Take a look.
    It will open your eyes about Hibernate and TopLink and JPA after you checking the codes that will be generated on your own system application.
    http://www.netbeans.org/download/flash/netbeans_6_gui_builder/netbeans_6_gui_builder.html

  • What are the relation between JPA and Hibernate, JPA and TopLink?

    What are the relation between JPA and Hibernate, JPA and TopLink?
    Can JPA instead of Hibernate and TopLink?

    The Java Persistence API (JPA) is the object relational mapping persistence
    standard for Java. Hibernate and TopLink provide an Open source Object-relational mapping framework for Java.
    They provide an implementation for the Java Persistence API. In my opinion, both Hibernate and TopLink provide support to JPA
    and they can also be regarded as the complementary to JPA.
    Let's wait to see other person's opinions.

Maybe you are looking for

  • Can anyone tell me about these little blue squares?

    I'm trying to install PSE8 from disc onto my new laptop (mac running lion).  It gets to this point but the Quit and Install buttons have a little blue box right over the text.  It seems to disable the buttons where I can't select either.  In order to

  • External trouble

    my external hard drive is not being recognized by my MBP. normally whenever i plug it in, the device begins to spin, and the icon is placed onto my desktop. however, today when i plugged in my external, the device begins to spin, but nothing is place

  • Video Magnifier and iMac 27"???

    I have video magnifier that uses a VGA port to connect it to a monitor. I just bought an iMac 27", can i use my iMac monitor (as a video input) with my video magnifier?

  • Commitment with maintenance order

    Hi guys, I d like to know if is possible with WBS Report S_ALR_87013533 - S_ALR_87013542 to see the column Commitment  the Purchase order or the purchase requisition of the Maintenace Order. Exactly i edit a Maintenance order with a WBE, in him docum

  • Cut text from string

    Hello. Is there any way I can cut text from string? I have responseResult variable which has value: {"success":true,"error":"No any errors."} I want >>No any errors. << text from that string variable.