You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2021/01/16 13:30:19 UTC

[GitHub] [incubator-dolphinscheduler] maqiang0813 opened a new issue #4476: api service cannot be started

maqiang0813 opened a new issue #4476:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/4476


   I compiled 1.3.4 source code on arm64 platform,and my hadoop version is 3.1.0.
   api server cannot start,but other services were working fine.
   
   I checked the dolphinscheduler-api-server-xx.out,found error as below:
   
   ERROR org.springframework.boot.SpringApplication - Application run failed
   java.lang.NoClassDefFoundError: org/mortbay/log/Log
   
   then I found https://github.com/apache/incubator-dolphinscheduler/issues/3036 in issue list mentioned that  could fix it after replacing jetty-util-9.4.14.v20181114.jar with jetty-util-6.1.26.jar,
   but after doing that,I got a new error ,and still only api server cannot be started.
   
   
   [main] ERROR org.springframework.boot.SpringApplication - Application run failed
   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]
   
   
   can someone help me to resolve this?        


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-dolphinscheduler] CalvinKirs commented on issue #4476: api service cannot be started

Posted by GitBox <gi...@apache.org>.
CalvinKirs commented on issue #4476:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/4476#issuecomment-761592082


   Is the jdk version higher than 1.8?


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-dolphinscheduler] maqiang0813 commented on issue #4476: api service cannot be started

Posted by GitBox <gi...@apache.org>.
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:
users@infra.apache.org



[GitHub] [incubator-dolphinscheduler] chengshiwen closed issue #4476: api service cannot be started

Posted by GitBox <gi...@apache.org>.
chengshiwen closed issue #4476:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/4476


   


-- 
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:
users@infra.apache.org



[GitHub] [incubator-dolphinscheduler] chengshiwen commented on issue #4476: api service cannot be started

Posted by GitBox <gi...@apache.org>.
chengshiwen commented on issue #4476:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/4476#issuecomment-763250495


   @maqiang0813 Could you give us more detail about the source compiling? Such as diff changes to reproduce


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-dolphinscheduler] maqiang0813 commented on issue #4476: api service cannot be started

Posted by GitBox <gi...@apache.org>.
maqiang0813 commented on issue #4476:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/4476#issuecomment-761719829


   jdk version is 1.8.0_242


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-dolphinscheduler] chengshiwen commented on issue #4476: api service cannot be started

Posted by GitBox <gi...@apache.org>.
chengshiwen commented on issue #4476:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/4476#issuecomment-817106505


   Close this issue since it can't be reproduced


-- 
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:
users@infra.apache.org



[GitHub] [incubator-dolphinscheduler] chengshiwen edited a comment on issue #4476: api service cannot be started

Posted by GitBox <gi...@apache.org>.
chengshiwen edited a comment on issue #4476:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/4476#issuecomment-763250495


   @maqiang0813 Could you give us more details about the source compiling? Such as diff changes to reproduce


----------------------------------------------------------------
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:
users@infra.apache.org