Postgresql extension throwing errors on startup

Description

org.osgi.framework.BundleException: Activator start error in bundle org.postgresql.jdbc40 [97].
at org.apache.felix.framework.Felix.activateBundle(Felix.java:2273)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2141)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:977)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:964)
at lucee.loader.osgi.BundleUtil.start(BundleUtil.java:130)
at lucee.runtime.osgi.OSGiUtil.start(OSGiUtil.java:687)
at lucee.runtime.osgi.OSGiUtil.startIfNecessary(OSGiUtil.java:647)
at lucee.runtime.osgi.OSGiUtil.loadClass(OSGiUtil.java:323)
at lucee.commons.lang.ClassUtil$OSGiBasedClassLoading.loadClass(ClassUtil.java:735)
at lucee.commons.lang.ClassUtil._loadClass(ClassUtil.java:234)
at lucee.commons.lang.ClassUtil.loadClass(ClassUtil.java:192)
at lucee.commons.lang.ClassUtil.loadClass(ClassUtil.java:218)
at lucee.runtime.functions.other.JavaProxy.loadClassByPath(JavaProxy.java:99)
at lucee.runtime.functions.other.JavaProxy.loadClass(JavaProxy.java:56)
at lucee.runtime.functions.other.JavaProxy.call(JavaProxy.java:53)
at lucee.runtime.functions.other.CreateObject.doJava(CreateObject.java:137)
at lucee.runtime.functions.other.CreateObject.call(CreateObject.java:59)
at lucee.runtime.functions.other.CreateObject.call(CreateObject.java:47)
at services_datasource_cfm414$cf.call(/home/travis/build/lucee/Lucee/core/src/main/cfml/context/admin/services.datasource.cfm:27)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:907)
at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:822)
at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:817)
at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:808)
at web_cfm$cf.call(/home/travis/build/lucee/Lucee/core/src/main/cfml/context/admin/web.cfm:389)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:907)
at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:822)
at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:817)
at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:808)
at server_cfm$cf.call(/home/travis/build/lucee/Lucee/core/src/main/cfml/context/admin/server.cfm:2)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:907)
at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:822)
at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:817)
at lucee.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:226)
at lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:43)
at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2266)
at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2258)
at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2226)
at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:741)
at lucee.loader.engine.CFMLEngineWrapper.serviceCFML(CFMLEngineWrapper.java:102)
at lucee.loader.servlet.CFMLServlet.service(CFMLServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:537)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1085)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:658)
at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1556)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1513)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoClassDefFoundError: org/osgi/service/jdbc/DataSourceFactory
at org.postgresql.osgi.PGBundleActivator.start(PGBundleActivator.java:32)
at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:2223)

Environment

OSX 10.10.5

Activity

Show:

Pothys - MitrahSoft 2 February 2018 at 08:06

Hi ,

Did you still able to reproduce the issue? or Can I close this ticket?

Michael Offner 30 March 2016 at 06:20

do you still see this issue?

Michael Offner 24 February 2016 at 18:23

is this a fresh install? this is an issue we only see on older versions of the postgre driver, we have removed the BundleActivator in the current version of the postgre driver.
When you update an existing Lucee 5 installation, the existing extension will not be updated, so the Lucee version is not that important, important is only the postgre extension version.
best download the postgre driver from here http://preview.lucee.org/download/?type=extensions and copy to lucee-server/deploy folder, wait until the extension disapear and then try again.

Cannot Reproduce

Details

Assignee

Reporter

Priority

Labels

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Created 24 February 2016 at 15:55
Updated 12 May 2021 at 14:01
Resolved 27 March 2018 at 14:21