Estou tentando rodar minha aplicação no brouser mas não consigo. Dá esse erro no TomCat. Como corrigí-lo?
Ter jeito, com certeza, tem.
Esse erro indica que alguma coisa de errado aconteceu na inicialização da sua aplicação, no carregamento dos servles, ou no descritor.
Mas primeiro, você precisa verificar os log’s do tomcat (é tomcat, mesmo, né? já tive um monte desses) para saber que erro é este.
Posta aí prá gente ver…
O arquivo TCC.xml está assim …
<?xml version='1.0' encoding='utf-8'?>
<Context docBase="C:/J2EE/TCC/WebContent" path="/TCC" reloadable="true">
</Context>
Bom, se dentro de WebContent estiverem as suas páginas jsp, html, etc. o descritor está certo.
Mas você só vai saber qual o erro mesmo, se olhar os logs.
Dá uma olhada no diretório logs do tomcat. e vê o que tem lá. Você está o tomcat do netbeans/eclipse?
Sem o log, você terá que repassar todo o código buscando ninguém sabe o quê. E dificilmente, vai achar alguma coisa.
Posta o log com o erro.
Dentro da pasta logs tem 216 arquivos .log
ok, então você deve ter arquivos com nome catalina-DATA.log?
ow, então tomcat-DATA-log?
Arquivos .log são arquivos de texto, você pode abri-los com um editor de textos qualquer (bloco de notas, por exemplo).
Procura o arquivo que tenha a data de hoje. Ou o catalina-DATA.log, ou o tomcat-DATA.log. Ow então, ordena os arquivos por data de modificação e pega o mais recente.
Os que tem a data de hoje são …
localhost_log.2007-08-15.txt
stdout.log
jakarta_service_20070815.log
ok, posta o localhost…
uso o apache-tomcat-6.0.33
netbenas 6.9
spring 3.0
struts 1.3
servidor de banco sqlserver
Pessoal estou com este mesmo problema ao tentar executar o netbeans informa:
FAIL - Deployed application at context path /SysRecad but context failed to start
C:\Sistemas\SysRecad\nbproject\build-impl.xml:802: O módulo não foi implementado.
o meu web.xml
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:/application-context.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<servlet>
<servlet-name>InitServlet</servlet-name>
<jsp-file>/page/pagina.jsp</jsp-file>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>2</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>InitServlet</servlet-name>
<url-pattern>/iniciar.do</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>30</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<taglib>
<taglib-uri>struts-bean</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>struts-html</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>struts-logic</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-logic.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>struts-nested</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-nested.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>struts-tiles</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-tiles.tld</taglib-location>
</taglib>
<resource-ref>
<description>Datasouce SysRecad</description>
<res-ref-name>jdbc/sysrecad</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<!--security-constraint>
<web-resource-collection>
<web-resource-name>seguranca</web-resource-name>
<url-pattern>*.do</url-pattern>
<http-method>POST</http-method>
<http-method>GET</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>user</role-name>
<role-name>admin</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>SysRecad</realm-name>
</login-config>
<security-role>
<role-name>user</role-name>
</security-role>
<security-role>
<role-name>admin</role-name>
</security-role-->
o meu context.xml:
<?xml version="1.0" encoding="UTF-8"?> WEB-INF/web.xml