JAWS

Install JAWS Example

JBoss JAWS Example converted to Eclipse project.

  1. Click File, click Import..., click Existing Project into Workspace, click Next, click Browse..., navigate to C:\eclipse\workspace\jaws, click Finish.
  2. Expand jaws project in Eclipse.
  3. Right click on build.xml, click Run Ant..., check ear-dir and click Finish.
  4. Click jaws project, click Project, click Rebuild Project.  You do not need to run the Ant script again unless you change a deployment descriptors in the resources folder.
  5. From My Computer navigate to %JBOSS_DIST%\server\default\conf, open jboss-service.xml in Wordpad, go to line with:
        <attribute name="URLs">
        ./deploy
        </attribute>


    Right after ./deploy add ,C:\eclipse\workspace\jaws\jaws.ear so it should look like:

        <attribute name="URLs">
        ./deploy,
        C:\eclipse\workspace\jaws\jaws.ear
        </attribute>
  6. Save changes and exit Wordpad.

Working with the JAWS Example in Eclipse

  1. Run Eclipse, in Package Explorer you should see jaws.
    bulletjaws contains all the EJBs for the Jaws Example.  It uses one source folder src, has two packages org.jboss.docs.cmp.jaws.bean, org.jboss.docs.cmp.jaws.interfaces, which contain the EJB source, and an ant file build.xml to build the ear folder.
  2. Click JBoss, Start JBoss (if not already started) and wait for:

    10:33:48,077 INFO [Server] JBoss (MX MicroKernel) [3.0.1RC1 Date:200206291622] Started in 0m:12s:125ms

    in the Console output.  This means JBoss is up and running.
  3. Look for the following in the console:
    11:36:35,806 INFO [MainDeployer] Starting deployment of package: file:/C:/eclipse/workspace/jaws/jaws.ear/jaws.jar/
    11:36:35,993 INFO [EjbModule] Creating
    11:36:36,009 INFO [EjbModule] Deploying ClassBean
    11:36:36,603 INFO [JDBCInitCommand] Created table 'CLASS' successfully.
    11:36:36,634 INFO [EjbModule] Created
    11:36:36,634 INFO [EjbModule] Starting
    11:36:36,743 INFO [EjbModule] Started
    11:36:36,743 INFO [MainDeployer] Deployed package: file:/C:/eclipse/workspace/jaws/jaws.ear/jaws.jar/
    11:36:36,743 INFO [MainDeployer] Starting deployment of package: file:/C:/eclipse/workspace/jaws/jaws.ear/META-INF/
    11:36:36,743 INFO [MainDeployer] Deployed package: file:/C:/eclipse/workspace/jaws/jaws.ear/META-INF/
  4. This shows table using the JAWS mapping was created OK and the EJB deployed.
Home | JBoss Examples Last updated on 08/07/2002