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

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 - http://ant.apache.org/bindownload.cgi
2.) Jboss 5 - http://sourceforge.net/projects/jboss/files/JBoss/JBoss-5.1.0.GA/ (I used the one with JRE)
3.) Seam 2.2 - http://seamframework.org/Seam2/Downloads

Prerequisites:
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:
+c:\
   +apache-ant-1.8.2
   +jboss-5.1.0
   +jboss-seam-2.2.1

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="java.io.File"><inject bean="BootstrapProfileFactory" property="attachmentStoreRoot" /></parameter></constructor>

2.) Open C:\jboss-seam-2.2.1\build.properties, and add the following line:
jboss.home=C:/jboss-5.1.0
*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:
http://localhost:8080/seam-booking

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.




- How To Deploy Jboss7.2 On Openshift
The following tutorial is a rough steps on how you can setup a custom server such as JBoss7.2 on OpenShift. Prerequisite, clone and checkout JBoss7.2 tag //clone the jboss repo >git clone https://github.com/jbossas/jboss-as.git //list the tags >git...

- How To Install Eclipse Plugin Using Available Sites And Eclipse Marketplace
This tutorial will teach us how to install eclipse plugins such as svn, egit, etc using available sites and eclipse marketplace. Note that I've done this on windows using eclipse-jee-juno. Installing eclipse plugins using available sites: 1.) To install...

- Things To Remember In Creating Jbpm With Seam
This writing will reference the TODO example from seam: http://docs.jboss.org/seam/latest/reference/en-US/html/tutorial.html#registration-example Note that I used seam-gen to generate the project. File you should have: +views +login.xhtml +todo.xhtml...

- Create A New Seam Web Project In Eclipse-helios
In this exercise we will be building seam web project in eclipse. It's long so stay focus :-D. What you need (The following should be installed correctly): Note: in parentheses is where I installed mine. 1.) Jboss seam 2.2.1 (C:\jboss-seam-2.2.1)...

- Changing Jboss Server's Default Http Port
If you have installed jboss server in: C:\jboss-5.1.0\ then here's what you should do to change the default port (8080) to any port of your choice. 1.) Open the file, C:\jboss-5.1.0\server\default\conf\bindingservice.beans\META-INF\bindings-jboss-beans.xml...



Tech-Today








.