Bug 792926 (JBEPP-4) - create script to bundle EAP and portal
Summary: create script to bundle EAP and portal
Keywords:
Status: CLOSED NEXTRELEASE
Alias: JBEPP-4
Product: JBoss Enterprise Portal Platform 4
Classification: JBoss
Component: Portal Packaging
Version: 4.3.0.GA
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.3.0.GA
Assignee: Viliam Rockai
QA Contact:
URL: http://jira.jboss.org/jira/browse/JBE...
Whiteboard:
Depends On: JBEPP-26
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-11-03 16:43 UTC by Prabhat Jha
Modified: 2015-09-01 03:30 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-02-02 16:00:46 UTC
Type: Task


Attachments (Terms of Use)
run.conf.diff (615 bytes, text/x-patch)
2008-12-23 17:41 UTC, Prabhat Jha
no flags Details
run.bat.diff (527 bytes, text/x-patch)
2008-12-23 17:47 UTC, Prabhat Jha
no flags Details
jboss-log4j.xml (11.60 KB, text/xml)
2009-01-05 20:28 UTC, Prabhat Jha
no flags Details
copyright.txt.patch (572 bytes, text/x-patch)
2009-01-05 21:59 UTC, Prabhat Jha
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JBEPP-4 0 None None None Never

Description Prabhat Jha 2008-11-03 16:43:22 UTC
Date of First Response: 2008-12-17 11:43:54
project_key: JBEPP

Assigning to myself for now.

Comment 1 Prabhat Jha 2008-11-06 18:14:47 UTC
Contacted Chris O' Brien as he does the packaging for EAP.

Comment 2 Prabhat Jha 2008-11-07 17:36:47 UTC
Viliam, 

This has priority and if you get overwhelmed, I will take care of some of other tasks that I have assigned to you. Please start on it once you are done with selenium builds which I think you are very close.

Currently, for JBoss Portal 2.7 release process can be summarized as:

1. svn checkout portal code
2. svn checkout portal docs
3. build portal and docs
4. unzip JBoss AS
5. copy portal stuff to AS for bundled distro
5. copy portal docs
6. zip it 

and actual commands are:

$ mkdir release
$ cd release
release $ svn export https://svn.jboss.org/repos/portal/tags/JBoss_Portal_2_7_0 project
release $ svn export https://svn.jboss.org/repos/portal/docs/tags/JBoss_Portal_2_7_0 docs
release $ svn export https://svn.jboss.org/repos/portal/examples/tags/JBoss_Portal_2_7_0_BETA1 examples
release $ unzip jboss-4.2.3.GA.zip
release $ cd docs
release/docs $ mvn package
release/docs $ cd ../project/build
release/project/build $ sh build.sh
release/project/build $ export JBOSS_HOME=$PWD/../../jboss-4.2.3.GA
release/project/build $ ant -f distrib.xml

Please try this out and see what you get in projects/build/output. These are the output of above steps. Now this needs to be modified for EPP. So, please leave distrib.xml as it is and create a new one (epp-release.xml) taking it as a baseline.

What new script should do is:

1. Read different version name (Portal, EAP, location of EAP.zip) from a properties file so that all one needs to do is update this file for a new release.
2. Build JBoss Portal source
3. Copy jboss-portal.sar to default configuration
4. Copy jboss-portal-ha.sar to production and all configuration
5. Build portal docs and copy them to doc folders in EAP
6. Produce one zip out of it.
 
Ultimately, the output if EAP + Portal = EPP. I understand you have many questions so please feel free to ask.




Comment 4 Prabhat Jha 2008-11-26 14:43:40 UTC
There are two eap zips, one with security (jboss-eap-4.3.0.GA_CP03.zip) and one without security(jboss-eap-noauth-4.3.0.GA_CP03.zip). Please create a portal zip wiht each eap zip. We will be using noauth version for testing.

Please also create a source zip of portal as well similar to how it's being done in distrib.xml.

I will let you know about the doc parts soon.



Comment 5 Prabhat Jha 2008-12-01 15:46:23 UTC
-  Please add portal-hsql-ds.xml to every server configuration.
-  EAP has seam stuff as well. We need to have that.

We may have to modify jboss-log4j.xml to reduce some logging and I will let you know more on that.

Comment 6 Prabhat Jha 2008-12-01 16:12:51 UTC
When I unzip epp, currently it explodes to jboss-eap-4.3. This should be jboss-epp-4.3 instead.

Comment 7 Prabhat Jha 2008-12-03 18:00:50 UTC
Please add setup directory which contains DB descriptors for several databases. I believe when you build portal, it's in core/output/setup.

