tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Ee" <and...@sysatwork.com>
Subject RE: Multi-Level Context Paths
Date Wed, 19 Aug 2009 01:25:02 GMT
Hi Martin,

Under WEB-INF/sitemesh.xml:
 
<sitemesh>
    <property name="decorators-file" value="/WEB-INF/decorators.xml"/>
    <excludes file="${decorators-file}"/>
    <page-parsers>
        <parser default="true"
class="com.opensymphony.module.sitemesh.parser.HTMLPageParser"/>
        <parser content-type="text/html"
class="com.opensymphony.module.sitemesh.parser.HTMLPageParser"/>
        <parser content-type="text/html;charset=ISO-8859-1"
class="com.opensymphony.module.sitemesh.parser.HTMLPageParser"/>
    </page-parsers>

    <decorator-mappers>
        <mapper
class="com.opensymphony.module.sitemesh.mapper.ConfigDecoratorMapper">
            <param name="config" value="${decorators-file}"/>
        </mapper>
    </decorator-mappers>
</sitemesh>

Best Regards,
Andy Ee
 
 
-----Original Message-----
From: Martin Gainty [mailto:mgainty@hotmail.com] 
Sent: Wednesday, August 19, 2009 5:20 AM
To: Tomcat Users List
Subject: RE: Multi-Level Context Paths


Andy
can you display contents of WEB-INF/sitemesh.xml
thanks,
Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
dient lediglich dem Austausch von Informationen und entfaltet keine
rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
destinataire prévu, nous te demandons avec bonté que pour satisfaire
informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie
de ceci est interdite. Ce message sert à l'information seulement et n'aura
pas n'importe quel effet légalement obligatoire. Étant donné que les email
peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
aucune responsabilité pour le contenu fourni.




> Date: Tue, 18 Aug 2009 21:46:46 +0100
> From: markt@apache.org
> To: users@tomcat.apache.org
> Subject: Re: Multi-Level Context Paths
> 
> Andy Ee wrote:
> > Hi Mark,
> > 
> > Thank you and I will try disabling both the autoDeploy and
deployOnStartup.
> > 
> > I actually created sg#server#test.xml under Catalina/localhost/ and
points
> > docBase="/usr/local/apache-tomcat/sg#server#test.war". After I started
up
> > Tomcat, it deployed the war file and created sg#server#test folder under
> > webapps/. 
> > 
> > However, the context path sg#server#test.xml failed to startup, with the
> > following errors under catalina.out
> > 
> > Aug 19, 2009 12:35:45 AM org.apache.catalina.core.StandardContext start
> > SEVERE: Error filterStart
> > Aug 19, 2009 12:35:45 AM org.apache.catalina.core.StandardContext start
> > SEVERE: Context [/sg/server/test] startup failed due to previous errors
> > 
> > I checked localhost log and saw,
> > 
> > Caused by: com.opensymphony.module.sitemesh.factory.FactoryException:
Could
> > not read config file : /WEB-INF/sitemesh.xml:
java.io.FileNotFoundException:
> > /usr/local/apache-tomcat/webapps/sg (No such file or directory)
> > 
> > Assuming # symbol not recognized by Java utilities or sitemesh under
Solaris
> > 10. I will check more about sitemesh...
> 
> Yeah, that looks like a sitemesh issue. It is probably caused by trying
> to access the file system directly. Not sure if any of the options I
> suggested will work in this case.
> 
> Mark
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 

_________________________________________________________________
With Windows Live, you can organize, edit, and share your photos.
http://www.windowslive.com/Desktop/PhotoGallery


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message