You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Shing Hing Man <ma...@yahoo.com> on 2011/11/26 00:35:08 UTC
Tapx -yui richtexteditor : yahoo-dom-event-min.js (the file does not exist).
When using the component richtexteditor in tapx-yui-1.2-SNAPSHOT.jar from
http://howardlewisship.com/snapshot-repository.,
I get the following error.
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).
In Eclipse, I have found that yahoo-dom-event-min.js is in tapx-yui-1.2-SANAPSHOT.jar. But
somehow the folder com/howardlewisship/tapx/yui_2_8_0r4/build/yahoo-dom-event/ is not in the classpath.
I get the same error if I a download the source from https://github.com/hlship/tapx/
and do a 'gradle install'.
Thanks in advance for any assistance!
Shing
Re: Tapx -yui richtexteditor : yahoo-dom-event-min.js (the file does not exist).
Posted by Shing Hing Man <ma...@yahoo.com>.
After further investigation, my error has nothing to do with hypen (-) in folder yahoo-dom-event.
In the class ImportYUIWorker :
private final Mapper<String, Asset> pathToAsset = new Mapper<String, Asset>()
{
public Asset map(String path)
{
if (!productionMode)
{
String minPath = path + "-min.js";
Asset asset = assetSource.getExpandedAsset(minPath);
if (asset.getResource().exists())
return asset;
}
return assetSource.getExpandedAsset(path + ".js");
}
};
I would have thought "-min.js" should be used in production mode. After changing the above
if(!productionMode)
to if(productionMode)
and do a gradle install, the error gone away.
Shing
________________________________
From: Shing Hing Man <ma...@yahoo.com>
To: Tapestry users <us...@tapestry.apache.org>
Sent: Saturday, November 26, 2011 10:02 AM
Subject: Re: Tapx -yui richtexteditor : yahoo-dom-event-min.js (the file does not exist).
Thanks for the reply !
tapx-yui-1.2-SNAPSHOT.jar is in my classpath.
I think I know the cause of the error. In Java, an identifier is not allow to have hypen (-).
Hence the following is not a valid classpath.
classpath:com/howardlewisship/tapx/yui_2_8_0r4/build/yahoo-dom-event/
I have checked the history of Tapx YUI in Git and
com/howardlewisship/tapx/yui_2_8_0r4/build/yahoo-dom-event/
has not been changed recently.
I wonder how come it worked a few weeks ago with Tapestry 5.3 betas.
(Now I am using Tapestry 5.3.)
Regards,
Shing
________________________________
From: Taha Hafeez Siddiqi <ta...@gmail.com>
To: Tapestry users <us...@tapestry.apache.org>
Sent: Saturday, November 26, 2011 2:25 AM
Subject: Re: Tapx -yui richtexteditor : yahoo-dom-event-min.js (the file does not exist).
Hi
Is the jar in your classpath ?
If you running it within eclipse you can check it in 'BUILD PATH'.
Did you try gradle jettyRun ? ( in case of Gradle) or mvn jetty:run (in case of maven)
regards
Taha
On Nov 26, 2011, at 5:05 AM, Shing Hing Man wrote:
> When using the component richtexteditor in tapx-yui-1.2-SNAPSHOT.jar from
>
>
> http://howardlewisship.com/snapshot-repository.,
>
> I get the following error.
> 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).
>
> In Eclipse, I have found that yahoo-dom-event-min.js is in tapx-yui-1.2-SANAPSHOT.jar. But
> somehow the folder com/howardlewisship/tapx/yui_2_8_0r4/build/yahoo-dom-event/ is not in the classpath.
>
> I get the same error if I a download the source from https://github.com/hlship/tapx/
> and do a 'gradle install'.
>
> Thanks in advance for any assistance!
>
> Shing
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Tapx -yui richtexteditor : yahoo-dom-event-min.js (the file does not exist).
Posted by Shing Hing Man <ma...@yahoo.com>.
Thanks for the reply !
tapx-yui-1.2-SNAPSHOT.jar is in my classpath.
I think I know the cause of the error. In Java, an identifier is not allow to have hypen (-).
Hence the following is not a valid classpath.
classpath:com/howardlewisship/tapx/yui_2_8_0r4/build/yahoo-dom-event/
I have checked the history of Tapx YUI in Git and
com/howardlewisship/tapx/yui_2_8_0r4/build/yahoo-dom-event/
has not been changed recently.
I wonder how come it worked a few weeks ago with Tapestry 5.3 betas.
(Now I am using Tapestry 5.3.)
Regards,
Shing
________________________________
From: Taha Hafeez Siddiqi <ta...@gmail.com>
To: Tapestry users <us...@tapestry.apache.org>
Sent: Saturday, November 26, 2011 2:25 AM
Subject: Re: Tapx -yui richtexteditor : yahoo-dom-event-min.js (the file does not exist).
Hi
Is the jar in your classpath ?
If you running it within eclipse you can check it in 'BUILD PATH'.
Did you try gradle jettyRun ? ( in case of Gradle) or mvn jetty:run (in case of maven)
regards
Taha
On Nov 26, 2011, at 5:05 AM, Shing Hing Man wrote:
> When using the component richtexteditor in tapx-yui-1.2-SNAPSHOT.jar from
>
>
> http://howardlewisship.com/snapshot-repository.,
>
> I get the following error.
> 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).
>
> In Eclipse, I have found that yahoo-dom-event-min.js is in tapx-yui-1.2-SANAPSHOT.jar. But
> somehow the folder com/howardlewisship/tapx/yui_2_8_0r4/build/yahoo-dom-event/ is not in the classpath.
>
> I get the same error if I a download the source from https://github.com/hlship/tapx/
> and do a 'gradle install'.
>
> Thanks in advance for any assistance!
>
> Shing
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Tapx -yui richtexteditor : yahoo-dom-event-min.js (the file does not exist).
Posted by Taha Hafeez Siddiqi <ta...@gmail.com>.
Hi
Is the jar in your classpath ?
If you running it within eclipse you can check it in 'BUILD PATH'.
Did you try gradle jettyRun ? ( in case of Gradle) or mvn jetty:run (in case of maven)
regards
Taha
On Nov 26, 2011, at 5:05 AM, Shing Hing Man wrote:
> When using the component richtexteditor in tapx-yui-1.2-SNAPSHOT.jar from
>
>
> http://howardlewisship.com/snapshot-repository.,
>
> I get the following error.
> 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).
>
> In Eclipse, I have found that yahoo-dom-event-min.js is in tapx-yui-1.2-SANAPSHOT.jar. But
> somehow the folder com/howardlewisship/tapx/yui_2_8_0r4/build/yahoo-dom-event/ is not in the classpath.
>
> I get the same error if I a download the source from https://github.com/hlship/tapx/
> and do a 'gradle install'.
>
> Thanks in advance for any assistance!
>
> Shing
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org