maqiang0813 commented on issue #4476:
URL: 
https://github.com/apache/incubator-dolphinscheduler/issues/4476#issuecomment-763518415


   I didn't change source code.
   what I  did is only updated <hadoop.version>3.1.0</hadoop.version> in 
pom.xml when compiling source code.(even I don't update anything in pom.xml,I 
always got same error)
   I started the service, only api server cannot be started,and error message 
in dolphinscheduler-api-server-*.out  as below:
   
   18:40:11.958 [main] ERROR org.springframework.boot.SpringApplication - 
Application run failed
   java.lang.NoClassDefFoundError: org/mortbay/log/Log
           at 
com.sun.org.apache.commons.logging.JettyLog.<init>(JettyLog.java:36) 
~[jsp-2.1-6.1.14.jar:6.1.14]
           at 
com.sun.org.apache.commons.logging.LogFactory.getLog(LogFactory.java:35) 
~[jsp-2.1-6.1.14.jar:6.1.14]
           at 
org.apache.jasper.servlet.JspServlet.<clinit>(JspServlet.java:116) 
~[jsp-2.1-6.1.14.jar:6.1.14]
           at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method) ~[?:1.8.0_181]
           at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
 ~[?:1.8.0_181]
           at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 ~[?:1.8.0_181]
           at java.lang.reflect.Constructor.newInstance(Constructor.java:423) 
~[?:1.8.0_181]
           at 
org.eclipse.jetty.server.handler.ContextHandler$Context.createInstance(ContextHandler.java:2649)
 ~[jetty-server-9.4.14.v20181114.jar:9.4.14.v20181114]
           at 
org.eclipse.jetty.servlet.ServletContextHandler$Context.createServlet(ServletContextHandler.java:1366)
 ~[jetty-servlet-9.4.14.v20181114.jar:9.4.14.v20181114]
           at 
org.eclipse.jetty.servlet.ServletHolder.newInstance(ServletHolder.java:1299) 
~[jetty-servlet-9.4.14.v20181114.jar:9.4.14.v20181114]
           at 
org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:649) 
~[jetty-servlet-9.4.14.v20181114.jar:9.4.14.v20181114]
           at 
org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:429) 
~[jetty-servlet-9.4.14.v20181114.jar:9.4.14.v20181114]
           at 
org.eclipse.jetty.servlet.ServletHandler.lambda$initialize$0(ServletHandler.java:750)
 ~[jetty-servlet-9.4.14.v20181114.jar:9.4.14.v20181114]
           at 
java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:352) 
~[?:1.8.0_181]
           at 
java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) 
~[?:1.8.0_181]
           at 
java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) 
~[?:1.8.0_181]
           at 
java.util.stream.StreamSpliterators$WrappingSpliterator.forEachRemaining(StreamSpliterators.java:312)
 ~[?:1.8.0_181]
           at 
java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:743) 
~[?:1.8.0_181]
           at 
java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:742) 
~[?:1.8.0_181]
           at 
java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580) 
~[?:1.8.0_181]
           at 
org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:744) 
~[jetty-servlet-9.4.14.v20181114.jar:9.4.14.v20181114]
           at 
org.springframework.boot.web.embedded.jetty.JettyEmbeddedWebAppContext$JettyEmbeddedServletHandler.deferredInitialize(JettyEmbeddedWebAppContext.java:46)
 ~[spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE]
           at 
org.springframework.boot.web.embedded.jetty.JettyEmbeddedWebAppContext.deferredInitialize(JettyEmbeddedWebAppContext.java:36)
 ~[spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE]
           at 
org.springframework.boot.web.embedded.jetty.JettyWebServer.handleDeferredInitialize(JettyWebServer.java:221)
 ~[spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE]
           at 
org.springframework.boot.web.embedded.jetty.JettyWebServer.start(JettyWebServer.java:142)
 ~[spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE]
           at 
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.startWebServer(ServletWebServerApplicationContext.java:311)
 ~[spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE]
           at 
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.finishRefresh(ServletWebServerApplicationContext.java:164)
 ~[spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE]
           at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:552)
 ~[spring-context-5.1.5.RELEASE.jar:5.1.5.RELEASE]
           at 
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142)
 ~[spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE]
   
   
   After replacing jetty-util-9.4.14.v20181114.jar with jetty-util-6.1.26.jar, 
error message changed as below:
   org.springframework.context.ApplicationContextException: Unable to start web 
server; nested exception is 
org.springframework.context.ApplicationContextException: Unable to start 
ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.
           at 
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:157)
 ~[spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE]
           at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
 ~[spring-context-5.1.5.RELEASE.jar:5.1.5.RELEASE]
           at 
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142)
 ~[spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE]
           at 
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) 
[spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE]
           at 
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
 [spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE]
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:316) 
[spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE]
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1260) 
[spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE]
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1248) 
[spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE]
           at 
org.apache.dolphinscheduler.api.ApiApplicationServer.main(ApiApplicationServer.java:36)
 [dolphinscheduler-api-1.3.4.jar:1.3.4]
   Caused by: org.springframework.context.ApplicationContextException: Unable 
to start ServletWebServerApplicationContext due to missing 
ServletWebServerFactory bean.
           at 
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getWebServerFactory(ServletWebServerApplicationContext.java:206)
 ~[spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE]
           at 
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:180)
 ~[spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE]
           at 
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:154)
 ~[spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE]
           ... 8 more
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to