You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Mohan K <km...@gmail.com> on 2007/09/11 16:22:51 UTC

decorations outside

Greetings Folks

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

Cheers

Mohan

 


Re: decorations outside

Posted by David Sean Taylor <da...@bluesunrise.com>.
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: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org