2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2020

08/07/2007: Super Simple JPA (also Super Simple EJB3)

Several months ago, I wrote a Super Simple Hibernate entry. Several people have asked me to write the same kind of entry to help them get started with JPA. This entry is the result.

The Super Simple JPA project allows you to ensure that your development environment is configured properly to run JPA applications – outside of any J2EE container.

If you don't want to download all of these support applications, wait a few days and I'll have a version that uses Maven to automate the process.

Follow these steps to get your Super Simple JPA (EJB3) project working:

  1. Download Hibernate 3.2 to C:\data\support\hibernate-3.2.
  2. Download Hibernate Annotations 3.3.0 GA to C:\data\support\hibernate-annotations-3.3.0.GA.
  3. Download Hibernate EntityManager 3.3.1 GA to C:\data\support\hibernate-entitymanager-3.3.1.GA.
  4. Download Commons Beanutils to C:\data\support\commons-beanutils-1.7.0.
  5. Download Commons Digester to C:\data\support\commons-digester-1.8.
  6. Download Commons Collections to C:\data\support\commons-collections-3.2.
  7. Download JUnit to C:\data\support\junit4.4.
  8. Download Hypersonic to C:\data\support\hsqldb.
  9. Extract the contents of SuperSimpleJPA.zip to c:\data\workspaces.
  10. Run the DatabasePlay utility. Its output, ignoring the debug messages, should be:
    Hibernate:
        insert
        into
            Person
            (id, name)
        values
            (null, ?)
    Hibernate:
        call identity()
    person id: 1
    person id: 0
    person id: 1
    Done.
    

Resources

Hibernate (Core, Annotations, EntityManager) Hypersonic JUnit

04/12/2007: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application

Recently I was creating some JSP pages using JBoss Portal when I got an error: org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application I followed the advice from the JBoss page referenced above to resolve the issue. Basically I need to add a jsp-config tag to web.xml then add the c.tld file and jar files to my war deployment. I found the jar files in a spring-portlet-example project that I had downloaded from springframework.org.