jahaziel17 / wro4j

Automatically exported from code.google.com/p/wro4j
0 stars 0 forks source link

Unable to locate webjar less.min.js on Weblogic #780

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Request a CSS resource containing a LESS component.

What is the expected output? What do you see instead?

Expect to see the generated CSS code. Instead, we get an 404 with a 
"ro.isdc.wro.extensions.locator.WebjarUriLocator: locating: webjar:less.min.js" 
error in the logs.

What version of the product are you using? On what operating system?

WRO4J: 1.7.0
OS: Enterprise Linux Server release 5.2 (Carthage)
Application server: WebLogic 10.3
JRE: BEA JRockit(R) (build 
R27.6.0-50_o-100423-1.6.0_05-20080626-2104-linux-ia32, compiled mode)
No lessc compiler installed on server

Please provide any additional information below.

The relevant log entries from WRO are attached to this issue. 

Runtime classpath of the Weblogic server :

:/opt/oracle/patch_wls1030/profiles/default/sys_manifest_classpath/weblogic_patc
h.jar:/opt/oracle/patch_cie660/profiles/default/sys_manifest_classpath/weblogic_
patch.jar:/opt/oracle/jrockit/lib/tools.jar:/opt/oracle/weblogic/server/lib/webl
ogic_sp.jar:/opt/oracle/weblogic/server/lib/weblogic.jar:/opt/oracle/modules/fea
tures/weblogic.server.modules_10.3.0.0.jar:/opt/oracle/weblogic/server/lib/webse
rvices.jar:/opt/oracle/modules/org.apache.ant_1.6.5/lib/ant-all.jar:/opt/oracle/
modules/net.sf.antcontrib_1.0.0.0_1-0b2/lib/ant-contrib.jar::/opt/oracle/weblogi
c/common/eval/pointbase/lib/pbclient57.jar:/opt/oracle/weblogic/server/lib/xqrl.
jar::

Original issue reported on code.google.com by bja...@twigkit.com on 30 Aug 2013 at 9:22

Attachments:

GoogleCodeExporter commented 8 years ago
Further to this, we can confirm that WRO4J works as expected when lessc is 
installed on the Weblogic machine. So the issue seems down to 
ro.isdc.wro.extensions.locator.WebjarUriLocator not being able to load webjar 
less.min.js.

Original comment by bja...@twigkit.com on 30 Aug 2013 at 9:39

GoogleCodeExporter commented 8 years ago
The WebjarUriLocator uses webjars-locator dependency: 
https://github.com/webjars/webjars-locator

Could you try to upgrade webjars-locator to a newer version and confirm if that 
fixes the problem? If it doesn't, could you open an issue on webjars-locator 
issue tracking page? 

Alternatively, you could use less4j processor which is quite stable and much 
faster than lessCss.

Original comment by alex.obj...@gmail.com on 30 Aug 2013 at 9:58

GoogleCodeExporter commented 8 years ago
Have you tried to upgrade the webjars-locator dependency? Please, post here 
your any information you have. 

Original comment by alex.obj...@gmail.com on 1 Sep 2013 at 9:15

GoogleCodeExporter commented 8 years ago
There is a newer version of webjars-locator dependency available (0.6). Could 
you upgrade and let me know if that works? 

I will keep this issue open for one more week. If no feedback is provided I 
will close it with "invalid" resolution (but you'll be able to reopen it 
anytime if needed). 

Original comment by alex.obj...@gmail.com on 17 Nov 2013 at 9:37

GoogleCodeExporter commented 8 years ago
Many thanks for the feedback. Sorry for the slow response, we�ve been focusing 
on other aspects recently. I won�t have time to recreate this problem in the 
next few days (the problematic setup was on-site with a remote client). I will 
try the suggested resolution and give you feedback once I know more - please go 
ahead and mark the issue as �invalid� until then.

Original comment by bja...@twigkit.com on 19 Nov 2013 at 4:15

GoogleCodeExporter commented 8 years ago
Hi Alex,

A quick update on this. I�ve recently been involved in another Weblogic 
installation (sadly) and came across this issue again. In this instance, I can 
recreate the problem on my local OSX workstation using the latest 
webjars-locator and wro4j releases:

WRO4J: 1.7.3
webjars-locator: 0.9
OS: OSX 10.9
Application server: WebLogic 10.3.6
JRE: Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
No lessc compiler installed on server << crucial

The issue occurs when trying to locate less.min.js from the class path. The 
exact stack trace is attached.

Hope this helps - let me know if you need any further details.

Bjarki

Original comment by bja...@twigkit.com on 3 Feb 2014 at 3:34

GoogleCodeExporter commented 8 years ago
Stack trace was missing from my email reply - attached here.

Original comment by bjarki.h...@gmail.com on 3 Feb 2014 at 3:35

Attachments:

GoogleCodeExporter commented 8 years ago
I would be able to answer this question if I would be able to inspect the 
classpath of the application causing the problem.

As a workaround, I could suggest using less4j processor instead which is not 
based on rhino and doesn't require webjar to load from the classpath.

Original comment by alex.obj...@gmail.com on 3 Feb 2014 at 3:44

GoogleCodeExporter commented 8 years ago
Roger that, Alex - will test less4j.

Original comment by bja...@twigkit.com on 3 Feb 2014 at 4:00

GoogleCodeExporter commented 8 years ago
Back to original problem, I'm not sure I can fix the problem itself in wro4j, 
since the webjar resource is located in webjars-locator library. So, maybe it 
worth raising an issue there? 

Original comment by alex.obj...@gmail.com on 3 Feb 2014 at 4:05