IDEMPIERE-3798:Move iDempiere default branch to openjdk 10 (spi-fly)

from warning: No classloader found for java.util.ServiceLoader:load(interface org.eclipse.jetty.websocket.api.extensions.Extension)

reason:
spi-fly on idempiere use Dynamic Weaving to lookup service provide
it use Bundle.ACTIVE event to start lookup service provide (see org.apache.aries.spifly.BaseActivator and ProviderBundleTrackerCustomizer)
so service provide need to active before it's used

solution:
active and set start level to 3 for some bundle relate websocket to plan support websocket

remain some warning:
10:39:31.747-----------> BaseActivator.log: No classloader found for java.util.ServiceLoader:load(interface org.atmosphere.inject.Injectable)
don't fix because it still work well, in case active this bundle will encounter issue relase package "org.atmosphere.annotation" not yet export
https://github.com/Atmosphere/atmosphere/issues/1896

WARNING: No classloader found for java.util.ServiceLoader:load(interface org.eclipse.jetty.xml.ConfigurationProcessorFactory)
WARNING: No classloader found for java.util.ServiceLoader:load(interface org.eclipse.jetty.xml.ConfigurationProcessorFactory)
just find SpringConfigurationProcessorFactory and SpringConfigurationProcessorFactory implement that service, it look for spring so don't need resolve

refer:http://aries.apache.org/modules/spi-fly.html
This commit is contained in:
hieplq 2018-11-09 13:02:20 +07:00
parent 56d065cfac
commit 9c5a53db6f
3 changed files with 13 additions and 4 deletions

View File

@ -41,7 +41,7 @@
<plugin id="org.adempiere.pipo" autoStart="true" startLevel="0" /> <plugin id="org.adempiere.pipo" autoStart="true" startLevel="0" />
<plugin id="org.adempiere.server" autoStart="true" startLevel="0" /> <plugin id="org.adempiere.server" autoStart="true" startLevel="0" />
<plugin id="org.adempiere.ui.zk" autoStart="true" startLevel="0" /> <plugin id="org.adempiere.ui.zk" autoStart="true" startLevel="0" />
<plugin id="org.apache.aries.spifly.dynamic.bundle" autoStart="true" startLevel="0" /> <plugin id="org.apache.aries.spifly.dynamic.bundle" autoStart="true" startLevel="1" />
<plugin id="org.apache.felix.webconsole" autoStart="true" startLevel="0" /> <plugin id="org.apache.felix.webconsole" autoStart="true" startLevel="0" />
<plugin id="org.eclipse.core.runtime" autoStart="true" startLevel="0" /> <plugin id="org.eclipse.core.runtime" autoStart="true" startLevel="0" />
<plugin id="org.eclipse.equinox.cm" autoStart="true" startLevel="0" /> <plugin id="org.eclipse.equinox.cm" autoStart="true" startLevel="0" />
@ -60,6 +60,10 @@
<plugin id="org.eclipse.jetty.http2.server" autoStart="true" startLevel="0" /> <plugin id="org.eclipse.jetty.http2.server" autoStart="true" startLevel="0" />
<plugin id="org.eclipse.jetty.osgi.boot" autoStart="true" startLevel="0" /> <plugin id="org.eclipse.jetty.osgi.boot" autoStart="true" startLevel="0" />
<plugin id="org.eclipse.jetty.osgi.httpservice" autoStart="true" startLevel="10" /> <plugin id="org.eclipse.jetty.osgi.httpservice" autoStart="true" startLevel="10" />
<plugin id="org.eclipse.jetty.websocket.common" autoStart="true" startLevel="3" />
<plugin id="org.eclipse.jetty.websocket.javax.websocket" autoStart="true" startLevel="3" />
<plugin id="org.eclipse.jetty.websocket.javax.websocket.server" autoStart="true" startLevel="3" />
<plugin id="org.eclipse.jetty.websocket.server" autoStart="true" startLevel="3" />
<plugin id="org.idempiere.felix.webconsole" autoStart="true" startLevel="0" /> <plugin id="org.idempiere.felix.webconsole" autoStart="true" startLevel="0" />
<plugin id="org.mortbay.jasper.apache-el" autoStart="true" startLevel="0" /> <plugin id="org.mortbay.jasper.apache-el" autoStart="true" startLevel="0" />
<plugin id="org.mortbay.jasper.apache-jsp" autoStart="true" startLevel="0" /> <plugin id="org.mortbay.jasper.apache-jsp" autoStart="true" startLevel="0" />

File diff suppressed because one or more lines are too long

View File

@ -17,6 +17,7 @@
<windowImages/> <windowImages/>
<launcher name="idempiere"> <launcher name="idempiere">
<win useIco="false"> <win useIco="false">
<bmp/> <bmp/>
@ -41,7 +42,7 @@
<plugin id="org.adempiere.pipo" autoStart="true" startLevel="0" /> <plugin id="org.adempiere.pipo" autoStart="true" startLevel="0" />
<plugin id="org.adempiere.server" autoStart="true" startLevel="0" /> <plugin id="org.adempiere.server" autoStart="true" startLevel="0" />
<plugin id="org.adempiere.ui.zk" autoStart="true" startLevel="0" /> <plugin id="org.adempiere.ui.zk" autoStart="true" startLevel="0" />
<plugin id="org.apache.aries.spifly.dynamic.bundle" autoStart="true" startLevel="0" /> <plugin id="org.apache.aries.spifly.dynamic.bundle" autoStart="true" startLevel="1" />
<plugin id="org.apache.felix.webconsole" autoStart="true" startLevel="0" /> <plugin id="org.apache.felix.webconsole" autoStart="true" startLevel="0" />
<plugin id="org.eclipse.core.runtime" autoStart="true" startLevel="0" /> <plugin id="org.eclipse.core.runtime" autoStart="true" startLevel="0" />
<plugin id="org.eclipse.equinox.cm" autoStart="true" startLevel="0" /> <plugin id="org.eclipse.equinox.cm" autoStart="true" startLevel="0" />
@ -60,6 +61,10 @@
<plugin id="org.eclipse.jetty.http2.server" autoStart="true" startLevel="0" /> <plugin id="org.eclipse.jetty.http2.server" autoStart="true" startLevel="0" />
<plugin id="org.eclipse.jetty.osgi.boot" autoStart="true" startLevel="0" /> <plugin id="org.eclipse.jetty.osgi.boot" autoStart="true" startLevel="0" />
<plugin id="org.eclipse.jetty.osgi.httpservice" autoStart="true" startLevel="10" /> <plugin id="org.eclipse.jetty.osgi.httpservice" autoStart="true" startLevel="10" />
<plugin id="org.eclipse.jetty.websocket.common" autoStart="true" startLevel="3" />
<plugin id="org.eclipse.jetty.websocket.javax.websocket" autoStart="true" startLevel="3" />
<plugin id="org.eclipse.jetty.websocket.javax.websocket.server" autoStart="true" startLevel="3" />
<plugin id="org.eclipse.jetty.websocket.server" autoStart="true" startLevel="3" />
<plugin id="org.idempiere.felix.webconsole" autoStart="true" startLevel="0" /> <plugin id="org.idempiere.felix.webconsole" autoStart="true" startLevel="0" />
<plugin id="org.mortbay.jasper.apache-el" autoStart="true" startLevel="0" /> <plugin id="org.mortbay.jasper.apache-el" autoStart="true" startLevel="0" />
<plugin id="org.mortbay.jasper.apache-jsp" autoStart="true" startLevel="0" /> <plugin id="org.mortbay.jasper.apache-jsp" autoStart="true" startLevel="0" />