maxieduncan

Monday 7 March 2011

Wednesday 2 March 2011

Automatically start vncserver

Assuming you have already set a VNC password for your users you can automatically start vncserver on linux by editing /etc/sysconfig/vncservers.

Uncomment the VNCSERVERS line and configure a list of display to user mappings:

VNCSERVERS="1:userA 2:userB"



You also need to make sure that vnc is starting automatically:

/sbin/chkconfig --list vncserver
vncserver 0:off 1:off 2:off 3:off 4:off 5:off 6:off
/sbin/chkconfig --level 5 vncserver on
/sbin/chkconfig --list vncserver
vncserver 0:off 1:off 2:off 3:off 4:off 5:on 6:off


A really good resource for configuring vnc on linux is http://www.walkernews.net/2008/06/20/configure-vnc-server-to-auto-start-up-in-red-hat-linux/.

"Device eth0 has different MAC address than expected, ignoring."

I recently copied a VM from my mac to a linux server. The VM didn't work so I created a new one using the vmdk from the original VM. When started there was no network configuration and trying to start one using "/sbin/ifup eth0" resulted in the message "Device eth0 has different MAC address than expected, ignoring.".

To fix this I had to update the mac address for the eth0 device which was found here:
/etc/sysconfig/network-scripts/ifcfg-eth0

For reference view this thread

Wednesday 20 October 2010

ATG publishing workflows

To delete workflows:

delete epub_workflow_info;
delete epub_coll_workflow;
delete epub_ind_workflow;


To recreate the workflows you need to ensure that the process editor is set up for the server you're using in /atg/epub/workflow/process/workflowProcessManager.xml:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<process-manager-configuration>
  <process-editor-server>
    <server-name>HOSTNAME:DRP_PORT</server-name>
  </process-editor-server>
  <global-server>
    <server-name>HOSTNAME:DRP_PORT</server-name>
  </global-server>
</process-manager-configuration>

When specifying HOSTNAME it should match the name of the machine (localhost won't do).

Monday 18 October 2010

Eclipse not picking up taglibs when using include-prelude

I've always had an issue in Eclipse where it's never picked up the taglibs defined in the include-prelude in my web.xml. I recently found that eclipse has supported this way back since version 2 but that it doesn't process files included by the prelude.

The simple way to get around this is to move any taglibs directly into the include-prelude fragment.

Monday 4 October 2010

Error: There is no installed ATG platform or application package containing an AppModule which matches J2EEAPI

When using ATG and JBOSS on a mac you may well get this error. To resolve this create the dasEnv.sh file if it doesn't exist:
$ATG_HOME/home/localconfig/dasEnv.sh

and add this line to it:
JBOSS_HOME=<path to your jboss home dir>


[INFO] atg.applauncher.AppLauncherException: Error: There is no installed ATG platform or application package containing an AppModule which matches J2EEAPI
[INFO] at atg.applauncher.versioner.Versionator.createInitialRequirements(Versionator.java:277)
[INFO] at atg.applauncher.versioner.Versionator.(Versionator.java:87)
[INFO] at atg.applauncher.MultiInstallLocalAppModuleManager.expandSearchPath(MultiInstallLocalAppModuleManager.java:154)
[INFO] at atg.applauncher.MultiInstallLocalAppModuleManager.(MultiInstallLocalAppModuleManager.java:131)
[INFO] at atg.applauncher.dynamo.DynamoServerLauncher.main(DynamoServerLauncher.java:166)

ATG scenario tables

While ATG scenarios are read from the filesystem they can also be loaded from the database.

For reference the tables where you'll find the scenarios that have been loaded are:
  • dss_scenario_info
  • dss_col_scenario

The table that scenarios are stored in is: epub_file_asset