전자정부 프레임워크와 DWR을 사용하려고 합니다..
- 작성자 :
- 표*호
- 작성일 :
- 2010-07-27 19:04:13
- 조회수 :
- 3,403
- 구분 :
- 실행환경
- 진행상태 :
- 완료
Q
ajax 관련하여 dwr(annotation)을 사용하려고 하는데요-
web.xml ------------------------------------------------------------
<servlet>
<servlet-name>dwr</servlet-name>
<servlet-class>
org.directwebremoting.spring.DwrSpringServlet
</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>true</param-value>
</init-param>
</servlet>
---------------------------------------------------------------------
context-common.xml --------------------------------------------------
<dwr:configuration/>
<dwr:annotation-config />
<dwr:url-mapping />
<dwr:controller id="dwrController" debug="true" />
---------------------------------------------------------------------
에 위와 같이 추가하고 컴파일을 하면 아래와 같은 에러가 납니다..
org.directwebremoting.extend.ContainerConfigurationException: multiple beans of type 'javax.servlet.ServletConfig' were found in the spring configuration
어디서 나는 에러인지...
web.xml ------------------------------------------------------------
<servlet>
<servlet-name>dwr</servlet-name>
<servlet-class>
org.directwebremoting.spring.DwrSpringServlet
</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>true</param-value>
</init-param>
</servlet>
---------------------------------------------------------------------
context-common.xml --------------------------------------------------
<dwr:configuration/>
<dwr:annotation-config />
<dwr:url-mapping />
<dwr:controller id="dwrController" debug="true" />
---------------------------------------------------------------------
에 위와 같이 추가하고 컴파일을 하면 아래와 같은 에러가 납니다..
org.directwebremoting.extend.ContainerConfigurationException: multiple beans of type 'javax.servlet.ServletConfig' were found in the spring configuration
어디서 나는 에러인지...
A
안녕하세요. 표정호님.
DwrController 스캔시 DWR 패키지 내부에서 Spring Container를 생성하면서 발생하는 오류로 보입니다.
org.directwebremoting.spring.SpringContainer 에서 javax.servlet.ServletConfig 타입의 bean 생성시 공통컴포넌트의 Controller (servlet 타입) 와 충돌하는듯 싶습니다.
DWR 패키지사용은 해당사이트에 문의하시거나 내부 로직등을 좀더 확인하신후 적용을 검토하시기 바랍니다.
즐거운 하루 되세요. 감사합니다.
DwrController 스캔시 DWR 패키지 내부에서 Spring Container를 생성하면서 발생하는 오류로 보입니다.
org.directwebremoting.spring.SpringContainer 에서 javax.servlet.ServletConfig 타입의 bean 생성시 공통컴포넌트의 Controller (servlet 타입) 와 충돌하는듯 싶습니다.
DWR 패키지사용은 해당사이트에 문의하시거나 내부 로직등을 좀더 확인하신후 적용을 검토하시기 바랍니다.
즐거운 하루 되세요. 감사합니다.