Hi,
I run a Tapestry 5.4-beta-26 app in Eclipse with RunJettyRun, which
works fine. Now I want to create a war file, I use wtp, it works to a
certain point, but it seems Tapestry can't find the context folder.
Where do I put the stuff that's in "webapp" in Eclipse?
I get Exceptions on
<link rel="shortcut icon" type="image/x-icon"
href="${asset:context:/favicon.ico}"></link>
in a tml file:
Caused by: java.lang.RuntimeException: Unable to locate asset
'context:favicon.ico' (the file does not exist).
at
org.apache.tapestry5.internal.services.AssetSourceImpl.getLocalizedAssetFromResource(AssetSourceImpl.java:376)
at
org.apache.tapestry5.internal.services.AssetSourceImpl.getAssetInLocale(AssetSourceImpl.java:309)
at
org.apache.tapestry5.internal.services.AssetSourceImpl.access$300(AssetSourceImpl.java:46)
at
org.apache.tapestry5.internal.services.AssetSourceImpl$1.invoke(AssetSourceImpl.java:194)
at
org.apache.tapestry5.internal.services.AssetSourceImpl$1.invoke(AssetSourceImpl.java:153)
at
org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:82)
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.
My question is basically "where do I put layout/layout.css and images in
the WebContent folder, and how do I tell jetty8/Tapestry to look there?"
I used to be able make it work that way, but it's been a while since I
used Tapestry and I don't remember the details.
dagdag
Christine
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org