Comment 8 Prabhat Jha 2008-12-16 02:02:08 UTC
I tested your latest script. It  is not using portal-hsql-ds.xml from portal source. This should not be dependent on value in properties file. 

Comment 9 Viliam Rockai 2008-12-17 16:43:54 UTC
portal-hsaql-ds.xml is now hardcoded.

i have run the script and tried to run servers in all configurations. it looked fine to me. the question which remains is the position of seam folder within the bundle zip, no the contents of bundle zip are like this:
jboss-epp-4.3.GA/
seam/

Comment 10 Viliam Rockai 2008-12-18 15:03:26 UTC
in distro.xml there are two patches applied : run.conf patch and log4j patch... should i apply them too?

Comment 11 Prabhat Jha 2008-12-19 03:52:56 UTC
Yes to both. We would need to apply more patches to log4j like increasing the log level for hibernate etc otherwise there is too much logging.

Comment 12 Thomas Heute 2008-12-19 08:44:26 UTC
We also need to apply them in various distrib and also patch run.bat to increase permgen space on windows machine.



Comment 13 Prabhat Jha 2008-12-22 19:53:03 UTC
I justed tested the script. When I unzip the zip, I am not seeing the same directory structure that I see when I unzip EAP zip. Please make sure they EPP zip explodes similar to that of EAP.

Comment 14 Prabhat Jha 2008-12-22 21:04:00 UTC
Link: Added: This issue depends JBEPP-26


Comment 15 Prabhat Jha 2008-12-23 17:41:35 UTC
Attaching patch to be applied to all run.conf i.e in default, all and production configuration.

Comment 16 Prabhat Jha 2008-12-23 17:41:35 UTC
Attachment: Added: run.conf.diff


Comment 17 Prabhat Jha 2008-12-23 17:42:54 UTC
Remember that there is a server/production/run.conf. :-)

Comment 18 Prabhat Jha 2008-12-23 17:47:22 UTC
Attachment: Added: run.bat.diff


Comment 19 Prabhat Jha 2009-01-05 20:28:07 UTC
Attaching jboss-log4j.xml to be used in EPP. Instead of applying it as patch, please simply replace one in EAP with this one but only in production configuration.

Comment 20 Prabhat Jha 2009-01-05 20:28:07 UTC
Attachment: Added: jboss-log4j.xml


Comment 21 Prabhat Jha 2009-01-05 21:59:20 UTC
patch for copyright.txt

Comment 22 Prabhat Jha 2009-01-05 21:59:20 UTC
Attachment: Added: copyright.txt.patch


Comment 23 Prabhat Jha 2009-01-06 18:20:46 UTC
The structure looks good now.

Comment 24 Prabhat Jha 2009-01-07 16:01:45 UTC
We need to add source code for modules to src zip as well. Please add following in properties file and use them in script to add it to src zip.

common_module_source_url
test_module_source_url
cms_module_source_url
portlet_module_source_url
identity_module_source_url



Comment 26 Prabhat Jha 2009-01-08 15:48:50 UTC
Currenly, when I explode src zip, it explodes into the current directory. It should create a directory called jboss-epp-4.3-src and explode contents over there.

Comment 27 Prabhat Jha 2009-01-08 17:33:41 UTC
We need to include source portlet bridge as well.

In properties file:
portlet_bridge_source_url=

You can use http://anonsvn.jboss.org/repos/portletbridge/tags/1.0.0.B5/ to test.



Comment 28 Prabhat Jha 2009-01-08 21:18:54 UTC
Some complication.:-)

We need to include Seam Feature Pack with EPP. I have copied the zip at /home/pjha in qa lab since you don't have access to CSP. This zip nees to be exploded and its content should overwrite that of EAP zip. The seam folder from EAP needs to be removed.

In properties file add:

seam.featurepack.archive.url=


Comment 29 Prabhat Jha 2009-01-08 21:24:46 UTC
Oops...Seam feature pack is at /home/pjha/jboss-eap-fp-4.3.0.CP03-FP01.zip

Comment 30 Prabhat Jha 2009-01-09 21:03:43 UTC
Please add setup directory from core/output/resources/setup as well. Setup directory has sample database descriptor.

jboss-epp-4.3
     --jboss-as
     --seam (or seamfp or no seam at all) - Let's wait for this
     --setup

Comment 31 Thomas Heute 2009-01-22 17:22:21 UTC
Another request, we need to pull examples from: 
https://svn.jboss.org/repos/portal/examples/tags/JBoss_Portal_2_7_1/
to:
jboss-epp-4.3/jboss-as/docs/portal

also put the 'samples' directory as we find in jboss-portal-bundle in:
jboss-epp-4.3/jboss-as/docs/portal/samples


thanks !



Note You need to log in before you can comment on or make changes to this bug.