문제점해결

svn에서 내려받은 프로젝트 실행안됨.

예쁜꽃이피었으면 2015. 8. 10. 10:46


1.

Description Resource Path Location Type

javax.servlet.jsp.JspException cannot be resolved to a type taglib.jsp


Description Resource Path Location Type

javax.servlet.jsp.PageContext cannot be resolved to a type taglib.jsp



검색어 : javax.servlet.jsp.JspException cannot be resolved to a type


http://flexsilverlight.tistory.com/60





위에 문제는 해결됐고 다시 실행해보니

404에러가 난다.

The requested resource is not available.



제일 마지막 콘솔창의 에러부터 잡아보자..


2.

org.springframework.web.filter.CharacterEncodingFilter cannot be cast to javax.servlet.Filter


http://okky.kr/article/171143

검색하다 전.. 프로젝트 선택 Properties > Deployment Assembly > Maven Depencies ADD 해주니 해결 되네요~ 참고하세요~


안됨.





http://open.egovframe.kr/nforges/qna/qna/2093/.do


Servlet 관련 jar의 충돌 문제인 것 같습니다. (일반적인 문제는 아닌 것 같습니다.)


우선.. pom.xml의 dependency 부분 중 servlet-api 부분의 scope을 provided로 변경해 보셔요..


<dependency>

<groupId>javax.servlet</groupId>

<artifactId>servlet-api</artifactId>

<version>2.4</version>

<scope>provided</scope>

</dependency>



안됨.





m 리소스 업데이트 해보세요


안됨






위에 에러는 냅두고 콘솔창에서 더 위에 있는 에러들을 살펴봄.



Unable to process Jar entry


Unable to process Jar entry [org/bouncycastle/x509/util/LDAPStoreHelper.class] from Jar [jar:file:/C:/Users/yukyeong/.m2/repository/org/bouncycastle/bcprov-jdk16/1.46/bcprov-jdk16-1.46.jar!/] for annotations

java.util.zip.ZipException: invalid LOC header (bad signature)


심각: Unable to process Jar entry [org/bouncycastle/x509/extension/X509ExtensionUtil.class] from Jar [jar:file:/C:/Users/yukyeong/.m2/repository/org/bouncycastle/bcprov-jdk16/1.46/bcprov-jdk16-1.46.jar!/] for annotations

java.util.zip.ZipException: invalid LOC header (bad signature)


심각: Unable to process Jar entry [org/bouncycastle/x509/extension/SubjectKeyIdentifierStructure.class] from Jar [jar:file:/C:/Users/yukyeong/.m2/repository/org/bouncycastle/bcprov-jdk16/1.46/bcprov-jdk16-1.46.jar!/] for annotations

java.util.zip.ZipException: invalid LOC header (bad signature)



심각: Unable to process Jar entry [org/bouncycastle/x509/extension/AuthorityKeyIdentifierStructure.class] from Jar [jar:file:/C:/Users/yukyeong/.m2/repository/org/bouncycastle/bcprov-jdk16/1.46/bcprov-jdk16-1.46.jar!/] for annotations

java.util.zip.ZipException: invalid LOC header (bad signature)


뭐 이런 비스무리한 에러들이 엄청나왔음


우선 이 프로젝트에 따로 추가해줘야하는 jar파일을 빌드패스에서 더해줌



http://burucodegallery.blogspot.kr/2013/12/unable-to-process-jar-entry.html


그래서 이런경우에 Maven clean, Project clean, Server clean 을 하고 server를 다시 설치해도 해결이 되지 않았다.

구글링으로 찾아 보니, clean을 하는 도중에 jar파일이 깨지는 경우가 발생한다고 한다.
그래서 해당 jar파일을 다운받아서 다시 넣어주면 간단하게 해결할수 있다.!!



메이븐 프로젝트를 업데이트하면 jar파일을 새로 받을 수 있다고 함

안됨.


bcprov-jdk16-1.46.jar 이거 삭제하고 다시 업데이트.

위의 Unable to process Jar entry 에러는 사라짐.




다시


심각: Exception starting filter encodingFilter

java.lang.ClassCastException: org.springframework.web.filter.CharacterEncodingFilter cannot be cast to javax.servlet.Filter

at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:258)

at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)

