JAWR - bundling and compression for Javascript and CSS : The requested resource is not available

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

JAWR - bundling and compression for Javascript and CSS : The requested resource is not available

Eric DE MAULDE
Hi,

Has somebody tried to implement this library : JAWR
to minify, bundle and compress Javascript, CSS and CSS Image files
https://jawr.dev.java.net/

I try with "jawr.properties" file (just for javascript files) and implemented JavascriptServlet in web.xml
Into Ecommerce application, it works well, with :

"jawr.js.bundle.ecolib.id=/bundles/ecolib.js"
"jawr.js.bundle.ecolib.mappings=/images/**"

I get the file :
http://mydomain/ecommerce/images/bundles/ecolib.js

Into My Application, with :

"jawr.js.bundle.mylib.id=/bundles/mylib.js"
"jawr.js.bundle.mylib.mappings=/images/**"

If I call
http://mydomain/mymountpoint/images/bundles/mylib.js  = The requested resource () is not available.
But http://mydomain/mymountpoint/images/bundles/ecolib.js works well

I need a lot your help
Tank you so much in advance

Eric
Reply | Threaded
Open this post in threaded view
|

Re: JAWR - bundling and compression for Javascript and CSS : The requested resource is not available

Eric DE MAULDE
I've resolved the problem

We have to write "jawr.properties" files with different names for each
application, into config directory
Ex. ecommerce-jawr.properties, images-jawr.properties
Because just the first/last loaded "jawr.properties" file is taken into
account

Eric
----- Original Message -----
From: "Eric DE MAULDE" <[hidden email]>
To: <[hidden email]>
Sent: Tuesday, September 01, 2009 8:15 PM
Subject: JAWR - bundling and compression for Javascript and CSS : The
requested resource is not available


Hi,

Has somebody tried to implement this library : JAWR
to minify, bundle and compress Javascript, CSS and CSS Image files
https://jawr.dev.java.net/

I try with "jawr.properties" file (just for javascript files) and
implemented JavascriptServlet in web.xml
Into Ecommerce application, it works well, with :

"jawr.js.bundle.ecolib.id=/bundles/ecolib.js"
"jawr.js.bundle.ecolib.mappings=/images/**"

I get the file :
http://mydomain/ecommerce/images/bundles/ecolib.js

Into My Application, with :

"jawr.js.bundle.mylib.id=/bundles/mylib.js"
"jawr.js.bundle.mylib.mappings=/images/**"

If I call
http://mydomain/mymountpoint/images/bundles/mylib.js  = The requested
resource () is not available.
But http://mydomain/mymountpoint/images/bundles/ecolib.js works well

I need a lot your help
Tank you so much in advance

Eric

Reply | Threaded
Open this post in threaded view
|

Re: JAWR - bundling and compression for Javascript and CSS : The requested resource is not available

Jacques Le Roux
Administrator
Hi Eric,

Why did you need it ?

Jacques

From: "Eric DE MAULDE" <[hidden email]>

> I've resolved the problem
>
> We have to write "jawr.properties" files with different names for each
> application, into config directory
> Ex. ecommerce-jawr.properties, images-jawr.properties
> Because just the first/last loaded "jawr.properties" file is taken into
> account
>
> Eric
> ----- Original Message -----
> From: "Eric DE MAULDE" <[hidden email]>
> To: <[hidden email]>
> Sent: Tuesday, September 01, 2009 8:15 PM
> Subject: JAWR - bundling and compression for Javascript and CSS : The
> requested resource is not available
>
>
> Hi,
>
> Has somebody tried to implement this library : JAWR
> to minify, bundle and compress Javascript, CSS and CSS Image files
> https://jawr.dev.java.net/
>
> I try with "jawr.properties" file (just for javascript files) and
> implemented JavascriptServlet in web.xml
> Into Ecommerce application, it works well, with :
>
> "jawr.js.bundle.ecolib.id=/bundles/ecolib.js"
> "jawr.js.bundle.ecolib.mappings=/images/**"
>
> I get the file :
> http://mydomain/ecommerce/images/bundles/ecolib.js
>
> Into My Application, with :
>
> "jawr.js.bundle.mylib.id=/bundles/mylib.js"
> "jawr.js.bundle.mylib.mappings=/images/**"
>
> If I call
> http://mydomain/mymountpoint/images/bundles/mylib.js  = The requested
> resource () is not available.
> But http://mydomain/mymountpoint/images/bundles/ecolib.js works well
>
> I need a lot your help
> Tank you so much in advance
>
> Eric
>

