Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guys i am trying to run my gradle project but it is showing some errors, can someone help me #122

Open
arvindprem opened this issue Aug 9, 2018 · 0 comments

Comments

@arvindprem
Copy link

$ ./gradlew bootRun
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:bootRun

. ____ _ __ _ _
/\ / ' __ _ () __ __ _ \ \ \
( ( )_
_ | '_ | '| | ' / ` | \ \ \
\/ )| |)| | | | | || (| | ) ) ) )
' |
| .__|| ||| |_, | / / / /
=========|
|==============|/=////
:: Spring Boot :: (v2.0.2.RELEASE)

2018-08-09 11:37:39.285 INFO 8396 --- [ main] d.s.SpringbootMongodbSe curityApplication : Starting SpringbootMongodbSecurityApplication on U08869 with PID 8396 (D:\Users\arvind.premanandham\eclipse-workspace2\springboot-mongodb-se curity-master\build\classes\java\main started by arvind.premanandham in D:\Users \arvind.premanandham\eclipse-workspace2\springboot-mongodb-security-master)
2018-08-09 11:37:39.288 INFO 8396 --- [ main] d.s.SpringbootMongodbSe curityApplication : No active profile set, falling back to default profiles: def ault
2018-08-09 11:37:40.726 INFO 8396 --- [ main] ConfigServletWebServerA pplicationContext : Refreshing org.springframework.boot.web.servlet.context.Anno tationConfigServletWebServerApplicationContext@55a561cf: startup date [Thu Aug 0 9 11:37:40 CEST 2018]; root of context hierarchy
2018-08-09 11:37:42.939 INFO 8396 --- [ main] o.s.b.w.embedded.tomcat .TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2018-08-09 11:37:43.079 INFO 8396 --- [ main] o.apache.catalina.core. StandardService : Starting service [Tomcat]
2018-08-09 11:37:43.079 INFO 8396 --- [ main] org.apache.catalina.cor e.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.31
2018-08-09 11:37:43.096 INFO 8396 --- [ost-startStop-1] o.a.catalina.core.AprLi fecycleListener : The APR based Apache Tomcat Native library which allows opti mal performance in production environments was not found on the java.library.pat h: [C:\Program Files\Java\jdk1.8.0_181\bin;C:\Windows\Sun\Java\bin;C:\Windows\sy stem32;C:\Windows;D:\Users\arvind.premanandham\bin;C:\Program Files\Git\mingw64\ bin;C:\Program Files\Git\usr\local\bin;C:\Program Files\Git\usr\bin;C:\Program F iles\Git\usr\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;D :\Users\arvind.premanandham\bin;C:\Program Files (x86)\Common Files\Oracle\Java\ javapath;C:\Program Files\Common Files\Microsoft Shared\Microsoft Online Service s;C:\Program Files (x86)\Common Files\Microsoft Shared\Microsoft Online Services ;C:\Program Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\ Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\Windows PowerShell\v1.0;C:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x86;C:\Program F iles (x86)\Intel\OpenCL SDK\3.0\bin\x64;C:\Program Files\Intel\Intel(R) Manageme nt Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Compo nents\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL ;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Progr am Files\Microsoft VS Code\bin;C:\Program Files\Git\cmd;C:\Program Files\nodejs; C:\Program Files\MongoDB\Server\4.0;C:\Program Files\Git\usr\bin\vendor_perl;C:\ Program Files\Git\usr\bin\core_perl;.]
2018-08-09 11:37:43.427 INFO 8396 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[loc alhost].[/] : Initializing Spring embedded WebApplicationContext
2018-08-09 11:37:43.427 INFO 8396 --- [ost-startStop-1] o.s.web.context.Context Loader : Root WebApplicationContext: initialization completed in 2703 ms
2018-08-09 11:37:43.600 INFO 8396 --- [ost-startStop-1] o.s.b.w.servlet.FilterR egistrationBean : Mapping filter: 'characterEncodingFilter' to: [/]
2018-08-09 11:37:43.601 INFO 8396 --- [ost-startStop-1] o.s.b.w.servlet.FilterR egistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/
]
2018-08-09 11:37:43.601 INFO 8396 --- [ost-startStop-1] o.s.b.w.servlet.FilterR egistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/]
2018-08-09 11:37:43.601 INFO 8396 --- [ost-startStop-1] o.s.b.w.servlet.FilterR egistrationBean : Mapping filter: 'requestContextFilter' to: [/
]
2018-08-09 11:37:43.601 INFO 8396 --- [ost-startStop-1] .s.DelegatingFilterProx yRegistrationBean : Mapping filter: 'springSecurityFilterChain' to: [/*]
2018-08-09 11:37:43.601 INFO 8396 --- [ost-startStop-1] o.s.b.w.servlet.Servlet RegistrationBean : Servlet dispatcherServlet mapped to [/]
2018-08-09 11:37:44.580 INFO 8396 --- [ main] org.mongodb.driver.clus ter : Cluster created with settings {hosts=[localhost:27017], mode =MULTIPLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWa itQueueSize=500}
2018-08-09 11:37:44.580 INFO 8396 --- [ main] org.mongodb.driver.clus ter : Adding discovered server localhost:27017 to client view of c luster
2018-08-09 11:37:44.702 INFO 8396 --- [localhost:27017] org.mongodb.driver.conn ection : Opened connection [connectionId{localValue:1, serverValue:12 }] to localhost:27017
2018-08-09 11:37:44.705 INFO 8396 --- [localhost:27017] org.mongodb.driver.clus ter : Monitor thread successfully connected to server with descrip tion ServerDescription{address=localhost:27017, type=STANDALONE, state=CONNECTED , ok=true, version=ServerVersion{versionList=[4, 0, 0]}, minWireVersion=0, maxWi reVersion=7, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=30, roundTri pTimeNanos=1929553}
2018-08-09 11:37:44.706 INFO 8396 --- [localhost:27017] org.mongodb.driver.clus ter : Discovered cluster type of STANDALONE
2018-08-09 11:37:44.833 INFO 8396 --- [ main] org.mongodb.driver.conn ection : Opened connection [connectionId{localValue:2, serverValue:13 }] to localhost:27017
2018-08-09 11:37:45.083 INFO 8396 --- [ main] o.s.s.web.DefaultSecuri tyFilterChain : Creating filter chain: Ant [pattern='/resources/'], []
2018-08-09 11:37:45.083 INFO 8396 --- [ main] o.s.s.web.DefaultSecuri tyFilterChain : Creating filter chain: Ant [pattern='/static/
'], []
2018-08-09 11:37:45.083 INFO 8396 --- [ main] o.s.s.web.DefaultSecuri tyFilterChain : Creating filter chain: Ant [pattern='/css/'], []
2018-08-09 11:37:45.083 INFO 8396 --- [ main] o.s.s.web.DefaultSecuri tyFilterChain : Creating filter chain: Ant [pattern='/js/
'], []
2018-08-09 11:37:45.083 INFO 8396 --- [ main] o.s.s.web.DefaultSecuri tyFilterChain : Creating filter chain: Ant [pattern='/images/'], []
2018-08-09 11:37:45.144 INFO 8396 --- [ main] o.s.s.web.DefaultSecuri tyFilterChain : Creating filter chain: org.springframework.security.web.util .matcher.AnyRequestMatcher@1, [org.springframework.security.web.context.request. async.WebAsyncManagerIntegrationFilter@411c6d44, org.springframework.security.we b.context.SecurityContextPersistenceFilter@6dcc40f5, org.springframework.securit y.web.header.HeaderWriterFilter@5a6d30e2, org.springframework.security.web.authe ntication.logout.LogoutFilter@7e642b88, org.springframework.security.web.authent ication.UsernamePasswordAuthenticationFilter@44f24a20, org.springframework.secur ity.web.savedrequest.RequestCacheAwareFilter@70887727, org.springframework.secur ity.web.servletapi.SecurityContextHolderAwareRequestFilter@75de29c0, org.springf ramework.security.web.authentication.AnonymousAuthenticationFilter@1687eb01, org .springframework.security.web.session.SessionManagementFilter@a098d76, org.sprin gframework.security.web.access.ExceptionTranslationFilter@121bb45b, org.springfr amework.security.web.access.intercept.FilterSecurityInterceptor@437486cd]
2018-08-09 11:37:45.288 INFO 8396 --- [ main] o.s.w.s.handler.SimpleU rlHandlerMapping : Mapped URL path [/
/favicon.ico] onto handler of type [clas s org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-08-09 11:37:46.501 INFO 8396 --- [ main] s.w.s.m.m.a.RequestMapp ingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.web. servlet.context.AnnotationConfigServletWebServerApplicationContext@55a561cf: sta rtup date [Thu Aug 09 11:37:40 CEST 2018]; root of context hierarchy
2018-08-09 11:37:48.868 INFO 8396 --- [ main] s.w.s.m.m.a.RequestMapp ingHandlerMapping : Mapped "{[/ || /home],methods=[GET]}" onto public org.spring framework.web.servlet.ModelAndView com.djamware.springbootmongodbsecurity.contro ller.LoginController.home()
2018-08-09 11:37:48.868 INFO 8396 --- [ main] s.w.s.m.m.a.RequestMapp ingHandlerMapping : Mapped "{[/dashboard],methods=[GET]}" onto public org.spring framework.web.servlet.ModelAndView com.djamware.springbootmongodbsecurity.contro ller.LoginController.dashboard()
2018-08-09 11:37:48.869 INFO 8396 --- [ main] s.w.s.m.m.a.RequestMapp ingHandlerMapping : Mapped "{[/login],methods=[GET]}" onto public org.springfram ework.web.servlet.ModelAndView com.djamware.springbootmongodbsecurity.controller .LoginController.login()
2018-08-09 11:37:48.869 INFO 8396 --- [ main] s.w.s.m.m.a.RequestMapp ingHandlerMapping : Mapped "{[/signup],methods=[GET]}" onto public org.springfra mework.web.servlet.ModelAndView com.djamware.springbootmongodbsecurity.controlle r.LoginController.signup()
2018-08-09 11:37:48.869 INFO 8396 --- [ main] s.w.s.m.m.a.RequestMapp ingHandlerMapping : Mapped "{[/signup],methods=[POST]}" onto public org.springfr amework.web.servlet.ModelAndView com.djamware.springbootmongodbsecurity.controll er.LoginController.createNewUser(com.djamware.springbootmongodbsecurity.domain.U ser,org.springframework.validation.BindingResult)
2018-08-09 11:37:48.871 INFO 8396 --- [ main] s.w.s.m.m.a.RequestMapp ingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.Res ponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframewo rk.boot.autoconfigure.web.servlet.error.BasicErrorController.error(javax.servlet .http.HttpServletRequest)
2018-08-09 11:37:48.871 INFO 8396 --- [ main] s.w.s.m.m.a.RequestMapp ingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.spr ingframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web .servlet.error.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequ est,javax.servlet.http.HttpServletResponse)
2018-08-09 11:37:48.944 INFO 8396 --- [ main] o.s.w.s.handler.SimpleU rlHandlerMapping : Mapped URL path [/home] onto handler of type [class org.spri ngframework.web.servlet.mvc.ParameterizableViewController]
2018-08-09 11:37:48.944 INFO 8396 --- [ main] o.s.w.s.handler.SimpleU rlHandlerMapping : Root mapping to handler of type [class org.springframework.w eb.servlet.mvc.ParameterizableViewController]
2018-08-09 11:37:48.945 INFO 8396 --- [ main] o.s.w.s.handler.SimpleU rlHandlerMapping : Mapped URL path [/dashboard] onto handler of type [class org .springframework.web.servlet.mvc.ParameterizableViewController]
2018-08-09 11:37:48.945 INFO 8396 --- [ main] o.s.w.s.handler.SimpleU rlHandlerMapping : Mapped URL path [/login] onto handler of type [class org.spr ingframework.web.servlet.mvc.ParameterizableViewController]
2018-08-09 11:37:48.955 INFO 8396 --- [ main] o.s.w.s.handler.SimpleU rlHandlerMapping : Mapped URL path [/webjars/] onto handler of type [class or g.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-08-09 11:37:48.955 INFO 8396 --- [ main] o.s.w.s.handler.SimpleU rlHandlerMapping : Mapped URL path [/
] onto handler of type [class org.spring framework.web.servlet.resource.ResourceHttpRequestHandler]
2018-08-09 11:37:54.211 INFO 8396 --- [ main] o.s.j.e.a.AnnotationMBe anExporter : Registering beans for JMX exposure on startup
2018-08-09 11:37:54.301 ERROR 8396 --- [ main] o.apache.catalina.core. StandardService : Failed to start connector [Connector[HTTP/1.1-8080]]

org.apache.catalina.LifecycleException: Failed to start component [Connector[HTT P/1.1-8080]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167) ~[tomcat-embed-core-8.5.31.jar:8.5.31]
at org.apache.catalina.core.StandardService.addConnector(StandardService .java:225) ~[tomcat-embed-core-8.5.31.jar:8.5.31]
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.addPrevi ouslyRemovedConnectors(TomcatWebServer.java:256) [spring-boot-2.0.2.RELEASE.jar: 2.0.2.RELEASE]
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.start(To mcatWebServer.java:198) [spring-boot-2.0.2.RELEASE.jar:2.0.2.RELEASE]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicat ionContext.startWebServer(ServletWebServerApplicationContext.java:300) [spring-b oot-2.0.2.RELEASE.jar:2.0.2.RELEASE]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicat ionContext.finishRefresh(ServletWebServerApplicationContext.java:162) [spring-bo ot-2.0.2.RELEASE.jar:2.0.2.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refres h(AbstractApplicationContext.java:553) [spring-context-5.0.6.RELEASE.jar:5.0.6.R ELEASE]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicat ionContext.refresh(ServletWebServerApplicationContext.java:140) [spring-boot-2.0 .2.RELEASE.jar:2.0.2.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication. java:759) [spring-boot-2.0.2.RELEASE.jar:2.0.2.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringAppli cation.java:395) [spring-boot-2.0.2.RELEASE.jar:2.0.2.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java :327) [spring-boot-2.0.2.RELEASE.jar:2.0.2.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java :1255) [spring-boot-2.0.2.RELEASE.jar:2.0.2.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java :1243) [spring-boot-2.0.2.RELEASE.jar:2.0.2.RELEASE]
at com.djamware.springbootmongodbsecurity.SpringbootMongodbSecurityAppli cation.main(SpringbootMongodbSecurityApplication.java:14) [main/:na]
Caused by: org.apache.catalina.LifecycleException: Protocol handler start failed
at org.apache.catalina.connector.Connector.startInternal(Connector.java: 1020) ~[tomcat-embed-core-8.5.31.jar:8.5.31]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ~[tomcat-embed-core-8.5.31.jar:8.5.31]
... 13 common frames omitted
Caused by: java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind0(Native Method) ~[na:1.8.0_181]
at sun.nio.ch.Net.bind(Net.java:433) ~[na:1.8.0_181]
at sun.nio.ch.Net.bind(Net.java:425) ~[na:1.8.0_181]
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java: 223) ~[na:1.8.0_181]
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) ~[na :1.8.0_181]
at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:210) ~[t omcat-embed-core-8.5.31.jar:8.5.31]
at org.apache.tomcat.util.net.AbstractEndpoint.start(AbstractEndpoint.ja va:1150) ~[tomcat-embed-core-8.5.31.jar:8.5.31]
at org.apache.coyote.AbstractProtocol.start(AbstractProtocol.java:591) ~ [tomcat-embed-core-8.5.31.jar:8.5.31]
at org.apache.catalina.connector.Connector.startInternal(Connector.java: 1018) ~[tomcat-embed-core-8.5.31.jar:8.5.31]
... 14 common frames omitted

2018-08-09 11:37:54.305 INFO 8396 --- [ main] o.apache.catalina.core. StandardService : Stopping service [Tomcat]
2018-08-09 11:37:54.376 INFO 8396 --- [ main] ConditionEvaluationRepo rtLoggingListener :

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2018-08-09 11:37:54.378 ERROR 8396 --- [ main] o.s.b.d.LoggingFailureA nalysisReporter :


APPLICATION FAILED TO START


Description:

The Tomcat connector configured to listen on port 8080 failed to start. The port may already be in use or the connector may be misconfigured.

Action:

Verify the connector's configuration, identify and stop any process that's liste ning on port 8080, or configure this application to listen on another port.

2018-08-09 11:37:54.379 INFO 8396 --- [ main] ConfigServletWebServerA pplicationContext : Closing org.springframework.boot.web.servlet.context.Annotat ionConfigServletWebServerApplicationContext@55a561cf: startup date [Thu Aug 09 1 1:37:40 CEST 2018]; root of context hierarchy
2018-08-09 11:37:54.380 INFO 8396 --- [ main] o.s.j.e.a.AnnotationMBe anExporter : Unregistering JMX-exposed beans on shutdown
2018-08-09 11:37:54.391 INFO 8396 --- [ main] org.mongodb.driver.conn ection : Closed connection [connectionId{localValue:2, serverValue:13 }] to localhost:27017 because the pool has been closed.
:bootRun FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':bootRun'.

Process 'command 'C:\Program Files\Java\jdk1.8.0_181\bin\java.exe'' finished w ith non-zero exit value 1

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 19s
3 actionable tasks: 1 executed, 2 up-to-date

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant