Remark : 소스를 가져와서 연결 시켰는데 참조 오류가 나오는 경우 버전 확인 필요
[카테고리:] Eclipse 에러 해결
사이트 Open SSL letsencrypt 세팅 오류
Overview 사이트 Open SSL letsencrypt 세팅 오류 원인 톱켓에서 포트가 다르기 때문에 letsencrypt 에러가 발생 한다.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
root@localhost:/# sudo certbot --apache -d test.test.co.kr Saving debug log to /var/log/letsencrypt/letsencrypt.log Plugins selected: Authenticator apache, Installer apache Obtaining a new certificate Performing the following challenges: http-01 challenge for test.test.co.kr Enabled Apache rewrite module Waiting for verification... Cleaning up challenges Failed authorization procedure. test.test.co.kr (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://test.test.co.kr/.well-known/acme-challenge/4VLsecxgL5gDxQz8u5UriG6T7ZieAGkSp9ELg1[111.111.111.111]: "<!doctype html><html lang=\"en\"><head><title>HTTP Status 404 \u2013 Not Found</title><style type=\"text/css\">h1 {font-family:Tahoma,A" IMPORTANT NOTES: - The following errors were reported by the server: Domain: test.test.co.kr Type: unauthorized Detail: Invalid response from http://test.test.co.kr/.well-known/acme-challenge/4VLsecxgL5gDxQz8u5UriG6T7ZieAGkSp9ELg1 [111.111.111.111]: "<!doctype html><html lang=\"en\"><head><title>HTTP Status 404 – Not Found</title><style type=\"text/css\">h1 {font-family:Tahoma,A" To fix these errors, please make sure that your domain name was entered correctly and the DNS A/AAAA record(s) for that domain contain(s) the right IP address. |
[jsp] The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path
The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path 1. 작성중 프로젝트 폴더에서 왼쪽 마우스 -> Properties 선택 2. Proejct Facets -> java -> Runtimes 의 Apache Tomcet v8.0 버전 체크 후 APPLY
HTTP Status 500 – java.io.FileNotFoundException:
로컬에서 에러
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
HTTP Status 500 - java.io.FileNotFoundException: D:\workspace\Example2\WebContent\WEB-INF\classes\resource\ActionConfig.properties (지정된 경로를 찾을 수 없습니다) type Exception report message java.io.FileNotFoundException: D:\workspace\Example2\WebContent\WEB-INF\classes\resource\ActionConfig.properties (지정된 경로를 찾을 수 없습니다) description The server encountered an internal error that prevented it from fulfilling this request. exception javax.servlet.ServletException: java.io.FileNotFoundException: D:\workspace\Example2\WebContent\WEB-INF\classes\resource\ActionConfig.properties (지정된 경로를 찾을 수 없습니다) com.finix.common.ctrl.CommonActionCtrl.init(CommonActionCtrl.java:55) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:528) org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1099) org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:670) org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520) org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476) java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) java.lang.Thread.run(Unknown Source) root cause |
서버에서 에러
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
HTTP Status 500 – Internal Server Error Type Exception Report Message java.io.FileNotFoundException: /WEB-INF/classes/resource/ActionConfig.properties (그런 파일이나 디렉터리가 없습니다) Description The server encountered an unexpected condition that prevented it from fulfilling the request. Exception javax.servlet.ServletException: java.io.FileNotFoundException: /WEB-INF/classes/resource/ActionConfig.properties (그런 파일이나 디렉터리가 없습니다) com.finix.common.ctrl.CommonActionCtrl.init(CommonActionCtrl.java:55) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:476) org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806) org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498) org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) java.lang.Thread.run(Thread.java:748) Root Cause java.io.FileNotFoundException: /WEB-INF/classes/resource/ActionConfig.properties (그런 파일이나 디렉터리가 없습니다) java.io.FileInputStream.open0(Native Method) java.io.FileInputStream.open(FileInputStream.java:195) java.io.FileInputStream.<init>(FileInputStream.java:138) java.io.FileInputStream.<init>(FileInputStream.java:93) com.finix.common.ctrl.CommonActionCtrl.init(CommonActionCtrl.java:32) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:476) org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806) org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498) org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) java.lang.Thread.run(Thread.java:748) Note The full stack trace of the root cause is available in the server logs. |
수정위치 서버 수정 : 경로명을 풀로 적어 준다.
1 2 3 4 5 6 7 8 9 10 11 |
<servlet> <servlet-name>Controller</servlet-name> <servlet-class>com.finix.common.ctrl.CommonActionCtrl</servlet-class> <init-param> <param-name>actionConfig</param-name> <param-value>/home/world/New/ROOT/WEB-INF/classes/resource/ActionConfig.properties</param-value> </init-param> <load-on-startup>0</load-on-startup> </servlet> |
The following problems were detected org.eclipse app.logging.aeri.ide
1 2 3 4 5 6 |
org.eclipse.epp.logging.aeri.ide --> Missing Constraint: Import-Package: org.apache.lucene.document; version = "[7.1.0,8.0.0]" org.apache.lucene.index; version = "[7.1.0,8.0.0]" org.apache.lucene.search; version = "[7.1.0,8.0.0]" org.apache.lucene.store; version = "[7.1.0,8.0.0]" |
At least one JAR was scanned for TLDs yet contained no TLDs
1 2 3 4 |
At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. log4j:ERROR setFile(null,true) call failed. |
참조: https://javacan.tistory.com/entry/decrease-tomcat-startup-time-by-skip-jar-scan 추가
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
geronimo-spec-jaxrpc*.jar,wsdl4j*.jar,\ ant.jar,ant-junit*.jar,aspectj*.jar,jmx.jar,h2*.jar,hibernate*.jar,httpclient*.jar,\ jmx-tools.jar,jta*.jar,log4j*.jar,mail*.jar,slf4j*.jar,\ xercesImpl.jar,xmlParserAPIs.jar,xml-apis.jar,\ junit.jar,junit-*.jar,ant-launcher.jar,\ cobertura-*.jar,asm-*.jar,dom4j-*.jar,icu4j-*.jar,jaxen-*.jar,jdom-*.jar,\ jetty-*.jar,oro-*.jar,servlet-api-*.jar,tagsoup-*.jar,xmlParserAPIs-*.jar,\ xom-*.jar,\ rt.jar,\ spring-*.RELEASE.jar # Default list of JAR files that should be scanned that overrides the default # jarsToSkip list above. This is typically used to include a specific JAR that # has been excluded by a broad file name pattern in the jarsToSkip list. # The list of JARs to scan may be over-ridden at a Context level for individual # scan types by configuring a JarScanner with a nested JarScanFilter. tomcat.util.scan.StandardJarScanFilter.jarsToScan=\ log4j-core*.jar,log4j-taglib*.jar,log4javascript*.jar,slf4j-taglib*.jar,\ spring-webmvc-*.jar |
Example01.log (지정된 경로를 찾을 수 없습니다)
1 2 3 4 5 6 |
10월 23, 2020 5:22:45 오후 org.apache.jasper.servlet.TldScanner scanJars 정보: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. log4j:ERROR setFile(null,true) call failed. java.io.FileNotFoundException: E:\Project\logs\Example01.log (지정된 경로를 찾을 수 없습니다) |
Example01 Property maxActive is not used in DBCP2,
1 2 3 4 5 |
경고: Name = Example01 Property maxActive is not used in DBCP2, use maxTotal instead. maxTotal default value is 8. You have set value of "50" for "maxActive" property, which is being ignored. |
Tomcat JDBC Connection Pool and Apache DBCP are two different connection pool implementations. In your stage environment you probably have Apache DBCP2 in classpath and Tomcat tries to use it instead of Tomcat JDBC Connection Pool. maxActive 를 maxTotal maxWait -> maxWaitMillis 로 수정
[SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source’
1 2 3 4 |
경고: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Exsample01' did not find a matching property. |
1. 이클립스 톰캣 설정 메뉴를 클릭 하여 설정 메뉴로 들어 갑니다. 2. Server Options에서 아래 메뉴를 체크 합니다. 3. 서버를 다시 시작 합니다.
cellpadding cellpadding is obsolete
Multiple annotations found at this line: – Attribute (cellpadding) is obsolete. Its use is discouraged in HTML5 documents. – Attribute (cellpadding) is obsolete. Its use is discouraged in HTML5 documents.
1 2 3 |
<table cellpadding='0' cellspacing='0'> (X) |
HTML5 CSS 로 수정
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
<style type="text/css"> //CSS Replacement for cellpadding='0': table { border-spacing:0; border-collapse:collapse; } // CSS Replacement for cellspacing='0': table td, table th { padding: 0; } </style> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
<style type="text/css"> /* CSS Replacement for cellpadding='0': */ table.MyTestClass { background-color: #FFFF00; border-spacing: 0; border-collapse: collapse; } /* CSS Replacement for cellspacing='0': */ table.MyTestClass td { padding: 0; vertical-align: top; } /* CSS Replacement for cellspacing='0': */ table.MyTestClass th { padding: 0; vertical-align: top; } </style> |
참조 : https://wiki.devknight.com/wiki/3/cellpadding0-and-cellspacing0-replacement-for-html5