Reply | Threaded
Open this post in threaded view
|

Re: JAWR - bundling and compression for Javascript and CSS : The requested resource is not available

Eric DE MAULDE
this library, JAWR, allows to bundle and compress Javascript and CSS files
... images too
in order to decrease  page weight and files number
So to increase its loading speed

Or is there this service into OFBiz, already implemented ?

Eric

From: "Jacques Le Roux" <[hidden email]>

> Hi Eric,
>
> Why did you need it ?
>
> Jacques
>
> From: "Eric DE MAULDE" <[hidden email]>
>> I've resolved the problem
>>
>> We have to write "jawr.properties" files with different names for each
>> application, into config directory
>> Ex. ecommerce-jawr.properties, images-jawr.properties
>> Because just the first/last loaded "jawr.properties" file is taken into
>> account
>>
>> Eric
>> ----- Original Message -----
>> From: "Eric DE MAULDE" <[hidden email]>
>> To: <[hidden email]>
>> Sent: Tuesday, September 01, 2009 8:15 PM
>> Subject: JAWR - bundling and compression for Javascript and CSS : The
>> requested resource is not available
>>
>>
>> Hi,
>>
>> Has somebody tried to implement this library : JAWR
>> to minify, bundle and compress Javascript, CSS and CSS Image files
>> https://jawr.dev.java.net/
>>
>> I try with "jawr.properties" file (just for javascript files) and
>> implemented JavascriptServlet in web.xml
>> Into Ecommerce application, it works well, with :
>>
>> "jawr.js.bundle.ecolib.id=/bundles/ecolib.js"
>> "jawr.js.bundle.ecolib.mappings=/images/**"
>>
>> I get the file :
>> http://mydomain/ecommerce/images/bundles/ecolib.js
>>
>> Into My Application, with :
>>
>> "jawr.js.bundle.mylib.id=/bundles/mylib.js"
>> "jawr.js.bundle.mylib.mappings=/images/**"
>>
>> If I call
>> http://mydomain/mymountpoint/images/bundles/mylib.js  = The requested
>> resource () is not available.
>> But http://mydomain/mymountpoint/images/bundles/ecolib.js works well
>>
>> I need a lot your help
>> Tank you so much in advance
>>
>> Eric
>
>

Reply | Threaded
Open this post in threaded view
|

Re: JAWR - bundling and compression for Javascript and CSS : The requested resource is not available

Jacques Le Roux
Administrator
It was not my question : why did you need it ?

Thanks

Jacques

From: "Eric DE MAULDE" <[hidden email]>

