| CHKJ3010W: Welcome Files cannot begin or end with a /. [message #126341] | 
Wed, 27 July 2005 09:03   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Hello, 
 
 
I have the following warning message while validating web.xml. 
 
"CHKJ3010W: Welcome Files cannot begin or end with a /." 
 
I'm using Eclipse 3.1+webtools 0.7rc3+Windows Xp. 
 
Do you know what it means ?  
 
Here are the file  
 
-------------------- Begin ------------------------ 
<?xml version="1.0" encoding="UTF-8"?> 
 
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" 
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
                   xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee  
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" 
                  version="2.4"> 
 
	<welcome-file-list> 
		<welcome-file>/WEB-INF/jsp/index.jsp</welcome-file> 
	</welcome-file-list> 
 
	<filter> 
		<filter-name>TransactionLoggingFilter</filter-name> 
		<filter-class> 
			 com.hp.bco.pl.wpa.filter.transactionlogging.WPATransactionLo ggingFilter 
		</filter-class> 
	</filter> 
 
	<!-- NOTE: The TransactionLoggingFilter MUST be the first filter in the  
filter chain. --> 
	<!-- Please add any additional filter-mappings for other filters AFTER --> 
	<!-- the filter-mapping for the TransactionLoggingFilter! --> 
 
	<filter-mapping> 
		<filter-name>TransactionLoggingFilter</filter-name> 
		<url-pattern>*.do</url-pattern> 
	</filter-mapping> 
 
	<!--  Filter to improve data handling through Hibernate --> 
	<filter> 
		<filter-name>HibernateSessionFilter</filter-name> 
		<display-name>HibernateSessionFilter</display-name> 
		<filter-class> 
			com.hp.ocs.shared.filter.HibernateSessionFilter 
		</filter-class> 
	</filter> 
	<filter-mapping> 
		<filter-name>HibernateSessionFilter</filter-name> 
		<url-pattern>*.do</url-pattern> 
	</filter-mapping> 
 
	 
	<!--  Filter to encode queries --> 
	<filter> 
		<filter-name>SetCharacterEncodingFilter</filter-name> 
		<display-name>SetCharacterEncodingFilter</display-name> 
		<filter-class> 
			com.hp.ocs.shared.filter.SetCharacterEncodingFilter 
		</filter-class> 
	    <init-param> 
            <param-name>encoding</param-name> 
            <param-value>UTF-8</param-value> 
        </init-param> 
	</filter> 
 
	<filter-mapping> 
		<filter-name>SetCharacterEncodingFilter</filter-name> 
		<url-pattern>*.do</url-pattern> 
	</filter-mapping> 
 
	<!-- Display tag filter for export  --> 
    <filter> 
       <filter-name>DisplayTagResponseOverrideFilter</filter-name >  
        
<filter-class>org.displaytag.filter.ResponseOverrideFilter</filter-class >  
    </filter> 
 
    <filter-mapping> 
       <filter-name>DisplayTagResponseOverrideFilter</filter-name >  
       <url-pattern>*.do</url-pattern> 
    </filter-mapping> 
    <filter-mapping>  
       <filter-name>DisplayTagResponseOverrideFilter</filter-name >  
       <url-pattern>*.jsp</url-pattern> 
    </filter-mapping> 
 
	<!-- Log Configuration Servlet --> 
	<servlet> 
		<servlet-name>LogConfigServlet</servlet-name> 
		<servlet-class> 
			com.hp.bco.pl.transaction.util.logging.LogConfigServlet 
		</servlet-class> 
		<load-on-startup>1</load-on-startup> 
	</servlet> 
 
 
	<!-- Action Servlet Configuration --> 
 
	<servlet> 
		<servlet-name>ActionServlet</servlet-name> 
		<servlet-class>com.hp.ocs.shared.action.InitServlet</servlet-class > 
		<init-param> 
			<param-name>mapping</param-name> 
			<param-value> 
				com.hp.bco.pl.wpa.action.WPAActionMapping 
			</param-value> 
		</init-param> 
 
		<load-on-startup>2</load-on-startup> 
	</servlet> 
 
	<!-- Action Servlet Mapping --> 
	<servlet-mapping> 
		<servlet-name>ActionServlet</servlet-name> 
		<url-pattern>*.do</url-pattern> 
	</servlet-mapping> 
 
	<!-- FCKeditor Servlet Configuration --> 
	<servlet> 
		<servlet-name>FCKConnector</servlet-name> 
		<servlet-class> 
			com.fredck.FCKeditor.connector.ConnectorServlet 
		</servlet-class> 
		<init-param> 
			<param-name>baseDir</param-name> 
			<param-value> O:/OCS_WEB/data-files/content-repository/files/editor-resour ces/ </param-value> 
		</init-param> 
		<init-param> 
			<param-name>debug</param-name> 
			<param-value>false</param-value> 
		</init-param> 
		<load-on-startup>1</load-on-startup> 
	</servlet> 
 
	<!-- FCKeditor Servlet Mapping --> 
	<servlet-mapping> 
		<servlet-name>FCKConnector</servlet-name> 
		<url-pattern> 
			 /ocs/FCKeditor/editor/filemanager/browser/default/connectors /jsp/connector 
		</url-pattern> 
	</servlet-mapping> 
 
	<!--  Repository servlet --> 
	<servlet> 
		<servlet-name>Repository</servlet-name> 
		<description> 
			repository servlet that starts the repository and registers 
			it to JNDI. 
		</description> 
		<servlet-class>com.hp.ocs.j2ee.RepositoryServlet</servlet-class > 
 
		<init-param> 
			<param-name>log4j-config</param-name> 
			<param-value> 
				WEB-INF/content-repository/log4j.properties 
			</param-value> 
			<description>initial log4j configuration</description> 
		</init-param> 
 
		<init-param> 
			<param-name>repository-config</param-name> 
			<param-value> 
				WEB-INF/content-repository/repository.xml 
			</param-value> 
			<description>the repository config location</description> 
		</init-param> 
 
		<init-param> 
			<param-name>repository-home</param-name> 
			<param-value>O:/OCS_WEB/data-files/content-repository/data</param-value > 
			<description>the repository home</description> 
		</init-param> 
 
		<init-param> 
			<param-name>repository-name</param-name> 
			<param-value>ocs.repository</param-value> 
			<description> 
				Repository Name under which the repository is registered 
				via JNDI 
			</description> 
		</init-param> 
		<init-param> 
			<param-name>files-path</param-name> 
			<param-value>content-repository/files</param-value> 
		</init-param> 
		<init-param> 
			<param-name>jaas-config-file</param-name> 
			<param-value> 
				WEB-INF/content-repository/jaas.config 
			</param-value> 
			<description>Path of the jaas config file</description> 
		</init-param> 
		<load-on-startup>3</load-on-startup> 
	</servlet> 
 
    <servlet> 
		<servlet-name>MessageBlastThreadInitServlet</servlet-name> 
		<servlet-class>com.hp.ocs.message.MessageBlastThreadInitServlet </servlet-class> 
		<load-on-startup>4</load-on-startup> 
    </servlet> 
     
    <servlet> 
		<servlet-name>ScammerMailThreadInitServlet</servlet-name> 
		<servlet-class>com.hp.ocs.message.ScammerMailThreadInitServlet </servlet-class> 
		<load-on-startup>5</load-on-startup> 
    </servlet> 
 
    <servlet> 
       <servlet-name>newssticker</servlet-name> 
           
<servlet-class>com.hp.ocs.content.newsticker.NewsStickerServlet </servlet-class> 
    </servlet> 
 
    <servlet-mapping> 
       <servlet-name>newssticker</servlet-name> 
       <url-pattern>/newssticker</url-pattern> 
    </servlet-mapping> 
 
	<!--  ************************************************************ ** 
		*                                                              
		*          Resources Ref 
		*  
		 ************************************************************ ** --> 
 
	<resource-ref> 
 		<description>Oracle Datasource</description> 
 		<res-ref-name>jdbc/OCSWEB_Oracle</res-ref-name> 
 		<res-type>javax.sql.DataSource</res-type> 
 		<res-auth>Container</res-auth> 
	</resource-ref> 
  
	<!--  ************************************************************ ** 
		*                                                              
		*                  Tag Library Descriptors 
		*  
		 ************************************************************ ** --> 
 
	<!-- EL Struts Tag Library Descriptors --> 
	<taglib> 
		<taglib-uri>struts-bean-el.tld</taglib-uri> 
		<taglib-location> 
			/WEB-INF/tld/struts-bean-el.tld 
		</taglib-location> 
	</taglib> 
 
	<taglib> 
		<taglib-uri>struts-html-el.tld</taglib-uri> 
		<taglib-location> 
			/WEB-INF/tld/struts-html-el.tld 
		</taglib-location> 
	</taglib> 
 
	<taglib> 
		<taglib-uri>struts-logic-el.tld</taglib-uri> 
		<taglib-location> 
			/WEB-INF/tld/struts-logic-el.tld 
		</taglib-location> 
	</taglib> 
 
	<taglib> 
		<taglib-uri>struts-tiles-el.tld</taglib-uri> 
		<taglib-location> 
			/WEB-INF/tld/struts-tiles-el.tld 
		</taglib-location> 
	</taglib> 
 
	<!-- Struts Tag Library Descriptors --> 
 
	<taglib> 
		<taglib-uri>struts-bean.tld</taglib-uri> 
		<taglib-location>/WEB-INF/tld/struts-bean.tld</taglib-location > 
	</taglib> 
 
	<taglib> 
		<taglib-uri>struts-html.tld</taglib-uri> 
		<taglib-location>/WEB-INF/tld/struts-html.tld</taglib-location > 
	</taglib> 
 
	<taglib> 
		<taglib-uri>struts-logic.tld</taglib-uri> 
		<taglib-location>/WEB-INF/tld/struts-logic.tld</taglib-location > 
	</taglib> 
 
	<taglib> 
		<taglib-uri>struts-nested.tld</taglib-uri> 
		<taglib-location> 
			/WEB-INF/tld/struts-nested.tld 
		</taglib-location> 
	</taglib> 
 
	<taglib> 
		<taglib-uri>struts-tiles.tld</taglib-uri> 
		<taglib-location>/WEB-INF/tld/struts-tiles.tld</taglib-location > 
	</taglib> 
 
	<!-- JSTL Descriptors --> 
	<taglib> 
		<taglib-uri>c.tld</taglib-uri> 
		<taglib-location>/WEB-INF/tld/c.tld</taglib-location> 
	</taglib> 
 
	<taglib> 
		<taglib-uri>fmt.tld</taglib-uri> 
		<taglib-location>/WEB-INF/tld/fmt.tld</taglib-location> 
	</taglib> 
	<taglib> 
		<taglib-uri>x.tld</taglib-uri> 
		<taglib-location>/WEB-INF/tld/x.tld</taglib-location> 
	</taglib> 
 
	<taglib> 
		<taglib-uri>fn.tld</taglib-uri> 
		<taglib-location>/WEB-INF/tld/fn.tld</taglib-location> 
	</taglib> 
 
	<!-- OCS Tag Library Descriptors --> 
	<taglib> 
		<taglib-uri>ocs.tld</taglib-uri> 
		<taglib-location>/WEB-INF/tld/ocs.tld</taglib-location> 
	</taglib> 
 
	<!-- FCKeditor Library Descriptors --> 
	<taglib> 
		<taglib-uri>FCKeditor.tld</taglib-uri> 
		<taglib-location>/WEB-INF/tld/FCKeditor.tld</taglib-location > 
	</taglib> 
 
	<!-- Hpweb Library Descriptors --> 
	<taglib> 
		<taglib-uri>wpa-hpweb2003.tld</taglib-uri> 
		<taglib-location> 
			/WEB-INF/services/hpweb2003/tlds/wpa-hpweb2003.tld 
		</taglib-location> 
	</taglib> 
	 
	<!-- Display tag --> 
	<taglib> 
		<taglib-uri>displaytag.tld</taglib-uri> 
		<taglib-location> 
			/WEB-INF/tld/displaytag-12.tld 
		</taglib-location> 
	</taglib>  
 
	<!-- Tree tag --> 
	<taglib> 
		<taglib-uri>treetag.tld</taglib-uri> 
		<taglib-location> 
			/WEB-INF/tld/treetag.tld 
		</taglib-location> 
	</taglib>  
 
 
	<!--  ************************************************************ ** 
		*                                                              
		*          Specific entries for OCS application  
		*  
		 ************************************************************ ** --> 
 
</web-app> 
 
 
--------------------  End  ------------------------
 |  
 |  
  | 
| Re: CHKJ3010W: Welcome Files cannot begin or end with a /. [message #126500 is a reply to message #126341] | 
Wed, 27 July 2005 12:53    | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Originally posted by: erickson_d.yahoo.removethis.com 
 
Hi Bertrand -- 
 
This is a servlet specification question.  I don't know if validator  
messages refer to the applicable specifications, but it would be cool if  
they did.  Anyway, you can read "Java Servlet Specification" section  
SRV.9.10 for authoritative details, but here's my take on it: 
 
Welcome files may be served when a request is made for a directory.  If  
the directory exists, and it contains a resource with a name that  
matches any of the welcome file names, that resource will be served.  
Otherwise, the container will list the contents of the directory or  
return a 403 error, depending on container-specific settings.  So, the  
welcome-file is a simple file name with no path components, and you need  
a suitable welcome file right in each directory, not under WEB-INF. 
 
Good luck, 
 
Doug 
Bertrand wrote: 
 
>  
> Hello, 
>  
>  
> I have the following warning message while validating web.xml. 
>  
> "CHKJ3010W: Welcome Files cannot begin or end with a /." 
>
 |  
 |  
  | 
 | 
Powered by 
FUDForum. Page generated in 0.14974 seconds