Re: Minify JS / CSS in production
Thanks guys, I ended up finding it and was able to update it. All fixed. On Fri, Nov 14, 2014 at 11:17 AM, Kalle Korhonen wrote: > Update the version of the offending library, but perhaps not that easy. > Googling the exception gives you these potential matches: > > http://stackoverflow.com/questions/25808115/google-contacts-java-lang-nosuchmethoderror-com-google-common-collect-immutab > > http://stackoverflow.com/questions/16475015/nosuchmethoderror-google-common-immutableset-copyof > > Kalle > > > On Fri, Nov 14, 2014 at 6:10 AM, Thiago H de Paula Figueiredo < > thiag...@gmail.com> wrote: > > > On Fri, 14 Nov 2014 11:26:54 -0200, George Christman < > > gchrist...@cardaddy.com> wrote: > > > > So I tried this out last night and ended up with this beautiful > exception. > >> Any ideas? > >> > >> HTTP Status 500 - java.lang.NoSuchMethodError: > >> com.google.common.collect.ImmutableSet.of(Ljava/lang/ > >> Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/ > >> Object;Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/ > >> Object;)Lcom/google/common/collect/ImmutableSet; > >> > > > > This is a Guava dependency version mismatch, not directly related to > > Tapestry. If you're using Maven, use dependency:tree or the Eclipse > pom.xml > > editor to know what's happening. > > > > > > -- > > Thiago H. de Paula Figueiredo > > Tapestry, Java and Hibernate consultant and developer > > http://machina.com.br > > > > - > > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > > For additional commands, e-mail: users-h...@tapestry.apache.org > > > > > -- George Christman CEO www.CarDaddy.com P.O. Box 735 Johnstown, New York
Re: Minify JS / CSS in production
Update the version of the offending library, but perhaps not that easy. Googling the exception gives you these potential matches: http://stackoverflow.com/questions/25808115/google-contacts-java-lang-nosuchmethoderror-com-google-common-collect-immutab http://stackoverflow.com/questions/16475015/nosuchmethoderror-google-common-immutableset-copyof Kalle On Fri, Nov 14, 2014 at 6:10 AM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Fri, 14 Nov 2014 11:26:54 -0200, George Christman < > gchrist...@cardaddy.com> wrote: > > So I tried this out last night and ended up with this beautiful exception. >> Any ideas? >> >> HTTP Status 500 - java.lang.NoSuchMethodError: >> com.google.common.collect.ImmutableSet.of(Ljava/lang/ >> Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/ >> Object;Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/ >> Object;)Lcom/google/common/collect/ImmutableSet; >> > > This is a Guava dependency version mismatch, not directly related to > Tapestry. If you're using Maven, use dependency:tree or the Eclipse pom.xml > editor to know what's happening. > > > -- > Thiago H. de Paula Figueiredo > Tapestry, Java and Hibernate consultant and developer > http://machina.com.br > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Re: Minify JS / CSS in production
On Fri, 14 Nov 2014 11:26:54 -0200, George Christman wrote: So I tried this out last night and ended up with this beautiful exception. Any ideas? HTTP Status 500 - java.lang.NoSuchMethodError: com.google.common.collect.ImmutableSet.of(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet; This is a Guava dependency version mismatch, not directly related to Tapestry. If you're using Maven, use dependency:tree or the Eclipse pom.xml editor to know what's happening. -- Thiago H. de Paula Figueiredo Tapestry, Java and Hibernate consultant and developer http://machina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Minify JS / CSS in production
So I tried this out last night and ended up with this beautiful exception. Any ideas? HTTP Status 500 - java.lang.NoSuchMethodError: com.google.common.collect.ImmutableSet.of(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet; -- *type* Exception report *message* *java.lang.NoSuchMethodError: com.google.common.collect.ImmutableSet.of(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;* *description* *The server encountered an internal error that prevented it from fulfilling this request.* *exception* org.apache.shiro.subject.ExecutionException: java.lang.NoSuchMethodError: com.google.common.collect.ImmutableSet.of(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet; org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:385) org.tynamo.security.services.impl.SecurityConfiguration.service(SecurityConfiguration.java:54) $HttpServletRequestFilter_10bf3e22901.service(Unknown Source) $HttpServletRequestHandler_10bf3e22904.service(Unknown Source) org.apache.tapestry5.upload.internal.services.MultipartServletRequestFilter.service(MultipartServletRequestFilter.java:45) $HttpServletRequestHandler_10bf3e22904.service(Unknown Source) org.apache.tapestry5.internal.gzip.GZipFilter.service(GZipFilter.java:59) $HttpServletRequestHandler_10bf3e22904.service(Unknown Source) com.cardaddy.auto.services.photo.impl.AjaxUploadServletRequestFilter.service(AjaxUploadServletRequestFilter.java:29) $HttpServletRequestHandler_10bf3e22904.service(Unknown Source) org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62) $HttpServletRequestFilter_10bf3e228fd.service(Unknown Source) $HttpServletRequestHandler_10bf3e22904.service(Unknown Source) org.apache.tapestry5.modules.TapestryModule$1.service(TapestryModule.java:804) $HttpServletRequestHandler_10bf3e22904.service(Unknown Source) $HttpServletRequestHandler_10bf3e228fb.service(Unknown Source) org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:166) On Thu, Nov 13, 2014 at 4:14 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Thu, 13 Nov 2014 17:28:10 -0200, Kalle Korhonen < > kalle.o.korho...@gmail.com> wrote: > > It's tapestry-webresources ( >> http://repo1.maven.org/maven2/org/apache/tapestry/tapestry-webresources/ >> ). >> > > Ouch, I copied that from http://tapestry.apache.org/assets.html. Gotta > fix that. Good catch, Kalle! > > > -- > Thiago H. de Paula Figueiredo > Tapestry, Java and Hibernate consultant and developer > http://machina.com.br > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- George Christman CEO www.CarDaddy.com P.O. Box 735 Johnstown, New York
Re: Minify JS / CSS in production
On Thu, 13 Nov 2014 17:28:10 -0200, Kalle Korhonen wrote: It's tapestry-webresources ( http://repo1.maven.org/maven2/org/apache/tapestry/tapestry-webresources/). Ouch, I copied that from http://tapestry.apache.org/assets.html. Gotta fix that. Good catch, Kalle! -- Thiago H. de Paula Figueiredo Tapestry, Java and Hibernate consultant and developer http://machina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Minify JS / CSS in production
It's tapestry-webresources ( http://repo1.maven.org/maven2/org/apache/tapestry/tapestry-webresources/). Kalle On Thu, Nov 13, 2014 at 10:42 AM, George Christman wrote: > Thanks Thiago. > > On Thu, Nov 13, 2014 at 1:37 PM, Thiago H de Paula Figueiredo < > thiag...@gmail.com> wrote: > > > On Thu, 13 Nov 2014 16:28:01 -0200, George Christman < > > gchrist...@cardaddy.com> wrote: > > > > How do I minify tapestry's JS and CSS? Google is complaining saying that > >> 62.3kib 50% could be saved with the core js alone. It also says > something > >> about optimizing css delivery and points to all the tapestry's css. > >> > > > > Check the Minimizing Assets section at the bottom of > > http://tapestry.apache.org/assets.html. Basically, add the > > tapestry-web-resources dependency (Maven snippet below) and set the > > SymbolConstants.MINIFICATION_ENABLED symbol to true. > > > > > > org.apache.tapestry > > tapestry-web-resources > > 5.4 > > > > > > @Contribute(SymbolProvider.class) > > @ApplicationDefaults > > public static void > contributeApplicationDefaults(MappedConfiguration > String> configuration) { > > configuration.add(SymbolConstants.MINIFICATION_ENABLED, "true"); > > } > > > > -- > > Thiago H. de Paula Figueiredo > > Tapestry, Java and Hibernate consultant and developer > > http://machina.com.br > > > > - > > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > > For additional commands, e-mail: users-h...@tapestry.apache.org > > > > > > > -- > George Christman > CEO > www.CarDaddy.com > P.O. Box 735 > Johnstown, New York >
Re: Minify JS / CSS in production
Thanks Thiago. On Thu, Nov 13, 2014 at 1:37 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Thu, 13 Nov 2014 16:28:01 -0200, George Christman < > gchrist...@cardaddy.com> wrote: > > How do I minify tapestry's JS and CSS? Google is complaining saying that >> 62.3kib 50% could be saved with the core js alone. It also says something >> about optimizing css delivery and points to all the tapestry's css. >> > > Check the Minimizing Assets section at the bottom of > http://tapestry.apache.org/assets.html. Basically, add the > tapestry-web-resources dependency (Maven snippet below) and set the > SymbolConstants.MINIFICATION_ENABLED symbol to true. > > > org.apache.tapestry > tapestry-web-resources > 5.4 > > > @Contribute(SymbolProvider.class) > @ApplicationDefaults > public static void contributeApplicationDefaults(MappedConfiguration String> configuration) { > configuration.add(SymbolConstants.MINIFICATION_ENABLED, "true"); > } > > -- > Thiago H. de Paula Figueiredo > Tapestry, Java and Hibernate consultant and developer > http://machina.com.br > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- George Christman CEO www.CarDaddy.com P.O. Box 735 Johnstown, New York
Re: Minify JS / CSS in production
On Thu, 13 Nov 2014 16:28:01 -0200, George Christman wrote: How do I minify tapestry's JS and CSS? Google is complaining saying that 62.3kib 50% could be saved with the core js alone. It also says something about optimizing css delivery and points to all the tapestry's css. Check the Minimizing Assets section at the bottom of http://tapestry.apache.org/assets.html. Basically, add the tapestry-web-resources dependency (Maven snippet below) and set the SymbolConstants.MINIFICATION_ENABLED symbol to true. org.apache.tapestry tapestry-web-resources 5.4 @Contribute(SymbolProvider.class) @ApplicationDefaults public static void contributeApplicationDefaults(MappedConfiguration configuration) { configuration.add(SymbolConstants.MINIFICATION_ENABLED, "true"); } -- Thiago H. de Paula Figueiredo Tapestry, Java and Hibernate consultant and developer http://machina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Minify JS / CSS in production
How do I minify tapestry's JS and CSS? Google is complaining saying that 62.3kib 50% could be saved with the core js alone. It also says something about optimizing css delivery and points to all the tapestry's css. Thanks, George -- George Christman CEO www.CarDaddy.com P.O. Box 735 Johnstown, New York