You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Lackers <th...@newsint.co.uk> on 2011/08/17 13:20:36 UTC
Re: [tapx-yui] RichTextEditor: Unable to locate asset when in
production mode
Hi,
I'm getting a similar error whilst trying to import some javascript:
org.apache.tapestry5.ioc.internal.OperationException
Unable to locate asset
'classpath:comsys/newsint/co/uk/mixins/ajax_periodic_updater.js' (the file
does not exist).
Stack trace
org.apache.tapestry5.internal.services.AssetSourceImpl.getLocalizedAssetFromResource(AssetSourceImpl.java:135)
org.apache.tapestry5.internal.services.AssetSourceImpl.getAssetInLocale(AssetSourceImpl.java:105)
org.apache.tapestry5.internal.services.AssetSourceImpl.getAsset(AssetSourceImpl.java:85)
org.apache.tapestry5.internal.transform.ImportWorker$5.map(ImportWorker.java:206)
Please excuse my ignorance but it seems like a fix for this has been checked
in?
How would a relative neanderthal like myself get this fix included in the
version of tapestry
that I am using?
Or is there a work around I could use?
Many thanks
Tom
--
View this message in context: http://tapestry.1045711.n5.nabble.com/tapx-yui-RichTextEditor-Unable-to-locate-asset-when-in-production-mode-tp2422541p4707753.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [tapx-yui] RichTextEditor: Unable to locate asset when in
production mode
Posted by Howard Lewis Ship <hl...@gmail.com>.
On Wed, Aug 17, 2011 at 9:48 AM, Lackers <th...@newsint.co.uk> wrote:
> 1000 apologies Mr Lewis for my lazy post.
> However, you are brilliant and have fixed my problem.
> Stupidly as you suspected my .js file was not under
> src/main/resources
> but under
> src/main/java
>
> I love tapestry and will endeavour to learn more about it
> before posting any more foolish questions.
Didn't mean to come off so harsh ... I'm often doing five things at once.
>
> Thanks again
>
> Tom
>
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/tapx-yui-RichTextEditor-Unable-to-locate-asset-when-in-production-mode-tp2422541p4709025.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Howard M. Lewis Ship
Creator of Apache Tapestry
The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!
(971) 678-5210
http://howardlewisship.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [tapx-yui] RichTextEditor: Unable to locate asset when in
production mode
Posted by Lackers <th...@newsint.co.uk>.
1000 apologies Mr Lewis for my lazy post.
However, you are brilliant and have fixed my problem.
Stupidly as you suspected my .js file was not under
src/main/resources
but under
src/main/java
I love tapestry and will endeavour to learn more about it
before posting any more foolish questions.
Thanks again
Tom
--
View this message in context: http://tapestry.1045711.n5.nabble.com/tapx-yui-RichTextEditor-Unable-to-locate-asset-when-in-production-mode-tp2422541p4709025.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [tapx-yui] RichTextEditor: Unable to locate asset when in
production mode
Posted by Howard Lewis Ship <hl...@gmail.com>.
This is unrelated.
Either comsys/newsint/co/uk/mixins/ajax_periodic_updater.js is not
under src/main/resources (or equivalent), or your IDE/build script is
not packaging it into your WAR.
The first thing you do is rule out your environment as the problem,
and since you didn't bother to explain what that was (or even what
version of Tapestry you are using), you can't expect much more help.
On Wed, Aug 17, 2011 at 4:20 AM, Lackers <th...@newsint.co.uk> wrote:
> Hi,
> I'm getting a similar error whilst trying to import some javascript:
>
> org.apache.tapestry5.ioc.internal.OperationException
> Unable to locate asset
> 'classpath:comsys/newsint/co/uk/mixins/ajax_periodic_updater.js' (the file
> does not exist).
>
> Stack trace
> org.apache.tapestry5.internal.services.AssetSourceImpl.getLocalizedAssetFromResource(AssetSourceImpl.java:135)
> org.apache.tapestry5.internal.services.AssetSourceImpl.getAssetInLocale(AssetSourceImpl.java:105)
> org.apache.tapestry5.internal.services.AssetSourceImpl.getAsset(AssetSourceImpl.java:85)
> org.apache.tapestry5.internal.transform.ImportWorker$5.map(ImportWorker.java:206)
>
> Please excuse my ignorance but it seems like a fix for this has been checked
> in?
> How would a relative neanderthal like myself get this fix included in the
> version of tapestry
> that I am using?
>
> Or is there a work around I could use?
>
> Many thanks
>
> Tom
>
>
>
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/tapx-yui-RichTextEditor-Unable-to-locate-asset-when-in-production-mode-tp2422541p4707753.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Howard M. Lewis Ship
Creator of Apache Tapestry
The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!
(971) 678-5210
http://howardlewisship.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org