How to Set up the Seam Examples in Jboss Server
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 no...
https://www.czetsuyatech.com/2011/01/wildfly-setup-seam-example.html
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.
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.
Post a Comment