[JBoss JIRA] (MODCLUSTER-566) Exclusion list cannot be pre-populated eagerly on startup
by Radoslav Husar (JIRA)
[ https://issues.jboss.org/browse/MODCLUSTER-566?page=com.atlassian.jira.pl... ]
Radoslav Husar updated MODCLUSTER-566:
--------------------------------------
Description: The exclusion list is unnecessarily populated eagerly on init(). This does not work in container such as WildFly where services are started asynchronously and virtual hosts and contexts can be added at any time. (was: With the following configuration:
{code}
<Listener className="org.jboss.modcluster.container.catalina.standalone.ModClusterListener"
loadMetricClass="org.jboss.modcluster.load.metric.impl.BusyConnectorsLoadMetric"
loadMetricCapacity="1"
loadHistory="9"
loadDecayFactor="2"
stickySession="true"
stickySessionForce="false"
stickySessionRemove="true"
advertise="true"
advertiseGroupAddress="224.0.1.105"
advertisePort="23364"
advertiseInterface="10.40.4.50"
excludedContexts="ROOT,docs,manager,host-manager,examples"
/>
{code}
And these contexts in webapps:
{code}
clusterbench docs examples host-manager manager ROOT
{code}
One expects this output on Mod_cluster manger console:
{code}
Virtual Host 1:
Contexts:
/clusterbench, Status: ENABLED Request: 0 Disable Stop
Aliases:
localhost
{code}
It works, unless you configure additional VirtualHosts:
{code}
<Host name="LOCALHOST" appBase="webapps" unpackWARs="true" autoDeploy="true">
<Alias>LOCALHOST</Alias>
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Host>
<Host name="KARM.BRQ.REDHAT.COM" appBase="webapps" unpackWARs="true" autoDeploy="true">
<Alias>KARM.BRQ.REDHAT.COM</Alias>
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Host>
{code}
result:
{code}
Node worker1 (ajp://10.40.4.50:8009):
Enable Contexts Disable Contexts Stop Contexts
Balancer: mycluster,LBGroup: ,Flushpackets: Off,Flushwait: 10000,Ping: 10000000,Smax: 1,Ttl: 60000000,Status: OK,Elected: 0,Read: 0,Transferred: 0,Connected: 0,Load: 100
Virtual Host 2:
Contexts:
/docs, Status: ENABLED Request: 0 Disable Stop
/manager, Status: ENABLED Request: 0 Disable Stop
/host-manager, Status: ENABLED Request: 0 Disable Stop
/examples, Status: ENABLED Request: 0 Disable Stop
/, Status: ENABLED Request: 0 Disable Stop
/clusterbench, Status: ENABLED Request: 0 Disable Stop
Aliases:
karm.brq.redhat.com
Virtual Host 1:
Contexts:
/clusterbench, Status: ENABLED Request: 0 Disable Stop
Aliases:
localhost
{code}
I find this bug being of Critical priority, because it could coax users into believing they excluded certain context while in fact they didn't.
WDYT? Is it possible to tweak with the Listener's configuration somehow?
THX.)
Git Pull Request: (was: https://github.com/modcluster/mod_cluster/pull/194, https://github.com/modcluster/mod_cluster/pull/195, https://github.com/modcluster/mod_cluster/pull/196)
Summary: Exclusion list cannot be pre-populated eagerly on startup (was: Excluded contexts which are not specific to a host should be excluded on all hosts)
Environment: (was: Tomcat8 (haven't tried elsewhere yet); mod_cluster version 2.0.0.Alpha1-SNAPSHOT)
> Exclusion list cannot be pre-populated eagerly on startup
> ---------------------------------------------------------
>
> Key: MODCLUSTER-566
> URL: https://issues.jboss.org/browse/MODCLUSTER-566
> Project: mod_cluster
> Issue Type: Bug
> Affects Versions: 1.3.6.CR1
> Reporter: Radoslav Husar
> Assignee: Radoslav Husar
>
> The exclusion list is unnecessarily populated eagerly on init(). This does not work in container such as WildFly where services are started asynchronously and virtual hosts and contexts can be added at any time.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 11 months
[JBoss JIRA] (MODCLUSTER-566) Exclusion list cannot be pre-populated eagerly on startup
by Radoslav Husar (JIRA)
[ https://issues.jboss.org/browse/MODCLUSTER-566?page=com.atlassian.jira.pl... ]
Radoslav Husar updated MODCLUSTER-566:
--------------------------------------
Workaround Description:
You need to specify every exclusion *per host*, e.g.:
{{excludedContexts="localhost:ROOT,localhost2:ROOT", ... etc.}}
was:
You need to specify every exclusion *per host*, e.g.:
{{excludedContexts="localhost:ROOT,localhost:docs,localhost:manager,localhost:host-manager,localhost:examples,localhost2:ROOT,localhost2:docs,localhost2:manager,localhost2:host-manager,localhost2:examples"}}
> Exclusion list cannot be pre-populated eagerly on startup
> ---------------------------------------------------------
>
> Key: MODCLUSTER-566
> URL: https://issues.jboss.org/browse/MODCLUSTER-566
> Project: mod_cluster
> Issue Type: Bug
> Affects Versions: 1.3.6.CR1
> Reporter: Radoslav Husar
> Assignee: Radoslav Husar
>
> The exclusion list is unnecessarily populated eagerly on init(). This does not work in container such as WildFly where services are started asynchronously and virtual hosts and contexts can be added at any time.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 11 months
[JBoss JIRA] (MODCLUSTER-566) Excluded contexts which are not specific to a host should be excluded on all hosts
by Radoslav Husar (JIRA)
[ https://issues.jboss.org/browse/MODCLUSTER-566?page=com.atlassian.jira.pl... ]
Radoslav Husar moved WFLY-7979 to MODCLUSTER-566:
-------------------------------------------------
Project: mod_cluster (was: WildFly)
Key: MODCLUSTER-566 (was: WFLY-7979)
Affects Version/s: 1.3.6.CR1
(was: 10.0.0.Final)
> Excluded contexts which are not specific to a host should be excluded on all hosts
> ----------------------------------------------------------------------------------
>
> Key: MODCLUSTER-566
> URL: https://issues.jboss.org/browse/MODCLUSTER-566
> Project: mod_cluster
> Issue Type: Bug
> Affects Versions: 1.3.6.CR1
> Environment: Tomcat8 (haven't tried elsewhere yet); mod_cluster version 2.0.0.Alpha1-SNAPSHOT
> Reporter: Radoslav Husar
> Assignee: Radoslav Husar
>
> With the following configuration:
> {code}
> <Listener className="org.jboss.modcluster.container.catalina.standalone.ModClusterListener"
> loadMetricClass="org.jboss.modcluster.load.metric.impl.BusyConnectorsLoadMetric"
> loadMetricCapacity="1"
> loadHistory="9"
> loadDecayFactor="2"
> stickySession="true"
> stickySessionForce="false"
> stickySessionRemove="true"
> advertise="true"
> advertiseGroupAddress="224.0.1.105"
> advertisePort="23364"
> advertiseInterface="10.40.4.50"
> excludedContexts="ROOT,docs,manager,host-manager,examples"
> />
> {code}
> And these contexts in webapps:
> {code}
> clusterbench docs examples host-manager manager ROOT
> {code}
> One expects this output on Mod_cluster manger console:
> {code}
> Virtual Host 1:
> Contexts:
> /clusterbench, Status: ENABLED Request: 0 Disable Stop
> Aliases:
> localhost
> {code}
> It works, unless you configure additional VirtualHosts:
> {code}
> <Host name="LOCALHOST" appBase="webapps" unpackWARs="true" autoDeploy="true">
> <Alias>LOCALHOST</Alias>
> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
> prefix="localhost_access_log" suffix=".txt"
> pattern="%h %l %u %t "%r" %s %b" />
> </Host>
> <Host name="KARM.BRQ.REDHAT.COM" appBase="webapps" unpackWARs="true" autoDeploy="true">
> <Alias>KARM.BRQ.REDHAT.COM</Alias>
> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
> prefix="localhost_access_log" suffix=".txt"
> pattern="%h %l %u %t "%r" %s %b" />
> </Host>
> {code}
> result:
> {code}
> Node worker1 (ajp://10.40.4.50:8009):
> Enable Contexts Disable Contexts Stop Contexts
> Balancer: mycluster,LBGroup: ,Flushpackets: Off,Flushwait: 10000,Ping: 10000000,Smax: 1,Ttl: 60000000,Status: OK,Elected: 0,Read: 0,Transferred: 0,Connected: 0,Load: 100
> Virtual Host 2:
> Contexts:
> /docs, Status: ENABLED Request: 0 Disable Stop
> /manager, Status: ENABLED Request: 0 Disable Stop
> /host-manager, Status: ENABLED Request: 0 Disable Stop
> /examples, Status: ENABLED Request: 0 Disable Stop
> /, Status: ENABLED Request: 0 Disable Stop
> /clusterbench, Status: ENABLED Request: 0 Disable Stop
> Aliases:
> karm.brq.redhat.com
> Virtual Host 1:
> Contexts:
> /clusterbench, Status: ENABLED Request: 0 Disable Stop
> Aliases:
> localhost
> {code}
> I find this bug being of Critical priority, because it could coax users into believing they excluded certain context while in fact they didn't.
> WDYT? Is it possible to tweak with the Listener's configuration somehow?
> THX.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 11 months
[JBoss JIRA] (MODCLUSTER-565) Expand mod_cluster manager console to output JSON data about worker nodes
by Michal Karm Babacek (JIRA)
Michal Karm Babacek created MODCLUSTER-565:
----------------------------------------------
Summary: Expand mod_cluster manager console to output JSON data about worker nodes
Key: MODCLUSTER-565
URL: https://issues.jboss.org/browse/MODCLUSTER-565
Project: mod_cluster
Issue Type: Feature Request
Components: Native (httpd modules)
Affects Versions: 2.0.0.Alpha1
Reporter: Michal Karm Babacek
Assignee: Michal Karm Babacek
mod_proxy_cluster needs a module that would provide a comprehensive command & control visualization of events going on within the balancer and with worker nodes. The visualization would also serve as a demonstration for presentation purposes (to replace current SWING app from ~2009-ish).
The new module would most likely work with https://d3js.org/ and generate an SVG/JS page on a new added httpd handler. For this new module to work, we need JSON data from mod_cluster manager (currently spits out only HTML/text/XML).
h3. Task one: mod_cluster manager JSON data
[~bsikora] researched suitable JavaScript libraries and he would like to have the JSON output resemble the following:
{quote}
I find the Wildfly style of Undertow mod_cluster proxy filter CLI output the most suitable:
{code}
"balancer" => {"mycluster" => {
"max-attempts" => 1,
"sticky-session" => true,
"sticky-session-cookie" => "JSESSIONID",
"sticky-session-force" => false,
"sticky-session-path" => undefined,
"sticky-session-remove" => false,
"wait-worker" => 0,
"load-balancing-group" => undefined,
"node" => {
"jboss-eap-7.1-1" => {
"aliases" => [
"default-host",
"localhost"
],
"cache-connections" => 40,
"elected" => 0,
"flush-packets" => false,
"load" => 0,
"load-balancing-group" => undefined,
"max-connections" => 40,
"open-connections" => 0,
"ping" => 10,
"queue-new-requests" => true,
"read" => 0L,
"request-queue-size" => 1000,
"status" => "NODE_HOT_STANDBY",
"timeout" => 0,
"ttl" => 60L,
"uri" => "ajp://192.168.122.88:8009/?#",
"written" => 0L,
"context" => {"/clusterbench" => {
"requests" => 0,
"status" => "enabled"
}}
},
{code}
So, the JSON for my JavaScript renderer could look like:
{code}
{
"balancers": [{
"name": "mycluster",
"max-attempts": 1,
"sticky-session": true,
"sticky-session-cookie": "JSESSIONID",
"sticky-session-force": false,
"sticky-session-remove": false,
"wait-worker": 0,
"workers": [
{
"name": "jboss-eap-7.1-1",
"aliases": ["default-host", "localhost"],
"cache-connections": 40,
"elected": 0,
"flush-packets": false,
"load": 0,
"requests": 350
}, {
"name": "jboss-eap-7.1-2",
"aliases": ["default-host", "localhost"],
"cache-connections": 40,
"elected": 0,
"flush-packets": false,
"load": 0,
"requests": 350
}
]
}]
}
{code}
{quote}
h3. Task two: mod_cluster gui console
Write a separate module that could be optionally loaded alongside with mod_manager to provide the gui JavaScript/SVG gui console and/or consider deploying the console as a web page into the httpd's web serving directory.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 11 months
[JBoss JIRA] (MODCLUSTER-526) SIGSEGV in remove_workers_node (mod_proxy_cluster.so) when using LoadBalancingGroup
by Radoslav Husar (JIRA)
[ https://issues.jboss.org/browse/MODCLUSTER-526?page=com.atlassian.jira.pl... ]
Radoslav Husar updated MODCLUSTER-526:
--------------------------------------
Fix Version/s: 1.3.6.Final
(was: 1.3.6.CR1)
> SIGSEGV in remove_workers_node (mod_proxy_cluster.so) when using LoadBalancingGroup
> -----------------------------------------------------------------------------------
>
> Key: MODCLUSTER-526
> URL: https://issues.jboss.org/browse/MODCLUSTER-526
> Project: mod_cluster
> Issue Type: Bug
> Components: Native (httpd modules)
> Affects Versions: 1.3.3.Final
> Environment: Fedora 20, x86_64, httpd 2.4.20 mpm_event
> Reporter: Michal Karm Babacek
> Assignee: Michal Karm Babacek
> Priority: Blocker
> Fix For: 1.3.6.Final
>
>
> h3. Setup
> * 3 tomcats
> * 2 load balancing groups
> * 1 request every 3 seconds (no load at all)
> * shutdown and kill of various nodes
> * no later than third kill/start iteration causes SIGSEGV
> h3. SIGSEGV
> {code}
> #if AP_MODULE_MAGIC_AT_LEAST(20101223,1)
> /* Here that is tricky the worker needs shared memory but we don't and CONFIG will reset it */
> helper->index = 0; /* mark it removed */
> worker->s = helper->shared;
> crash---> memcpy(worker->s, stat, sizeof(proxy_worker_shared));
> #else
> worker->id = 0; /* mark it removed */
> #endif
> {code}
> h3. Behavior
> {code}
> 957 helper = (proxy_cluster_helper *) worker->context;
> 961 if (helper) {
> 962 i = helper->count_active;
> 963 }
> 968 if (i == 0) {
> 971 proxy_worker_shared *stat = worker->s;
> 972 proxy_cluster_helper *helper = (proxy_cluster_helper *) worker->context;
> {code}
> At this point, {{helper->shared}} points to a {{proxy_worker_shared}} structure that appears to be properly filled.
> {code}
> 999 if (worker->cp->pool) {
> 1000 apr_pool_destroy(worker->cp->pool);
> 1001 worker->cp->pool = NULL;
> 1002 }
> {code}
> Regardless of the aforementioned block being there or nor (stuffed after 1010),
> {{helper->shared}} suddenly points to {{NULL}}.
> {code}
> 1008 helper->index = 0;
> 1009 worker->s = helper->shared;
> {code}
> Above assignment makes {{worker->s}} pointing to NULL.
> {code}
> 1010 memcpy(worker->s, stat, sizeof(proxy_worker_shared));
> {code}
> And here we go :(
> IMHO, _other thread_ already cleared that memory and nulled the pointer, because it absolutely doesn't happen if
> I run 1 process and 1 thread.
> The [workaround that prevents the core|https://github.com/modcluster/mod_cluster/pull/207] looks like this:
> {code}
> if (helper->shared) {
> worker->s = helper->shared;
> memcpy(worker->s, stat, sizeof(proxy_worker_shared));
> }
> {code}
> h3. How do we fix it?
> Any ideas? [~jfclere]
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 11 months
[JBoss JIRA] (MODCLUSTER-430) CreateBalancers behave the same with option 0 or 2
by Radoslav Husar (JIRA)
[ https://issues.jboss.org/browse/MODCLUSTER-430?page=com.atlassian.jira.pl... ]
Radoslav Husar updated MODCLUSTER-430:
--------------------------------------
Fix Version/s: 1.3.6.Final
(was: 1.3.6.CR1)
> CreateBalancers behave the same with option 0 or 2
> --------------------------------------------------
>
> Key: MODCLUSTER-430
> URL: https://issues.jboss.org/browse/MODCLUSTER-430
> Project: mod_cluster
> Issue Type: Bug
> Components: Native (httpd modules)
> Affects Versions: 1.3.0.Final, 1.2.9.Final
> Environment: RHEL 6.4.0
> Apache HTTPD 2.4.10
> JBoss 6.1.1
> Mod_cluster 1.3.0 Final
> Reporter: John Jerome
> Assignee: Michal Karm Babacek
> Fix For: 1.2.14.Final, 1.3.6.Final
>
>
> The directive CreateBalancers with directive 0 or 2 creates the balancers on all httpd vhosts.
> With option 2, the balancers should be created on the main server only, not in the vhosts.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 11 months
[JBoss JIRA] (MODCLUSTER-561) Upgrade maven-war-plugin to version compatible with JDK 9-ea+149
by Radoslav Husar (JIRA)
[ https://issues.jboss.org/browse/MODCLUSTER-561?page=com.atlassian.jira.pl... ]
Radoslav Husar updated MODCLUSTER-561:
--------------------------------------
Affects Version/s: 1.3.6.CR1
> Upgrade maven-war-plugin to version compatible with JDK 9-ea+149
> ----------------------------------------------------------------
>
> Key: MODCLUSTER-561
> URL: https://issues.jboss.org/browse/MODCLUSTER-561
> Project: mod_cluster
> Issue Type: Component Upgrade
> Components: Core & Container Integration (Java)
> Affects Versions: 2.0.0.Alpha1, 1.3.6.CR1
> Reporter: Radoslav Husar
> Assignee: Radoslav Husar
> Priority: Minor
>
> {noformat}
> [rhusar@syrah mod_cluster]$ mvn clean install -rf :mod_cluster-demo-server
> [INFO] Scanning for projects...
> [INFO]
> [INFO] ------------------------------------------------------------------------
> [INFO] Building mod_cluster: Demo - Server 2.0.0.Alpha1-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ mod_cluster-demo-server ---
> [INFO] Deleting /Users/rhusar/git/mod_cluster/demo/server/target
> [INFO]
> [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java-version) @ mod_cluster-demo-server ---
> [INFO]
> [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ mod_cluster-demo-server ---
> [INFO]
> [INFO] --- buildnumber-maven-plugin:1.4:create (get-scm-revision) @ mod_cluster-demo-server ---
> [INFO] Executing: /bin/sh -c cd '/Users/rhusar/git/mod_cluster/demo/server' && 'git' 'rev-parse' '--verify' 'HEAD'
> [INFO] Working directory: /Users/rhusar/git/mod_cluster/demo/server
> [INFO] Storing buildNumber: 28c1db1f598fc45c51d4d0dee45bd9bc4f0788fc at timestamp: 1483363437598
> [INFO] Storing buildScmBranch: MODCLUSTER-560_mockito
> [INFO]
> [INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) @ mod_cluster-demo-server ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory /Users/rhusar/git/mod_cluster/demo/server/src/main/resources
> [INFO] Copying 0 resource
> [INFO]
> [INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ mod_cluster-demo-server ---
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 9 source files to /Users/rhusar/git/mod_cluster/demo/server/target/classes
> [INFO]
> [INFO] --- maven-resources-plugin:3.0.1:testResources (default-testResources) @ mod_cluster-demo-server ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory /Users/rhusar/git/mod_cluster/demo/server/src/test/resources
> [INFO]
> [INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile) @ mod_cluster-demo-server ---
> [INFO] No sources to compile
> [INFO]
> [INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ mod_cluster-demo-server ---
> [INFO] No tests to run.
> [INFO]
> [INFO] --- maven-war-plugin:3.0.0:war (default-war) @ mod_cluster-demo-server ---
> [WARNING] Error injecting: org.apache.maven.plugins.war.WarMojo
> com.google.inject.ProvisionException: Unable to provision, see the following errors:
> 1) Error injecting constructor, java.lang.ExceptionInInitializerError
> at org.apache.maven.plugins.war.WarMojo.<init>(Unknown Source)
> while locating org.apache.maven.plugins.war.WarMojo
> 1 error
> at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1025)
> at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1051)
> at org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48)
> at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:81)
> at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:53)
> at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:65)
> at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115)
> at org.eclipse.sisu.bean.BeanScheduler$Activator.onProvision(BeanScheduler.java:176)
> at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:126)
> at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68)
> at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:63)
> at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:45)
> at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016)
> at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
> at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012)
> at org.eclipse.sisu.inject.Guice4$1.get(Guice4.java:162)
> at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:81)
> at org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:51)
> at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:263)
> at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:255)
> at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:517)
> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:121)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
> at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
> at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:538)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
> at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
> at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> Caused by: java.lang.ExceptionInInitializerError
> at com.thoughtworks.xstream.XStream.setupConverters(XStream.java:832)
> at com.thoughtworks.xstream.XStream.<init>(XStream.java:574)
> at com.thoughtworks.xstream.XStream.<init>(XStream.java:496)
> at com.thoughtworks.xstream.XStream.<init>(XStream.java:465)
> at com.thoughtworks.xstream.XStream.<init>(XStream.java:411)
> at com.thoughtworks.xstream.XStream.<init>(XStream.java:378)
> at org.apache.maven.plugins.war.util.WebappStructureSerializer.<clinit>(WebappStructureSerializer.java:47)
> at org.apache.maven.plugins.war.AbstractWarMojo.<init>(AbstractWarMojo.java:344)
> at org.apache.maven.plugins.war.WarMojo.<init>(WarMojo.java:54)
> at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:461)
> at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:86)
> at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:105)
> at com.google.inject.internal.ConstructorInjector.access$000(ConstructorInjector.java:32)
> at com.google.inject.internal.ConstructorInjector$1.call(ConstructorInjector.java:89)
> at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115)
> at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:133)
> at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68)
> at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:87)
> at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:267)
> at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016)
> at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103)
> at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012)
> ... 42 more
> Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private final java.util.Comparator java.util.TreeMap.comparator accessible: module java.base does not "opens java.util" to unnamed module @6048e26a
> at java.base/jdk.internal.reflect.Reflection.throwInaccessibleObjectException(Reflection.java:427)
> at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:201)
> at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:171)
> at java.base/java.lang.reflect.Field.setAccessible(Field.java:165)
> at com.thoughtworks.xstream.core.util.Fields.locate(Fields.java:40)
> at com.thoughtworks.xstream.converters.collections.TreeMapConverter.<clinit>(TreeMapConverter.java:50)
> ... 67 more
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2.314 s
> [INFO] Finished at: 2017-01-02T14:23:59+01:00
> [INFO] Final Memory: 21M/70M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:3.0.0:war (default-war) on project mod_cluster-demo-server: Execution default-war of goal org.apache.maven.plugins:maven-war-plugin:3.0.0:war failed: Unable to load the mojo 'war' in the plugin 'org.apache.maven.plugins:maven-war-plugin:3.0.0' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: null
> [ERROR] -----------------------------------------------------
> [ERROR] realm = plugin>org.apache.maven.plugins:maven-war-plugin:3.0.0
> [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
> [ERROR] urls[0] = file:/Users/rhusar/.m2/repository/org/apache/maven/plugins/maven-war-plugin/3.0.0/maven-war-plugin-3.0.0.jar
> [ERROR] urls[1] = file:/Users/rhusar/.m2/repository/org/codehaus/plexus/plexus-archiver/3.3/plexus-archiver-3.3.jar
> [ERROR] urls[2] = file:/Users/rhusar/.m2/repository/org/apache/commons/commons-compress/1.11/commons-compress-1.11.jar
> [ERROR] urls[3] = file:/Users/rhusar/.m2/repository/org/iq80/snappy/snappy/0.4/snappy-0.4.jar
> [ERROR] urls[4] = file:/Users/rhusar/.m2/repository/org/tukaani/xz/1.5/xz-1.5.jar
> [ERROR] urls[5] = file:/Users/rhusar/.m2/repository/org/codehaus/plexus/plexus-io/2.7.1/plexus-io-2.7.1.jar
> [ERROR] urls[6] = file:/Users/rhusar/.m2/repository/org/sonatype/sisu/sisu-inject-bean/1.4.2/sisu-inject-bean-1.4.2.jar
> [ERROR] urls[7] = file:/Users/rhusar/.m2/repository/org/sonatype/sisu/sisu-guice/2.1.7/sisu-guice-2.1.7-noaop.jar
> [ERROR] urls[8] = file:/Users/rhusar/.m2/repository/org/sonatype/aether/aether-util/1.7/aether-util-1.7.jar
> [ERROR] urls[9] = file:/Users/rhusar/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.6/plexus-component-annotations-1.6.jar
> [ERROR] urls[10] = file:/Users/rhusar/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
> [ERROR] urls[11] = file:/Users/rhusar/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
> [ERROR] urls[12] = file:/Users/rhusar/.m2/repository/org/apache/maven/maven-archiver/3.1.1/maven-archiver-3.1.1.jar
> [ERROR] urls[13] = file:/Users/rhusar/.m2/repository/org/apache/maven/shared/maven-shared-utils/3.0.1/maven-shared-utils-3.0.1.jar
> [ERROR] urls[14] = file:/Users/rhusar/.m2/repository/commons-io/commons-io/2.5/commons-io-2.5.jar
> [ERROR] urls[15] = file:/Users/rhusar/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.22/plexus-interpolation-1.22.jar
> [ERROR] urls[16] = file:/Users/rhusar/.m2/repository/com/thoughtworks/xstream/xstream/1.4.9/xstream-1.4.9.jar
> [ERROR] urls[17] = file:/Users/rhusar/.m2/repository/xmlpull/xmlpull/1.1.3.1/xmlpull-1.1.3.1.jar
> [ERROR] urls[18] = file:/Users/rhusar/.m2/repository/xpp3/xpp3_min/1.1.4c/xpp3_min-1.1.4c.jar
> [ERROR] urls[19] = file:/Users/rhusar/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.24/plexus-utils-3.0.24.jar
> [ERROR] urls[20] = file:/Users/rhusar/.m2/repository/org/apache/maven/shared/maven-filtering/3.1.1/maven-filtering-3.1.1.jar
> [ERROR] urls[21] = file:/Users/rhusar/.m2/repository/org/sonatype/plexus/plexus-build-api/0.0.7/plexus-build-api-0.0.7.jar
> [ERROR] urls[22] = file:/Users/rhusar/.m2/repository/org/apache/maven/shared/maven-mapping/3.0.0/maven-mapping-3.0.0.jar
> [ERROR] Number of foreign imports: 1
> [ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
> [ERROR]
> [ERROR] -----------------------------------------------------: ExceptionInInitializerError: Unable to make field private final java.util.Comparator java.util.TreeMap.comparator accessible: module java.base does not "opens java.util" to unnamed module @6048e26a
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
> {noformat}
> Upgrading xstream to upstream/master fails with
> {noformat}
> [WARNING] Error injecting: org.apache.maven.plugin.war.WarMojo
> com.google.inject.ProvisionException: Unable to provision, see the following errors:
> 1) Error injecting constructor, java.lang.ExceptionInInitializerError
> at org.apache.maven.plugin.war.WarMojo.<init>(Unknown Source)
> while locating org.apache.maven.plugin.war.WarMojo
> 1 error
> at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1025)
> at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1051)
> at org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48)
> at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:81)
> at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:53)
> at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:65)
> at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115)
> at org.eclipse.sisu.bean.BeanScheduler$Activator.onProvision(BeanScheduler.java:176)
> at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:126)
> at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68)
> at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:63)
> at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:45)
> at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016)
> at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
> at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012)
> at org.eclipse.sisu.inject.Guice4$1.get(Guice4.java:162)
> at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:81)
> at org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:51)
> at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:263)
> at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:255)
> at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:517)
> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:121)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
> at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
> at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:538)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
> at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
> at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> Caused by: java.lang.ExceptionInInitializerError
> at org.apache.maven.plugin.war.AbstractWarMojo.<init>(AbstractWarMojo.java:329)
> at org.apache.maven.plugin.war.WarMojo.<init>(WarMojo.java:54)
> at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:461)
> at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:86)
> at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:105)
> at com.google.inject.internal.ConstructorInjector.access$000(ConstructorInjector.java:32)
> at com.google.inject.internal.ConstructorInjector$1.call(ConstructorInjector.java:89)
> at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115)
> at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:133)
> at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68)
> at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:87)
> at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:267)
> at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016)
> at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103)
> at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012)
> ... 42 more
> Caused by: java.lang.NullPointerException
> at com.thoughtworks.xstream.mapper.ClassAliasingMapper.addClassAlias(ClassAliasingMapper.java:37)
> at com.thoughtworks.xstream.XStream.alias(XStream.java:1175)
> at com.thoughtworks.xstream.XStream.setupAliases(XStream.java:733)
> at com.thoughtworks.xstream.XStream.<init>(XStream.java:552)
> at com.thoughtworks.xstream.XStream.<init>(XStream.java:478)
> at com.thoughtworks.xstream.XStream.<init>(XStream.java:471)
> at com.thoughtworks.xstream.XStream.<init>(XStream.java:416)
> at com.thoughtworks.xstream.XStream.<init>(XStream.java:400)
> at com.thoughtworks.xstream.XStream.<init>(XStream.java:388)
> at org.apache.maven.plugin.war.util.WebappStructureSerializer.<clinit>(WebappStructureSerializer.java:47)
> ... 60 more
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 11 months
[JBoss JIRA] (MODCLUSTER-561) Upgrade maven-war-plugin to version compatible with JDK 9-ea+149
by Radoslav Husar (JIRA)
[ https://issues.jboss.org/browse/MODCLUSTER-561?page=com.atlassian.jira.pl... ]
Radoslav Husar updated MODCLUSTER-561:
--------------------------------------
Affects Version/s: 2.0.0.Alpha1
> Upgrade maven-war-plugin to version compatible with JDK 9-ea+149
> ----------------------------------------------------------------
>
> Key: MODCLUSTER-561
> URL: https://issues.jboss.org/browse/MODCLUSTER-561
> Project: mod_cluster
> Issue Type: Component Upgrade
> Components: Core & Container Integration (Java)
> Affects Versions: 2.0.0.Alpha1, 1.3.6.CR1
> Reporter: Radoslav Husar
> Assignee: Radoslav Husar
> Priority: Minor
>
> {noformat}
> [rhusar@syrah mod_cluster]$ mvn clean install -rf :mod_cluster-demo-server
> [INFO] Scanning for projects...
> [INFO]
> [INFO] ------------------------------------------------------------------------
> [INFO] Building mod_cluster: Demo - Server 2.0.0.Alpha1-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ mod_cluster-demo-server ---
> [INFO] Deleting /Users/rhusar/git/mod_cluster/demo/server/target
> [INFO]
> [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java-version) @ mod_cluster-demo-server ---
> [INFO]
> [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ mod_cluster-demo-server ---
> [INFO]
> [INFO] --- buildnumber-maven-plugin:1.4:create (get-scm-revision) @ mod_cluster-demo-server ---
> [INFO] Executing: /bin/sh -c cd '/Users/rhusar/git/mod_cluster/demo/server' && 'git' 'rev-parse' '--verify' 'HEAD'
> [INFO] Working directory: /Users/rhusar/git/mod_cluster/demo/server
> [INFO] Storing buildNumber: 28c1db1f598fc45c51d4d0dee45bd9bc4f0788fc at timestamp: 1483363437598
> [INFO] Storing buildScmBranch: MODCLUSTER-560_mockito
> [INFO]
> [INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) @ mod_cluster-demo-server ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory /Users/rhusar/git/mod_cluster/demo/server/src/main/resources
> [INFO] Copying 0 resource
> [INFO]
> [INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ mod_cluster-demo-server ---
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 9 source files to /Users/rhusar/git/mod_cluster/demo/server/target/classes
> [INFO]
> [INFO] --- maven-resources-plugin:3.0.1:testResources (default-testResources) @ mod_cluster-demo-server ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory /Users/rhusar/git/mod_cluster/demo/server/src/test/resources
> [INFO]
> [INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile) @ mod_cluster-demo-server ---
> [INFO] No sources to compile
> [INFO]
> [INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ mod_cluster-demo-server ---
> [INFO] No tests to run.
> [INFO]
> [INFO] --- maven-war-plugin:3.0.0:war (default-war) @ mod_cluster-demo-server ---
> [WARNING] Error injecting: org.apache.maven.plugins.war.WarMojo
> com.google.inject.ProvisionException: Unable to provision, see the following errors:
> 1) Error injecting constructor, java.lang.ExceptionInInitializerError
> at org.apache.maven.plugins.war.WarMojo.<init>(Unknown Source)
> while locating org.apache.maven.plugins.war.WarMojo
> 1 error
> at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1025)
> at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1051)
> at org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48)
> at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:81)
> at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:53)
> at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:65)
> at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115)
> at org.eclipse.sisu.bean.BeanScheduler$Activator.onProvision(BeanScheduler.java:176)
> at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:126)
> at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68)
> at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:63)
> at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:45)
> at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016)
> at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
> at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012)
> at org.eclipse.sisu.inject.Guice4$1.get(Guice4.java:162)
> at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:81)
> at org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:51)
> at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:263)
> at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:255)
> at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:517)
> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:121)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
> at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
> at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:538)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
> at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
> at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> Caused by: java.lang.ExceptionInInitializerError
> at com.thoughtworks.xstream.XStream.setupConverters(XStream.java:832)
> at com.thoughtworks.xstream.XStream.<init>(XStream.java:574)
> at com.thoughtworks.xstream.XStream.<init>(XStream.java:496)
> at com.thoughtworks.xstream.XStream.<init>(XStream.java:465)
> at com.thoughtworks.xstream.XStream.<init>(XStream.java:411)
> at com.thoughtworks.xstream.XStream.<init>(XStream.java:378)
> at org.apache.maven.plugins.war.util.WebappStructureSerializer.<clinit>(WebappStructureSerializer.java:47)
> at org.apache.maven.plugins.war.AbstractWarMojo.<init>(AbstractWarMojo.java:344)
> at org.apache.maven.plugins.war.WarMojo.<init>(WarMojo.java:54)
> at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:461)
> at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:86)
> at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:105)
> at com.google.inject.internal.ConstructorInjector.access$000(ConstructorInjector.java:32)
> at com.google.inject.internal.ConstructorInjector$1.call(ConstructorInjector.java:89)
> at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115)
> at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:133)
> at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68)
> at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:87)
> at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:267)
> at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016)
> at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103)
> at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012)
> ... 42 more
> Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private final java.util.Comparator java.util.TreeMap.comparator accessible: module java.base does not "opens java.util" to unnamed module @6048e26a
> at java.base/jdk.internal.reflect.Reflection.throwInaccessibleObjectException(Reflection.java:427)
> at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:201)
> at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:171)
> at java.base/java.lang.reflect.Field.setAccessible(Field.java:165)
> at com.thoughtworks.xstream.core.util.Fields.locate(Fields.java:40)
> at com.thoughtworks.xstream.converters.collections.TreeMapConverter.<clinit>(TreeMapConverter.java:50)
> ... 67 more
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2.314 s
> [INFO] Finished at: 2017-01-02T14:23:59+01:00
> [INFO] Final Memory: 21M/70M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:3.0.0:war (default-war) on project mod_cluster-demo-server: Execution default-war of goal org.apache.maven.plugins:maven-war-plugin:3.0.0:war failed: Unable to load the mojo 'war' in the plugin 'org.apache.maven.plugins:maven-war-plugin:3.0.0' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: null
> [ERROR] -----------------------------------------------------
> [ERROR] realm = plugin>org.apache.maven.plugins:maven-war-plugin:3.0.0
> [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
> [ERROR] urls[0] = file:/Users/rhusar/.m2/repository/org/apache/maven/plugins/maven-war-plugin/3.0.0/maven-war-plugin-3.0.0.jar
> [ERROR] urls[1] = file:/Users/rhusar/.m2/repository/org/codehaus/plexus/plexus-archiver/3.3/plexus-archiver-3.3.jar
> [ERROR] urls[2] = file:/Users/rhusar/.m2/repository/org/apache/commons/commons-compress/1.11/commons-compress-1.11.jar
> [ERROR] urls[3] = file:/Users/rhusar/.m2/repository/org/iq80/snappy/snappy/0.4/snappy-0.4.jar
> [ERROR] urls[4] = file:/Users/rhusar/.m2/repository/org/tukaani/xz/1.5/xz-1.5.jar
> [ERROR] urls[5] = file:/Users/rhusar/.m2/repository/org/codehaus/plexus/plexus-io/2.7.1/plexus-io-2.7.1.jar
> [ERROR] urls[6] = file:/Users/rhusar/.m2/repository/org/sonatype/sisu/sisu-inject-bean/1.4.2/sisu-inject-bean-1.4.2.jar
> [ERROR] urls[7] = file:/Users/rhusar/.m2/repository/org/sonatype/sisu/sisu-guice/2.1.7/sisu-guice-2.1.7-noaop.jar
> [ERROR] urls[8] = file:/Users/rhusar/.m2/repository/org/sonatype/aether/aether-util/1.7/aether-util-1.7.jar
> [ERROR] urls[9] = file:/Users/rhusar/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.6/plexus-component-annotations-1.6.jar
> [ERROR] urls[10] = file:/Users/rhusar/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
> [ERROR] urls[11] = file:/Users/rhusar/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
> [ERROR] urls[12] = file:/Users/rhusar/.m2/repository/org/apache/maven/maven-archiver/3.1.1/maven-archiver-3.1.1.jar
> [ERROR] urls[13] = file:/Users/rhusar/.m2/repository/org/apache/maven/shared/maven-shared-utils/3.0.1/maven-shared-utils-3.0.1.jar
> [ERROR] urls[14] = file:/Users/rhusar/.m2/repository/commons-io/commons-io/2.5/commons-io-2.5.jar
> [ERROR] urls[15] = file:/Users/rhusar/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.22/plexus-interpolation-1.22.jar
> [ERROR] urls[16] = file:/Users/rhusar/.m2/repository/com/thoughtworks/xstream/xstream/1.4.9/xstream-1.4.9.jar
> [ERROR] urls[17] = file:/Users/rhusar/.m2/repository/xmlpull/xmlpull/1.1.3.1/xmlpull-1.1.3.1.jar
> [ERROR] urls[18] = file:/Users/rhusar/.m2/repository/xpp3/xpp3_min/1.1.4c/xpp3_min-1.1.4c.jar
> [ERROR] urls[19] = file:/Users/rhusar/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.24/plexus-utils-3.0.24.jar
> [ERROR] urls[20] = file:/Users/rhusar/.m2/repository/org/apache/maven/shared/maven-filtering/3.1.1/maven-filtering-3.1.1.jar
> [ERROR] urls[21] = file:/Users/rhusar/.m2/repository/org/sonatype/plexus/plexus-build-api/0.0.7/plexus-build-api-0.0.7.jar
> [ERROR] urls[22] = file:/Users/rhusar/.m2/repository/org/apache/maven/shared/maven-mapping/3.0.0/maven-mapping-3.0.0.jar
> [ERROR] Number of foreign imports: 1
> [ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
> [ERROR]
> [ERROR] -----------------------------------------------------: ExceptionInInitializerError: Unable to make field private final java.util.Comparator java.util.TreeMap.comparator accessible: module java.base does not "opens java.util" to unnamed module @6048e26a
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
> {noformat}
> Upgrading xstream to upstream/master fails with
> {noformat}
> [WARNING] Error injecting: org.apache.maven.plugin.war.WarMojo
> com.google.inject.ProvisionException: Unable to provision, see the following errors:
> 1) Error injecting constructor, java.lang.ExceptionInInitializerError
> at org.apache.maven.plugin.war.WarMojo.<init>(Unknown Source)
> while locating org.apache.maven.plugin.war.WarMojo
> 1 error
> at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1025)
> at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1051)
> at org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48)
> at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:81)
> at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:53)
> at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:65)
> at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115)
> at org.eclipse.sisu.bean.BeanScheduler$Activator.onProvision(BeanScheduler.java:176)
> at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:126)
> at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68)
> at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:63)
> at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:45)
> at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016)
> at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
> at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012)
> at org.eclipse.sisu.inject.Guice4$1.get(Guice4.java:162)
> at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:81)
> at org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:51)
> at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:263)
> at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:255)
> at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:517)
> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:121)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
> at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
> at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:538)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
> at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
> at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> Caused by: java.lang.ExceptionInInitializerError
> at org.apache.maven.plugin.war.AbstractWarMojo.<init>(AbstractWarMojo.java:329)
> at org.apache.maven.plugin.war.WarMojo.<init>(WarMojo.java:54)
> at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:461)
> at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:86)
> at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:105)
> at com.google.inject.internal.ConstructorInjector.access$000(ConstructorInjector.java:32)
> at com.google.inject.internal.ConstructorInjector$1.call(ConstructorInjector.java:89)
> at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115)
> at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:133)
> at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68)
> at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:87)
> at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:267)
> at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016)
> at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103)
> at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012)
> ... 42 more
> Caused by: java.lang.NullPointerException
> at com.thoughtworks.xstream.mapper.ClassAliasingMapper.addClassAlias(ClassAliasingMapper.java:37)
> at com.thoughtworks.xstream.XStream.alias(XStream.java:1175)
> at com.thoughtworks.xstream.XStream.setupAliases(XStream.java:733)
> at com.thoughtworks.xstream.XStream.<init>(XStream.java:552)
> at com.thoughtworks.xstream.XStream.<init>(XStream.java:478)
> at com.thoughtworks.xstream.XStream.<init>(XStream.java:471)
> at com.thoughtworks.xstream.XStream.<init>(XStream.java:416)
> at com.thoughtworks.xstream.XStream.<init>(XStream.java:400)
> at com.thoughtworks.xstream.XStream.<init>(XStream.java:388)
> at org.apache.maven.plugin.war.util.WebappStructureSerializer.<clinit>(WebappStructureSerializer.java:47)
> ... 60 more
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 11 months