ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Volkov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-11469) Support Automatic modules for ignite-rest-http: resolve package inference between Jetty & Tomcat
Date Tue, 12 Mar 2019 12:06:00 GMT

    [ https://issues.apache.org/jira/browse/IGNITE-11469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16790474#comment-16790474
] 

Alex Volkov commented on IGNITE-11469:
--------------------------------------

Now build from master fails on start when rest is enabled with error:
{code:java}
Exception during start processors, node will be stopped and close connections
java.lang.NoClassDefFoundError: javax/servlet/ServletRequest
at org.apache.ignite.internal.processors.rest.protocols.http.jetty.GridJettyRestProtocol.start(GridJettyRestProtocol.java:127)
at org.apache.ignite.internal.processors.rest.GridRestProcessor.startProtocol(GridRestProcessor.java:1013)
at org.apache.ignite.internal.processors.rest.GridRestProcessor.startHttpProtocol(GridRestProcessor.java:984)
at org.apache.ignite.internal.processors.rest.GridRestProcessor.start(GridRestProcessor.java:541)
at org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1759)
at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:1035)
at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1992)
at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1683)
at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1109)
at org.apache.ignite.internal.IgnitionEx.startConfigurations(IgnitionEx.java:1027)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:913)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:812)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:682)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:651)
at org.apache.ignite.Ignition.start(Ignition.java:346)
at org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:300)
Caused by: java.lang.ClassNotFoundException: javax.servlet.ServletRequest
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 16 more
{code}
on Java 8.

 

> Support Automatic modules for ignite-rest-http: resolve package inference between Jetty
& Tomcat
> ------------------------------------------------------------------------------------------------
>
>                 Key: IGNITE-11469
>                 URL: https://issues.apache.org/jira/browse/IGNITE-11469
>             Project: Ignite
>          Issue Type: Sub-task
>            Reporter: Dmitriy Pavlov
>            Assignee: Dmitriy Pavlov
>            Priority: Major
>             Fix For: 2.8
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> {noformat}
> error: the unnamed module reads package javax.servlet.http from both javax.servlet.api
and tomcat.servlet.api
> error: the unnamed module reads package javax.servlet.descriptor from both javax.servlet.api
and tomcat.servlet.api
> error: the unnamed module reads package javax.servlet.annotation from both javax.servlet.api
and tomcat.servlet.api
> error: the unnamed module reads package javax.servlet from both javax.servlet.api and
tomcat.servlet.api
> {noformat}
> Exclude of tomcat dependency solves the problem
> {code}
>  compile(group: 'org.apache.ignite', name: 'ignite-rest-http', version: ignVer) {
>         exclude group: 'org.apache.tomcat'
>         // to remove "javax.servlet.http, javax.servlet.descriptor, javax.servlet.annotation,
javax.servlet" package conflicts.
>     }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message