{"action":"created","issue":{"url":"https://api.github.com/repos/twosigma/beaker-notebook/issues/2658","labels_url":"https://api.github.com/repos/twosigma/beaker-notebook/issues/2658/labels{/name}","comments_url":"https://api.github.com/repos/twosigma/beaker-notebook/issues/2658/comments","events_url":"https://api.github.com/repos/twosigma/beaker-notebook/issues/2658/events","html_url":"https://github.com/twosigma/beaker-notebook/issues/2658","id":110393303,"number":2658,"title":"Can't use Grape.grab() from groovy cell","user":{"login":"altavir","id":9514268,"avatar_url":"https://avatars.githubusercontent.com/u/9514268?v=3","gravatar_id":"","url":"https://api.github.com/users/altavir","html_url":"https://github.com/altavir","followers_url":"https://api.github.com/users/altavir/followers","following_url":"https://api.github.com/users/altavir/following{/other_user}","gists_url":"https://api.github.com/users/altavir/gists{/gist_id}","starred_url":"https://api.github.com/users/altavir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/altavir/subscriptions","organizations_url":"https://api.github.com/users/altavir/orgs","repos_url":"https://api.github.com/users/altavir/repos","events_url":"https://api.github.com/users/altavir/events{/privacy}","received_events_url":"https://api.github.com/users/altavir/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/twosigma/beaker-notebook/labels/Bug","name":"Bug","color":"fc2929"},{"url":"https://api.github.com/repos/twosigma/beaker-notebook/labels/Core%20Server","name":"Core Server","color":"207de5"},{"url":"https://api.github.com/repos/twosigma/beaker-notebook/labels/Infrastructure","name":"Infrastructure","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/twosigma/beaker-notebook/milestones/9","html_url":"https://github.com/twosigma/beaker-notebook/milestones/v1.5","labels_url":"https://api.github.com/repos/twosigma/beaker-notebook/milestones/9/labels","id":1278532,"number":9,"title":"v1.5","description":"","creator":{"login":"scottdraves","id":963093,"avatar_url":"https://avatars.githubusercontent.com/u/963093?v=3","gravatar_id":"","url":"https://api.github.com/users/scottdraves","html_url":"https://github.com/scottdraves","followers_url":"https://api.github.com/users/scottdraves/followers","following_url":"https://api.github.com/users/scottdraves/following{/other_user}","gists_url":"https://api.github.com/users/scottdraves/gists{/gist_id}","starred_url":"https://api.github.com/users/scottdraves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottdraves/subscriptions","organizations_url":"https://api.github.com/users/scottdraves/orgs","repos_url":"https://api.github.com/users/scottdraves/repos","events_url":"https://api.github.com/users/scottdraves/events{/privacy}","received_events_url":"https://api.github.com/users/scottdraves/received_events","type":"User","site_admin":false},"open_issues":110,"closed_issues":15,"state":"open","created_at":"2015-08-29T05:44:44Z","updated_at":"2015-10-10T03:31:53Z","due_on":"2015-12-31T05:00:00Z","closed_at":null},"comments":2,"created_at":"2015-10-08T08:03:14Z","updated_at":"2015-10-10T03:31:56Z","closed_at":null,"body":"I am trying to attach a mathematical library from groovy environment:\r\n```\r\nimport groovy.grape.Grape\r\nGrape.grab(group:'org.apache.commons', module:'commons-math3', version:'3.5')\r\n```\r\nThe only thing I get is an error:\r\n```\r\njava.lang.LinkageError: loader constraint violation: when resolving overridden method \"com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.getParser()Lorg/xml/sax/Parser;\" the class loader (instance of com/twosigma/beaker/jvm/classloader/DynamicClassLoaderSimple) of the current class, com/sun/org/apache/xerces/internal/jaxp/SAXParserImpl, and its superclass loader (instance of ), have different Class objects for the type org/xml/sax/Parser used in the signature\r\n```\r\nI believe that xerces is a part of JVM and it is definitely not loaded by commons-math. So it seems that the problem is in the Beaker class loader. I also tried to grab other libraries with the same result. \r\n\r\nIt would be very sad if we could not use grapes from Beaker because it is very important tool. \r\n\r\n**EDIT:** since groovy imports does not work across cells (which is not very good), grapes should be included in language properties."},"comment":{"url":"https://api.github.com/repos/twosigma/beaker-notebook/issues/comments/147028799","html_url":"https://github.com/twosigma/beaker-notebook/issues/2658#issuecomment-147028799","issue_url":"https://api.github.com/repos/twosigma/beaker-notebook/issues/2658","id":147028799,"user":{"login":"scottdraves","id":963093,"avatar_url":"https://avatars.githubusercontent.com/u/963093?v=3","gravatar_id":"","url":"https://api.github.com/users/scottdraves","html_url":"https://github.com/scottdraves","followers_url":"https://api.github.com/users/scottdraves/followers","following_url":"https://api.github.com/users/scottdraves/following{/other_user}","gists_url":"https://api.github.com/users/scottdraves/gists{/gist_id}","starred_url":"https://api.github.com/users/scottdraves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottdraves/subscriptions","organizations_url":"https://api.github.com/users/scottdraves/orgs","repos_url":"https://api.github.com/users/scottdraves/repos","events_url":"https://api.github.com/users/scottdraves/events{/privacy}","received_events_url":"https://api.github.com/users/scottdraves/received_events","type":"User","site_admin":false},"created_at":"2015-10-10T03:31:56Z","updated_at":"2015-10-10T03:31:56Z","body":"confirmed: https://pub.beakernotebook.com/#/publications/56188486-7d2e-4bf3-8a18-b3977633eb38\r\n\r\nour big plan is to add a package manager UI to the language manager: https://github.com/twosigma/beaker-notebook/issues/1350\r\n\r\nin the meantime, this seems like a class loader bug, we'll look into it.\r\n\r\nplus: https://github.com/twosigma/beaker-notebook/issues/2695"}}