{"id":20483641,"url":"https://github.com/cbuschka/glassfish3-jdk8","last_synced_at":"2026-05-11T09:32:44.700Z","repository":{"id":95275727,"uuid":"447369984","full_name":"cbuschka/glassfish3-jdk8","owner":"cbuschka","description":"A dockerized glassfish 3.1.2.2 on jdk8","archived":false,"fork":false,"pushed_at":"2022-12-01T22:35:33.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-16T04:24:42.755Z","etag":null,"topics":["glassfish3","java-7","java-8","jdk7","jdk8"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cbuschka.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-12T21:02:40.000Z","updated_at":"2022-01-13T20:59:34.000Z","dependencies_parsed_at":"2023-03-30T13:18:04.426Z","dependency_job_id":null,"html_url":"https://github.com/cbuschka/glassfish3-jdk8","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbuschka%2Fglassfish3-jdk8","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbuschka%2Fglassfish3-jdk8/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbuschka%2Fglassfish3-jdk8/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbuschka%2Fglassfish3-jdk8/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cbuschka","download_url":"https://codeload.github.com/cbuschka/glassfish3-jdk8/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242058208,"owners_count":20065066,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["glassfish3","java-7","java-8","jdk7","jdk8"],"created_at":"2024-11-15T16:18:13.642Z","updated_at":"2026-05-11T09:32:39.649Z","avatar_url":"https://github.com/cbuschka.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A dockerized glassfish 3.1.2.2 on jdk8\n\n### RESULTS: Glassfish 3 runs on jdk 8, but cannot deploy ears compiled in jdk 8 class file format\n\n## Prerequisites\n\n* GNU make\n* curl\n* docker\n\n## Usage\n\n```bash\nmake run\n```\n\n... wait for server and point your browser to https://localhost:4848/. (Accept the insecure certificate :/)\n\n## Step 1: Make glassfish 3 start on jdk 8\n\nThe makefile downloads glassfish 3.1.2.2, applies the following patches and converts it to a tgz:\n\n* fix osgi config glassfish3/glassfish/config/osgi.properties to run with jdk 8\n\n```\njre-1.8=${jre-1.7}\n```\n\nSo glassfish3 is able to start on jdk 8.\n\nOn container start insecure tls algorithms will be be reenabled to make the admin console work.\n\n## Step 2: Glassfish 3 still cannot load jdk 8 compiled code\n\nA possible fix is:\n\n* replace asm-all 3.3 with 5.2 (which is jdk 8 class file format ready) in glassfish3/glassfish/modules/asm-all-repackaged.jar\n\nUNFORTUNATELY THIS DOES NOT WORK!\n\n```\n[#|2022-01-13T20:33:22.342+0000|SEVERE|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=82;_ThreadName=Thread-40;|Exception while deploying the app [__admingui]|#]\n\n[#|2022-01-13T20:33:22.343+0000|SEVERE|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=82;_ThreadName=Thread-40;|Implementing class\njava.lang.IncompatibleClassChangeError: Implementing class\n       at java.lang.ClassLoader.defineClass1(Native Method)\n       at java.lang.ClassLoader.defineClass(ClassLoader.java:756)\n       at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.findClass(BundleWiringImpl.java:2128)\n       at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1432)\n       at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:72)\n       at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1843)\n       at java.lang.ClassLoader.loadClass(ClassLoader.java:351)\n       at org.glassfish.hk2.classmodel.reflect.ParsingContext$Builder.build(ParsingContext.java:161)\n       at com.sun.enterprise.v3.server.ApplicationLifecycle.getDeployableTypes(ApplicationLifecycle.java:505)\n       at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:351)\n-       at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:375)\n       at com.sun.enterprise.v3.admin.adapter.InstallerThread.load(InstallerThread.java:210)\n       at com.sun.enterprise.v3.admin.adapter.InstallerThread.run(InstallerThread.java:108)\n|#]\n```\n\n## Infos\nThe fixes are based on:\n\n* [JDK issue](https://bugs.openjdk.java.net/browse/JDK-8020071)\n* [stackoverflow thread about gf3 on jdk8](https://stackoverflow.com/questions/22462936/will-it-be-possible-to-use-java-8-on-glassfish-3)\n* [missing java 8 class file format support in objectweb asm](https://itqna.net/questions/12911/error-making-application-deploy-glassfish-orgobjectwebasmcla)\n\n## License\nCopyright (c) 2022 by [Cornelius Buschka](https://github.com/cbuschka).\n\n[MIT](./license.txt)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbuschka%2Fglassfish3-jdk8","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcbuschka%2Fglassfish3-jdk8","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbuschka%2Fglassfish3-jdk8/lists"}