JS Compressor

View: New views
2 Messages — Rating Filter:   Alert me  

JS Compressor

by David Torres-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi there,

I've been having some hard time trying to figure out how to make dwr rc1 not require yahoo js compressor, it does not seems to work for me when I don't have the library in the classpath, documentation says it should fall back and use its internal compressor, but for some reason it is not doing it for me, I'm always getting the following exception, 

Appreciate any help,

Thanks,

David Torres dotCMS http://www.dotcms.org http://www.twitter.com/dotCMS http://twitter.com/david_dotcms "Packt Publishing's 2008 Best Non PHP Open Source CMS Finalist"


Exception

2009-08-11 12:26:29,799 ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/].[dwr-invoker] - Servlet.service() for servlet dwr-invoker threw exception
java.lang.NoClassDefFoundError: com/yahoo/platform/yui/compressor/JavaScriptCompressor
        at org.directwebremoting.impl.YahooJSCompressor.compressJavaScript(YahooJSCompressor.java:62)
        at org.directwebremoting.servlet.JavaScriptHandler.generateCachableContent(JavaScriptHandler.java:57)
        at org.directwebremoting.servlet.CachingHandler.handle(CachingHandler.java:73)
        at org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:120)
        at org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:141)
        at org.directwebremoting.servlet.DwrServlet.doGet(DwrServlet.java:127)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

Re: JS Compressor

by davidmarginian :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This is a bug that is fixed in trunk:
http://bugs.directwebremoting.org/bugs/browse/DWR-394

On Tue, Aug 11, 2009 at 11:15 AM, David Torres <davidtorresv@...> wrote:
Hi there,

I've been having some hard time trying to figure out how to make dwr rc1 not require yahoo js compressor, it does not seems to work for me when I don't have the library in the classpath, documentation says it should fall back and use its internal compressor, but for some reason it is not doing it for me, I'm always getting the following exception, 

Appreciate any help,

Thanks,

David Torres dotCMS http://www.dotcms.org http://www.twitter.com/dotCMS http://twitter.com/david_dotcms "Packt Publishing's 2008 Best Non PHP Open Source CMS Finalist"


Exception

2009-08-11 12:26:29,799 ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/].[dwr-invoker] - Servlet.service() for servlet dwr-invoker threw exception
java.lang.NoClassDefFoundError: com/yahoo/platform/yui/compressor/JavaScriptCompressor
        at org.directwebremoting.impl.YahooJSCompressor.compressJavaScript(YahooJSCompressor.java:62)
        at org.directwebremoting.servlet.JavaScriptHandler.generateCachableContent(JavaScriptHandler.java:57)
        at org.directwebremoting.servlet.CachingHandler.handle(CachingHandler.java:73)
        at org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:120)
        at org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:141)
        at org.directwebremoting.servlet.DwrServlet.doGet(DwrServlet.java:127)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)