> this library, JAWR, allows to bundle and compress Javascript and CSS files
> ... images too
> in order to decrease  page weight and files number
> So to increase its loading speed
>
> Or is there this service into OFBiz, already implemented ?
>
> Eric
>
> From: "Jacques Le Roux" <[hidden email]>
>> Hi Eric,
>>
>> Why did you need it ?
>>
>> Jacques
>>
>> From: "Eric DE MAULDE" <[hidden email]>
>>> I've resolved the problem
>>>
>>> We have to write "jawr.properties" files with different names for each
>>> application, into config directory
>>> Ex. ecommerce-jawr.properties, images-jawr.properties
>>> Because just the first/last loaded "jawr.properties" file is taken into
>>> account
>>>
>>> Eric
>>> ----- Original Message -----
>>> From: "Eric DE MAULDE" <[hidden email]>
>>> To: <[hidden email]>
>>> Sent: Tuesday, September 01, 2009 8:15 PM
>>> Subject: JAWR - bundling and compression for Javascript and CSS : The
>>> requested resource is not available
>>>
>>>
>>> Hi,
>>>
>>> Has somebody tried to implement this library : JAWR
>>> to minify, bundle and compress Javascript, CSS and CSS Image files
>>> https://jawr.dev.java.net/
>>>
>>> I try with "jawr.properties" file (just for javascript files) and
>>> implemented JavascriptServlet in web.xml
>>> Into Ecommerce application, it works well, with :
>>>
>>> "jawr.js.bundle.ecolib.id=/bundles/ecolib.js"
>>> "jawr.js.bundle.ecolib.mappings=/images/**"
>>>
>>> I get the file :
>>> http://mydomain/ecommerce/images/bundles/ecolib.js
>>>
>>> Into My Application, with :
>>>
>>> "jawr.js.bundle.mylib.id=/bundles/mylib.js"
>>> "jawr.js.bundle.mylib.mappings=/images/**"
>>>
>>> If I call
>>> http://mydomain/mymountpoint/images/bundles/mylib.js  = The requested
>>> resource () is not available.
>>> But http://mydomain/mymountpoint/images/bundles/ecolib.js works well
>>>
>>> I need a lot your help
>>> Tank you so much in advance
>>>
>>> Eric
>>
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: JAWR - bundling and compression for Javascript and CSS : The requested resource is not available

Eric DE MAULDE
I try to answer :
net.jawr.web.servlet.JawrServlet need properties to configure files
compression and groupings.
My own application has its own JS and CSS files and need too JS and CSS
files from "images" application.

I wasn't able to dynamically implement configuration
So, I've created manually each properties file (into my "config" directory)
in order to configure JawrServlet for images application and my own
application.

Eric

From: "Jacques Le Roux" <[hidden email]>

> It was not my question : why did you need it ?
>
> Thanks
>
> Jacques
>
> From: "Eric DE MAULDE" <[hidden email]>
>> this library, JAWR, allows to bundle and compress Javascript and CSS
>> files ... images too
>> in order to decrease  page weight and files number
>> So to increase its loading speed
>>
>> Or is there this service into OFBiz, already implemented ?
>>
>> Eric
>>
>> From: "Jacques Le Roux" <[hidden email]>
>>> Hi Eric,
>>>
>>> Why did you need it ?
>>>
>>> Jacques
>>>
>>> From: "Eric DE MAULDE" <[hidden email]>
>>>> I've resolved the problem
>>>>
>>>> We have to write "jawr.properties" files with different names for each
>>>> application, into config directory
>>>> Ex. ecommerce-jawr.properties, images-jawr.properties
>>>> Because just the first/last loaded "jawr.properties" file is taken into
>>>> account
>>>>
>>>> Eric
>>>> ----- Original Message -----
>>>> From: "Eric DE MAULDE" <[hidden email]>
>>>> To: <[hidden email]>
>>>> Sent: Tuesday, September 01, 2009 8:15 PM
>>>> Subject: JAWR - bundling and compression for Javascript and CSS : The
>>>> requested resource is not available
>>>>
>>>>
>>>> Hi,
>>>>
>>>> Has somebody tried to implement this library : JAWR
>>>> to minify, bundle and compress Javascript, CSS and CSS Image files
>>>> https://jawr.dev.java.net/
>>>>
>>>> I try with "jawr.properties" file (just for javascript files) and
>>>> implemented JavascriptServlet in web.xml
>>>> Into Ecommerce application, it works well, with :
>>>>
>>>> "jawr.js.bundle.ecolib.id=/bundles/ecolib.js"
>>>> "jawr.js.bundle.ecolib.mappings=/images/**"
>>>>
>>>> I get the file :
>>>> http://mydomain/ecommerce/images/bundles/ecolib.js
>>>>
>>>> Into My Application, with :
>>>>
>>>> "jawr.js.bundle.mylib.id=/bundles/mylib.js"
>>>> "jawr.js.bundle.mylib.mappings=/images/**"
>>>>
>>>> If I call
>>>> http://mydomain/mymountpoint/images/bundles/mylib.js  = The requested
>>>> resource () is not available.
>>>> But http://mydomain/mymountpoint/images/bundles/ecolib.js works well
>>>>
>>>> I need a lot your help
>>>> Tank you so much in advance
>>>>
>>>> Eric
>>>
>>>
>>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: JAWR - bundling and compression for Javascript and CSS : The requested resource is not available

