Monday, January 21, 2008

Configure Apache2 and jboss-4.2.2.GA

My company decided to host our site on an Apache2 www server (finally!). So setting up Apache was no prob. As part of the solution we want Apache 2 to forward request to Jboss so I installed mod_jk to accomplish this.

There is a nice Jboss setup guide, which is part of the official documentation here . Our configuration does not need load balancing so there is a good hint on section "17.4. Configure worker nodes in mod_jk", which states:

A non-loadbalanced setup with a single node requires a worker.list=node1 entry.

So if you follow all the steps described in that guide, you should only do the following changes for a single node request forwarding:

mod-jk.conf:

# Mount your applications
JkMount /application/* node1

workers.properties (you can comment everything else so if looks like this. I'm testing on my laptop so I'm using localhost, change appropiately):

worker.list=node1

# Define Node1
# modify the host as your host IP or DNS name.
worker.node1.port=8009
worker.node1.host=localhost
worker.node1.type=ajp13
worker.node1.lbfactor=1

uriworkermap.properties:

# Simple worker configuration file

# Mount the Servlet context to the ajp13 worker
/jmx-console=node1
/jmx-console/*=node1
/web-console=node1
/web-console/*=node1

That's it go to http://localhost/web-console/ and if it displays it you are done. Hope this post was helpful :)

Friday, January 18, 2008

ICAClient on Fedora 8

For those of you that need to install the Citix ICA Client 10.6.1 on Linux Fedora 8. If you try to install the rpm provided here, you may come up with this error:

error: Failed dependencies:
libXm.so.3 is needed by ICAClient-10.6-1.i386
libXp.so.6 is needed by ICAClient-10.6-1.i386

So you can use yum to get libXp like this

yum -y install libXp

as for libXm3, I found it here so be sure to install it.

Then, during the actual connectio, you may be prompted to trust some Equifax issued certificate. You'll have to download the Root certificates from:

http://www.geotrust.com/resources/root_certificates/index.asp

and copy them to:

/usr/lib/ICAClient/keystore/cacerts/

after all of this you should install the plugin for firefox:

ln -s /usr/lib/ICAClient/npica.so /usr/lib/mozilla/plugins/

Now see about:plugins from firefox just to make sure the plugin was configured OK. After this when you launch the ICA connection it should work with no problems.

Lotus Notes 8 on Fedora 8

On a side note....I'm currently moving away from Windows. I installed Fedora 8 on my Lenovo T60 and I needed to install Lotus Notes 8 on it.

Obtained the tarball for Linux from my company's tech support and extracted to a temp dir. Ran setup.sh and couldn't get the graphical setup. So I remembered I read somewhere that LN needed some legacy support so I installed Legacy Software Development from add/remove software.

Got It running now.....Hope this helps.

Tuesday, January 8, 2008

Enable TinyMCE Plugins for Alfresco 2.1

Having tried the method described on the Alfresco Wiki to enable TinyMCE Plugins (i.e. fullscreen,paste,visualchar) to no avail, I came with a solution to enable plugins for the TinyMCE editor.

I downloaded the latest version of TinyMCE from http://tinymce.moxiecode.com/ extracted it to a temp folder and replaced the ALFRESCO_WAR/scripts/tiny_mce (keep in mind I installed Alfresco on Jboss) with TINY_MCE_HOME/jscripts/tiny_mce. Then created a custom appearance by adding the following to ALFRESCO_WAR/WEB-INF/classes/alfresco/web-client-config-wcm.xml

<widget xforms-type="xf:textarea"
appearance="custom"
javascript-class-name="alfresco.xforms.RichTextEditor">
<param name="plugins">fullscreen,table,paste,visualchars</param>
<param name="theme_advanced_buttons1">bold,italic,underline,strikethrough,separator,fontselect,fontsizeselect</param>
<param name="theme_advanced_buttons2">link,unlink,image,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,bullist,numlist,separator,undo,redo,separator,forecolor,backcolor</param>
<param name="theme_advanced_buttons3">cut,copy,paste,separator,pastetext,pasteword,separator,code,separator,fullscreen,separator,visualchars,separator,tablecontrols,separator</param>
<param name="force_p_newlines">true</param>
<param name="height">600</param>
</widget>

Then modified ALFRESCO_WAR/scripts/ajax/xforms.js look for the tinyMCE.init section at the end of the file and added plugins : "table,fullscreen,paste,visualchars",. After modifying the tinyMCE section should look like this:

tinyMCE.init({
theme: "advanced",
mode: "exact",
plugins : "table,fullscreen,paste,visualchars",
width: -1,
auto_resize: false,
force_p_newlines: false,
encoding: "UTF-8",
entity_encoding: "raw",
add_unload_trigger: false,
add_form_submit_trigger: false,
execcommand_callback: "alfresco_TinyMCE_execcommand_callback",
theme_advanced_toolbar_location: "top",
theme_advanced_toolbar_align: "left",
theme_advanced_buttons1: "",
theme_advanced_buttons2: "",
theme_advanced_buttons3: "",
urlconverter_callback: "alfresco_TinyMCE_urlconverter_callback"
});

Hope this was helpful. If anybody know another way to solve this issue, please let me know.