external database driver loading problem

Hauke Gulich March 24, 2016

Hello everyone,

 

I just wanted to develop a simple macro. This macro should connect to an external database in order to present the data.

The macro is working fine without database stuff at all. Then I added to following code to the macro class:

 

String dbTbl = "customer";
        String dbDrv = "org.postgresql.Driver";
        String dbUrl = "jdbc:postgresql://localhost:5432/dummydb";
        String dbUsr = "username";
        String dbPwd = "password";
        
        
        Connection cn = null;
        Statement  st = null;
        ResultSet  rs = null;
 
          // Select fitting database driver and connect:
          Class.forName( dbDrv );
          cn = DriverManager.getConnection( dbUrl, dbUsr, dbPwd );
          st = cn.createStatement();
          rs = st.executeQuery( "select * from " + dbTbl );
          
          // Get meta data:
          ResultSetMetaData rsmd = rs.getMetaData();
          Integer i = rsmd.getColumnCount();

 

So I don't user hibernate or other libs at all. Just plain JDBC in order to keep it simple.

I also added the postgresql driver to the pom.xml

 

<dependency>
    <groupId>org.postgresql</groupId>
    <artifactId>postgresql</artifactId>
    <version>9.4.1208.jre7</version>
    <scope>compile</scope>
</dependency>

 

If I run the above code as a standalone main class inside the plugin it works fine. The driver will be found and the connect works fine.

 

But if I do this

atlas-clean
atlas-package
atlas-debug

 

I will see several error messages:

