{"action":"created","issue":{"url":"https://api.github.com/repos/vibur/vibur-dbcp/issues/4","labels_url":"https://api.github.com/repos/vibur/vibur-dbcp/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/vibur/vibur-dbcp/issues/4/comments","events_url":"https://api.github.com/repos/vibur/vibur-dbcp/issues/4/events","html_url":"https://github.com/vibur/vibur-dbcp/issues/4","id":120076683,"number":4,"title":"concurrentlinkedhashmap dependency non-optional when declared as global JNDI Resource","user":{"login":"dcalde","id":785030,"avatar_url":"https://avatars.githubusercontent.com/u/785030?v=3","gravatar_id":"","url":"https://api.github.com/users/dcalde","html_url":"https://github.com/dcalde","followers_url":"https://api.github.com/users/dcalde/followers","following_url":"https://api.github.com/users/dcalde/following{/other_user}","gists_url":"https://api.github.com/users/dcalde/gists{/gist_id}","starred_url":"https://api.github.com/users/dcalde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcalde/subscriptions","organizations_url":"https://api.github.com/users/dcalde/orgs","repos_url":"https://api.github.com/users/dcalde/repos","events_url":"https://api.github.com/users/dcalde/events{/privacy}","received_events_url":"https://api.github.com/users/dcalde/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"simeonmalchev","id":10598366,"avatar_url":"https://avatars.githubusercontent.com/u/10598366?v=3","gravatar_id":"","url":"https://api.github.com/users/simeonmalchev","html_url":"https://github.com/simeonmalchev","followers_url":"https://api.github.com/users/simeonmalchev/followers","following_url":"https://api.github.com/users/simeonmalchev/following{/other_user}","gists_url":"https://api.github.com/users/simeonmalchev/gists{/gist_id}","starred_url":"https://api.github.com/users/simeonmalchev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simeonmalchev/subscriptions","organizations_url":"https://api.github.com/users/simeonmalchev/orgs","repos_url":"https://api.github.com/users/simeonmalchev/repos","events_url":"https://api.github.com/users/simeonmalchev/events{/privacy}","received_events_url":"https://api.github.com/users/simeonmalchev/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-12-03T01:45:15Z","updated_at":"2015-12-04T01:01:53Z","closed_at":null,"body":"The pom.xml states that ConcurrentLinkedHashMap dependency is optional:\r\n\r\n        <!-- ConcurrentLinkedHashMap dependency is used for JDBC statement caching only,\r\n             that is disabled by default. If the client's application doesn't\r\n             enable the statement caching, it may safely exclude this dependency. -->\r\n        <dependency>\r\n            <groupId>com.googlecode.concurrentlinkedhashmap</groupId>\r\n            <artifactId>concurrentlinkedhashmap-lru</artifactId>\r\n            <version>${concurrentlinkedhashmap-lru.version}</version>\r\n        </dependency>\r\n\r\nHowever when using vibur as a global JNDI resource in tomcat, it is required:\r\n\r\n    03-Dec-2015 11:34:15.544 SEVERE [main] org.apache.catalina.startup.Catalina.start The required Server component failed to start so Tomcat is unable to start.\r\n     org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]\r\n        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)\r\n        at org.apache.catalina.startup.Catalina.start(Catalina.java:625)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n        at java.lang.reflect.Method.invoke(Method.java:497)\r\n        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351)\r\n        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)\r\n    Caused by: java.lang.NoClassDefFoundError: com/googlecode/concurrentlinkedhashmap/EvictionListener\r\n        at java.lang.Class.getDeclaredConstructors0(Native Method)\r\n        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)\r\n        at java.lang.Class.getConstructor0(Class.java:3075)\r\n        at java.lang.Class.getConstructor(Class.java:1825)\r\n        at org.apache.tomcat.util.modeler.modules.MbeansDescriptorsIntrospectionSource.isBeanCompatible(MbeansDescriptorsIntrospectionSource.java:166)\r\n        at org.apache.tomcat.util.modeler.modules.MbeansDescriptorsIntrospectionSource.supportedType(MbeansDescriptorsIntrospectionSource.java:139)\r\n        at org.apache.tomcat.util.modeler.modules.MbeansDescriptorsIntrospectionSource.initMethods(MbeansDescriptorsIntrospectionSource.java:241)\r\n        at org.apache.tomcat.util.modeler.modules.MbeansDescriptorsIntrospectionSource.createManagedBean(MbeansDescriptorsIntrospectionSource.java:299)\r\n        at org.apache.tomcat.util.modeler.modules.MbeansDescriptorsIntrospectionSource.execute(MbeansDescriptorsIntrospectionSource.java:77)\r\n        at org.apache.tomcat.util.modeler.modules.MbeansDescriptorsIntrospectionSource.loadDescriptors(MbeansDescriptorsIntrospectionSource.java:70)\r\n        at org.apache.tomcat.util.modeler.Registry.load(Registry.java:582)\r\n        at org.apache.tomcat.util.modeler.Registry.findManagedBean(Registry.java:485)\r\n        at org.apache.tomcat.util.modeler.Registry.registerComponent(Registry.java:614)\r\n        at org.apache.catalina.core.NamingContextListener.addResource(NamingContextListener.java:1085)\r\n        at org.apache.catalina.core.NamingContextListener.createNamingContext(NamingContextListener.java:663)\r\n        at org.apache.catalina.core.NamingContextListener.lifecycleEvent(NamingContextListener.java:256)\r\n        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:95)\r\n        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)\r\n        at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:761)\r\n        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)\r\n        ... 7 more\r\n    Caused by: java.lang.ClassNotFoundException: com.googlecode.concurrentlinkedhashmap.EvictionListener\r\n        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)\r\n        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)\r\n        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)\r\n        ... 27 more"},"comment":{"url":"https://api.github.com/repos/vibur/vibur-dbcp/issues/comments/161841467","html_url":"https://github.com/vibur/vibur-dbcp/issues/4#issuecomment-161841467","issue_url":"https://api.github.com/repos/vibur/vibur-dbcp/issues/4","id":161841467,"user":{"login":"simeonmalchev","id":10598366,"avatar_url":"https://avatars.githubusercontent.com/u/10598366?v=3","gravatar_id":"","url":"https://api.github.com/users/simeonmalchev","html_url":"https://github.com/simeonmalchev","followers_url":"https://api.github.com/users/simeonmalchev/followers","following_url":"https://api.github.com/users/simeonmalchev/following{/other_user}","gists_url":"https://api.github.com/users/simeonmalchev/gists{/gist_id}","starred_url":"https://api.github.com/users/simeonmalchev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simeonmalchev/subscriptions","organizations_url":"https://api.github.com/users/simeonmalchev/orgs","repos_url":"https://api.github.com/users/simeonmalchev/repos","events_url":"https://api.github.com/users/simeonmalchev/events{/privacy}","received_events_url":"https://api.github.com/users/simeonmalchev/received_events","type":"User","site_admin":false},"created_at":"2015-12-04T01:01:52Z","updated_at":"2015-12-04T01:01:52Z","body":"No worries, thanks Daniel.\r\n\r\nI will close this issue as invalid and I'll fix the other JNDI issue.\r\n\r\nPlease let me know if you encounter any other issues.\r\n"}}