[ERROR] 오라클 TNS SERVICE 시작에러

Posted by yvette.theomom's blog
2015. 7. 30. 10:11 개발/021_에러노트

[ERROR] 오라클 TNS SERVICE 시작에러


MyEverNote: [ERROR] 오라클 TNS SERVICE 시작에러



  • 현상:

 ---------------------------

서비스
---------------------------
OracleXETNSListener 서비스가 로컬 컴퓨터에서 시작했다가 중지되었습니다. 일부 서비스는 다른 서비스 또는 프로그램에서 사용되지 않으면 자동으로 중지됩니다.
---------------------------
확인  
---------------------------



  • 해결:


 결론: path 의 오라클경로를 oracle11xe 를 맨앞으로 빼주고 재부팅한다.




해결과정: 

0. 내컴 환경에는 오라클버전이 3개 있음.
     1) oracle 11xe
     2) oracle 10g client
     3) oracle 10g runtime

1. path 수정
     위의 2), 3) 을 나중에 추가로 설치하면서 path 에 자동으로 2,3의 path 가 앞에 있었다.
     그것을 main 으로 쓰고 있는 1) 의 경로를 앞에오게 둔다.

내 환경변수: 
     
D:\oraclexe\app\oracle\product\11.2.0\server\bin;D:\oracle_program\instantclient_11_2;d:\oracle_program\oracle10g_runtime\bin;D:\oracle_program\oracle10g_client;%ORACLE_HOME%;

하하....너무 많네..ㅎㅎ 여튼 맨앞에 oracle11xe 버전이 맨앞에 오면 된다.
사실 window7 64bit 를 쓰면서 toad 도 못쓰고, orange 도 못쓰고 오로지 sql developer 만 쓰니까 너무 불편해서..
나름 이것저것 구글링을 해서 찾아보고 하다보니 저리 경로가 많아졌다.

instantclient_11_2 는 window7(64) 에서 Toad11 을 쓰기 위한 설정이었고,
oracle10g_runtime 은 window7(64) 에서 Orange4.x 를 쓰기 위한 설정이었고,
oracle10g_client 는 Orange 를 쓰기 위한 설정이었으나. 이 버전으론 실패해서 위에 runtime 버전으로 다시 깐것이다.


그럼 이 path 는 안쓰니까 삭제해볼까...=====> 안됨.. 삭제 했다가 삽질....삭제는 안하는걸로..
ORACLE_HOME 시스템변수(내가 설정한것)를 삭제하면 안되는것 같음.

 
3. 재부팅







[Eclipse-Tomcat] 서버구동시 Oracle 접속 에러_Could not open JDBC Connection

Posted by yvette.theomom's blog
2014. 2. 24. 15:45 개발/021_에러노트

Tomcat 은 붙었는데, 실제 check out 받은 프로젝트에 붙질 못할때..

알고보니 context-datasource.xml 의 설정정보가 다른것을 깜빡하고 수정하지 않음...



이때 에러메세지 내용은..

Could not open JDBC Connection for transaction; nested exception is org.apache.commons.dbcp.SQLNestedException: 

Cannot create PoolableConnectionFactory (IO 오류: The Network Adapter could not establish the connection 


DB 정보가 다르니....붙질 않지....^^


오라클 접속에러시


꼭 /lpsms/src/main/resources/egovframework/spring/context-datasource.xml


파일을  확인하자!!

ECLIPSE-TOMCAT-org.springframework.web.context.ContextLoaderListener

Posted by yvette.theomom's blog
2014. 1. 27. 16:05 개발/021_에러노트

2014.01.27 Yvette



Eclipse-Tomcat Server 구동시 아래와 같은 에러

 

2014. 1. 27 오후 3:52:02 org.apache.catalina.core.AprLifecycleListener init

정보: Loaded APR based Apache Tomcat Native library 1.1.20.

2014. 1. 27 오후 3:52:02 org.apache.catalina.core.AprLifecycleListener init

정보: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].

2014. 1. 27 오후 3:52:02 org.apache.tomcat.util.digester.SetPropertiesRule begin

경고: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:lpsms' did not find a matching property.

2014. 1. 27 오후 3:52:03 org.apache.coyote.http11.Http11AprProtocol init

정보: Initializing Coyote HTTP/1.1 on http-8090

2014. 1. 27 오후 3:52:03 org.apache.coyote.ajp.AjpAprProtocol init

