Hi Peter,

I presume that the error occurs, because in developent environment the file is 
accessible as file whilst in production it is packed into a jar.

There are some other implementations for interface SymbolProvider, look here: 
http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapestry5/ioc/services/SymbolProvider.html

Maybe the ClasspathResourceSymbolProvider suits your needs. Of course the 
implementations are internal. I have browsed the api-docs a bit, but could not 
find a solution for not using the internal class (instead of coding everything 
yourself).

Regards, nillehammer

==
http://www.winfonet.eu

----- original Nachricht --------

Betreff: Referencing the context path in AppModule
Gesendet: Mo, 06. Jul 2009
Von: Peter Stavrinides<p.stavrini...@albourne.com>

> Hi all,
> 
> I am trying to referencing a properties file in my AppModule... currently I
> am doing this based on the wiki example:
> 
> public ContextSymbolProvider buildFileSystemPropertiesSymbolProvider() {
>       return new ContextSymbolProvider(
>                       "src/main/webapp/WEB-INF/context.properties", false);
> }
> 
> Which works in development (maven and jetty), but when I deploy, its to
> tomcat, and tomcat can't find that path. I am wandering if someone could
> suggest a better way to reference my properties file in a portable way.
> 
> Thanks,
> Peter
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
> 

--- original Nachricht Ende ----


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to