Jacques Le Roux
Administrator
Actually my question was, Why did you need JAWR ?

Jacques

From: "Eric DE MAULDE" <[hidden email]>

>I try to answer :
> net.jawr.web.servlet.JawrServlet need properties to configure files
> compression and groupings.
> My own application has its own JS and CSS files and need too JS and CSS
> files from "images" application.
>
> I wasn't able to dynamically implement configuration
> So, I've created manually each properties file (into my "config" directory)
> in order to configure JawrServlet for images application and my own
> application.
>
> Eric
>
> From: "Jacques Le Roux" <[hidden email]>
>> It was not my question : why did you need it ?
>>
>> Thanks
>>
>> Jacques
>>
>> From: "Eric DE MAULDE" <[hidden email]>
>>> this library, JAWR, allows to bundle and compress Javascript and CSS
>>> files ... images too
>>> in order to decrease  page weight and files number
>>> So to increase its loading speed
>>>
>>> Or is there this service into OFBiz, already implemented ?
>>>
>>> Eric
>>>
>>> From: "Jacques Le Roux" <[hidden email]>
>>>> Hi Eric,
>>>>
>>>> Why did you need it ?
>>>>
>>>> Jacques
>>>>
>>>> From: "Eric DE MAULDE" <[hidden email]>
>>>>> I've resolved the problem
>>>>>
>>>>> We have to write "jawr.properties" files with different names for each
>>>>> application, into config directory
>>>>> Ex. ecommerce-jawr.properties, images-jawr.properties
>>>>> Because just the first/last loaded "jawr.properties" file is taken into
>>>>> account
>>>>>
>>>>> Eric
>>>>> ----- Original Message -----
>>>>> From: "Eric DE MAULDE" <[hidden email]>
>>>>> To: <[hidden email]>
>>>>> Sent: Tuesday, September 01, 2009 8:15 PM
>>>>> Subject: JAWR - bundling and compression for Javascript and CSS : The
>>>>> requested resource is not available
>>>>>
>>>>>
>>>>> Hi,
>>>>>
>>>>> Has somebody tried to implement this library : JAWR
>>>>> to minify, bundle and compress Javascript, CSS and CSS Image files
>>>>> https://jawr.dev.java.net/
>>>>>
>>>>> I try with "jawr.properties" file (just for javascript files) and
>>>>> implemented JavascriptServlet in web.xml
>>>>> Into Ecommerce application, it works well, with :
>>>>>
>>>>> "jawr.js.bundle.ecolib.id=/bundles/ecolib.js"
>>>>> "jawr.js.bundle.ecolib.mappings=/images/**"
>>>>>
>>>>> I get the file :
>>>>> http://mydomain/ecommerce/images/bundles/ecolib.js
>>>>>
>>>>> Into My Application, with :
>>>>>
>>>>> "jawr.js.bundle.mylib.id=/bundles/mylib.js"
>>>>> "jawr.js.bundle.mylib.mappings=/images/**"
>>>>>
>>>>> If I call
>>>>> http://mydomain/mymountpoint/images/bundles/mylib.js  = The requested
>>>>> resource () is not available.
>>>>> But http://mydomain/mymountpoint/images/bundles/ecolib.js works well
>>>>>
>>>>> I need a lot your help
>>>>> Tank you so much in advance
>>>>>
>>>>> Eric
>>>>
>>>>
>>>
>>
>>
>