at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4854)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5542)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)

at java.util.concurrent.FutureTask.run(FutureTask.java:262)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:745)


8월 10, 2015 9:00:59 오전 org.apache.catalina.core.StandardContext startInternal

심각: Error filterStart

8월 10, 2015 9:00:59 오전 org.apache.catalina.core.StandardContext startInternal

심각: Context [/kdaWebProject] startup failed due to previous errors



pom.xml에서

<dependency>

<groupId>javax.servlet</groupId>

<artifactId>javax.servlet-api</artifactId>

<version>3.1.0</version>

<scope>provided</scope>

</dependency>

<scope>provided</scope> 추가해도 안됨. 



다시 넘김..




메이븐 빌드해봄. 

warning이 3개 있음


[WARNING] The POM for com.microsoft.sqlserver:sqljdbc4:jar:4.0 is missing, no dependency information available

-> http://action713.tistory.com/entry/The-requested-resource-is-not-available-1

[WARNING] /C:/.../workspace/.../src/main/java/kda/module/board/serviceImpl/BoardServiceImpl.java: Some input files use unchecked or unsafe operations.

[WARNING] /C:/.../workspace/.../src/main/java/kda/module/board/serviceImpl/BoardServiceImpl.java: Recompile with -Xlint:unchecked for details.


근데 어쨌든..BUILD SUCCESS라고 떴으면 상관없는건가..




http://okky.kr/article/171143


Servers 에서 설정한 톰켓서버 더블클릭 하고... 
Server modules without publishing 체크한 위에 보면... 
Open launch configuration 이라고 있는데... 클릭해서 창을 띄운 후 
Classpath 탭에 Bootstrap Entries 에서 Add External JARs... 로 
톰캣 디렉토리 lib 폴더에 있는 servlet-api.jar 를 추가 하니까...
해결(?) 되네요...
javax.servlet.Filter 를 찾는것이니... 
일단 위의 에러는 나지 않습니다... 


하고 다시 실행해봄


8월 10, 2015 10:19:20 오전 org.apache.catalina.core.StandardContext listenerStart

심각: Exception sending context initialized event to listener instance of class org.springframework.web.util.Log4jConfigListener

java.lang.IllegalArgumentException: Invalid 'log4jConfigLocation' parameter: class path resource [/system/log4j.xml] cannot be resolved to URL because it does not exist

at org.springframework.web.util.Log4jWebConfigurer.initLogging(Log4jWebConfigurer.java:155)

at org.springframework.web.util.Log4jConfigListener.contextInitialized(Log4jConfigListener.java:45)

at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5524)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)

at java.util.concurrent.FutureTask.run(FutureTask.java:262)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:745)


8월 10, 2015 10:19:20 오전 org.apache.catalina.core.ApplicationContext log

정보: Initializing Spring root WebApplicationContext

log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).

log4j:WARN Please initialize the log4j system properly.

8월 10, 2015 10:19:21 오전 org.apache.catalina.core.StandardContext listenerStart

심각: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener

org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: class path resource [system/db.properties] cannot be opened because it does not exist

at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:78)

at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:663)

at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:638)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:407)

at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282)

at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204)

at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)

at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5524)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)

at java.util.concurrent.FutureTask.run(FutureTask.java:262)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:745)

Caused by: java.io.FileNotFoundException: class path resource [system/db.properties] cannot be opened because it does not exist

at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:158)

at org.springframework.core.io.support.PropertiesLoaderSupport.loadProperties(PropertiesLoaderSupport.java:181)

at org.springframework.core.io.support.PropertiesLoaderSupport.mergeProperties(PropertiesLoaderSupport.java:161)

at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:69)

... 15 more


8월 10, 2015 10:19:21 오전 org.apache.catalina.core.StandardContext startInternal

심각: Error listenerStart




이거 하니까 

Description Resource Path Location Type

C:\...\workspace\...\target\m2e-wtp\web-resources\META-INF\MANIFEST.MF (지정된 경로를 찾을 수 없습니다) pom.xml /... line 1 Maven Configuration Problem


라는 에러가 남..다시 돌려둠

에러가 남아있음.. 망..




svn에서 다시 내려 받고 에러다시 수정해봄 됨. 헐.. 뭐가 문제였지..

반응형