Help

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,1.2.3.1) 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: 127.0.0.1
  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.