Cannot deploy without Gson library, required?

Community Driven Extensions Project
Post Reply
djmj
Posts: 400
Joined: 16 Dec 2011, 01:23

28 Jan 2015, 00:13

In documentation it states Gson library is optional:

https://github.com/primefaces-extension ... ng-Started

Trying to upgrade from v2 to v3 on glassfish 4.1 I cannot deploy anymore and get following exception
cannot Deploy TestProject
deploy is failing=Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException:
Source Document: jar:file:/H:/dev/servers/glassfish4/glassfish/domains/domain2/eclipseApps/TestProject/WEB-INF/lib/primefaces-extensions-3.0.0.jar!/META-INF/faces-config.xml
Cause: Class 'org.primefaces.extensions.component.gchart.GChartRenderer' is missing a runtime dependency: java.lang.NoClassDefFoundError: com/google/gson/GsonBuilder. Please see server.log for more details.
Primefaces: 11.0.0 RC2
Primefaces-Extension: 11.0.0
PrimeFaces-Mobile: 11.0
OmniFaces: 3.11
Jsf: Mojarra 2.3.8
Server: Glassfish 5.1.0

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

30 Jan 2015, 11:25

It is optional if you don't use some components, like Layout, gChart, probably Timeline, ... These components require Gson. Other component don't require this dependency. There is a similar concept in PrimeFaces. E.g. if you use Exporter, you have to add POI dependency, Feedreader requires one external dependency too, and so on.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

30 Jan 2015, 12:04

It looks like that the jsf impl (mojarra) loads all components and renderes in the faces-config/taglib.
therefore it's required if you use mojarra.
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

djmj
Posts: 400
Joined: 16 Dec 2011, 01:23

31 Jan 2015, 16:26

Thanks for the info. Yes i am using mojarra so thats the reason.
Primefaces: 11.0.0 RC2
Primefaces-Extension: 11.0.0
PrimeFaces-Mobile: 11.0
OmniFaces: 3.11
Jsf: Mojarra 2.3.8
Server: Glassfish 5.1.0

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

02 Feb 2015, 20:03

tandraschko wrote:It looks like that the jsf impl (mojarra) loads all components and renderes in the faces-config/taglib.
therefore it's required if you use mojarra.
Does anybody know where this comes from? I tried to search, and search and search and never came up with an explanation... Other than that it might be related to something that 'fixed' https://java.net/jira/browse/JAVASERVERFACES-3400

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

02 Feb 2015, 21:49

don't know sorry. you know, i'm a myfaces user ;)
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

02 Feb 2015, 23:22

Bummer :P

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

03 Feb 2015, 11:41

:mrgreen:
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

twinj
Posts: 6
Joined: 18 Oct 2013, 03:50

26 Sep 2016, 09:28

I was not experiencing this issue until I upgraded to Tomcat 8...

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests