teamcfadvance / cfstatic

CfStatic is a framework for managing the inclusion and packaging of CSS and JavaScript in CFML applications.
https://teamcfadvance.github.io/cfstatic
MIT License
102 stars 35 forks source link

updating lesscss-engine-1.3.0.jar #85

Closed budd1726 closed 11 years ago

budd1726 commented 11 years ago

Evaluating cfstatic and we ran into a situation where we are getting this error:

LESS error when compiling test.less. Message: org.mozilla.javascript.EcmaError: > TypeError: Cannot call method "toCSS" of undefined (file:/C:/library/cfstatic/0.5.0/lib/less/lesscss-engine-1.3.0.jar!/META-INF/engine.js#67)

We think that the version of the compiler jar does not support some of the less syntax that we are using, and we think that the newer 1.3.3 jar will work for us. we tried to place the 1.3.3 jar in the project and modify cfstatic.cfc _loadJavaLoaders to use the new jar name but we get the following error message and stacktrace:

message: org.mozilla.javascript.ScriptableObject StackTrace: java.lang.ClassNotFoundException: org.mozilla.javascript.ScriptableObject at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:423) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) at java.lang.ClassLoader.findSystemClass(ClassLoader.java:1050) at com.compoundtheory.classloader.NetworkClassLoader.loadClass(NetworkClassLoader.java:473) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) at java.lang.Class.getDeclaredFields0(Native Method) at java.lang.Class.privateGetDeclaredFields(Class.java:2317) at java.lang.Class.privateGetPublicFields(Class.java:2350) at java.lang.Class.getFields(Class.java:1378) at coldfusion.runtime.java.ObjectHandler.Initialize(ObjectHandler.java:35) at coldfusion.runtime.java.ObjectHandler.(ObjectHandler.java:30) at coldfusion.runtime.java.ReflectionCache.get(ReflectionCache.java:38) at coldfusion.runtime.java.JavaProxy.(JavaProxy.java:35) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at coldfusion.runtime.java.JavaProxy.CreateObject(JavaProxy.java:166) at coldfusion.runtime.java.JavaProxy.invoke(JavaProxy.java:80) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2432) at cfJavaLoader2ecfc637957491$funcCREATEJAVAPROXY.runFunction(C:\platform\cfstatic-0.6.1\org\cfstatic\lib\javaloader\JavaLoader.cfc:329) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at ....

Any advice for us? Is there something we are missing to update the jar?

Thanks, Budd.

DominicWatson commented 11 years ago

Sorry for the late response, have been on holidays. I'll look to updating the jar asap. Not sure off the top of my head what's involved there though I would expect it to be reasonably straight forward.

p.s. From where did you get the jar? I've been using a java wrapper from here https://github.com/asual/lesscss-engine. In the past I believe I built the jar using maven and updated the LESS version that way.

DominicWatson commented 11 years ago

I've just merged a pull request from Matt Levine to update to the latest version of LESS. This is now in the develop branch.

Closing.