[INFO] [talledLocalContainer] 2016-03-24 14:13:05,070 INFO [localhost-startStop-1] [confluence.upgrade.ddl.HibernateDdlExecutor] executeDdlStatements Executing DDL: alter table USERCONTENT_RELATION add constraint u2c_relation_unique unique (TARGETCONTENTID, SOURCEUSER, RELATIONNAME)
[INFO] [talledLocalContainer] 2016-03-24 14:13:05,075 INFO [localhost-startStop-1] [confluence.upgrade.ddl.HibernateAlterTableExecutor] alterTable Executing grouped alter table command on CONTENT_RELATION
[INFO] [talledLocalContainer] 2016-03-24 14:13:05,075 INFO [localhost-startStop-1] [confluence.upgrade.ddl.HibernateDdlExecutor] executeDdlStatements Executing DDL: alter table CONTENT_RELATION add constraint c2c_relation_unique unique (TARGETCONTENTID, SOURCECONTENTID, RELATIONNAME)
[INFO] [talledLocalContainer] 2016-03-24 14:13:05,078 INFO [localhost-startStop-1] [confluence.upgrade.ddl.HibernateAlterTableExecutor] alterTable Executing grouped alter table command on USER_RELATION
[INFO] [talledLocalContainer] 2016-03-24 14:13:05,078 INFO [localhost-startStop-1] [confluence.upgrade.ddl.HibernateDdlExecutor] executeDdlStatements Executing DDL: alter table USER_RELATION add constraint u2u_relation_unique unique (SOURCEUSER, TARGETUSER, RELATIONNAME)
[INFO] [talledLocalContainer] 2016-03-24 14:13:05,199 INFO [localhost-startStop-1] [atlassian.confluence.upgrade.AbstractUpgradeManager] upgradeStarted Starting automatic upgrade of Confluence
[INFO] [talledLocalContainer] 2016-03-24 14:13:05,211 INFO [localhost-startStop-1] [upgrade.upgradetask.attachmentceo.AttachmentContentStatusUpgradeTask] doUpgrade Fixing attachments with missing content status...
[INFO] [talledLocalContainer] 2016-03-24 14:13:05,270 INFO [localhost-startStop-1] [upgrade.upgradetask.attachmentceo.AttachmentContentStatusUpgradeTask] doUpgrade Updated the status of 0 attachment entries
[INFO] [talledLocalContainer] 2016-03-24 14:13:05,289 WARN [localhost-startStop-1] [atlassian.config.xml.AbstractDom4jXmlConfigurationPersister] saveDocumentAtomically Unable to move C:\atlassian\tutorial-confluence-macro-demo\target\confluence\home\confluence.cfg.xml402128992190690825tmp to C:\atlassian\tutorial-conf
[INFO] [talledLocalContainer] 2016-03-24 14:13:05,294 WARN [localhost-startStop-1] [atlassian.config.xml.AbstractDom4jXmlConfigurationPersister] saveDocumentAtomically Unable to move C:\atlassian\tutorial-confluence-macro-demo\target\confluence\home\confluence.cfg.xml6034447989607040476tmp to C:\atlassian\tutorial-con
[INFO] [talledLocalContainer] 2016-03-24 14:13:05,298 INFO [localhost-startStop-1] [confluence.upgrade.upgradetask.RemoveConfluenceThreadDumpPluginUpgradeTask] doUpgrade Starting to uninstall the Confluence Thread Dump Plugin
[INFO] [talledLocalContainer] 2016-03-24 14:13:05,299 INFO [localhost-startStop-1] [confluence.upgrade.upgradetask.RemoveConfluenceThreadDumpPluginUpgradeTask] doUpgrade Finished uninstalling the Confluence Thread Dump Plugin
[INFO] [talledLocalContainer] 2016-03-24 14:13:05,307 WARN [localhost-startStop-1] [atlassian.config.xml.AbstractDom4jXmlConfigurationPersister] saveDocumentAtomically Unable to move C:\atlassian\tutorial-confluence-macro-demo\target\confluence\home\confluence.cfg.xml3896226326763264311tmp to C:\atlassian\tutorial-con
[INFO] [talledLocalContainer] 2016-03-24 14:13:05,315 WARN [localhost-startStop-1] [atlassian.config.xml.AbstractDom4jXmlConfigurationPersister] saveDocumentAtomically Unable to move C:\atlassian\tutorial-confluence-macro-demo\target\confluence\home\confluence.cfg.xml953272723215956689tmp to C:\atlassian\tutorial-conf
[INFO] [talledLocalContainer] 2016-03-24 14:13:05,319 INFO [localhost-startStop-1] [confluence.upgrade.upgradetask.UserIndexingUpgradeTask] doUpgrade Beginning User Indexing repair.
[INFO] [talledLocalContainer] 2016-03-24 14:13:05,320 INFO [localhost-startStop-1] [confluence.upgrade.upgradetask.UserIndexingUpgradeTask] doUpgrade Scheduling reindexing of existing users
[INFO] [talledLocalContainer] 2016-03-24 14:13:05,429 INFO [localhost-startStop-1] [core.persistence.hibernate.HibernateSessionManager] executeWithSessionClearing Processed 1 of 1 in 'com.atlassian.confluence.upgrade.upgradetask.UserIndexingUpgradeTask$$Lambda$117/1596095628@f653986'...
[INFO] [talledLocalContainer] 2016-03-24 14:13:05,430 INFO [localhost-startStop-1] [confluence.upgrade.upgradetask.UserIndexingUpgradeTask] doUpgrade Retrieving the userkeys and matching Personal Information from db...
[INFO] [talledLocalContainer] 2016-03-24 14:13:05,450 INFO [localhost-startStop-1] [confluence.upgrade.upgradetask.UserIndexingUpgradeTask] doUpgrade Found 0 userkeys that need PersonalInformation created.
[INFO] [talledLocalContainer] 2016-03-24 14:13:05,455 INFO [localhost-startStop-1] [confluence.upgrade.upgradetask.UserIndexingUpgradeTask] doUpgrade Finished User Indexing repair.
[INFO] [talledLocalContainer] 2016-03-24 14:13:05,464 WARN [localhost-startStop-1] [atlassian.config.xml.AbstractDom4jXmlConfigurationPersister] saveDocumentAtomically Unable to move C:\atlassian\tutorial-confluence-macro-demo\target\confluence\home\confluence.cfg.xml4811565754202463076tmp to C:\atlassian\tutorial-con
[INFO] [talledLocalContainer] 2016-03-24 14:13:05,466 INFO [localhost-startStop-1] [confluence.upgrade.upgradetask.AddSpacePermissionSubjectColumnUpgradeTask] doUpgrade Adding SpacePermission subject column
[INFO] [talledLocalContainer] 2016-03-24 14:13:05,473 WARN [localhost-startStop-1] [atlassian.config.xml.AbstractDom4jXmlConfigurationPersister] saveDocumentAtomically Unable to move C:\atlassian\tutorial-confluence-macro-demo\target\confluence\home\confluence.cfg.xml2742585595923408306tmp to C:\atlassian\tutorial-con
[INFO] [talledLocalContainer] 2016-03-24 14:13:05,481 WARN [localhost-startStop-1] [atlassian.config.xml.AbstractDom4jXmlConfigurationPersister] saveDocumentAtomically Unable to move C:\atlassian\tutorial-confluence-macro-demo\target\confluence\home\confluence.cfg.xml652995921938827728tmp to C:\atlassian\tutorial-conf
[INFO] [talledLocalContainer] 2016-03-24 14:13:05,486 WARN [localhost-startStop-1] [atlassian.config.xml.AbstractDom4jXmlConfigurationPersister] saveDocumentAtomically Unable to move C:\atlassian\tutorial-confluence-macro-demo\target\confluence\home\confluence.cfg.xml2317735185023997760tmp to C:\atlassian\tutorial-con
[INFO] [talledLocalContainer] 2016-03-24 14:13:05,490 INFO [localhost-startStop-1] [confluence.upgrade.upgradetask.ContentIndexUpgradeTask] doUpgrade Adding a multi-column index to content table
[INFO] [talledLocalContainer] 2016-03-24 14:13:05,491 INFO [localhost-startStop-1] [confluence.upgrade.ddl.HibernateDdlExecutor] executeDdlStatements Executing DDL: create index c_si_ct_pv_cs_cd_idx on CONTENT (SPACEID, CONTENTTYPE, PREVVER, CONTENT_STATUS, CREATIONDATE)
[INFO] [talledLocalContainer] 2016-03-24 14:13:05,501 WARN [localhost-startStop-1] [atlassian.config.xml.AbstractDom4jXmlConfigurationPersister] saveDocumentAtomically Unable to move C:\atlassian\tutorial-confluence-macro-demo\target\confluence\home\confluence.cfg.xml5043547592209356052tmp to C:\atlassian\tutorial-con
[INFO] [talledLocalContainer] 2016-03-24 14:13:05,512 WARN [localhost-startStop-1] [atlassian.config.xml.AbstractDom4jXmlConfigurationPersister] saveDocumentAtomically Unable to move C:\atlassian\tutorial-confluence-macro-demo\target\confluence\home\confluence.cfg.xml5370250223651556329tmp to C:\atlassian\tutorial-con
[INFO] [talledLocalContainer] 2016-03-24 14:13:05,516 WARN [localhost-startStop-1] [atlassian.config.xml.AbstractDom4jXmlConfigurationPersister] saveDocumentAtomically Unable to move C:\atlassian\tutorial-confluence-macro-demo\target\confluence\home\confluence.cfg.xml6903054500984672820tmp to C:\atlassian\tutorial-con
[INFO] [talledLocalContainer] 2016-03-24 14:13:05,519 WARN [localhost-startStop-1] [atlassian.config.xml.AbstractDom4jXmlConfigurationPersister] saveDocumentAtomically Unable to move C:\atlassian\tutorial-confluence-macro-demo\target\confluence\home\confluence.cfg.xml883507161778689494tmp to C:\atlassian\tutorial-conf
[INFO] [talledLocalContainer] 2016-03-24 14:13:05,526 WARN [localhost-startStop-1] [atlassian.config.xml.AbstractDom4jXmlConfigurationPersister] saveDocumentAtomically Unable to move C:\atlassian\tutorial-confluence-macro-demo\target\confluence\home\confluence.cfg.xml3476006815646376026tmp to C:\atlassian\tutorial-con
[INFO] [talledLocalContainer] 2016-03-24 14:13:05,527 INFO [localhost-startStop-1] [atlassian.confluence.upgrade.AbstractUpgradeManager] initialUpgradeFinished Upgrade initial stage completed successfully
[INFO] [talledLocalContainer] 2016-03-24 14:13:05,529 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] lateStartup Plugin system lateStartup begun
[INFO] [talledLocalContainer] 2016-03-24 14:13:06,008 ERROR [localhost-startStop-1] [plugin.osgi.factory.OsgiPluginInstalledHelper] availableForTraversal Cannot determine required plugins, cannot resolve bundle 'com.example.plugins.tutorial.confluence.tutorial-confluence-macro-demo'
[INFO] [talledLocalContainer] 2016-03-24 14:13:07,839 ERROR [localhost-startStop-1] [plugin.osgi.factory.OsgiPluginInstalledHelper] availableForTraversal Cannot determine required plugins, cannot resolve bundle 'com.atlassian.plugins.atlassian-plugins-osgi-testrunner-bundle'
[INFO] [talledLocalContainer] 2016-03-24 14:13:07,957 ERROR [localhost-startStop-1] [plugin.osgi.factory.OsgiPluginInstalledHelper] availableForTraversal Cannot determine required plugins, cannot resolve bundle 'com.example.plugins.tutorial.confluence.tutorial-confluence-macro-demo-tests'
[INFO] [talledLocalContainer] 2016-03-24 14:13:08,048 ERROR [localhost-startStop-1] [plugin.osgi.factory.OsgiPlugin] enableInternal Detected an error (BundleException) enabling the plugin '${atlassian.plugin.key}' : Unresolved constraint in bundle com.example.plugins.tutorial.confluence.tutorial-confluence-macro-demo
[INFO] [talledLocalContainer] 2016-03-24 14:13:08,048 WARN [localhost-startStop-1] [atlassian.plugin.impl.AbstractPlugin] enable Unable to enable plugin '${atlassian.plugin.key}'
[INFO] [talledLocalContainer] 2016-03-24 14:13:08,049 WARN [localhost-startStop-1] [atlassian.plugin.impl.AbstractPlugin] enable Because of this exception
[INFO] [talledLocalContainer] com.atlassian.plugin.osgi.container.OsgiContainerException: Cannot start plugin: ${atlassian.plugin.key}
[INFO] [talledLocalContainer]   at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:407)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.impl.AbstractPlugin.enable(AbstractPlugin.java:286)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.manager.PluginEnabler.actualEnable(PluginEnabler.java:130)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.manager.PluginEnabler.enable(PluginEnabler.java:107)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.manager.DefaultPluginManager.enableDependentPlugins(DefaultPluginManager.java:1079)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:1055)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.manager.DefaultPluginManager.lateStartup(DefaultPluginManager.java:536)
[INFO] [talledLocalContainer]   at com.atlassian.confluence.plugin.ConfluencePluginManager.lateStartup(ConfluencePluginManager.java:137)
[INFO] [talledLocalContainer]   at com.atlassian.confluence.plugin.PluginFrameworkContextListener.contextInitialized(PluginFrameworkContextListener.java:79)
[INFO] [talledLocalContainer]   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4760)
[INFO] [talledLocalContainer]   at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5184)
[INFO] [talledLocalContainer]   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
[INFO] [talledLocalContainer]   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
[INFO] [talledLocalContainer]   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
[INFO] [talledLocalContainer]   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
[INFO] [talledLocalContainer]   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:919)
[INFO] [talledLocalContainer]   at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1704)
[INFO] [talledLocalContainer]   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[INFO] [talledLocalContainer]   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[INFO] [talledLocalContainer]   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[INFO] [talledLocalContainer]   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[INFO] [talledLocalContainer]   at java.lang.Thread.run(Thread.java:745)
[INFO] [talledLocalContainer] Caused by: org.osgi.framework.BundleException: Unresolved constraint in bundle com.example.plugins.tutorial.confluence.tutorial-confluence-macro-demo [149]: Unable to resolve 149.0: missing requirement [149.0] osgi.wiring.package; (osgi.wiring.package=com.sun.jna)
[INFO] [talledLocalContainer]   at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3974)
[INFO] [talledLocalContainer]   at org.apache.felix.framework.Felix.startBundle(Felix.java:2037)
[INFO] [talledLocalContainer]   at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:955)
[INFO] [talledLocalContainer]   at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:942)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:388)
[INFO] [talledLocalContainer]   ... 21 more
[INFO] [talledLocalContainer] 2016-03-24 14:13:08,049 ERROR [localhost-startStop-1] [atlassian.plugin.manager.PluginEnabler] actualEnable Unable to enable plugin ${atlassian.plugin.key}
[INFO] [talledLocalContainer] com.atlassian.plugin.osgi.container.OsgiContainerException: Cannot start plugin: ${atlassian.plugin.key}
[INFO] [talledLocalContainer]   at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:407)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.impl.AbstractPlugin.enable(AbstractPlugin.java:286)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.manager.PluginEnabler.actualEnable(PluginEnabler.java:130)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.manager.PluginEnabler.enable(PluginEnabler.java:107)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.manager.DefaultPluginManager.enableDependentPlugins(DefaultPluginManager.java:1079)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:1055)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.manager.DefaultPluginManager.lateStartup(DefaultPluginManager.java:536)
[INFO] [talledLocalContainer]   at com.atlassian.confluence.plugin.ConfluencePluginManager.lateStartup(ConfluencePluginManager.java:137)
[INFO] [talledLocalContainer]   at com.atlassian.confluence.plugin.PluginFrameworkContextListener.contextInitialized(PluginFrameworkContextListener.java:79)
[INFO] [talledLocalContainer]   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4760)
[INFO] [talledLocalContainer]   at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5184)
[INFO] [talledLocalContainer]   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
[INFO] [talledLocalContainer]   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
[INFO] [talledLocalContainer]   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
[INFO] [talledLocalContainer]   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
[INFO] [talledLocalContainer]   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:919)
[INFO] [talledLocalContainer]   at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1704)
[INFO] [talledLocalContainer]   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[INFO] [talledLocalContainer]   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[INFO] [talledLocalContainer]   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[INFO] [talledLocalContainer]   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[INFO] [talledLocalContainer]   at java.lang.Thread.run(Thread.java:745)
[INFO] [talledLocalContainer] Caused by: org.osgi.framework.BundleException: Unresolved constraint in bundle com.example.plugins.tutorial.confluence.tutorial-confluence-macro-demo [149]: Unable to resolve 149.0: missing requirement [149.0] osgi.wiring.package; (osgi.wiring.package=com.sun.jna)
[INFO] [talledLocalContainer]   at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3974)
[INFO] [talledLocalContainer]   at org.apache.felix.framework.Felix.startBundle(Felix.java:2037)
[INFO] [talledLocalContainer]   at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:955)
[INFO] [talledLocalContainer]   at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:942)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:388)
[INFO] [talledLocalContainer]   ... 21 more
[INFO] [talledLocalContainer] 2016-03-24 14:13:08,384 WARN [ThreadPoolAsyncTaskExecutor::Thread 56] [spring.scanner.util.ProductFilterUtil] detectProduct Couldn't detect product, will use ProductFilter.ALL
[INFO] [talledLocalContainer] 2016-03-24 14:13:08,804 WARN [ThreadPoolAsyncTaskExecutor::Thread 58] [confluence.officeconnector.OfficeConnector.spring] afterPropertiesSet
[INFO] [talledLocalContainer] Spring context started for bundle : com.atlassian.confluence.officeconnector.OfficeConnector id(158) v(3.4.17) reference:file:/C:/atlassian/tutorial-confluence-macro-demo/target/container/tomcat8x/cargo-confluence-home/webapps/confluence/WEB-INF/atlassian-bundled-plugins/OfficeConnector-3
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer] If you want to debug the Spring wiring of your code then set a DEBUG level log level as follows.  [ This is a dev.mode only message. ]
[INFO] [talledLocalContainer]   log4j.logger.com.atlassian.confluence.officeconnector.OfficeConnector.spring  = DEBUG, console, filelog
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer] 2016-03-24 14:13:09,025 WARN [ThreadPoolAsyncTaskExecutor::Thread 8] [spring.scanner.util.ProductFilterUtil] detectProduct Couldn't detect product, will use ProductFilter.ALL
[INFO] [talledLocalContainer] 2016-03-24 14:13:09,251 WARN [ThreadPoolAsyncTaskExecutor::Thread 57] [atlassian.webhooks.atlassian-webhooks-plugin.spring] afterPropertiesSet
[INFO] [talledLocalContainer] Spring context started for bundle : com.atlassian.webhooks.atlassian-webhooks-plugin id(237) v(3.0.0) reference:file:/C:/atlassian/tutorial-confluence-macro-demo/target/container/tomcat8x/cargo-confluence-home/webapps/confluence/WEB-INF/atlassian-bundled-plugins/atlassian-webhooks-plugin-
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer] If you want to debug the Spring wiring of your code then set a DEBUG level log level as follows.  [ This is a dev.mode only message. ]
[INFO] [talledLocalContainer]   log4j.logger.com.atlassian.webhooks.atlassian-webhooks-plugin.spring  = DEBUG, console, filelog
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer] 2016-03-24 14:13:09,273 WARN [ThreadPoolAsyncTaskExecutor::Thread 41] [confluence.plugins.share-page.spring] afterPropertiesSet
[INFO] [talledLocalContainer] Spring context started for bundle : com.atlassian.confluence.plugins.share-page id(206) v(5.2.0) reference:file:/C:/atlassian/tutorial-confluence-macro-demo/target/container/tomcat8x/cargo-confluence-home/webapps/confluence/WEB-INF/atlassian-bundled-plugins/share-page-5.2.jar
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer] If you want to debug the Spring wiring of your code then set a DEBUG level log level as follows.  [ This is a dev.mode only message. ]
[INFO] [talledLocalContainer]   log4j.logger.com.atlassian.confluence.plugins.share-page.spring  = DEBUG, console, filelog
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer] 2016-03-24 14:13:11,040 WARN [ThreadPoolAsyncTaskExecutor::Thread 56] [confluence.plugins.confluence-inline-tasks.spring] afterPropertiesSet
[INFO] [talledLocalContainer] Spring context started for bundle : com.atlassian.confluence.plugins.confluence-inline-tasks id(180) v(5.7.19) reference:file:/C:/atlassian/tutorial-confluence-macro-demo/target/container/tomcat8x/cargo-confluence-home/webapps/confluence/WEB-INF/atlassian-bundled-plugins/confluence-inline
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer] If you want to debug the Spring wiring of your code then set a DEBUG level log level as follows.  [ This is a dev.mode only message. ]
[INFO] [talledLocalContainer]   log4j.logger.com.atlassian.confluence.plugins.confluence-inline-tasks.spring  = DEBUG, console, filelog
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer] 2016-03-24 14:13:11,330 WARN [ThreadPoolAsyncTaskExecutor::Thread 58] [confluence.plugins.confluence-document-conversion-library.spring] afterPropertiesSet
[INFO] [talledLocalContainer] Spring context started for bundle : com.atlassian.confluence.plugins.confluence-document-conversion-library id(167) v(1.9.14) reference:file:/C:/atlassian/tutorial-confluence-macro-demo/target/container/tomcat8x/cargo-confluence-home/webapps/confluence/WEB-INF/atlassian-bundled-plugins/co
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer] If you want to debug the Spring wiring of your code then set a DEBUG level log level as follows.  [ This is a dev.mode only message. ]
[INFO] [talledLocalContainer]   log4j.logger.com.atlassian.confluence.plugins.confluence-document-conversion-library.spring  = DEBUG, console, filelog
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer] 2016-03-24 14:13:11,653 WARN [localhost-startStop-1] [spring.scanner.extension.DevModeBeanInitialisationLoggerBeanPostProcessor] postProcessBeforeInstantiation BeforeInstantiation [beanName=com.atlassian.prettyurls.module.SiteMeshModuleDescriptor, objectType=com.atlassian.prettyurls.modul
[INFO] [talledLocalContainer] 2016-03-24 14:13:11,670 WARN [localhost-startStop-1] [spring.scanner.extension.DevModeBeanInitialisationLoggerBeanPostProcessor] postProcessAfterInitialization AfterInitialisation [beanName=com.atlassian.prettyurls.module.SiteMeshModuleDescriptor, objectType=com.atlassian.prettyurls.modul
[INFO] [talledLocalContainer] 2016-03-24 14:13:11,671 WARN [localhost-startStop-1] [spring.scanner.extension.DevModeBeanInitialisationLoggerBeanPostProcessor] postProcessBeforeInstantiation BeforeInstantiation [beanName=com.atlassian.prettyurls.module.UrlRouteModuleDescriptor, objectType=com.atlassian.prettyurls.modul
[INFO] [talledLocalContainer] 2016-03-24 14:13:11,671 WARN [localhost-startStop-1] [spring.scanner.extension.DevModeBeanInitialisationLoggerBeanPostProcessor] postProcessAfterInitialization AfterInitialisation [beanName=com.atlassian.prettyurls.module.UrlRouteModuleDescriptor, objectType=com.atlassian.prettyurls.modul
[INFO] [talledLocalContainer] 2016-03-24 14:13:11,749 WARN [ThreadPoolAsyncTaskExecutor::Thread 57] [spring.scanner.util.ProductFilterUtil] detectProduct Couldn't detect product, will use ProductFilter.ALL
[INFO] [talledLocalContainer] 2016-03-24 14:13:11,855 WARN [ThreadPoolAsyncTaskExecutor::Thread 11] [gadgets.oauth.serviceprovider.spring] afterPropertiesSet
[INFO] [talledLocalContainer] Spring context started for bundle : com.atlassian.gadgets.oauth.serviceprovider id(211) v(3.3.24) reference:file:/C:/atlassian/tutorial-confluence-macro-demo/target/container/tomcat8x/cargo-confluence-home/webapps/confluence/WEB-INF/atlassian-bundled-plugins/atlassian-gadgets-oauth-servic
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer] If you want to debug the Spring wiring of your code then set a DEBUG level log level as follows.  [ This is a dev.mode only message. ]
[INFO] [talledLocalContainer]   log4j.logger.com.atlassian.gadgets.oauth.serviceprovider.spring  = DEBUG, console, filelog
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer] 2016-03-24 14:13:12,326 WARN [ThreadPoolAsyncTaskExecutor::Thread 48] [spring.scanner.util.ProductFilterUtil] detectProduct Couldn't detect product, will use ProductFilter.ALL
[INFO] [talledLocalContainer] 2016-03-24 14:13:12,488 ERROR [localhost-startStop-1] [plugin.osgi.factory.OsgiPlugin] enableInternal Detected an error (BundleException) enabling the plugin 'com.atlassian.plugins.atlassian-plugins-osgi-testrunner-bundle' : Unresolved constraint in bundle com.atlassian.plugins.atlassian-
[INFO] [talledLocalContainer] 2016-03-24 14:13:12,488 WARN [localhost-startStop-1] [atlassian.plugin.impl.AbstractPlugin] enable Unable to enable plugin 'com.atlassian.plugins.atlassian-plugins-osgi-testrunner-bundle'
[INFO] [talledLocalContainer] 2016-03-24 14:13:12,489 WARN [localhost-startStop-1] [atlassian.plugin.impl.AbstractPlugin] enable Because of this exception
[INFO] [talledLocalContainer] com.atlassian.plugin.osgi.container.OsgiContainerException: Cannot start plugin: com.atlassian.plugins.atlassian-plugins-osgi-testrunner-bundle
[INFO] [talledLocalContainer]   at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:407)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.impl.AbstractPlugin.enable(AbstractPlugin.java:286)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.manager.PluginEnabler.actualEnable(PluginEnabler.java:130)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.manager.PluginEnabler.enable(PluginEnabler.java:107)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.manager.DefaultPluginManager.enableDependentPlugins(DefaultPluginManager.java:1079)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:1055)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.manager.DefaultPluginManager.lateStartup(DefaultPluginManager.java:536)
[INFO] [talledLocalContainer]   at com.atlassian.confluence.plugin.ConfluencePluginManager.lateStartup(ConfluencePluginManager.java:137)
[INFO] [talledLocalContainer]   at com.atlassian.confluence.plugin.PluginFrameworkContextListener.contextInitialized(PluginFrameworkContextListener.java:79)
[INFO] [talledLocalContainer]   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4760)
[INFO] [talledLocalContainer]   at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5184)
[INFO] [talledLocalContainer]   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
[INFO] [talledLocalContainer]   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
[INFO] [talledLocalContainer]   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
[INFO] [talledLocalContainer]   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
[INFO] [talledLocalContainer]   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:919)
[INFO] [talledLocalContainer]   at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1704)
[INFO] [talledLocalContainer]   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[INFO] [talledLocalContainer]   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[INFO] [talledLocalContainer]   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[INFO] [talledLocalContainer]   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[INFO] [talledLocalContainer]   at java.lang.Thread.run(Thread.java:745)
[INFO] [talledLocalContainer] Caused by: org.osgi.framework.BundleException: Unresolved constraint in bundle com.atlassian.plugins.atlassian-plugins-osgi-testrunner-bundle [223]: Unable to resolve 223.0: missing requirement [223.0] osgi.wiring.package; (&(osgi.wiring.package=com.atlassian.sal.api)(version>=2.6.0)(!(ve
[INFO] [talledLocalContainer]   at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3974)
[INFO] [talledLocalContainer]   at org.apache.felix.framework.Felix.startBundle(Felix.java:2037)
[INFO] [talledLocalContainer]   at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:955)
[INFO] [talledLocalContainer]   at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:942)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:388)
[INFO] [talledLocalContainer]   ... 21 more
[INFO] [talledLocalContainer] 2016-03-24 14:13:12,489 ERROR [localhost-startStop-1] [atlassian.plugin.manager.PluginEnabler] actualEnable Unable to enable plugin com.atlassian.plugins.atlassian-plugins-osgi-testrunner-bundle
[INFO] [talledLocalContainer] com.atlassian.plugin.osgi.container.OsgiContainerException: Cannot start plugin: com.atlassian.plugins.atlassian-plugins-osgi-testrunner-bundle
[INFO] [talledLocalContainer]   at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:407)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.impl.AbstractPlugin.enable(AbstractPlugin.java:286)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.manager.PluginEnabler.actualEnable(PluginEnabler.java:130)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.manager.PluginEnabler.enable(PluginEnabler.java:107)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.manager.DefaultPluginManager.enableDependentPlugins(DefaultPluginManager.java:1079)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:1055)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.manager.DefaultPluginManager.lateStartup(DefaultPluginManager.java:536)
[INFO] [talledLocalContainer]   at com.atlassian.confluence.plugin.ConfluencePluginManager.lateStartup(ConfluencePluginManager.java:137)
[INFO] [talledLocalContainer]   at com.atlassian.confluence.plugin.PluginFrameworkContextListener.contextInitialized(PluginFrameworkContextListener.java:79)
[INFO] [talledLocalContainer]   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4760)
[INFO] [talledLocalContainer]   at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5184)
[INFO] [talledLocalContainer]   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
[INFO] [talledLocalContainer]   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
[INFO] [talledLocalContainer]   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
[INFO] [talledLocalContainer]   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
[INFO] [talledLocalContainer]   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:919)
[INFO] [talledLocalContainer]   at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1704)
[INFO] [talledLocalContainer]   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[INFO] [talledLocalContainer]   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[INFO] [talledLocalContainer]   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[INFO] [talledLocalContainer]   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[INFO] [talledLocalContainer]   at java.lang.Thread.run(Thread.java:745)
[INFO] [talledLocalContainer] Caused by: org.osgi.framework.BundleException: Unresolved constraint in bundle com.atlassian.plugins.atlassian-plugins-osgi-testrunner-bundle [223]: Unable to resolve 223.0: missing requirement [223.0] osgi.wiring.package; (&(osgi.wiring.package=com.atlassian.sal.api)(version>=2.6.0)(!(ve
[INFO] [talledLocalContainer]   at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3974)
[INFO] [talledLocalContainer]   at org.apache.felix.framework.Felix.startBundle(Felix.java:2037)
[INFO] [talledLocalContainer]   at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:955)
[INFO] [talledLocalContainer]   at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:942)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:388)
[INFO] [talledLocalContainer]   ... 21 more
[INFO] [talledLocalContainer] 2016-03-24 14:13:12,842 WARN [ThreadPoolAsyncTaskExecutor::Thread 62] [labs.plugins.quickreload.spring] afterPropertiesSet
[INFO] [talledLocalContainer] Spring context started for bundle : com.atlassian.labs.plugins.quickreload id(215) v(1.24.1) reference:file:/C:/atlassian/tutorial-confluence-macro-demo/target/container/tomcat8x/cargo-confluence-home/webapps/confluence/WEB-INF/atlassian-bundled-plugins/quickreload-1.24.1.jar
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer] If you want to debug the Spring wiring of your code then set a DEBUG level log level as follows.  [ This is a dev.mode only message. ]
[INFO] [talledLocalContainer]   log4j.logger.com.atlassian.labs.plugins.quickreload.spring  = DEBUG, console, filelog
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer] 2016-03-24 14:13:13,468 ERROR [localhost-startStop-1] [plugin.osgi.factory.OsgiPlugin] enableInternal Detected an error (BundleException) enabling the plugin 'com.example.plugins.tutorial.confluence.tutorial-confluence-macro-demo-tests' : Unresolved constraint in bundle com.example.plugin
[INFO] [talledLocalContainer] 2016-03-24 14:13:13,469 WARN [localhost-startStop-1] [atlassian.plugin.impl.AbstractPlugin] enable Unable to enable plugin 'com.example.plugins.tutorial.confluence.tutorial-confluence-macro-demo-tests'
[INFO] [talledLocalContainer] 2016-03-24 14:13:13,469 WARN [localhost-startStop-1] [atlassian.plugin.impl.AbstractPlugin] enable Because of this exception
[INFO] [talledLocalContainer] com.atlassian.plugin.osgi.container.OsgiContainerException: Cannot start plugin: com.example.plugins.tutorial.confluence.tutorial-confluence-macro-demo-tests
[INFO] [talledLocalContainer]   at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:407)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.impl.AbstractPlugin.enable(AbstractPlugin.java:286)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.manager.PluginEnabler.actualEnable(PluginEnabler.java:130)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.manager.PluginEnabler.enable(PluginEnabler.java:107)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.manager.DefaultPluginManager.enableDependentPlugins(DefaultPluginManager.java:1079)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:1055)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.manager.DefaultPluginManager.lateStartup(DefaultPluginManager.java:536)
[INFO] [talledLocalContainer]   at com.atlassian.confluence.plugin.ConfluencePluginManager.lateStartup(ConfluencePluginManager.java:137)
[INFO] [talledLocalContainer]   at com.atlassian.confluence.plugin.PluginFrameworkContextListener.contextInitialized(PluginFrameworkContextListener.java:79)
[INFO] [talledLocalContainer]   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4760)
[INFO] [talledLocalContainer]   at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5184)
[INFO] [talledLocalContainer]   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
[INFO] [talledLocalContainer]   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
[INFO] [talledLocalContainer]   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
[INFO] [talledLocalContainer]   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
[INFO] [talledLocalContainer]   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:919)
[INFO] [talledLocalContainer]   at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1704)
[INFO] [talledLocalContainer]   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[INFO] [talledLocalContainer]   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[INFO] [talledLocalContainer]   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[INFO] [talledLocalContainer]   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[INFO] [talledLocalContainer]   at java.lang.Thread.run(Thread.java:745)
[INFO] [talledLocalContainer] Caused by: org.osgi.framework.BundleException: Unresolved constraint in bundle com.example.plugins.tutorial.confluence.tutorial-confluence-macro-demo-tests [238]: Unable to resolve 238.0: missing requirement [238.0] osgi.wiring.package; (osgi.wiring.package=com.example.plugins.tutorial.co
[INFO] [talledLocalContainer]   at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3974)
[INFO] [talledLocalContainer]   at org.apache.felix.framework.Felix.startBundle(Felix.java:2037)
[INFO] [talledLocalContainer]   at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:955)
[INFO] [talledLocalContainer]   at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:942)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:388)
[INFO] [talledLocalContainer]   ... 21 more
[INFO] [talledLocalContainer] 2016-03-24 14:13:13,469 ERROR [localhost-startStop-1] [atlassian.plugin.manager.PluginEnabler] actualEnable Unable to enable plugin com.example.plugins.tutorial.confluence.tutorial-confluence-macro-demo-tests
[INFO] [talledLocalContainer] com.atlassian.plugin.osgi.container.OsgiContainerException: Cannot start plugin: com.example.plugins.tutorial.confluence.tutorial-confluence-macro-demo-tests
[INFO] [talledLocalContainer]   at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:407)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.impl.AbstractPlugin.enable(AbstractPlugin.java:286)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.manager.PluginEnabler.actualEnable(PluginEnabler.java:130)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.manager.PluginEnabler.enable(PluginEnabler.java:107)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.manager.DefaultPluginManager.enableDependentPlugins(DefaultPluginManager.java:1079)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:1055)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.manager.DefaultPluginManager.lateStartup(DefaultPluginManager.java:536)
[INFO] [talledLocalContainer]   at com.atlassian.confluence.plugin.ConfluencePluginManager.lateStartup(ConfluencePluginManager.java:137)
[INFO] [talledLocalContainer]   at com.atlassian.confluence.plugin.PluginFrameworkContextListener.contextInitialized(PluginFrameworkContextListener.java:79)
[INFO] [talledLocalContainer]   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4760)
[INFO] [talledLocalContainer]   at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5184)
[INFO] [talledLocalContainer]   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
[INFO] [talledLocalContainer]   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
[INFO] [talledLocalContainer]   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
[INFO] [talledLocalContainer]   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
[INFO] [talledLocalContainer]   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:919)
[INFO] [talledLocalContainer]   at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1704)
[INFO] [talledLocalContainer]   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[INFO] [talledLocalContainer]   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[INFO] [talledLocalContainer]   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[INFO] [talledLocalContainer]   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[INFO] [talledLocalContainer]   at java.lang.Thread.run(Thread.java:745)
[INFO] [talledLocalContainer] Caused by: org.osgi.framework.BundleException: Unresolved constraint in bundle com.example.plugins.tutorial.confluence.tutorial-confluence-macro-demo-tests [238]: Unable to resolve 238.0: missing requirement [238.0] osgi.wiring.package; (osgi.wiring.package=com.example.plugins.tutorial.co
[INFO] [talledLocalContainer]   at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3974)
[INFO] [talledLocalContainer]   at org.apache.felix.framework.Felix.startBundle(Felix.java:2037)
[INFO] [talledLocalContainer]   at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:955)
[INFO] [talledLocalContainer]   at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:942)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:388)
[INFO] [talledLocalContainer]   ... 21 more
[INFO] [talledLocalContainer] 2016-03-24 14:13:13,727 INFO [ThreadPoolAsyncTaskExecutor::Thread 62] [plugins.quickreload.config.AutoRefresher] startupMessage
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer]  Quick Reload - ←[34mA watched plugin never boils!←[39m
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer]   Tracking the following directories for changes :
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer]           ←[33mC:\atlassian\tutorial-confluence-macro-demo\target←[39m
[INFO] [talledLocalContainer] ←[33m
[INFO] [talledLocalContainer]   The system property 'plugin.resource.directories' is as follows :
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer]           ←[33mC:\atlassian\tutorial-confluence-macro-demo\src\main\resources←[39m
[INFO] [talledLocalContainer]           ←[33mC:\atlassian\tutorial-confluence-macro-demo\src\test\resources←[39m
[INFO] [talledLocalContainer] ←[39m
[INFO] [talledLocalContainer]   The Control Panel page is available at :
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer]           ←[33m/plugins/servlet/qr←[39m
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer]   The REST API is available at :
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer]           ←[33m/rest/qr/1.0/api←[39m
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer]   Web Resource batching and caching is currently ←[32menabled←[39m
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer] 2016-03-24 14:13:22,967 WARN [localhost-startStop-1] [confluence.plugin.dev.DeprecatedPluginModuleListener] findAndLogDeprecations Class com.atlassian.applinks.api.auth.types.TrustedAppsAuthenticationProvider of module 'com.atlassian.applinks.applinks-trustedapps-plugin:confluence-inbound
[INFO] [talledLocalContainer] 2016-03-24 14:13:24,753 WARN [localhost-startStop-1] [confluence.plugin.dev.DeprecatedPluginModuleListener] findAndLogDeprecations Class com.atlassian.confluence.plugins.dailysummary.analytics.SummaryEmailTrackingServlet of module 'com.atlassian.confluence.plugins.confluence-daily-summary
[INFO] [talledLocalContainer] 2016-03-24 14:13:25,991 WARN [localhost-startStop-1] [confluence.plugin.dev.DeprecatedPluginModuleListener] findAndLogDeprecations Class com.atlassian.confluence.plugins.like.notifications.NotificationListener of module 'com.atlassian.confluence.plugins.confluence-like:notificationListene
[INFO] [talledLocalContainer] 2016-03-24 14:13:26,804 WARN [localhost-startStop-1] [confluence.plugin.dev.DeprecatedPluginModuleListener] findAndLogDeprecations Type com.atlassian.plugin.webresource.transformer.WebResourceTransformer inherited by class com.atlassian.upm.template.UnderscoreTemplateWebResourceTransforme
[INFO] [talledLocalContainer] 2016-03-24 14:13:26,806 WARN [localhost-startStop-1] [confluence.plugin.dev.DeprecatedPluginModuleListener] findAndLogDeprecations Type com.atlassian.plugin.webresource.transformer.WebResourceTransformer inherited by class com.atlassian.upm.notification.NotificationWebResourceTransformer
[INFO] [talledLocalContainer] 2016-03-24 14:13:26,969 WARN [localhost-startStop-1] [atlassian.confluence.cache.TransactionalCacheFactory] logNonTxUsageWarning Update operation performed on transactional cache [com.atlassian.confluence.plugin.CachingPluginStateStore] outside of a transaction. All updates to this cache
[INFO] [talledLocalContainer] 2016-03-24 14:13:26,969 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] lateStartup Plugin system lateStartup finished in 0:00:21.440
[INFO] [talledLocalContainer] 2016-03-24 14:13:27,004 INFO [lifecycle:thread-1] [sal.core.upgrade.DefaultPluginUpgradeManager] upgradeInternal Running plugin upgrade tasks...
[INFO] [talledLocalContainer] 2016-03-24 14:13:27,013 INFO [lifecycle:thread-1] [sal.core.upgrade.PluginUpgrader] doUpgrade Upgrading plugin com.atlassian.plugins.atlassian-whitelist-core-plugin
[INFO] [talledLocalContainer] 2016-03-24 14:13:27,020 INFO [lifecycle:thread-1] [sal.core.upgrade.PluginUpgrader] upgradeTaskSucceeded Upgraded plugin com.atlassian.plugins.atlassian-whitelist-core-plugin to version 1 - Migrate existing application links to the whitelist.
[INFO] [talledLocalContainer] 2016-03-24 14:13:27,023 INFO [lifecycle:thread-1] [sal.core.upgrade.PluginUpgrader] upgradeTaskSucceeded Upgraded plugin com.atlassian.plugins.atlassian-whitelist-core-plugin to version 2 - Migrate existing whitelist entries used by the RSS and HTML include macro.
[INFO] [talledLocalContainer] 2016-03-24 14:13:27,026 INFO [lifecycle:thread-1] [sal.core.upgrade.PluginUpgrader] upgradeTaskSucceeded Upgraded plugin com.atlassian.plugins.atlassian-whitelist-core-plugin to version 3 - Migrate existing Confluence Gadget whitelist data.
[INFO] [talledLocalContainer] 2016-03-24 14:13:27,026 INFO [lifecycle:thread-1] [sal.core.upgrade.PluginUpgrader] postUpgrade Plugin com.atlassian.plugins.atlassian-whitelist-core-plugin upgrade completed. Current version is: 3
[INFO] [talledLocalContainer] 2016-03-24 14:13:27,035 INFO [lifecycle:thread-1] [sal.core.upgrade.PluginUpgrader] doUpgrade Upgrading plugin com.atlassian.confluence.plugins.confluence-roadmap-plugin
[INFO] [talledLocalContainer] 2016-03-24 14:13:27,612 INFO [lifecycle:thread-1] [sal.core.upgrade.PluginUpgrader] upgradeTaskSucceeded Upgraded plugin com.atlassian.confluence.plugins.confluence-roadmap-plugin to version 6 - Remove the "currentspaces" parameter from Roadmap macros
[INFO] [talledLocalContainer] 2016-03-24 14:13:27,612 INFO [lifecycle:thread-1] [sal.core.upgrade.PluginUpgrader] postUpgrade Plugin com.atlassian.confluence.plugins.confluence-roadmap-plugin upgrade completed. Current version is: 6
[INFO] [talledLocalContainer] 2016-03-24 14:13:27,614 INFO [lifecycle:thread-1] [sal.core.upgrade.PluginUpgrader] doUpgrade Upgrading plugin com.atlassian.upm.atlassian-universal-plugin-manager-plugin
[INFO] [talledLocalContainer] 2016-03-24 14:13:27,703 INFO [lifecycle:thread-1] [sal.core.upgrade.PluginUpgrader] upgradeTaskSucceeded Upgraded plugin com.atlassian.upm.atlassian-universal-plugin-manager-plugin to version 5 - Posts an initial topology report for a new UPM instance.
[INFO] [talledLocalContainer] 2016-03-24 14:13:27,703 INFO [lifecycle:thread-1] [sal.core.upgrade.PluginUpgrader] postUpgrade Plugin com.atlassian.upm.atlassian-universal-plugin-manager-plugin upgrade completed. Current version is: 5
[INFO] [talledLocalContainer] 2016-03-24 14:13:27,705 INFO [lifecycle:thread-1] [sal.core.upgrade.PluginUpgrader] doUpgrade Upgrading plugin com.atlassian.support.stp
[INFO] [talledLocalContainer] 2016-03-24 14:13:27,726 INFO [lifecycle:thread-1] [sal.core.upgrade.PluginUpgrader] upgradeTaskSucceeded Upgraded plugin com.atlassian.support.stp to version 1 - Verify if the obsolete Health Check scheduler exists and remove it.
[INFO] [talledLocalContainer] 2016-03-24 14:13:27,727 INFO [lifecycle:thread-1] [sal.core.upgrade.PluginUpgrader] postUpgrade Plugin com.atlassian.support.stp upgrade completed. Current version is: 1
[INFO] [talledLocalContainer] 2016-03-24 14:13:27,748 INFO [lifecycle:thread-5] [gadgets.renderer.internal.BlobCrypterImpl] onLifecycleEvent onLifecycleEvent LIFECYCLE_AWARE_ON_START

 

Because the stacktrace doesn't look so nice here are three screenshots of the stacktrace:

 

 

confluence10.PNG

confluence11.PNG

confluence12.PNG

 

Can somebody please help be out here?

Thanks a lot,

Hauke

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 24, 2016
Class.forName

will not work like this in P2 add-ons (class loading specifics of OSGI container)

You can try adding your driver jar into WEB-INF/lib of your Confluence server and restarting the server

 

Hauke Gulich March 24, 2016

Where is the lib folder located if I run confluence on dev-mode (via atlas-run) ?

I removed the

Class.forName

line and it still works standalone but not inside the macro. I guess its because of the classloader?

Sandro Hörler August 9, 2017

I have the same problem and its just annoying. There is no support  at all... So my last attemp is to create osgi package for the db driver

Or  do you have found any solution?

Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 11, 2017

Important bit is that if you connect to external database you will need to place a JDBC database driver to your database into Confluence installation directory under WEB-INF/lib or even into shared libraries to avoid classloading issues

Preferably, it should be in <install-dir>/lib - this is the directory that has other tomcat jars. If you have a much older version of Confluence that does not have this directory, look for <install-dir>/common/lib instead.

 

Class.forName will not work if the driver is bundled with another OSGI plugin

 

PS, a restart to Confluence server will be required so the driver will be loaded

Sandro Hörler August 15, 2017

It worked, after i added the following line to the plugin-descriptor:

<bundle-instructions>
<Import-Package>org.postgresql.*;resolution:=optional</Import-Package>
</bundle-instructions>

 

and then the following:


@Override
public Connection getDatabaseConnection() throws SQLException {
if (connection != null && !connection.isClosed()) {
return connection;
}
try {
Class.forName("org.postgresql.Driver");
} catch (ClassNotFoundException ex) {
log.error("Could not load Database Driver: " + ex.getCause() + " " + ex.getMessage());
}
connection = DriverManager.getConnection("jdbc:postgresql://localhost:10000/{DB-NAME}", "postgres",
"");
return connection;
}

 Important is to clean and rebuild the package

TAGS
AUG Leaders

Atlassian Community Events