Setting up the seam examples in jboss server on a windows pc

I've been here before but that was a long time ago so here I am again playing with seam framework because my work requires me to.

I notice there is no straightforward tutorial on how to make this so I'm making one.

Download and install the following. I install them all in c: drive.
1.) Ant 1.8.2 -
2.) Jboss 5 - (I used the one with JRE)
3.) Seam 2.2 -

1.) Set the 2 environment variables:
  a.) JAVA_HOME -> should point to where you install java, eg. C:\jdk1.6.0_21
  b.) ANT_HOME -> ant installation directory, eg. C:\apache-ant-1.8.2
2.) I extracted all in c: so it's like this:

Running the Seam Examples on Jboss:
1.) Open C:\jboss-5.1.0\server\default\conf\bootstrap\profile.xml. Add a class property to line: 146:
<bean name="AttachmentStore" class="org.jboss.system.server.profileservice.repository.AbstractAttachmentStore">
        <constructor><parameter class=""><inject bean="BootstrapProfileFactory" property="attachmentStoreRoot" /></parameter></constructor>

2.) Open C:\jboss-seam-2.2.1\, and add the following line:
*Take note that it points to your jboss as installation directory

3.) Goto -> C:\jboss-seam-2.2.1\examples\booking via command promt.
  a.) start cmd.exe in run and type the following commands
  b.) cd\
  c.) cd C:\jboss-seam-2.2.1\examples\booking
  d.) ant explode
  e.) ant deploy

4.) Run the jboss as, C:\jboss-5.1.0\bin\run.bat

5.) Open the project in web browser:

And that's it. Repeat steps 3-5 for the rest of the examples. Note that some examples can only be deploy on tomcat as.
Setting up the seam examples in jboss server on a windows pc Setting up the seam examples in jboss server on a windows pc Reviewed by Edward Legaspi on Thursday, January 06, 2011 Rating: 5

No comments:

Powered by Blogger.