Hi Todd,
GeoServer plugins are normally not "just the jars you need to add", they
often contain duplicates or jars
that are already in there. It may happen for a variety of reasons, maybe
the jar in question was not
in the core before and then some changes brought it in, or maybe the
developer in question just
uses a file matching wildcard that inadvertently catches also core files
without noticing.
The expected way to work with plugins is starting from a clean GeoServer
and add the ones you want,
when you decide you don't want one, you start again from a clean install
and add less plugins.
If you don't like this, we're happy to accept you contribution.
One approach would be to update every plugin released descriptor to just
the bare necessary contents,
you can check each and every file starting with ext-* in these two folders
and
propose changes via pull request
<https://github.com/geoserver/geoserver/blob/master/CONTRIBUTING.md>:
https://github.com/geoserver/geoserver/tree/master/src/release
https://github.com/geoserver/geoserver/tree/master/src/community/release
Even better, it would be nice to come up with an automated way to build the
extension zips by just filtering
the jars that are already in the web/app module. I'm not aware of anything
like this existing, but maybe
someone can come up with an approach (possibly something that just uses
maven/ant, like, for example,
post-processing all zip files to remove the duplicated bits already present
in the .war file)
Cheers
Andrea
On Mon, Jul 9, 2018 at 10:17 PM, Todd Jacobus <[email protected]> wrote:
> Hi all,
>
> Upon removing a plugin (GeoFence), GeoServer is returning a 404 response
> from the base GeoServer url and admin gui. I seems like some dependencies
> were lost (see error trace below), namely, the
> javax/transaction/TransactionManager.
> I followed the default GeoFence installation then removed the jar files in
> the zipped packages, I was very careful to only remove jar files that were
> added when unpacking packages. My questions:
>
> 1. Is there a file missing and, if so, how can I replace it?
> 2. Is there a config file somewhere that's pointing to the wrong place, or
> a missing file?
>
> Thanks all for your valuable feedback.
>
> Best,
> Todd
>
> org.geoserver.platform.GeoServerExtensions.extensionNames bean lookup error
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'hibSessionFactory': Failed to introspect bean class
> [org.springframework.orm.hibernate3.LocalSessionFactoryBean] for lookup
> method metadata: could not find class that it depends on; nested exception is
> java.lang.NoClassDefFoundError: javax/transaction/TransactionManager
> at
> org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:269)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1118)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1091)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getSingletonFactoryBeanForTypeCheck(AbstractAutowireCapableBeanFactory.java:923)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:804)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:558)
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:432)
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:403)
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:389)
> at
> org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1177)
> at
> org.geoserver.platform.GeoServerExtensions.extensionNames(GeoServerExtensions.java:206)
> at
> org.geoserver.platform.GeoServerExtensions.extensions(GeoServerExtensions.java:124)
> at
> org.geoserver.platform.GeoServerExtensions.extensions(GeoServerExtensions.java:131)
> at
> org.geoserver.platform.GeoServerExtensions.extensions(GeoServerExtensions.java:147)
> at
> org.geoserver.platform.GeoServerExtensions.bean(GeoServerExtensions.java:327)
> at
> org.geoserver.platform.GeoServerExtensions.bean(GeoServerExtensions.java:310)
> at
> org.vfny.geoserver.crs.GeoserverWKTOperationFactory.getDefinitionsURL(GeoserverWKTOperationFactory.java:45)
> at
> org.geotools.referencing.factory.epsg.CoordinateOperationFactoryUsingWKT.createBackingStore(CoordinateOperationFactoryUsingWKT.java:178)
> at
> org.geotools.referencing.factory.DeferredAuthorityFactory.getBackingStore(DeferredAuthorityFactory.java:133)
> at
> org.geotools.referencing.factory.BufferedAuthorityFactory.isAvailable(BufferedAuthorityFactory.java:235)
> at
> org.geotools.referencing.factory.DeferredAuthorityFactory.isAvailable(DeferredAuthorityFactory.java:119)
> at
> org.geotools.factory.FactoryRegistry.isAvailable(FactoryRegistry.java:788)
> at
> org.geotools.factory.FactoryRegistry.isAcceptable(FactoryRegistry.java:611)
> at
> org.geotools.factory.FactoryRegistry.lambda$getFactories$0(FactoryRegistry.java:310)
> at
> java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174)
> at
> java.util.Spliterators$IteratorSpliterator.tryAdvance(Spliterators.java:1812)
> at
> java.util.stream.StreamSpliterators$WrappingSpliterator.lambda$initPartialTraversalState$220(StreamSpliterators.java:294)
> at
> java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.fillBuffer(StreamSpliterators.java:206)
> at
> java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.doAdvance(StreamSpliterators.java:161)
> at
> java.util.stream.StreamSpliterators$WrappingSpliterator.tryAdvance(StreamSpliterators.java:300)
> at java.util.Spliterators$1Adapter.hasNext(Spliterators.java:681)
> at org.geotools.resources.LazySet.exists(LazySet.java:121)
> at org.geotools.resources.LazySet$Iter.hasNext(LazySet.java:146)
> at
> org.geoserver.GeoserverInitStartupListener.disposeAuthorityFactories(GeoserverInitStartupListener.java:422)
> at
> org.geoserver.GeoserverInitStartupListener.contextDestroyed(GeoserverInitStartupListener.java:288)
> at
> org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4776)
> at
> org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5390)
> at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
> at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:945)
> at
> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1768)
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.NoClassDefFoundError:
> javax/transaction/TransactionManager
> at java.lang.Class.getDeclaredMethods0(Native Method)
> at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
> at java.lang.Class.getDeclaredMethods(Class.java:1975)
> at
> org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:613)
> at
> org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:524)
> at
> org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:510)
> at
> org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:247)
> ... 48 more
> Caused by: java.lang.ClassNotFoundException:
> javax.transaction.TransactionManager
> at
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1305)
> at
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1157)
> ... 55 more
>
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> 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
>
>
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
--
Regards, Andrea Aime == GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime
@geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054
Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339
8844549 http://www.geo-solutions.it 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.*
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users