Filename: Web.xml
Location: C:\Ephesoft\Application\WEB-INF\
Purpose:Configures Ephesoft’s browser based application settings

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
	<context-param>
		<!-- put 'default' in case of default. -->
		<param-name>locale</param-name>
		<param-value>default</param-value>
	</context-param>
	<context-param>
		<param-name>contextConfigLocation</param-name>
		<param-value>applicationContext.xml</param-value>
	</context-param>
	<context-param>
	<!--This is where you change the port for Ephesoft, don't forget to change the port number in dcma-batch.properties and server.xml-->
		<param-name>port</param-name>
		<param-value>8080</param-value>
	</context-param>
	<context-param>
		<param-name>log4jConfigLocation</param-name>
		<param-value>log4j.xml</param-value>
	</context-param>
	<filter>
		<filter-name>headerFilter</filter-name>
		<filter-class>com.ephesoft.dcma.webapp.HTTPHeaderFilter</filter-class>
	</filter>
	<filter>
		<filter-name>hibernate.dcma</filter-name>
		<filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
	</filter>
	<filter-mapping>
		<filter-name>headerFilter</filter-name>
		<url-pattern>/*</url-pattern>
	</filter-mapping>
	<filter-mapping>
		<filter-name>hibernate.dcma</filter-name>
		<url-pattern>/*</url-pattern>
	</filter-mapping>
	<listener>
		<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
	</listener>
	<listener>
		<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
	</listener>
	<listener>
		<listener-class>com.ephesoft.dcma.webapp.SessionListener</listener-class>
	</listener>
	<servlet>
		<servlet-name>DispatcherServlet</servlet-name>
		<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
		<init-param>
			<param-name>contextConfigLocation</param-name>
			<param-value />
		</init-param>
		<load-on-startup>1</load-on-startup>
	</servlet>
	<servlet>
		<servlet-name>batchListService</servlet-name>
		<servlet-class>com.ephesoft.dcma.gwt.home.server.LandingPageServiceImpl</servlet-class>
	</servlet>
	<servlet>
		<servlet-name>rvService</servlet-name>
		<servlet-class>com.ephesoft.dcma.gwt.rv.server.ReviewValidateDocServiceImpl</servlet-class>
	</servlet>
	<servlet>
		<servlet-name>bmService</servlet-name>
		<servlet-class>com.ephesoft.dcma.gwt.admin.bm.server.BatchClassManagementServiceImpl</servlet-class>
	</servlet>
	<servlet>
		<servlet-name>loginService</servlet-name>
		<servlet-class>com.ephesoft.dcma.gwt.login.server.LoginServiceImpl</servlet-class>
	</servlet>
	<servlet>
		<servlet-name>webScannerService</servlet-name>
		<servlet-class>com.ephesoft.dcma.gwt.webscanner.server.WebScannerServiceImpl</servlet-class>
	</servlet>
	<servlet>
		<servlet-name>batchInstanceService</servlet-name>
		<servlet-class>com.ephesoft.dcma.gwt.batchInstance.server.BatchInstanceManagementServiceImpl</servlet-class>
	</servlet>
	<servlet>
		<servlet-name>customWorkflowService</servlet-name>
		<servlet-class>com.ephesoft.dcma.gwt.customWorkflow.server.CustomWorkflowServiceImpl</servlet-class>
	</servlet>

	<servlet-mapping>
		<servlet-name>customWorkflowService</servlet-name>
		<url-pattern>/customWorkflow/customWorkflowService</url-pattern>
	</servlet-mapping>

	<servlet-mapping>
		<servlet-name>batchInstanceService</servlet-name>
		<url-pattern>/batchInstance/batchInstanceService</url-pattern>
	</servlet-mapping>

	<servlet>
		<servlet-name>reportingService</servlet-name>
		<servlet-class>com.ephesoft.dcma.gwt.reporting.server.ReportingServiceImpl</servlet-class>
	</servlet>
	<servlet>
		<servlet-name>uploadBatchService</servlet-name>
		<servlet-class>com.ephesoft.dcma.gwt.uploadbatch.server.UploadBatchServiceImpl</servlet-class>
	</servlet>
	<servlet>
		<servlet-name>uploadServlet</servlet-name>
		<servlet-class>com.ephesoft.dcma.twain.UploadServlet</servlet-class>
		<load-on-startup>1</load-on-startup>
	</servlet>
	<servlet>
		<servlet-name>loggingServlet</servlet-name>
		<servlet-class>com.ephesoft.dcma.twain.LoggingServlet</servlet-class>
		<load-on-startup>1</load-on-startup>
	</servlet>
	<servlet>
		<servlet-name>ScannerStatusConveyerServlet</servlet-name>
		<servlet-class>com.ephesoft.dcma.twain.ScannerStatusConveyerServlet</servlet-class>
		<load-on-startup>1</load-on-startup>
	</servlet>
	<servlet>
		<servlet-name>externalAppAuthenticationServlet</servlet-name>
		<servlet-class>com.ephesoft.dcma.gwt.rv.server.ExternalAppAuthenticationServlet</servlet-class>
		<load-on-startup>1</load-on-startup>
	</servlet>
	<servlet>
		<servlet-name>importBatchClassUploadServlet</servlet-name>
		<servlet-class>com.ephesoft.dcma.gwt.admin.bm.server.ImportBatchClassUploadServlet</servlet-class>
	</servlet>

	<servlet>
		<servlet-name>folderManagementService</servlet-name>
		<servlet-class>com.ephesoft.dcma.gwt.folderManager.server.FolderManagerServiceImpl</servlet-class>
	</servlet>
	<servlet-mapping>
		<servlet-name>folderManagementService</servlet-name>
		<url-pattern>/folderManager/folderManagementService</url-pattern>
	</servlet-mapping>

	<servlet>
		<servlet-name>uploadDownloadFilesServlet</servlet-name>
		<servlet-class>com.ephesoft.dcma.gwt.folderManager.server.UploadDownloadFilesServlet</servlet-class>
	</servlet>
	<servlet-mapping>
		<servlet-name>uploadDownloadFilesServlet</servlet-name>
		<url-pattern>/filesUploadDownload</url-pattern>
	</servlet-mapping>

	<servlet-mapping>
		<servlet-name>importBatchClassUploadServlet</servlet-name>
		<url-pattern>/dcma-gwt-admin/importBatchClassUpload</url-pattern>
	</servlet-mapping>

	<servlet>
		<servlet-name>ImportPluginUploadServlet</servlet-name>
		<servlet-class>com.ephesoft.dcma.gwt.customWorkflow.server.ImportPluginUploadServlet</servlet-class>
	</servlet>
	<servlet-mapping>
		<servlet-name>ImportPluginUploadServlet</servlet-name>
		<url-pattern>/dcma-gwt-custom-workflow/importPluginUploadServlet</url-pattern>
	</servlet-mapping>
	<servlet>
		<servlet-name>uploadImageFileServlet</servlet-name>
		<servlet-class>com.ephesoft.dcma.gwt.admin.bm.server.UploadImageFileServlet</servlet-class>
	</servlet>
	<servlet>
		<servlet-name>uploadBatchImageServlet</servlet-name>
		<servlet-class>com.ephesoft.dcma.gwt.uploadbatch.server.UploadBatchImageServlet</servlet-class>
	</servlet>
	<servlet>
		<servlet-name>exportBatchClassDownload</servlet-name>
		<servlet-class>com.ephesoft.dcma.gwt.admin.bm.server.ExportBatchClassDownloadServlet</servlet-class>
	</servlet>
	
		<!--<servlet>
		<servlet-name>propertiesFileUploadServlet</servlet-name>
		<servlet-class>com.ephesoft.dcma.gwt.licensegenerator.server.PropertiesFileUploadServlet</servlet-class>
	</servlet>
	<servlet>
		<servlet-name>licenseGeneratorService</servlet-name>
		<servlet-class>com.ephesoft.dcma.gwt.licensegenerator.server.LicenseGeneratorServiceImpl</servlet-class>
	</servlet>
	<servlet>
		<servlet-name>generateLicenseServlet</servlet-name>
		<servlet-class>com.ephesoft.dcma.gwt.licensegenerator.server.GenerateLicenseServlet</servlet-class>
	</servlet>
	<servlet>
		<servlet-name>generateReportServlet</servlet-name>
		<servlet-class>com.ephesoft.dcma.gwt.licensegenerator.server.GenerateExcelReportServlet</servlet-class>
	</servlet>
	 -->
	<servlet-mapping>
		<servlet-name>DispatcherServlet</servlet-name>
		<url-pattern>/rest/*</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>DispatcherServlet</servlet-name>
		<url-pattern>/ws/*</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>batchListService</servlet-name>
		<url-pattern>/batchList/batchListService</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>rvService</servlet-name>
		<url-pattern>/reviewValidate/rvService</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>bmService</servlet-name>
		<url-pattern>/bm/bmService</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>loginService</servlet-name>
		<url-pattern>/login/loginService</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>webScannerService</servlet-name>
		<url-pattern>/webscanner/webScannerService</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>batchInstanceService</servlet-name>
		<url-pattern>/batchInstance/batchInstanceService</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>reportingService</servlet-name>
		<url-pattern>/report/reportingService</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>uploadBatchService</servlet-name>
		<url-pattern>/uploadbatch/uploadBatchService</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>uploadServlet</servlet-name>
		<url-pattern>/upload</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>loggingServlet</servlet-name>
		<url-pattern>/logging</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>ScannerStatusConveyerServlet</servlet-name>
		<url-pattern>/scannerStatusConveyer</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>externalAppAuthenticationServlet</servlet-name>
		<url-pattern>/authenticate</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>importBatchClassUploadServlet</servlet-name>
		<url-pattern>/dcma-gwt-admin/importBatchClassUpload</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>uploadImageFileServlet</servlet-name>
		<url-pattern>/dcma-gwt-admin/uploadImageFile</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>uploadBatchImageServlet</servlet-name>
		<url-pattern>/dcma-gwt-upload-batch/uploadBatch</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>exportBatchClassDownload</servlet-name>
		<url-pattern>/dcma-gwt-admin/exportBatchClassDownload</url-pattern>
	</servlet-mapping>
	
	 <!-- 
	<servlet-mapping>
		<servlet-name>propertiesFileUploadServlet</servlet-name>
		<url-pattern>/license-generator/propertiesFileUpload</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>licenseGeneratorService</servlet-name>
		<url-pattern>/licenseGenerator/licenseGeneratorService</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>generateLicenseServlet</servlet-name>
		<url-pattern>/license-generator/generateLicenseServlet</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>generateReportServlet</servlet-name>
		<url-pattern>/license-generator/generateReportServlet</url-pattern>
	</servlet-mapping>
 -->

	<session-config>
		<session-timeout>30</session-timeout>
	</session-config>
	<error-page>
		<error-code>403</error-code>
		<location>/access-denied.html</location>
	</error-page>
	<security-constraint>
		<web-resource-collection>
			<web-resource-name>review validate</web-resource-name>
			<url-pattern>/ReviewValidate.html</url-pattern>
			<http-method>GET</http-method>
			<http-method>POST</http-method>
		</web-resource-collection>
		<auth-constraint>
			<role-name>*</role-name>
		</auth-constraint>
	</security-constraint>
	<security-constraint>
		<web-resource-collection>
			<web-resource-name>batch list</web-resource-name>
			<url-pattern>/BatchList.html</url-pattern>
			<http-method>GET</http-method>
			<http-method>POST</http-method>
		</web-resource-collection>
		<auth-constraint>
			<role-name>*</role-name>
		</auth-constraint>
	</security-constraint>
	<security-constraint>
		<web-resource-collection>
			<web-resource-name>batch class management</web-resource-name>
			<url-pattern>/BatchClassManagement.html</url-pattern>
			<http-method>GET</http-method>
			<http-method>POST</http-method>
		</web-resource-collection>
		<auth-constraint>
			<role-name>*</role-name>
		</auth-constraint>
	</security-constraint>
	<security-constraint>
		<web-resource-collection>
			<web-resource-name>batch instance management</web-resource-name>
			<url-pattern>/BatchInstanceManagement.html</url-pattern>
			<http-method>GET</http-method>
			<http-method>POST</http-method>
		</web-resource-collection>
		<auth-constraint>
			<role-name>*</role-name>
		</auth-constraint>
	</security-constraint>
	<security-constraint>
		<web-resource-collection>
			<web-resource-name>web scanner</web-resource-name>
			<url-pattern>/WebScanner.html</url-pattern>
			<http-method>GET</http-method>
			<http-method>POST</http-method>
		</web-resource-collection>
		<auth-constraint>
			<role-name>*</role-name>
		</auth-constraint>
	</security-constraint>
	<security-constraint>
		<web-resource-collection>
			<web-resource-name>reporting</web-resource-name>
			<url-pattern>/Reporting.html</url-pattern>
			<http-method>GET</http-method>
			<http-method>POST</http-method>
		</web-resource-collection>
		<auth-constraint>
			<role-name>*</role-name>
		</auth-constraint>
	</security-constraint>

	<security-constraint>
		<web-resource-collection>
			<web-resource-name>web service</web-resource-name>
			<url-pattern>/rest/*</url-pattern>
			<http-method>GET</http-method>
			<http-method>POST</http-method>
		</web-resource-collection>
		<auth-constraint>
			<role-name>*</role-name>
		</auth-constraint>
	</security-constraint>

	<security-constraint>
		<web-resource-collection>
			<web-resource-name>upload batch</web-resource-name>
			<url-pattern>/UploadBatch.html</url-pattern>
			<http-method>GET</http-method>
			<http-method>POST</http-method>
		</web-resource-collection>
		<auth-constraint>
			<role-name>*</role-name>
		</auth-constraint>
	</security-constraint>


	<security-constraint>
		<web-resource-collection>
			<web-resource-name>custom workflow management</web-resource-name>
			<url-pattern>/CustomWorkflowManagement.html</url-pattern>
			<http-method>GET</http-method>
			<http-method>POST</http-method>
		</web-resource-collection>
		<auth-constraint>
			<role-name>*</role-name>
		</auth-constraint>
	</security-constraint>
	
	
	<security-constraint>
		<web-resource-collection>
			<web-resource-name>folder management</web-resource-name>
			<url-pattern>/FolderManager.html</url-pattern>
			<http-method>GET</http-method>
			<http-method>POST</http-method>
		</web-resource-collection>
		<auth-constraint>
			<role-name>*</role-name>
		</auth-constraint>
	</security-constraint>

	<login-config>
		<auth-method>FORM</auth-method>
		<form-login-config>
			<form-login-page>/Login.html</form-login-page>
			<form-error-page>/Login.html</form-error-page>
		</form-login-config>
	</login-config>
	<security-role>
		<role-name>*</role-name>
	</security-role>
	<!--  
	<security-constraint>
		<web-resource-collection>
			<web-resource-name>license generator</web-resource-name>
			<url-pattern>/LicenseGenerator.html</url-pattern>
			<http-method>GET</http-method>
			<http-method>POST</http-method>
		</web-resource-collection>
		<auth-constraint>
			<role-name>*</role-name>
		</auth-constraint>
	</security-constraint>

	<security-constraint>
		<web-resource-collection>
			<web-resource-name>Web Based License Generator</web-resource-name>
			<url-pattern>/licenseGenerator/licenseGeneratorService</url-pattern>
			<http-method>GET</http-method>
			<http-method>POST</http-method>
		</web-resource-collection>
		<auth-constraint>
			<role-name>*</role-name>
		</auth-constraint>
	</security-constraint>
	-->	
</web-app>

Was this article helpful to you?

Rob Marshall