Built with Seam

You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.

These steps will briefly describe how to get the jpa example running on Weblogic 10.3. For more examples on Weblogic and complete details on these steps see the reference guide chapter Seam on BEA's Weblogic.

Download and initial setup

  1. Download and install Weblogic 10.3
  2. Create a Weblogic domain in development mode for autodeploy support.
  3. Copy hsqldb.jar to weblogic domain's shared library directory: cp $SEAM_DIST/lib/hsqldb.jar $WEBLOGIC_DOMAIN/lib

Activate Weblogic JSF support

  1. Extract javax.jsf_1.2.0.0.jar (the jsf-api.jar) from $BEA_HOME/wlserver_10.3/common/deployable-libraries/jsf-1.2.war and copy it to $WEBLOGIC_DOMAIN/lib
  2. Start the Weblogic server
  3. In the Administration Console navigate to the Deployments page
  4. Click the Install button
  5. Deploy the $BEA_HOME/wlserver_10.3/common/deployable-libraries/jsf-1.2.war archive.
  6. Click Next all the way through
  7. At the Settings for jsf(1.2, set the Deployment Order to 99.
  8. Click Save and Activate Changes.

Configure the datasource

  1. Start the server and go to the Weblogic Administration Console.
  2. On the left side tree navigate your-domain - Services- JDBC - Data Sources.
  3. Create a new data source with the following settings:
  4. Name: seam-jpa-ds
  5. JNDI Name: seam-jpa-ds
  6. Database Type and Driver: other
  7. Database Name: hsqldb
  8. Host Name:
  9. Port: 9001
  10. Username: sa
  11. Driver Class Name: org.hsqldb.jdbcDriver
  12. URL: jdbc:hsqldb:.
  13. Username: sa
  14. Select your domain for the target domain.
  15. Leave all the other setting the way they are.

Build and deploy the JPA application

  1. Go to the $SEAM_DIST/examples/jpa directory
  2. Run ant weblogic10 to build a Weblogic compliant version of the application.
  3. Run this command cp ./dist-weblogic10/jboss-seam-jpa.war $WEBLOGIC_DOMAIN/autodeploy to auto-deploy the application.
  4. Point your browser to http://localhost:7001/jboss-seam-jpa/ and register an account and book some hotels.
12. Mar 2009, 22:52 America/New_York | Link

the datasource instructions miss some steps: password, etc. if we follow exactly what is written, the test connection button fails on the WLS console

18. Sep 2009, 16:00 America/New_York | Link

Step 12: it should be jdbc:hsqldb:mem:. for an in-memory db

13. Nov 2009, 15:12 America/New_York | Link

2009-11-13 下午10时05分42秒 CS Error Deployer BEA-149265 Failure occur red in the execution of deployment request with ID '1258121141996' for task '0'. Error is: 'java.lang.ClassNotFoundException: org.apache.log4j.LogManager' java.lang.ClassNotFoundException: org.apache.log4j.LogManager at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generic

How can I do?

23. Apr 2010, 16:42 America/New_York | Link
SEAM user

db password is blank

17. May 2010, 04:16 America/New_York | Link

Hi Sean, I got that exception too when deploying to weblogic seam jpa example.

To rectify i added lo4j.jar to my domain shared lib directory. Example: