HAL Formatter installation
How to Install Server
How to Create Project

Technical notes, and other ideas.
HAL Formatter installation
How to Install Server
How to Create Project
ssh -X machinename
The -X is the magic sauce of the SSH command to allow you to run graphic programs.
sudo su -
# DELETE CRON JOBS
cd /etc/cron.hourly
rm jboss-config
rm jboss-config~
# RE-RUN THE 256-BIT STEPS
extract the JAR file and copy the files into /opt/jce
$cd /opt/jce
$cp /home/jboss1/Desktop/jce .
$rm -f /usr/lib/jvm/jre-1.6.0-sun.x86_64/lib/security/{local,US_export}_policy.jar
$update-alternatives --auto jce_1.6.0_sun_local_policy.x86_64
$update-alternatives --install /usr/lib/jvm/jre-1.6.0-sun.x86_64/lib/security/local_policy.jar jce_1.6.0_sun_local_policy.x86_64 /opt/jce/local_policy.jar 160200 --slave /usr/lib/jvm/jre-1.6.0-sun.x86_64/lib/security/US_export_policy.jar jce_1.6.0_sun_us_export_policy.x86_64 /opt/jce/US_export_policy.jar
Refer: com/hollandamerica/checkin/action/EdocsHelper.java
Please see the following code stubs for example coding changes required:
import com.halw.util.SerializableByteArrayOutputStream;
* <li>mlr 03-12.2012
* <ul>
* <li>Marking several class variables transient in attempt to fix serialization
* error when converting to JBoss with session persistance.</li>
* </ul>
* </li>
private transient boolean checkinComplete = false;
from:
private transient ByteArrayOutputStream baosFinal = new ByteArrayOutputStream();
to:
private transient SerializableByteArrayOutputStream baosFinal = new SerializableByteArrayOutputStream();
The following will remove it from the dropdown list when your startup Eclipse. Eclipse is not very happy if it thinks there's supposed to be a workspace but it's not there.
Window,Preferences,General,"Startup and Shutdown",Workspaces
From there you can delete a workspace you are no longer using, and then delete if from your drive
-----Original Message-----
From: Guillaume Radde [mailto:guillaume.radde@redhat.com]
Sent: Monday, April 30, 2012 1:38 PM
To: Ruckman, Maurice (HAL)
Cc: Thompson, Sonya (HAL); Fillman, Eric (HAL)
Subject: Re: Nexus
Nexus is the shared Maven artifact repository. It's basically a cache for jars so that if your maven downloads apache-common-1.3.jar, Eric's maven won't have to go on the web to download the same jar. All developer VMs and Hudson are configured to get jars (called artifacts in maven terms) from Nexus by default.
The url for our Nexus instance is http://halsvn01:8081/nexus
The website for nexus can be found here : http://www.sonatype.org/nexus/
Overview of roles for Subversion with originally workflow
20120206_Holland_America_SVN_Migration plan-Workshop.pdf
General Overview of Subversion itself
Initial install of plug-in
1. Create a Maven Workspace "/home/jboss1/workspace-your-space"
2. File, New, Other, "Checkout Maven Projects from SCM"
3. Next
4: Click on "Find more SCM connectors in the m2e" link (Maven to Eclipse)
5. Check "m2e-subclipse"
6. Finish
7. Next
8. Next
9. Next
10. Accept terms and conditions, and "Finish"
11. Click "OK" for "Security Warning" wait for "Installing Software"
12. Allow "Eclipse" to restart
Subsequent Installation of Projects
1. File, New, Other
2. File, New, Other, "Checkout Maven Projects from SCM"
3. Next
4. Choose "SVN" in the SCM URL, left-most drop-down
5. Copy the URL from SVN and remove the trailing slash, such as:
http://halsvn01/svn/hal/branches/RC/yy.ww-RC
Default values: Checkout Head Revision, and Checkout All Projects
6. Next
7. Use default Workspace location, Finish
8. Wait about a minute for it to import and build
Debug on Server
1. Right-click on hal-ear, "Run As", "Debug on Server"
2. Next, Finish
If you have problems debugging because of a gateway timeout error then make sure of the following:
/etc/httpd/conf/workers.properties
set worker.template.reply_timeout=0 (instead of 30000)
Removing errror in JSP's
1. Right-click hal-parent and choose "Import..."
2. General,"File System"
3. Click Next
4. From directory: /home/jboss1/programs/jboss-eap-5.1/jboss-as/server/standard/deploy/jbossweb.sar
5. Click besides jstl.jar and standard.jar to activate the check boxes
6. Into: hal-parent
7. Click "Finish"
8. Right-click hal-web, "Build Path", "Configure Build Path"
9. Click on "Java Build Path"
10. Click Libraries tab
11. Click "Add Jar", click on your hal-parent project, and filter to jstl.jar, press OK
Reference: http://stackoverflow.com/questions/1265309/eclipse-cannot-find-the-tag-library-descriptor
Change your JRE to 1.6 compliance instead of 1.5
1. hal-ejb, Project, Properties, Java Compiler, use "JavaSE-1.6"
2. In your Markers tab there is an error "Java compiler does not match the version of the installed java project facet", right-click, quick fix, Change to Java 1.6, and click Finish
If you encounter an error during build
** This needs further investigation **
1. You may encounter a "Building workspace" error, as such you will need to disable the JavaScript Validator
2. Click OK twice, if error encountered
3. Go to Workbench, Windows, Preferences, Javascript, Validator, Errors/Warning
4. Uncheck the "Enable JavaScript semantic validation"
5. Apply, "Accept Full Build", and OK
6. Right-click on hal-web project, properties
7. Builders, uncheck JavaScript Validator
8. Continue, through side-effect warning
9. OK
First you need to copy static content from here:
cp -R /wbi/haldata/webdev/* /home/jboss1/HAL/
And then supplement it from your workspace:
On developer VM, to copy static content from the checked out halwebsite folder to the apache document root and compile at the same time, you can run the following command from the root of your checked out project:
cp -R halwebsite/* /home/jboss1/HAL/halwebsite/ && mvn install
The && shell operator is a logic AND, it means that the 'mvn install' command only runs if the left part of the commands succeeds.
Deploy static content and deploy in JBoss (using hot deploy):
mvn install && cp hal-ear/target/hal-*.ear /home/jboss1/programs/jboss-eap-5.1/jbossas/server/haldev-vm-template/deploy/ && cp -R halwebsite/* /home/jboss1/HAL/halwebsite/
Simple script to rename log files with their last modified date.
Sample: rename_log.sh