{"action":"created","issue":{"url":"https://api.github.com/repos/payara/Payara/issues/437","labels_url":"https://api.github.com/repos/payara/Payara/issues/437/labels{/name}","comments_url":"https://api.github.com/repos/payara/Payara/issues/437/comments","events_url":"https://api.github.com/repos/payara/Payara/issues/437/events","html_url":"https://github.com/payara/Payara/issues/437","id":106270949,"number":437,"title":"Cannot start payara after updating weld to 2.3 and guava to 18 ","user":{"login":"drupalspring","id":5574350,"avatar_url":"https://avatars.githubusercontent.com/u/5574350?v=3","gravatar_id":"","url":"https://api.github.com/users/drupalspring","html_url":"https://github.com/drupalspring","followers_url":"https://api.github.com/users/drupalspring/followers","following_url":"https://api.github.com/users/drupalspring/following{/other_user}","gists_url":"https://api.github.com/users/drupalspring/gists{/gist_id}","starred_url":"https://api.github.com/users/drupalspring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drupalspring/subscriptions","organizations_url":"https://api.github.com/users/drupalspring/orgs","repos_url":"https://api.github.com/users/drupalspring/repos","events_url":"https://api.github.com/users/drupalspring/events{/privacy}","received_events_url":"https://api.github.com/users/drupalspring/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-14T04:55:51Z","updated_at":"2015-09-17T09:08:59Z","closed_at":null,"body":"I download payara (4.1.153 Full Java EE) and want to update the weld to 2.3 and guava to 18 because of the following bugs:\r\n\r\nhttps://github.com/payara/Payara/issues/376\r\nhttps://github.com/payara/Payara/issues/431 \r\n\r\nMy update method is simply to replace `guava.jar` and `weld-osgi-bundle.jar` inside `modules` folders by jars with latest version . For Weld , I have already replaced it with `Weld OSGi bundle` which is downloaded from http://search.maven.org/#artifactdetails%7Corg.jboss.weld%7Cweld-osgi-bundle%7C2.3.0.CR2%7Cjar . I can successfully update weld and guava in glassfish 4.1 in this way but payara throws the following errors during the server start:\r\n\r\n> Sep 14, 2015 12:35:07 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner createBundleProvisioner\r\nINFO: Create bundle provisioner class = class com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.\r\nSep 14, 2015 12:35:07 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations\r\nWARNING: Skipping entry  because it is not an absolute URI.\r\nSep 14, 2015 12:35:07 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations\r\nWARNING: Skipping entry  because it is not an absolute URI.\r\nException in thread \"main\" java.lang.reflect.InvocationTargetException\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:483)\r\n  at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:97)\r\n  at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:54)\r\nCaused by: com.sun.enterprise.module.ResolveError: Failed to start OSGiModuleImpl:: Bundle = [org.glassfish.main.batch.glassfish-batch-connector [95]], State = [NEW]\r\n  at org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:218)\r\n  at org.jvnet.hk2.osgiadapter.OsgiPopulatorPostProcessor$1.loadClass(OsgiPopulatorPostProcessor.java:77)\r\n  at org.jvnet.hk2.config.ConfigModel.getProxyType(ConfigModel.java:167)\r\n  at org.jvnet.hk2.config.Dom.getImplementationClass(Dom.java:1016)\r\n  at org.jvnet.hk2.internal.JrServiceLocatorProxy.registerServiceClass(JrServiceLocatorProxy.java:211)\r\n  at org.jvnet.hk2.internal.ServiceLocatorImpl.reifyDescriptor(ServiceLocatorImpl.java:420)\r\n  at org.jvnet.hk2.internal.ServiceLocatorImpl.reifyDescriptor(ServiceLocatorImpl.java:430)\r\n  at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)\r\n  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n  at java.lang.reflect.Method.invoke(Method.java:483)\r\n  at org.jvnet.hk2.internal.JrServiceLocatorProxy.invoke(JrServiceLocatorProxy.java:69)\r\n  at org.glassfish.hk2.api.ServiceLocator_$$_jvst307_0.reifyDescriptor(ServiceLocator_$$_jvst307_0.java)\r\n  at org.jvnet.hk2.config.Dom.register(Dom.java:208)\r\n  at org.jvnet.hk2.config.ConfigParser.handleElement(ConfigParser.java:252)\r\n  at org.jvnet.hk2.config.ConfigParser.handleElement(ConfigParser.java:190)\r\n  at org.jvnet.hk2.config.ConfigParser.handleElement(ConfigParser.java:231)\r\n  at org.jvnet.hk2.config.ConfigParser.handleElement(ConfigParser.java:238)\r\n  at org.jvnet.hk2.config.ConfigParser.handleElement(ConfigParser.java:238)\r\n  at org.jvnet.hk2.config.ConfigParser.handleElement(ConfigParser.java:190)\r\n  at org.jvnet.hk2.config.ConfigParser.parse(ConfigParser.java:100)\r\n  at org.jvnet.hk2.config.ConfigParser.parse(ConfigParser.java:94)\r\n  at org.glassfish.config.support.DomainXml.parseDomainXml(DomainXml.java:259)\r\n  at org.glassfish.config.support.DomainXml.run(DomainXml.java:117)\r\n  at org.jvnet.hk2.config.ConfigurationPopulator.populateConfig(ConfigurationPopulator.java:58)\r\n  at org.glassfish.hk2.bootstrap.HK2Populator.populateConfig(HK2Populator.java:106)\r\n  at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.populateConfig(AbstractModulesRegistryImpl.java:211)\r\n  at com.sun.enterprise.module.bootstrap.Main.createServiceLocator(Main.java:273)\r\n  at org.jvnet.hk2.osgiadapter.HK2Main.createServiceLocator(HK2Main.java:120)\r\n  at com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRuntime.newGlassFish(EmbeddedOSGiGlassFishRuntime.java:95)\r\n  at com.sun.enterprise.glassfish.bootstrap.GlassFishRuntimeDecorator.newGlassFish(GlassFishRuntimeDecorator.java:68)\r\n  at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntime.newGlassFish(OSGiGlassFishRuntime.java:91)\r\n  at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:113)\r\n  ... 6 more\r\nCaused by: org.osgi.framework.BundleException: Unresolved constraint in bundle org.glassfish.main.batch.glassfish-batch-connector [95]: Unable to resolve 95.0: missing requirement [95.0] osgi.wiring.package; (osgi.wiring.package=com.ibm.jbatch.container.context.impl) [caused by: Unable to resolve 238.0: missing requirement [238.0] osgi.wiring.package; (osgi.wiring.package=org.glassfish.weld) [caused by: Unable to resolve 293.0: missing requirement [293.0] osgi.wiring.package; (&(osgi.wiring.package=org.jboss.weld)(version>=2.2.0)(!(version>=3.0.0)))]]\r\n  at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3974)\r\n  at org.apache.felix.framework.Felix.startBundle(Felix.java:2037)\r\n  at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:955)\r\n  at org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:210)\r\n>  ... 37 more\r\n"},"comment":{"url":"https://api.github.com/repos/payara/Payara/issues/comments/141018283","html_url":"https://github.com/payara/Payara/issues/437#issuecomment-141018283","issue_url":"https://api.github.com/repos/payara/Payara/issues/437","id":141018283,"user":{"login":"smillidge","id":939073,"avatar_url":"https://avatars.githubusercontent.com/u/939073?v=3","gravatar_id":"","url":"https://api.github.com/users/smillidge","html_url":"https://github.com/smillidge","followers_url":"https://api.github.com/users/smillidge/followers","following_url":"https://api.github.com/users/smillidge/following{/other_user}","gists_url":"https://api.github.com/users/smillidge/gists{/gist_id}","starred_url":"https://api.github.com/users/smillidge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smillidge/subscriptions","organizations_url":"https://api.github.com/users/smillidge/orgs","repos_url":"https://api.github.com/users/smillidge/repos","events_url":"https://api.github.com/users/smillidge/events{/privacy}","received_events_url":"https://api.github.com/users/smillidge/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T09:08:59Z","updated_at":"2015-09-17T09:08:59Z","body":"Hi this is an OSGI dependencies problem. I'm not sure why this is failing to bind as the requirement is for weld >= 2.2 and < 3.0 which should be satisfied. It maybe that the server will need to be built against the latest weld as the org.glassfish.weld package is unable to find the org.jboss.weld package of the correct version.\r\n\r\nYou could check the OSGI metadata in the org.glassfish.weld bundle to see if it corresponds to the metadata in your weld osgi bundle."}}