You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Muhammad Gelbana <m....@gmail.com> on 2014/06/08 00:06:05 UTC

[t5.4-beta-10] Unable to locate asset, It should be located at META-INF/assets

Unable to locate ass
​​
et 'js/jquery-1.10.2.js' for component Index:layout. It should be located
at META-IN
​​
F/assets/js/jquery-1.10.2.js
​

I've already placed this file in the specified location under the webapp
folder (i.e. src/main/webapp) and put the mentioned files under *js*
folder​.
​
The file's path on the disk is exactly
*​​t5​​-basic-bootstrap/src/main/webapp/META-INF/assets/js/jquery-1.10.2.js​​​*

Where else should I place my META-INF directory if not next to the WEB-INF ?

*---------------------​​*
*Muhammad Gel​​bana*
http://www.linkedin.com/in/mgelbana
​​

Re: [t5.4-beta-10] Unable to locate asset, It should be located at META-INF/assets

Posted by Geoff Callender <ge...@gmail.com>.
The new location protects the assets and allows Tapestry to serve them up however it wishes, eg. gzipped, renamed with checksum in name, etc.

	http://apache-tapestry-mailing-list-archives.1045711.n5.nabble.com/META-INF-assets-in-5-4-td5714677.html


On 8 Jun 2014, at 4:41 pm, Muhammad Gelbana <m....@gmail.com> wrote:

> Is there a logical reason for that ? If there is, it will be easier for me
> to remember.
> 
> *---------------------*
> *Muhammad Gelbana*
> http://www.linkedin.com/in/mgelbana
> 
> 
> On Sun, Jun 8, 2014 at 4:08 AM, Geoff Callender <
> geoff.callender.jumpstart@gmail.com> wrote:
> 
>> Not src/main/webapp/META-INF/ - use src/main/resources/META-INF/, eg.
>> 
>> 
>> http://jumpstart.doublenegative.com.au/jumpstart7/examples/javascript/javascript
>> 
>> They will end up in your WAR's /WEB-INF/classes/META-INF/.
>> 
>> Cheers,
>> 
>> Geoff
>> 
>> On 8 Jun 2014, at 8:14 am, Muhammad Gelbana <m....@gmail.com> wrote:
>> 
>>> That's how I included my JS and CSS files
>>> 
>>> @Import(library = { "js/jquery-1.10.2.js",
>>> "js/bootstrap.min.js",
>>> "js/plugins/metisMenu/jquery.metisMenu.js",
>>> "js/plugins/morris/raphael-2.1.0.min.js",
>>> "js/plugins/morris/morris.js",
>>> "js/sb-admin.js",
>>> "js/demo/dashboard-demo.js" },
>>> 
>>> stylesheet = { "css/bootstrap.min.css",
>>> "font-awesome/css/font-awesome.css",
>>> "css/plugins/morris/morris-0.4.3.min.css",
>>> "css/plugins/timeline/timeline.css", "css/sb-admin.css" })
>>> 
>>> *---------------------*
>>> *Muhammad Gelbana*
>>> http://www.linkedin.com/in/mgelbana
>>> 
>>> 
>>> On Sun, Jun 8, 2014 at 1:06 AM, Muhammad Gelbana <m....@gmail.com>
>>> wrote:
>>> 
>>>> Unable to locate ass
>>>> ​​
>>>> et 'js/jquery-1.10.2.js' for component Index:layout. It should be
>> located
>>>> at META-IN
>>>> ​​
>>>> F/assets/js/jquery-1.10.2.js
>>>> ​
>>>> 
>>>> I've already placed this file in the specified location under the webapp
>>>> folder (i.e. src/main/webapp) and put the mentioned files under *js*
>>>> folder​.
>>>> ​
>>>> The file's path on the disk is exactly
>>>> *​
>>>> 
>> ​t5​​-basic-bootstrap/src/main/webapp/META-INF/assets/js/jquery-1.10.2.js
>>>> ​​​*
>>>> 
>>>> Where else should I place my META-INF directory if not next to the
>>>> WEB-INF ?
>>>> 
>>>> *---------------------​​*
>>>> *Muhammad Gel ​​bana*
>>>> http://www.linkedin.com/in/mgelbana
>>>> ​​
>>>> 
>>>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>> 
>> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: [t5.4-beta-10] Unable to locate asset, It should be located at META-INF/assets

Posted by Muhammad Gelbana <m....@gmail.com>.
Is there a logical reason for that ? If there is, it will be easier for me
to remember.

*---------------------*
*Muhammad Gelbana*
http://www.linkedin.com/in/mgelbana


On Sun, Jun 8, 2014 at 4:08 AM, Geoff Callender <
geoff.callender.jumpstart@gmail.com> wrote:

