2014-06-15 4 views
3

저는 초보자입니다!
때 실행 XHTML 페이지 ----> 오류 :
XML 구문 분석 오류 : 어떤 요소가 번호 1
라인을 발견, 열 1
!!!!
Activiti JSF Spring

<beans xmlns="http://www.springframework.org/schema/beans" 
     xmlns:context="http://www.springframework.org/schema/context" 
     xmlns:tx="http://www.springframework.org/schema/tx" 
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     xsi:schemaLocation="http://www.springframework.org/schema/beans 
          http://www.springframework.org/schema/beans/spring-beans.xsd 
          "> 

    <bean id="dataSource" class="org.springframework.jdbc.datasource.SimpleDriverDataSource"> 
     <property name="driverClass" value="org.h2.Driver"/> 
     <property name="url" value="jdbc:h2:mem:activiti;DB_CLOSE_DELAY=1000"/> 
     <property name="username" value="sa"/> 
     <property name="password" value=""/> 
    </bean> 

    <bean id="transactionManager" 
      class="org.springframework.jdbc.datasource.DataSourceTransactionManager"> 
     <property name="dataSource" ref="dataSource"/> 
    </bean> 

    <bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration"> 
     <property name="databaseType" value="postgres"/> 
     <property name="dataSource" ref="dataSource"/> 
     <property name="transactionManager" ref="transactionManager"/> 
     <property name="databaseSchemaUpdate" value="true"/> 
     <property name="deploymentResources" 
        value="classpath*:bookorder.spring.bpmn20.xml"/> 
     <property name="history" value="audit"/> 
     <property name="jobExecutorActivate" value="false"/> 
    </bean> 

    <bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean"> 
     <property name="processEngineConfiguration" ref="processEngineConfiguration"/> 
    </bean> 

    <bean id="repositoryService" factory-bean="processEngine" 
      factory-method="getRepositoryService"/> 
    <bean id="runtimeService" factory-bean="processEngine" 
      factory-method="getRuntimeService"/> 
    <bean id="taskService" factory-bean="processEngine" 
      factory-method="getTaskService"/> 
    <bean id="historyService" factory-bean="processEngine" 
      factory-method="getHistoryService"/> 
    <bean id="managementService" factory-bean="processEngine" 
      factory-method="getManagementService"/> 

    <bean id="order" class="activiti.OrderService"/> 

</beans> 


얼굴-설정 :

<application> 
     <variable-resolver>org.springframework.web.jsf.SpringBeanVariableResolver</variable-resolver> 
     <el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver> 
     <variable-resolver> 
      org.springframework.web.jsf.DelegatingVariableResolver 
     </variable-resolver> 
    </application> 


web.xhtml :

<?xml version="1.0" encoding="UTF-8"?> 
<web-app xmlns="http://java.sun.com/xml/ns/javaee" 
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
      http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" 
     version="2.5"> 

    <!-- ************************* Spring Related *********************************** --> 
    <context-param> 
     <param-name>contextConfigLocation</param-name> 
     <param-value> 
      /WEB-INF/Spring-Activiti.xml 
     </param-value> 
    </context-param> 
    <listener> 
     <listener-class> 
      org.springframework.web.context.ContextLoaderListener 
     </listener-class> 
    </listener> 
    <listener> 
     <listener-class> 
      org.springframework.web.context.request.RequestContextListener 
     </listener-class> 
    </listener> 
    <!-- ************************* Faces Related *********************************** --> 
    <servlet> 
     <servlet-name>Faces Servlet</servlet-name> 
     <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> 
     <load-on-startup>1</load-on-startup> 
    </servlet> 
    <servlet-mapping> 
     <servlet-name>Faces Servlet</servlet-name> 
     <url-pattern>*.xhtml</url-pattern> 
    </servlet-mapping> 
    <welcome-file-list> 
     <welcome-file>index.xhtml</welcome-file> 
    </welcome-file-list> 
    <session-config> 
     <session-timeout> 
      20 
     </session-timeout> 
    </session-config> 

</web-app> 

내가 바람둥이 서버
봄 - Activiti.xml 사용

나는 오류

<bean id="repositoryService" factory-bean="processEngine" 
      factory-method="getRepositoryService"/> 
    <bean id="runtimeService" factory-bean="processEngine" 
      factory-method="getRuntimeService"/> 
    <bean id="taskService" factory-bean="processEngine" 
      factory-method="getTaskService"/> 
    <bean id="historyService" factory-bean="processEngine" 
      factory-method="getHistoryService"/> 
    <bean id="managementService" factory-bean="processEngine" 
      factory-method="getManagementService"/> 


제발 도와주세요를 일으키는 코드 조각을 발견

!
thak u

답변

0

파일에 xml 헤더가 누락되었습니다 : <? xml version = "1.0"encoding = "UTF-8"? > (물음표 앞의 공백 삭제)