You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by George Christman <gc...@cardaddy.com> on 2014/11/13 19:28:01 UTC
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
Re: Minify JS / CSS in production
Posted by George Christman <gc...@cardaddy.com>.
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 <kalle.o.korhonen@gmail.com
> 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 <
> thiagohp@gmail.com> wrote:
>
> > On Fri, 14 Nov 2014 11:26:54 -0200, George Christman <
> > gchristman@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-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
--
George Christman
CEO
www.CarDaddy.com
P.O. Box 735
Johnstown, New York
Re: Minify JS / CSS in production
Posted by Kalle Korhonen <ka...@gmail.com>.
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 <
thiagohp@gmail.com> wrote:
> On Fri, 14 Nov 2014 11:26:54 -0200, George Christman <
> gchristman@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-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
Re: Minify JS / CSS in production
Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Fri, 14 Nov 2014 11:26:54 -0200, George Christman
<gc...@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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Minify JS / CSS in production
Posted by George Christman <gc...@cardaddy.com>.
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 <
thiagohp@gmail.com> wrote:
> On Thu, 13 Nov 2014 17:28:10 -0200, Kalle Korhonen <
> kalle.o.korhonen@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-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
George Christman
CEO
www.CarDaddy.com
P.O. Box 735
Johnstown, New York
Re: Minify JS / CSS in production
Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Thu, 13 Nov 2014 17:28:10 -0200, Kalle Korhonen
<ka...@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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Minify JS / CSS in production
Posted by Kalle Korhonen <ka...@gmail.com>.
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 <gc...@cardaddy.com>
wrote:
> Thanks Thiago.
>
> On Thu, Nov 13, 2014 at 1:37 PM, Thiago H de Paula Figueiredo <
> thiagohp@gmail.com> wrote:
>
> > On Thu, 13 Nov 2014 16:28:01 -0200, George Christman <
> > gchristman@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.
> >
> > <dependency>
> > <groupId>org.apache.tapestry</groupId>
> > <artifactId>tapestry-web-resources</artifactId>
> > <version>5.4</version>
> > </dependency>
> >
> > @Contribute(SymbolProvider.class)
> > @ApplicationDefaults
> > public static void
> contributeApplicationDefaults(MappedConfiguration<String,
> > 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-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
> --
> George Christman
> CEO
> www.CarDaddy.com
> P.O. Box 735
> Johnstown, New York
>
Re: Minify JS / CSS in production
Posted by George Christman <gc...@cardaddy.com>.
Thanks Thiago.
On Thu, Nov 13, 2014 at 1:37 PM, Thiago H de Paula Figueiredo <
thiagohp@gmail.com> wrote:
> On Thu, 13 Nov 2014 16:28:01 -0200, George Christman <
> gchristman@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.
>
> <dependency>
> <groupId>org.apache.tapestry</groupId>
> <artifactId>tapestry-web-resources</artifactId>
> <version>5.4</version>
> </dependency>
>
> @Contribute(SymbolProvider.class)
> @ApplicationDefaults
> public static void contributeApplicationDefaults(MappedConfiguration<String,
> 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-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
George Christman
CEO
www.CarDaddy.com
P.O. Box 735
Johnstown, New York
Re: Minify JS / CSS in production
Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Thu, 13 Nov 2014 16:28:01 -0200, George Christman
<gc...@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.
<dependency>
<groupId>org.apache.tapestry</groupId>
<artifactId>tapestry-web-resources</artifactId>
<version>5.4</version>
</dependency>
@Contribute(SymbolProvider.class)
@ApplicationDefaults
public static void
contributeApplicationDefaults(MappedConfiguration<String, 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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org