Acessando projeto pelo Browser

1 resposta
U

Galera, tenho um projeto onde utilizo o Eclipse Ganymede para desenvolver a aplicação J2EE mas quando acesso pelo link (http://localhost:8086/iwg2web/) aparece apenas a página "Directory List For" ao invés da pagina index.html (que está na raiz da pasta WebContent). Se alguém me ajudar fico grato.

WEB.XML
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" 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">
	<display-name>IWG2Web</display-name>
	<context-param>
    	<param-name>versao</param-name>
    	<param-value>1.2.0.11</param-value>
  	</context-param>	
	<servlet>
		<servlet-name>iwg2web</servlet-name>
		<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>		
		<load-on-startup>1</load-on-startup>
	</servlet>
	<servlet-mapping>	
		<servlet-name>iwg2web</servlet-name>
		<url-pattern>*.service</url-pattern>				
	</servlet-mapping>
	<servlet>
    	<servlet-name>VersaoServlet</servlet-name>
	    <servlet-class>pacote.VersaoServlet</servlet-class>
	  </servlet>	
	<!-- Carregando contextos do spring -->
	<listener>
		<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
	</listener>
	<context-param>
		<param-name>contextConfigLocation</param-name>
		<param-value>/WEB-INF/classes/iwg2web-service.xml</param-value>
	</context-param>
	<welcome-file-list>
		<welcome-file>index.html</welcome-file>
	</welcome-file-list>
</web-app>

1 Resposta

U

Na verdade o deployweb é que estava colocando o index.html no lugar errado :?

Criado 31 de julho de 2008
Ultima resposta 31 de jul. de 2008
Respostas 1
Participantes 1