정보: Initializing Coyote AJP/1.3 on ajp-8009

2014. 1. 27 오후 3:52:03 org.apache.catalina.startup.Catalina load

정보: Initialization processed in 785 ms

2014. 1. 27 오후 3:52:03 org.apache.catalina.core.StandardService start

정보: Starting service Catalina

2014. 1. 27 오후 3:52:03 org.apache.catalina.core.StandardEngine start

정보: Starting Servlet Engine: Apache Tomcat/6.0.29

2014. 1. 27 오후 3:52:03 org.apache.catalina.core.StandardContext listenerStart

심각: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener

java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645)

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1491)

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

at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)

at org.apache.catalina.core.StandardService.start(StandardService.java:519)

at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)

at org.apache.catalina.startup.Catalina.start(Catalina.java:581)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:592)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

2014. 1. 27 오후 3:52:03 org.apache.catalina.core.StandardContext listenerStart

심각: Skipped installing application listeners due to previous error(s)

2014. 1. 27 오후 3:52:03 org.apache.catalina.core.StandardContext start

심각: Error listenerStart

2014. 1. 27 오후 3:52:03 org.apache.catalina.core.StandardContext start

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


해결 Guide URL ==> 

http://stackoverflow.com/questions/6210757/java-lang-classnotfoundexception-org-springframework-web-context-contextloaderl


 

203down voteaccepted

I had a similar problem when running a spring web application in an Eclipse managed tomcat. I solved this problem by adding maven dependencies in the project's web deployment assembly.

  1. Open the project's properties (e.g., right-click on the project's name in the project explorer and select "Properties").
  2. Select "Deployment Assembly".
  3. Click the "Add..." button on the right margin.
  4. Select "Java Build Path Entries" from the menu of Directive Type and click "Next".
  5. Select "Maven Dependencies" from the Java Build Path Entries menu and click "Finish".

You should see "Maven Dependencies" added to the Web Deployment Assembly definition.

share|improve this answer


[Eclipse]sqlmap~.xml 선언부에러_<?xml version="1.0" encoding="UTF-8"?>

Posted by yvette.theomom's blog
2014. 1. 27. 15:56 개발/021_에러노트

어느날 갑자기 아무것도 xml 바꾼게 없는데 내 workspace 에서 

<?xml version="1.0" encoding="UTF-8"?>

이 부분에 모든 xml 에서 에러 발생...


찾아보니...


http://blog.naver.com/park_yun_ho/150085775654

[Windows7] Administrator 계정 활성화하기

Posted by yvette.theomom's blog
2013. 9. 12. 11:06 개발/021_에러노트

 

[Windows7] Administrator 계정 활성화하기

 

http://cdmanii.com/1127 ==> 유용함. 도움이 된 사이트

 

[TOMCAT6.0] 기동에러_WebappClassLoader.loadClass 로드 못하는 에러

Posted by yvette.theomom's blog
2011. 9. 2. 14:46 개발/021_에러노트

TOMCAT 서버를 기동시킬때 아래 에러 발생

Error configuring application listener of class org.springframework.web.context.ContextLoaderListener

==> 이유: 생성한 프로젝트에 spring.jar 파일이 없기 때문인듯함.

참고URL:
http://www.mkyong.com/spring/spring-error-classnotfoundexception-org-springframework-web-context-contextloaderlistener/
에서 요부분 참조
4. Include the Spring jar file here , it may also required common log jar due to Spring dependency.

===============================================================================
두번째 방법: 
updated.2014.01.09

기본적으로 전자정부프레임워크와 Maven 으로 환경설정 되어진 프로젝트에서
was로 tomcat 을 구동하려 할때, 
모든 설정을 정확히 한것 같은데도 tomcat 이 정상적으로 시작되지 못하는 에러 발생.

에러메시지:


심각: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1491)



는 이런류이다...

이 경우 java build 환경에서 maven dependency 를 잡아주면 해결된다.

참고 URL: http://dochi575.egloos.com/4691074
<발췌: http://dochi575.egloos.com/4691074>
프로젝트 >> properties >> Deployment Assembly를 선택한 후,
"Add" >> Java Build Path Entries >> Maven Dependencies 선택한 후, "Apply"를 해준다.

톰캣 재시작하면 서버가 정상적으로 실행된다.

메이븐 메뉴에서 "Update Project Configuration"를 실행하는 경우,
해당 정보가 삭제되므로 다시 등록해주면 된다.