You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Joost Schouten (ml)" <jo...@jsportal.com> on 2010/05/28 17:58:06 UTC
[tapx-yui] RichTextEditor: Unable to locate asset when in production
mode
Hi,
I started using the RichTextEditor in the tapx-yui package (nice work
btw!) which works fine when running under production-mode=false, but
when in production-mode, I get the exception at [1]. I am not quite sure
but it looks like there is a minified asset missing. Am I correct?
cheers,
Joost
[1]
Caused by: java.lang.RuntimeException: Unable to locate asset 'classpath:com/howardlewisship/tapx/yui_2_8_0r4/build/yahoo-dom-event/yahoo-dom-event-min.js' (the file does not exist).
at org.apache.tapestry5.internal.services.AssetSourceImpl.getLocalizedAssetFromResource(AssetSourceImpl.java:135)
at org.apache.tapestry5.internal.services.AssetSourceImpl.getAssetInLocale(AssetSourceImpl.java:104)
at org.apache.tapestry5.internal.services.AssetSourceImpl.getAsset(AssetSourceImpl.java:84)
at $AssetSource_128df8b57ee.getAsset($AssetSource_128df8b57ee.java)
at com.howardlewisship.tapx.yui.services.internal.ImportYUIWorker.importJavascriptLibraryForPath(ImportYUIWorker.java:127)
at com.howardlewisship.tapx.yui.services.internal.ImportYUIWorker.importJavascriptLibrariesForPaths(ImportYUIWorker.java:121)
at com.howardlewisship.tapx.yui.services.internal.ImportYUIWorker.access$000(ImportYUIWorker.java:35)
at com.howardlewisship.tapx.yui.services.internal.ImportYUIWorker$1.advise(ImportYUIWorker.java:91)
at org.apache.tapestry5.internal.services.AbstractComponentMethodInvocation.proceed(AbstractComponentMethodInvocation.java:86)
at com.howardlewisship.tapx.yui.components.RichTextEditor.beginRender(RichTextEditor.java)
at org.apache.tapestry5.internal.structure.ComponentPageElementImpl$BeginRenderPhase.invokeComponent(ComponentPageElementImpl.java:237)
at org.apache.tapestry5.internal.structure.ComponentPageElementImpl$AbstractPhase.run(ComponentPageElementImpl.java:195)
at org.apache.tapestry5.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:982)
... 96 more
---------------------------------------------------------------------
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 "Joost Schouten (ml)" <jo...@jsportal.com>.
Thanks for your quick fix! Works great now.
Cheers,
Joost
Howard Lewis Ship wrote:
> Just checked in a fix. Man, it is so much easier to work on tapx than
> Tapestry; pure Git, no hassels. Your just lucky I'm working for the
> right client today, i.e., that fix is a priority for my client as well
> as for you.
>
> On Fri, May 28, 2010 at 9:16 AM, Howard Lewis Ship <hl...@gmail.com> wrote:
>
>> Yep. Looks like yahoo-dom-event.js is always minimized. I'll check in a fix.
>>
>> On Fri, May 28, 2010 at 8:58 AM, Joost Schouten (ml)
>> <jo...@jsportal.com> wrote:
>>
>>> Hi,
>>>
>>> I started using the RichTextEditor in the tapx-yui package (nice work btw!)
>>> which works fine when running under production-mode=false, but when in
>>> production-mode, I get the exception at [1]. I am not quite sure but it
>>> looks like there is a minified asset missing. Am I correct?
>>>
>>> cheers,
>>> Joost
>>>
>>> [1]
>>>
>>> Caused by: java.lang.RuntimeException: Unable to locate asset
>>> 'classpath:com/howardlewisship/tapx/yui_2_8_0r4/build/yahoo-dom-event/yahoo-dom-event-min.js'
>>> (the file does not exist).
>>> at
>>> org.apache.tapestry5.internal.services.AssetSourceImpl.getLocalizedAssetFromResource(AssetSourceImpl.java:135)
>>> at
>>> org.apache.tapestry5.internal.services.AssetSourceImpl.getAssetInLocale(AssetSourceImpl.java:104)
>>> at
>>> org.apache.tapestry5.internal.services.AssetSourceImpl.getAsset(AssetSourceImpl.java:84)
>>> at $AssetSource_128df8b57ee.getAsset($AssetSource_128df8b57ee.java)
>>> at
>>> com.howardlewisship.tapx.yui.services.internal.ImportYUIWorker.importJavascriptLibraryForPath(ImportYUIWorker.java:127)
>>> at
>>> com.howardlewisship.tapx.yui.services.internal.ImportYUIWorker.importJavascriptLibrariesForPaths(ImportYUIWorker.java:121)
>>> at
>>> com.howardlewisship.tapx.yui.services.internal.ImportYUIWorker.access$000(ImportYUIWorker.java:35)
>>> at
>>> com.howardlewisship.tapx.yui.services.internal.ImportYUIWorker$1.advise(ImportYUIWorker.java:91)
>>> at
>>> org.apache.tapestry5.internal.services.AbstractComponentMethodInvocation.proceed(AbstractComponentMethodInvocation.java:86)
>>> at
>>> com.howardlewisship.tapx.yui.components.RichTextEditor.beginRender(RichTextEditor.java)
>>> at
>>> org.apache.tapestry5.internal.structure.ComponentPageElementImpl$BeginRenderPhase.invokeComponent(ComponentPageElementImpl.java:237)
>>> at
>>> org.apache.tapestry5.internal.structure.ComponentPageElementImpl$AbstractPhase.run(ComponentPageElementImpl.java:195)
>>> at
>>> org.apache.tapestry5.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:982)
>>> ... 96 more
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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 Howard Lewis Ship <hl...@gmail.com>.
Just checked in a fix. Man, it is so much easier to work on tapx than
Tapestry; pure Git, no hassels. Your just lucky I'm working for the
right client today, i.e., that fix is a priority for my client as well
as for you.
On Fri, May 28, 2010 at 9:16 AM, Howard Lewis Ship <hl...@gmail.com> wrote:
> Yep. Looks like yahoo-dom-event.js is always minimized. I'll check in a fix.
>
> On Fri, May 28, 2010 at 8:58 AM, Joost Schouten (ml)
> <jo...@jsportal.com> wrote:
>> Hi,
>>
>> I started using the RichTextEditor in the tapx-yui package (nice work btw!)
>> which works fine when running under production-mode=false, but when in
>> production-mode, I get the exception at [1]. I am not quite sure but it
>> looks like there is a minified asset missing. Am I correct?
>>
>> cheers,
>> Joost
>>
>> [1]
>>
>> Caused by: java.lang.RuntimeException: Unable to locate asset
>> 'classpath:com/howardlewisship/tapx/yui_2_8_0r4/build/yahoo-dom-event/yahoo-dom-event-min.js'
>> (the file does not exist).
>> at
>> org.apache.tapestry5.internal.services.AssetSourceImpl.getLocalizedAssetFromResource(AssetSourceImpl.java:135)
>> at
>> org.apache.tapestry5.internal.services.AssetSourceImpl.getAssetInLocale(AssetSourceImpl.java:104)
>> at
>> org.apache.tapestry5.internal.services.AssetSourceImpl.getAsset(AssetSourceImpl.java:84)
>> at $AssetSource_128df8b57ee.getAsset($AssetSource_128df8b57ee.java)
>> at
>> com.howardlewisship.tapx.yui.services.internal.ImportYUIWorker.importJavascriptLibraryForPath(ImportYUIWorker.java:127)
>> at
>> com.howardlewisship.tapx.yui.services.internal.ImportYUIWorker.importJavascriptLibrariesForPaths(ImportYUIWorker.java:121)
>> at
>> com.howardlewisship.tapx.yui.services.internal.ImportYUIWorker.access$000(ImportYUIWorker.java:35)
>> at
>> com.howardlewisship.tapx.yui.services.internal.ImportYUIWorker$1.advise(ImportYUIWorker.java:91)
>> at
>> org.apache.tapestry5.internal.services.AbstractComponentMethodInvocation.proceed(AbstractComponentMethodInvocation.java:86)
>> at
>> com.howardlewisship.tapx.yui.components.RichTextEditor.beginRender(RichTextEditor.java)
>> at
>> org.apache.tapestry5.internal.structure.ComponentPageElementImpl$BeginRenderPhase.invokeComponent(ComponentPageElementImpl.java:237)
>> at
>> org.apache.tapestry5.internal.structure.ComponentPageElementImpl$AbstractPhase.run(ComponentPageElementImpl.java:195)
>> at
>> org.apache.tapestry5.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:982)
>> ... 96 more
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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
>
--
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 Howard Lewis Ship <hl...@gmail.com>.
Yep. Looks like yahoo-dom-event.js is always minimized. I'll check in a fix.
On Fri, May 28, 2010 at 8:58 AM, Joost Schouten (ml)
<jo...@jsportal.com> wrote:
> Hi,
>
> I started using the RichTextEditor in the tapx-yui package (nice work btw!)
> which works fine when running under production-mode=false, but when in
> production-mode, I get the exception at [1]. I am not quite sure but it
> looks like there is a minified asset missing. Am I correct?
>
> cheers,
> Joost
>
> [1]
>
> Caused by: java.lang.RuntimeException: Unable to locate asset
> 'classpath:com/howardlewisship/tapx/yui_2_8_0r4/build/yahoo-dom-event/yahoo-dom-event-min.js'
> (the file does not exist).
> at
> org.apache.tapestry5.internal.services.AssetSourceImpl.getLocalizedAssetFromResource(AssetSourceImpl.java:135)
> at
> org.apache.tapestry5.internal.services.AssetSourceImpl.getAssetInLocale(AssetSourceImpl.java:104)
> at
> org.apache.tapestry5.internal.services.AssetSourceImpl.getAsset(AssetSourceImpl.java:84)
> at $AssetSource_128df8b57ee.getAsset($AssetSource_128df8b57ee.java)
> at
> com.howardlewisship.tapx.yui.services.internal.ImportYUIWorker.importJavascriptLibraryForPath(ImportYUIWorker.java:127)
> at
> com.howardlewisship.tapx.yui.services.internal.ImportYUIWorker.importJavascriptLibrariesForPaths(ImportYUIWorker.java:121)
> at
> com.howardlewisship.tapx.yui.services.internal.ImportYUIWorker.access$000(ImportYUIWorker.java:35)
> at
> com.howardlewisship.tapx.yui.services.internal.ImportYUIWorker$1.advise(ImportYUIWorker.java:91)
> at
> org.apache.tapestry5.internal.services.AbstractComponentMethodInvocation.proceed(AbstractComponentMethodInvocation.java:86)
> at
> com.howardlewisship.tapx.yui.components.RichTextEditor.beginRender(RichTextEditor.java)
> at
> org.apache.tapestry5.internal.structure.ComponentPageElementImpl$BeginRenderPhase.invokeComponent(ComponentPageElementImpl.java:237)
> at
> org.apache.tapestry5.internal.structure.ComponentPageElementImpl$AbstractPhase.run(ComponentPageElementImpl.java:195)
> at
> org.apache.tapestry5.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:982)
> ... 96 more
>
>
>
> ---------------------------------------------------------------------
> 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 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
Re: [tapx-yui] RichTextEditor: Unable to locate asset when in
production mode
Posted by Lackers <th...@newsint.co.uk>.
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