2014-10-24 1 views
0

저는 Spring + Flex BlazeDS를 사용하여 프로젝트 작업을하고 있습니다.Jrebel에서 Tomcat을 시작할 때 xml 파일을 제외하는 방법

tomcat으로 Jrebel 원격 디버그를 사용하고 싶습니다. 그러나 여기에 문제가 있습니다. Jrebel이 Flex BlazeDS xml 태그를 인식하지 못했습니다. 그래서 catalina.bat에서 Jrebel을 활성화하고 바람둥이를 시작하려고했습니다. Jrebel이 xml 태그를 인식하지 못했기 때문에 tomcat webapps의 내 응용 프로그램을 컨텍스트 초기화시 시작하지 못했습니다.

[2014 - 10 월 24 일 17 : 13 : 02,503] 의 ServletContext에서 XML 문서에 행 27 : 컨텍스트 초기화 org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException 실패 [ContextLoader를] [주요 ERROR] 리소스 [/WEB-INF/spring/RemotingContext.xml]이 잘못되었습니다. 중첩 예외는 org.xm l.sax.SAXParseException : 요소 유형 "flex :"뒤에는 특성 지정 " "또는 "/>"이 와야합니다. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions에서 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions에서 (XmlBe anDefinitionReader.java:396) (XmlBean DefinitionReader.java:334)에서 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions (XmlBean DefinitionReader.java:302) org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinition S (AbstractBeanDefinitionReader.java:143) 조직에서의 . springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinition s (AbstractBeanDefinitionReader.java:178) at org .springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinition S (AbstractBeanDefinitionReader.java:149) org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions에서 (XmlW ebApplicationContext.java:124) org.springframework에서 org.springframework.context.support에서 org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFact ORY에서 .web.context.support.XmlWebApplicationContext.loadBeanDefinitions (XmlW ebApplicationContext.java:93) (AbstractRefreshableApplicationContext.java:130) .AbstractApplicationContext.obtainFreshBeanFactory (Abs tractApplicationContext.java:467) at org.springframework. context.support.AbstractApplicationContext는 ( ionContext.java:397 AbstractApplicat) org.springframework.web.context.ContextLoader.createWebApplicationContext에서 org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicatio nContext.java) (에서 새로 고침 .__ ContextLoader.j 아바 : org.springframework.web.context.ContextLoaderListener.contextInitialized 204) (ContextLoaderLis tener.java : org.springframework.web.context.ContextLoader.initWebApplicationContext (ContextLoader.jav (A)에서 282) : 47)

My xml :

<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:flex="http://www.springframework.org/schema/flex" 
xsi:schemaLocation=" 
    http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd 
    http://www.springframework.org/schema/flex 
    http://www.springframework.org/schema/flex/spring-flex-1.5.xsd 
"> 

<flex:message-broker> 
    <flex:exception-translator ref="allExceptionTranslator"/> 
    <flex:remoting-service default-channels="my-amf" /> 
    <flex:message-service default-adapter-id="jms" default-channels="my-polling-amf" /> 
</flex:message-broker> 

<flex:message-destination id="newSystemDate"/> 


<flex:remoting-destination ref="mainPanelService"/> 
<flex:remoting-destination ref="tradeService"/> </beans> 

Jrebel에서 Flex BlazeDS xml 태그를 인식하도록 설정하는 방법이 있습니까? 그렇지 않은 경우, 나는 톰캣 시작시 해당 xml을 제외 시키므로 Jrebel은이를로드하려고 시도하지 않고 전체 응용 프로그램을 시작하지 못합니다.

답변

0

어떤 줄이 문제를 일으키는 27 줄인지 알고 있습니까?27 행을 포함하고 있지 않기 때문에이 xml 섹션을 기반으로 결정하기는 어렵습니다.

+0

Jrebel이 인식하고 확인하지 못한 xml 태그입니다. –

+0

XML에 문제가 있다고 생각하지 않습니다. 내 응용 프로그램 Jrebel없이 잘 시작했다. 그러나 그것으로, 그것은 바람둥이에서 시작할 수 없습니다. 내 클래스 패스에 깨진 XML이있는 경우에도 방법이 있는지 알고 싶습니다. 여전히 성공적으로 실행됩니다. –

+0

일부 파일을 제외하는 것뿐만 아니라 [email protected]으로 문의하십시오. –