Hi Paweł, looks like you're using two community modules <https://docs.geoserver.org/stable/en/user/community/index.html> there, the OGC API one, and the features templating one. The error is strange, it makes me think of a version mis-alignment.
Just to make sure, are you using everything properly aligned, in particular: - OGC API and Features templating from the same version of GeoServer - A GeoServer 2.21.x nightly built the day as the two plugins? Using a release of GeoServer with nightly builds of the plugins _might_ work, but might also give the results you're seeing, if any change occurred in the middle. If you use everything from the same build and it still occurs, it might also be a packaging issue. Do you have the full stack trace, from the logs? Cheers Andrea On Thu, Aug 11, 2022 at 10:09 AM Paweł Soczewski via Geoserver-users < geoserver-users@lists.sourceforge.net> wrote: > Hi All, > > I want to move the production implementation of OGC API-Feature service > based on an early version of Geoserver 2.19.x. up to newer version. > Unfortunately both 2.20.x and 2.21.x don't support custom GML and HTML > user templates. After choosing HTML and GML encoding the server the > server responds with an error: > > {"type":"NoApplicableCode","title":"java.lang.NoSuchMethodError: > > org.codehaus.stax2.ri.SingletonIterator.create(Ljava/lang/Object;)Lorg/codehaus/stax2/ri/SingletonIterator;\norg.codehaus.stax2.ri.SingletonIterator.create(Ljava/lang/Object;)Lorg/codehaus/stax2/ri/SingletonIterator;"} > > However custom templates for GeoJSON and JSON-LD work fine. I use the > same configuration as works fine in early 2.19.x. > > When I don't use my custom GML and HTML temaplates and Geoserver uses > predefined formating, the service works fine as well. > > I also tested the last version of 2.19.x with latest dedicated for it > moduls OGC API and Feature Templating and it dosen't work too but the > reason is diffrent. After instaling .jar libraries the Geoserver > application dosen't started. When delete libraries OGC API and Feature > Templating libraries it works fine. > > Any idea how to fix it? > > > Regards, > > pawel > > > > > Paweł Soczewski > Główny Specjalista ds. Infrastruktury Przestrzennej > +48502415540 > > GISPartner Sp. z o.o. > ul. Jana Długosza 60 > 51-162 Wrocław > > NIP 898-20-27-647 > KRS 0000173717 > Sąd Rejonowy dla Wrocławia-Fabrycznej > VI Wydział Gospodarczy Krajowego Rejestru Sądowego > KAPITAŁ ZAKŁADOWY 1.000.000 zł > > [https://www.gispartner.pl/GP-1.png] > [https://www.gispartner.pl/GP-2a.png][https://www.gispartner.pl/GP-2b.png > ]<https://www.gispartner.pl>[https://www.gispartner.pl/GP-2c.png]< > https://www.linkedin.com/company/gispartner/>[ > https://www.gispartner.pl/GP-2d.png]< > https://www.facebook.com/gispartnerPL/>[ > https://www.gispartner.pl/GP-2e.png]<https://twitter.com/GISPartner> > > _______________________________________________ > Geoserver-users mailing list > > Please make sure you read the following two resources before posting to > this list: > - Earning your support instead of buying it, but Ian Turton: > http://www.ianturton.com/talks/foss4g.html#/ > - The GeoServer user list posting guidelines: > http://geoserver.org/comm/userlist-guidelines.html > > If you want to request a feature or an improvement, also see this: > https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer > > > Geoserver-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geoserver-users > -- Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://bit.ly/gs-services-us for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions Group phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 https://www.geosolutionsgroup.com/ http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users