> Not src/main/webapp/META-INF/ - use src/main/resources/META-INF/, eg.
>
>
> http://jumpstart.doublenegative.com.au/jumpstart7/examples/javascript/javascript
>
> They will end up in your WAR's /WEB-INF/classes/META-INF/.
>
> Cheers,
>
> Geoff
>
> On 8 Jun 2014, at 8:14 am, Muhammad Gelbana <m....@gmail.com> wrote:
>
> > That's how I included my JS and CSS files
> >
> > @Import(library = { "js/jquery-1.10.2.js",
> > "js/bootstrap.min.js",
> > "js/plugins/metisMenu/jquery.metisMenu.js",
> > "js/plugins/morris/raphael-2.1.0.min.js",
> > "js/plugins/morris/morris.js",
> > "js/sb-admin.js",
> > "js/demo/dashboard-demo.js" },
> >
> > stylesheet = { "css/bootstrap.min.css",
> > "font-awesome/css/font-awesome.css",
> > "css/plugins/morris/morris-0.4.3.min.css",
> > "css/plugins/timeline/timeline.css", "css/sb-admin.css" })
> >
> > *---------------------*
> > *Muhammad Gelbana*
> > http://www.linkedin.com/in/mgelbana
> >
> >
> > On Sun, Jun 8, 2014 at 1:06 AM, Muhammad Gelbana <m....@gmail.com>
> > wrote:
> >
> >> Unable to locate ass
> >> ​​
> >> et 'js/jquery-1.10.2.js' for component Index:layout. It should be
> located
> >> at META-IN
> >> ​​
> >> F/assets/js/jquery-1.10.2.js
> >> ​
> >>
> >> I've already placed this file in the specified location under the webapp
> >> folder (i.e. src/main/webapp) and put the mentioned files under *js*
> >> folder​.
> >> ​
> >> The file's path on the disk is exactly
> >> *​
> >>
> ​t5​​-basic-bootstrap/src/main/webapp/META-INF/assets/js/jquery-1.10.2.js
> >> ​​​*
> >>
> >> Where else should I place my META-INF directory if not next to the
> >> WEB-INF ?
> >>
> >> *---------------------​​*
> >> *Muhammad Gel ​​bana*
> >> http://www.linkedin.com/in/mgelbana
> >> ​​
> >>
> >>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: [t5.4-beta-10] Unable to locate asset, It should be located at META-INF/assets

Posted by Geoff Callender <ge...@gmail.com>.
Not src/main/webapp/META-INF/ - use src/main/resources/META-INF/, eg.

	http://jumpstart.doublenegative.com.au/jumpstart7/examples/javascript/javascript

They will end up in your WAR's /WEB-INF/classes/META-INF/.

Cheers,

Geoff

On 8 Jun 2014, at 8:14 am, Muhammad Gelbana <m....@gmail.com> wrote:

> That's how I included my JS and CSS files
> 
> @Import(library = { "js/jquery-1.10.2.js",
> "js/bootstrap.min.js",
> "js/plugins/metisMenu/jquery.metisMenu.js",
> "js/plugins/morris/raphael-2.1.0.min.js",
> "js/plugins/morris/morris.js",
> "js/sb-admin.js",
> "js/demo/dashboard-demo.js" },
> 
> stylesheet = { "css/bootstrap.min.css",
> "font-awesome/css/font-awesome.css",
> "css/plugins/morris/morris-0.4.3.min.css",
> "css/plugins/timeline/timeline.css", "css/sb-admin.css" })
> 
> *---------------------*
> *Muhammad Gelbana*
> http://www.linkedin.com/in/mgelbana
> 
> 
> On Sun, Jun 8, 2014 at 1:06 AM, Muhammad Gelbana <m....@gmail.com>
> wrote:
> 
>> Unable to locate ass
>> ​​
>> et 'js/jquery-1.10.2.js' for component Index:layout. It should be located
>> at META-IN
>> ​​
>> F/assets/js/jquery-1.10.2.js
>> ​
>> 
>> I've already placed this file in the specified location under the webapp
>> folder (i.e. src/main/webapp) and put the mentioned files under *js*
>> folder​.
>> ​
>> The file's path on the disk is exactly
>> *​
>> ​t5​​-basic-bootstrap/src/main/webapp/META-INF/assets/js/jquery-1.10.2.js
>> ​​​*
>> 
>> Where else should I place my META-INF directory if not next to the
>> WEB-INF ?
>> 
>> *---------------------​​*
>> *Muhammad Gel ​​bana*
>> http://www.linkedin.com/in/mgelbana
>> ​​
>> 
>> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: [t5.4-beta-10] Unable to locate asset, It should be located at META-INF/assets

Posted by Muhammad Gelbana <m....@gmail.com>.
That's how I included my JS and CSS files

@Import(library = { "js/jquery-1.10.2.js",
"js/bootstrap.min.js",
"js/plugins/metisMenu/jquery.metisMenu.js",
"js/plugins/morris/raphael-2.1.0.min.js",
"js/plugins/morris/morris.js",
"js/sb-admin.js",
"js/demo/dashboard-demo.js" },

stylesheet = { "css/bootstrap.min.css",
"font-awesome/css/font-awesome.css",
"css/plugins/morris/morris-0.4.3.min.css",
"css/plugins/timeline/timeline.css", "css/sb-admin.css" })

*---------------------*
*Muhammad Gelbana*
http://www.linkedin.com/in/mgelbana


On Sun, Jun 8, 2014 at 1:06 AM, Muhammad Gelbana <m....@gmail.com>
wrote:

> Unable to locate ass
> ​​
> et 'js/jquery-1.10.2.js' for component Index:layout. It should be located
> at META-IN
> ​​
> F/assets/js/jquery-1.10.2.js
> ​
>
> I've already placed this file in the specified location under the webapp
> folder (i.e. src/main/webapp) and put the mentioned files under *js*
> folder​.
> ​
> The file's path on the disk is exactly
> *​
> ​t5​​-basic-bootstrap/src/main/webapp/META-INF/assets/js/jquery-1.10.2.js
> ​​​*
>
>  Where else should I place my META-INF directory if not next to the
> WEB-INF ?
>
> *---------------------​​*
> *Muhammad Gel ​​bana*
> http://www.linkedin.com/in/mgelbana
> ​​
>
>