On Sep 11, 2007, at 7:22 AM, Mohan K wrote:

Greetings Folks

Is there an easy way to make the decorations live outside the J2 WAR
(exploded or not)? Thanks in Advance

There is an easy way, unfortunately it does not work.

1. copy the decorators to /somewhere/decorators

2. edit jetspeed-spring.xml to point to:

<bean id="DecorationLocator" class="org.apache.jetspeed.locator.JetspeedTemplateLocator" init- method="start" destroy-method="stop">
        <constructor-arg>
            <list>
                <value>/somewhere/decorations</value>
            </list>
        </constructor-arg>
        <constructor-arg>
            <value>${applicationRoot}</value>
        </constructor-arg>
    </bean>

and in deployment.xml

  <bean id="decoratorDeploymentListener"
class="org.apache.jetspeed.deployment.impl.DeployDecoratorEventListener"
  >  
<constructor-arg ><value>/somewhere/decorations</value></ constructor-arg>
  </bean>


Unfortunately things fall apart from there:

org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'decorations/layout/tigris/header.vm' at org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource (ResourceManagerImpl.java:452)

I don't think this is a big deal to fix. Best to create a JIRA issue and see if we can get to it




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to