|
64 KB
![]() |
15 KB
|
111 KB
|
129 KB
|
203 KB
Refer to this NetBeans issue: Cannot start NetBeans Runtime Container in web app
Here ia my analysis on why ADServer is getting ClassCircularityError:
Once ADServer/Tomcat reached the state described in item 3, no new classes could be loaded further
Refer to this NetBeans issue: Cannot start NetBeans Runtime Container in web app
Here ia my analysis on why ADServer is getting ClassCircularityError:
Once ADServer/Tomcat reached the state described in item 3, no new classes could be loaded further
Is com.aquafold.editor.standalone.api.Bootstrap.bootstrap() called at any point?
Is com.aquafold.editor.standalone.api.Bootstrap.bootstrap() called at any point?
Is com.aquafold.editor.standalone.api.Bootstrap.bootstrap() called at any point?
@emil - No. That method was never called. I tried calling it in webapp initialization and that seemed to have fixed the ClassCircularityError problem. I looked the body of that method and found references to the ClassCircularityError problem. So it seems that the only code we need, in the context of an webapp (which doesn't need any editor UI), is the following:
Class.forName("org.netbeans.JarClassLoader$JarURLStreamHandler");
I tried the above only during webapp initialization and it also solved this issue. What are your thoughts of just doing the above?
Is com.aquafold.editor.standalone.api.Bootstrap.bootstrap() called at any point?
@emil - No. That method was never called. I tried calling it in webapp initialization and that seemed to have fixed the ClassCircularityError problem. I looked the body of that method and found references to the ClassCircularityError problem. So it seems that the only code we need, in the context of an webapp (which doesn't need any editor UI), is the following:
Class.forName("org.netbeans.JarClassLoader$JarURLStreamHandler");
I tried the above only during webapp initialization and it also solved this issue. What are your thoughts of just doing the above?
Yes, as long as you don’t need anything else feel free to just call Class.forName("org.netbeans.JarClassLoader$JarURLStreamHandler");
Yes, as long as you don’t need anything else feel free to just call Class.forName("org.netbeans.JarClassLoader$JarURLStreamHandler");
@kin-hong: I've re-opened in order to have this fix backported to v16 as well
@kin-hong: I've re-opened in order to have this fix backported to v16 as well
Verified in ADS 16.0.8 and 17.0.0-beta-4 both.
Verified in ADS 16.0.8 and 17.0.0-beta-4 both.
Verified in ADServer-17.0.0.-GA-21. Refer updated screenshot '2948-ADserver-17-Ga-21.png'
Verified in ADServer-17.0.0.-GA-21. Refer updated screenshot '2948-ADserver-17-Ga-21.png'
Verified in ADServer-18.0.0-beta-32 . Refer updated screenshot '2948_updated_ADS-v-18.png'
Verified in ADServer-18.0.0-beta-32 . Refer updated screenshot '2948_updated_ADS-v-18.png'
Issue #2948 |
Closed |
Fixed |
Resolved |
Completion |
No due date |
Fixed Build 16.0.8, 17.0.0-beta-4 |
No time estimate |
1 issue link |
relates to #2978
Issue #2978NetBeans initialization error in log file |
This scripts working fine in ADStudio. This is also observed in V16