반응형

https://victorydntmd.tistory.com/202?category=698080

 

1) 다음 메이븐 에러 발생

org.apache.maven.archiver.MavenArchiver.getManifest(org.apache.maven.project.MavenProject, org.apache.maven.archiver.MavenArchiveConfiguration)

해결책: https://stackoverflow.com/questions/37555557/m2e-error-in-mavenarchiver-getmanifest

maven 3.X대에서 발생, 위 해결책대로 2.6쓰니까 괜찮아짐

 

2) 다음 에러도 발생

dynamic web module 3.0 requires java 1.6 or newer in Maven Project

One or more constraints have not been satisfied

해결안하고 tomcat으로 실행하니 org.springframework.web.context.ContextLoaderListener classNotFoundError 발생

maven library에 분명히 위 spring-web library잡혔는데 뭔가 연결이 안되고 있나보다

해결책: https://btssgm.tistory.com/entry/dynamic-web-module-error

다시 tomcat run하니 해결됨

 

3) 그다음엔 jdbc 연결이 안되는 에러 발생

quick하게 찾아보니 springJDBC에서는 mysql8.0 연결이 안되니 5.6으로 다운그레이드해야 한다는 곳도 있고 jdbc driver버젼을 고치면 된다는 곳도 있었음

일단 간단한 jdbc연결부터 시도했으나 다음 에러 발생

Thu Feb 28 17:51:12 KST 2019 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.

com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server.

 jdbc:mysql://localhost:3306/jpa?useSSL=false붙이니 위 ssl 관련 warning은 없어졌지만 여전히 연결은 안됨

 

? & todo) 

* DB는 어떤 protocol은 쓰는지? DBMS 마다 다른가? mysql 보니 ssl도 쓰는가보다

* port는 최상위 protocol layer에만 해당? ICMP 쓰는 ping은 port없음

* https://blog.woniper.net/256  eclipse>JPA Project로 JSE에서도 JPA 예제따라해보자!

 

반응형

'java, spring' 카테고리의 다른 글

javax.validation.constraints.NotBlank vs NotNull  (0) 2019.11.12
spring error  (0) 2019.06.14
spring  (0) 2019.06.12
spring security...  (0) 2019.06.11
jpa ...  (0) 2019.03.08

+ Recent posts