On Mon, 18 May 2015 08:47:17 -0300, Christine <[email protected]> wrote:
Hi,
Hi!
I get Exceptions on
<link rel="shortcut icon" type="image/x-icon"
href="${asset:context:/favicon.ico}"></link>
in a tml file:
and on
@Import(stylesheet = "context:layout/layout.css")
in Layout.java:
Caused by: java.lang.RuntimeException: Unable to locate asset
'context:layout/layout.css' (the file does not exist).
In my Eclipse project that runs with RunJettyRun I have a webapp dir at
the same level as "java" and "resources", in which there's
layout/layout.css and images.
In the war, I have WebContent with META-INF and WEB-INF, I put
layout/layout.css and images in WEB-INF.
That's your error. The context asset path root folder is the root of the
WAR. In the sources, if you follow the Maven folder conventions, the
context root folder is /src/main/webapp.
--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]